Fixed CS parameters typing
MODIFY
src/assets/server/rest/v1/docs/e-mobility-oas.json
src/assets/server/rest/v1/docs/e-mobility-oas.json
"type": "object",
"properties": {
"chargePointID": {
- "type": "string"
+ "type": "number"
},
"currentType": {
"type": "string",
"excludeFromPowerLimitation": {
"type": "boolean"
},
- "ocppParamForPowerLimitiation": {
- "type": "boolean"
+ "ocppParamForPowerLimitation": {
+ "type": "string"
},
"power": {
"type": "number"

MODIFY
src/assets/server/rest/v1/schemas/chargingstation/chargingstation.json
src/assets/server/rest/v1/schemas/chargingstation/chargingstation.json
"type": "number",
"sanitize": "mongo"
},
+ "connectorType": {
+ "type": "string",
+ "sanitize": "mongo",
+ "enum": [
+ "T2",
+ "CCS",
+ "C",
+ "T1",
+ "T3C",
+ "T1CCS",
+ "D",
+ "U"
+ ]
+ },
"power": {
"type": "number",
"sanitize": "mongo"
},
"voltage": {
"type": "number",
- "enum": [110, 230],
+ "enum": [
+ 110,
+ 230
+ ],
"sanitize": "mongo"
},
"amperage": {
},
"currentType": {
"type": "string",
- "enum": ["AC", "DC"],
+ "enum": [
+ "AC",
+ "DC"
+ ],
"sanitize": "mongo"
},
"numberOfConnectedPhase": {
},
"currentType": {
"type": "string",
- "enum": ["AC", "DC"],
+ "enum": [
+ "AC",
+ "DC"
+ ],
"sanitize": "mongo"
},
"voltage": {
"type": "number",
- "enum": [110, 230],
+ "enum": [
+ 110,
+ 230
+ ],
"sanitize": "mongo"
},
"amperage": {
"sanitize": "mongo"
},
"ocppParamForPowerLimitation": {
- "type": "boolean",
+ "type": "string",
"sanitize": "mongo"
},
"power": {

MODIFY
src/assets/server/rest/v1/schemas/chargingstation/chargingstations-get.json
src/assets/server/rest/v1/schemas/chargingstation/chargingstations-get.json
"sanitize": "mongo"
},
"ConnectorType": {
- "type": "string",
- "sanitize": "mongo"
+ "$ref": "chargingstation.json#/definitions/connector/properties/connectorType"
},
"ChargingStationID": {
"$ref": "chargingstation.json#/definitions/id"

Fixed CS parameters typing