Added car Conenctor Data to validation schema
MODIFY
src/assets/server/rest/v1/schemas/car/car-create.json
src/assets/server/rest/v1/schemas/car/car-create.json
},
"converter": {
"$ref": "car.json#/definitions/converter"
+ },
+ "carConnectorData": {
+ "$ref": "car.json#/definitions/carConnectorData"
}
},
"required": [

MODIFY
src/assets/server/rest/v1/schemas/car/car-update.json
src/assets/server/rest/v1/schemas/car/car-update.json
},
"converter": {
"$ref": "car.json#/definitions/converter"
+ },
+ "carConnectorData": {
+ "$ref": "car.json#/definitions/carConnectorData"
}
},
"required": [

MODIFY
src/assets/server/rest/v1/schemas/car/car.json
src/assets/server/rest/v1/schemas/car/car.json
"sanitize": "mongo"
}
}
+ },
+ "carConnectorData": {
+ "type": "object",
+ "required": [
+ "carConnectorID"
+ ],
+ "properties": {
+ "carConnectorID": {
+ "type": "string",
+ "sanitize": "mongo"
+ },
+ "carConnectorMeterID": {
+ "type": "string",
+ "sanitize": "mongo"
+ }
+ }
}
}
}

Added car Conenctor Data to validation schema