Added connector types enum in doc + required params
MODIFY
src/assets/server/rest/v1/docs/e-mobility-oas.json
src/assets/server/rest/v1/docs/e-mobility-oas.json
"description": "Transaction status",
"schema": {
"type": "string",
- "enum": ["completed", "active"]
+ "enum": [
+ "completed",
+ "active"
+ ]
}
},
{
"content": {
"application/json": {
"schema": {
- "required": ["userID", "issuer", "active", "description"],
+ "required": [
+ "userID",
+ "issuer",
+ "active",
+ "description"
+ ],
"properties": {
"userID": {
"type": "string",
},
"Connector": {
"type": "object",
+ "required": [
+ "connectorId"
+ ],
"properties": {
"connectorId": {
"type": "number",
"type": "number"
},
"type": {
- "type": "string"
+ "type": "string",
+ "enum": [
+ "T2",
+ "CCS",
+ "C",
+ "T1",
+ "T3C",
+ "T1CCS",
+ "D",
+ "U"
+ ]
},
"voltage": {
"type": "number",
- "enum": [110, 230]
+ "enum": [
+ 110,
+ 230
+ ]
},
"amperage": {
"type": "number"
},
"currentType": {
"type": "string",
- "enum": ["AC", "DC"]
+ "enum": [
+ "AC",
+ "DC"
+ ]
},
"numberOfConnectedPhase": {
"type": "number"
},
"ChargePoint": {
"type": "object",
+ "required": [
+ "chargePointID",
+ "currentType",
+ "voltage",
+ "amperage",
+ "numberOfConnectedPhase",
+ "cannotChargeInParallel",
+ "sharePowerToAllConnectors",
+ "excludeFromPowerLimitation",
+ "ocppParamForPowerLimitation",
+ "power",
+ "efficiency",
+ "connectorIDs"
+ ],
"properties": {
"chargePointID": {
"type": "number"
},
"currentType": {
"type": "string",
- "enum": ["AC", "DC"]
+ "enum": [
+ "AC",
+ "DC"
+ ]
},
"voltage": {
"type": "number",
- "enum": [110, 230]
+ "enum": [
+ 110,
+ 230
+ ]
},
"amperage": {
"type": "number"
},
"Tag": {
"type": "object",
- "required": ["id", "userID", "issuer", "active", "description"],
+ "required": [
+ "id",
+ "userID",
+ "issuer",
+ "active",
+ "description"
+ ],
"properties": {
"id": {
"type": "string",

MODIFY
src/assets/server/rest/v1/schemas/chargingstation/chargingstation.json
src/assets/server/rest/v1/schemas/chargingstation/chargingstation.json
"$ref": "#/definitions/connector/properties/connectorId"
}
}
- }
+ },
+ "required": [
+ "chargePointID"
+ ]
}
}
}

Added connector types enum in doc + required params