Skip to content

Commit

Permalink
Revert "Add v1.1 JSON schemas fixing issues #2 and #3"
Browse files Browse the repository at this point in the history
  • Loading branch information
DohmenClaus authored Feb 26, 2024
1 parent 1668ca4 commit 3f9b706
Show file tree
Hide file tree
Showing 2 changed files with 73 additions and 60 deletions.
118 changes: 59 additions & 59 deletions v1.1/MessageStructure.json
Original file line number Diff line number Diff line change
@@ -1,59 +1,59 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"$id": "urn:VDV463:1:0:0:MessageStructure",
"comment": "VDV463 1.0.0 FINAL",
"title": "MessageStructure",
"type": "array",
"additionalProperties": false,
"description": "This type represents a generic message structure associated with the VDV463.",
"items": [
{
"type": "integer",
"additionalProperties": false,
"description": "This type represents the message type.",
"enum": [
1,
2,
3
]
},
{
"type": "string",
"additionalProperties": false,
"description": "This type represents the source of the data of the message."
},
{
"description": "This type represents an unique identifier for the presystemId.",
"type": "string",
"additionalProperties": false
},
{
"type": "string",
"additionalProperties": false,
"description": "This type represents the current timestamp of the message.",
"format": "date-time"
},
{
"type": "string",
"additionalProperties": false,
"description": "This type represents the unique identifier of the message.",
"format": "uuid"
},
{
"type": "string",
"additionalProperties": false,
"description": "This type represents the action of the message.",
"enum": [
"BootNotification",
"ProvideChargingRequests",
"ProvideChargingInformation"
]
},
{
"type": "object",
"description": "This type represents the payload of the message which is specified in separate JSON schemas."
}
],
"minItems": 7,
"maxItems": 7
}
{
"$schema": "http://json-schema.org/draft-04/schema#",
"$id": "urn:VDV463:1:0:0:MessageStructure",
"comment": "VDV463 1.0.0 FINAL",
"title": "MessageStructure",
"type": "array",
"additionalProperties": false,
"description": "This type represents a generic message structure associated with the VDV463.",
"items": [
{
"type": "integer",
"additionalProperties": false,
"description": "This type represents the message type.",
"enum": [
1,
2,
3
]
},
{
"type": "string",
"additionalProperties": false,
"description": "This type represents the source of the data of the message."
},
{
"description": "This type represents an unique identifier for the presystemId.",
"type": "string",
"additionalProperties": false
},
{
"type": "string",
"additionalProperties": false,
"description": "This type represents the current timestamp of the message.",
"format": "date-time"
},
{
"type": "string",
"additionalProperties": false,
"description": "This type represents the unique identifier of the message.",
"format": "uuid"
},
{
"type": "string",
"additionalProperties": false,
"description": "This type represents the action of the message.",
"enum": [
"BootNotification",
"ProvideChargingRequests",
"ProvideChargingInformation"
]
},
{
"type": "object",
"description": "This type represents the payload of the message which is specified in separate JSON schemas."
}
],
"minItems": 7,
"maxItems": 7
}
15 changes: 14 additions & 1 deletion v1.1/ProvideChargingInformationRequest.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,15 @@
"Faulted"
]
},
"ChargingStationStatus": {
"type": "string",
"additionalProperties": false,
"enum": [
"Available",
"Unavailable",
"Faulted"
]
},
"ChargingPointFaultInfo": {
"description": "This type represents information regarding a fault at the charging point.",
"type": "object",
Expand Down Expand Up @@ -451,7 +460,7 @@
"type": "number",
"additionalProperties": false
},
"presentPowerLimit": {
"presentPower": {
"type": "number",
"additionalProperties": false
},
Expand Down Expand Up @@ -547,6 +556,9 @@
"chargingStationId": {
"$ref": "#/definitions/UniqueIdentifier"
},
"chargingStationStatus": {
"$ref": "#/definitions/ChargingStationStatus"
},
"chargingPointInfoList": {
"type": "array",
"minItems": 1,
Expand All @@ -565,6 +577,7 @@
},
"required": [
"chargingStationId",
"chargingStationStatus",
"chargingPointInfoList"
],
"additionalProperties": false
Expand Down

0 comments on commit 3f9b706

Please sign in to comment.