{ "$schema": "http://json-schema.org/schema#", "$schemaVersion": "0.0.1", "$id": "https://smart-data-models.github.io/dataModel.Aeronautics/FlightNotification/schema.json", "title": "Smart Data models - FlightNotification schema", "description": "A description of a generic flight notification", "type": "object", "allOf": [ { "$ref": "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/Location-Commons" }, { "properties": { "type": { "type": "string", "enum": [ "FlightNotification" ], "description": "Property. NGSI Entity type. It has to be FlightNotification" }, "state": { "type": "string", "enum": [ "active", "inactive", "completed", "unknown" ], "description": "Property. Model:'http://schema.org/Text'. Current state of the flight notification. Enum:'active, inactive, completed, unknown'" }, "dateIssued": { "type": "string", "format": "date-time", "description": "Property. Model:'http://schema.org/DateTime'. Date when the notification was created" }, "belongsToFlight": { "anyOf": [ { "type": "string", "minLength": 1, "maxLength": 256, "pattern": "^[\\w\\-\\.\\{\\}\\$\\+\\*\\[\\]`|~^@!,:\\\\]+$" }, { "type": "string", "format": "uri" } ], "description": "Relationship. Reference to the flight entity" } } } ], "required": [ "id", "type", "belongsToFlight", "dateIssued", "description" ] }