Skip to content

Commit

Permalink
Add v1.1 JSON schemas fixing issues VDVde#2 and VDVde#3
Browse files Browse the repository at this point in the history
  • Loading branch information
BenjaminKowatschVector committed Mar 23, 2022
1 parent 0fb3437 commit 4157033
Show file tree
Hide file tree
Showing 7 changed files with 850 additions and 0 deletions.
27 changes: 27 additions & 0 deletions v1.1/BootNotificationRequest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"$id": "urn:VDV463:1:0:0:BootNotificationRequest",
"comment": "VDV463 1.0.0 FINAL",
"title": "BootNotificationRequest",
"description": "This type represents the data sent by the presystem to the load management system as a result associated with a successful boot of the presystem.",
"additionalProperties": false,
"type": "object",
"properties": {
"presystem": {
"$ref": "#/definitions/PresystemEnumType"
}
},
"required": [
"presystem"
],
"definitions": {
"PresystemEnumType": {
"additionalProperties": false,
"type": "string",
"enum": [
"BMS",
"ITCS"
]
}
}
}
27 changes: 27 additions & 0 deletions v1.1/BootNotificationResponse.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"$id": "urn:VDV463:1:0:0:BootNotificationResponse",
"comment": "VDV463 1.0.0 FINAL",
"title": "BootNotificationResponse",
"description": "This type represents the response data sent by the load management system to the presystem as a result associated with the boot notification previously sent by the presystem.",
"type": "object",
"additionalProperties": false,
"properties": {
"status": {
"$ref": "#/definitions/BootNotificationStatusEnumType"
}
},
"required": [
"status"
],
"definitions": {
"BootNotificationStatusEnumType": {
"type": "string",
"additionalProperties": false,
"enum": [
"Accepted",
"Rejected"
]
}
}
}
60 changes: 60 additions & 0 deletions v1.1/MessageStructure.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
{
"$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 according to RFC3986.",
"type": "string",
"additionalProperties": false,
"format": "uri"
},
{
"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
}
Loading

0 comments on commit 4157033

Please sign in to comment.