diff --git a/Program/schema.json b/Program/schema.json index 3c77d37..dd99711 100644 --- a/Program/schema.json +++ b/Program/schema.json @@ -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" @@ -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" ] } \ No newline at end of file diff --git a/ProgramRequest/schema.json b/ProgramRequest/schema.json index 3f0a962..368ceed 100644 --- a/ProgramRequest/schema.json +++ b/ProgramRequest/schema.json @@ -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" ] } \ No newline at end of file