{ "$schema": "http://json-schema.org/draft-07/schema", "$id": "https://smart-data-models.github.io/dataModel.GBFS/system_alerts/schema.json", "description": "Describes ad-hoc changes to the system. According to the Standard GBFS 2.2", "modelTags": "GBFS", "derivedFrom": "https://github.com/NABSA/gbfs/blob/v2.2/gbfs.md", "type": "object", "$schemaVersion": "0.0.1", "title": "Smart Data Models adaptation of GBFS standard data model system_alerts", "properties": { "id": { "$ref": "https://github.com/smart-data-models/data-models/raw/master/common-schema.json#/definitions/EntityIdentifierType" }, "type": { "type": "string", "description": "Property. NGSI entity type. It has to be system_alerts", "enum": [ "system_alerts" ] }, "last_updated": { "description": "Property. Last time the data in the feed was updated in POSIX time.", "type": "integer", "minimum": 1450155600 }, "ttl": { "description": "Property. Number of seconds before the data in the feed will be updated again (0 if the data should always be refreshed).", "type": "integer", "minimum": 0 }, "version": { "description": "Property. GBFS version number to which the feed conforms, according to the versioning framework (added in v1.1).", "type": "string", "enum": [ "1.1-RC", "1.1", "2.0-RC", "2.0", "2.1-RC", "2.1-RC2", "2.1", "2.2", "3.0-RC", "3.0" ] }, "data": { "description": "Property. Array that contains ad-hoc alerts for the system.", "type": "object", "properties": { "alerts": { "type": "array", "items": { "type": "object", "properties": { "alert_id": { "description": "Identifier for this alert.", "type": "string" }, "type": { "description": "Type of alert.", "type": "string", "enum": [ "system_closure", "station_closure", "station_move", "other" ] }, "times": { "description": "Array of objects indicating when the alert is in effect.", "type": "array", "items": { "type": "object", "properties": { "start": { "description": "Start time of the alert.", "type": "number", "minimum": 1450155600 }, "end": { "description": "End time of the alert.", "type": "number", "minimum": 1450155600 } } }, "additionalItems": false, "required": [ "start" ] }, "station_ids": { "description": "Array of identifiers of the stations for which this alert applies.", "type": "array", "items": { "type": "string" } }, "region_ids": { "description": "Array of identifiers of the regions for which this alert applies.", "type": "array", "items": { "type": "string" } }, "url": { "description": "URL where the customer can learn more information about this alert.", "type": "string", "format": "uri" }, "summary": { "description": "A short summary of this alert to be displayed to the customer.", "type": "string" }, "description": { "description": "Detailed description of the alert.", "type": "string" }, "last_updated": { "description": "Indicates the last time the info for the alert was updated.", "type": "number", "minimum": 1450155600 } }, "required": [ "alert_id", "type", "summary" ] } } }, "required": [ "alerts" ] } }, "required": [ "last_updated", "ttl", "version", "data", "id", "type" ] }