Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 19 additions & 33 deletions Program/schema.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,10 @@
{
"$schema": "http://json-schema.org/schema",
"$schemaVersion": "0.0.1",
"$id": "https://smart-data-models.github.io/TrafficManagement/Program/schema.json",
"title": "Smart Data models -Program schema\",",
"description": "description of a program variable message signs",
"$schemaVersion": "0.0.2",
"$id": "https://smart-data-models.github.io/dataModel.Traffic/Program/schema.json",
"title": "Smart Data models Program schema",
"description": "This is the data model for representing description of a Traffic Sign Program",
"type": "object",
"required": [
"id",
"type",
"status"
],
"allOf": [
{
"$ref1": "https://smart-data-models.github.io/data-models/common-schema.json#/definitions/GSMA-Commons"
Expand All @@ -21,35 +16,26 @@
"properties": {
"status": {
"type": "string",
"description": "Property. The status program",
"enum": [
"deleted",
"unknown",
"ready",
"inPreparation",
"waiting",
"active"
"DELETED",
"UNKNOWN",
"READY",
"INPREPERATION",
"WAITING",
"ACTIVE"
]
},
"lastErrorMessage": {
"type": "string"
},
"executionResultCode": {
"programGroup": {
"type": "string",
"enum": [
"working",
"prepared",
"ok",
"error",
"timeout",
"canceled"
]
"description": "Property. Model:'https://schema.org/Text'. The name of program group this program belongs to."
}
},
"required": [
"id",
"type"
],
"": {}
}
}
],
"required": [
"id",
"type",
"status"
]
}
67 changes: 43 additions & 24 deletions ProgramRequest/schema.json
Original file line number Diff line number Diff line change
@@ -1,44 +1,63 @@
{
"$schema": "http://json-schema.org/schema",
"$schemaVersion": "0.0.1",
"$id": "https://smart-data-models.github.io/TrafficManagement/ProgramRequest/schema.json",
"title": "Smart Data models -ProgramRequest schema\",",
"description": "description of a request for a program",
"$schemaVersion": "0.0.2",
"$id": "https://smart-data-models.github.io/dataModel.Traffic/ProgramRequest/schema.json",
"title": "Smart Data models ProgramRequest schema",
"description": "This is the data model for representing description of a ProgramRequest",
"type": "object",
"required": [
"id",
"type",
"refProgram",
"status"
],
"allOf": [
{
"$ref1": "https://smart-data-models.github.io/data-models/common-schema.json#/definitions/GSMA-Commons"
"$ref": "https://smart-data-models.github.io/data-models/common-schema.json#/definitions/GSMA-Commons",
"description:All from GSMA-Commons ": {}
},
{
"$ref": "https://smart-data-models.github.io/data-models/common-schema.json#/definitions/Location-Commons",
"description:All from Location-Commons ": {}
},
{
"properties": {
"refProgram": {
"type": "string"
"oneOf": [
{
"type": "string",
"format": "uri"
},
{
"$ref": "https://smart-data-models.github.io/data-models/common-schema.json#/definitions/EntityIdentifierType"
}
],
"description": "Property. Relationship. Model of the program"
},
"initiator": {
"type": "string"
"type": "string",
"description": "Property. Model:'https://schema.org/Text'. The person or organisation, that initiated this request"
},
"status": {
"type": "string",
"enum": [
"new",
"waiting",
"executed",
"rejected"
"NEW",
"WAITING",
"EXECUTED",
"REJECTED"
],
"": {}
"description": "Property. Model:'https://schema.org/Text'. The current status of this programRequest"
},
"action": {
"type": "string",
"enum": [
"DEACTIVATE",
"ACTIVATE"
],
"description": "Property. Model:'https://schema.org/Text'. The action this request calls for - default is ACTIVATE."
}
},
"required": [
"id",
"type"
],
"": {}
}
}
],
"required": [
"id",
"type",
"name",
"refProgram",
"status"
]
}