Add required in OCPP commands
MODIFY
src/assets/server/rest/v1/docs/e-mobility-oas.json
src/assets/server/rest/v1/docs/e-mobility-oas.json
"type": "object",
"properties": {
"chargeBoxID": {
- "type": "string",
- "example": ""
+ "$ref": "#/components/schemas/ocppChargeBoxID"
},
"args": {
"type": "object",
],
"example": "Soft"
}
+ },
+ "required": [
+ "type"
+ ]
}
- }
- }
+ },
+ "required": [
+ "args"
+ ]
}
}
}
"type": "object",
"properties": {
"chargeBoxID": {
- "type": "string",
- "example": ""
+ "$ref": "#/components/schemas/ocppChargeBoxID"
}
}
}
"type": "object",
"properties": {
"chargeBoxID": {
- "type": "string",
- "example": ""
+ "$ref": "#/components/schemas/ocppChargeBoxID"
},
"args": {
"type": "object",
"type": "object",
"properties": {
"chargeBoxID": {
- "type": "string",
- "example": ""
+ "$ref": "#/components/schemas/ocppChargeBoxID"
},
"carID": {
"type": "string",
"args": {
"type": "object",
"properties": {
+ "tagID": {
+ "type": "string",
+ "description": "Required. The identifier that Charge Point must use to start a transaction.",
+ "example": "123456"
+ },
"connectorId": {
"type": "integer",
"description": "Optional. Number of the connector on which to start the transaction. connectorId SHALL be > 0",
"minimum": 1,
"example": 1
- },
- "tagID": {
- "type": "string",
- "description": "Required. The identifier that Charge Point must use to start a transaction.",
- "example": "123456"
- }
- }
}
+ },
+ "required": [
+ "tagID"
+ ]
}
+ },
+ "required": [
+ "args"
+ ]
}
}
}
"type": "object",
"properties": {
"chargeBoxID": {
- "type": "string",
- "example": ""
+ "$ref": "#/components/schemas/ocppChargeBoxID"
},
"args": {
"type": "object",
"description": "Required. The identifier of the transaction which Charge Point is requested to stop.",
"example": 12345
}
+ },
+ "required": [
+ "transactionId"
+ ]
}
- }
- }
+ },
+ "required": [
+ "args"
+ ]
}
}
}
"type": "object",
"properties": {
"chargeBoxID": {
- "type": "string",
- "example": ""
+ "$ref": "#/components/schemas/ocppChargeBoxID"
},
"args": {
"type": "object",
"properties": {
- "connectorID": {
+ "connectorId": {
"type": "integer",
"description": "Required. This contains the identifier of the connector to be unlocked.",
"minimum": 1,
"example": 1
}
+ },
+ "required": [
+ "connectorId"
+ ]
}
- }
- }
+ },
+ "required": [
+ "args"
+ ]
}
}
}
"type": "object",
"properties": {
"chargeBoxID": {
- "type": "string",
- "example": ""
+ "$ref": "#/components/schemas/ocppChargeBoxID"
},
"args": {
"type": "object",
"type": "object",
"properties": {
"chargeBoxID": {
- "type": "string",
- "example": ""
+ "$ref": "#/components/schemas/ocppChargeBoxID"
},
"args": {
"type": "object",
"type": "object",
"properties": {
"chargeBoxID": {
- "type": "string",
- "example": ""
+ "$ref": "#/components/schemas/ocppChargeBoxID"
},
"args": {
"type": "object",
"description": "Required. This contains a string containing a URI pointing to a location from which to retrieve the firmware.",
"example": ""
},
+ "retrieveDate": {
+ "type": "string",
+ "description": "Required. This contains the date and time after which the Charge Point is allowed to retrieve the (new) firmware.",
+ "format": "date-time"
+ },
"retries": {
"type": "integer",
"minimum": 1,
"description": "Optional. This specifies how many times Charge Point must try to download the firmware before giving up. If this field is not present, it is left to Charge Point to decide how many times it wants to retry.",
"example": 1
},
- "retrieveDate": {
- "type": "string",
- "description": "Required. This contains the date and time after which the Charge Point is allowed to retrieve the (new) firmware.",
- "format": "date-time"
- },
"retryInterval": {
"type": "integer",
"description": "Optional. The interval in seconds after which a retry may be attempted. If this field is not present, it is left to Charge Point to decide how long to wait between attempts.",
"type": "object",
"properties": {
"chargeBoxID": {
- "type": "string",
- "example": ""
+ "$ref": "#/components/schemas/ocppChargeBoxID"
},
"args": {
"type": "object",
}
},
"schemas": {
+ "ocppChargeBoxID": {
+ "type": "string",
+ "description": "The Charging Station ID",
+ "example": ""
+ },
"Tenant": {
"type": "object",
"required": [

Add required in OCPP commands