{ "$schema": "http://json-schema.org/draft-07/schema", "$id": "https://smart-data-models.github.io/dataModel.GBFS/gbfs_versions/schema.json", "modelTags": "GBFS", "derivedFrom": "https://github.com/NABSA/gbfs/blob/v2.2/gbfs.md", "description": "Lists all feed endpoints published according to version sof the GBFS documentation. (added in v1.1) According to the Standard GBFS 2.2", "$schemaVersion": "0.0.1", "title": "Smart Data Models adaptation of GBFS standard data model gbfs_versions", "type": "object", "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 gbfs_versions", "enum": [ "gbfs_versions" ] }, "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.", "type": "string", "enum": [ "1.1-RC", "1.1", "2.0-RC", "2.0", "2.1-RC", "2.1", "2.2", "3.0-RC", "3.0" ] }, "data": { "description": "Property. Response data in the form of name:value pairs.", "type": "object", "properties": { "versions": { "description": "Contains one object, as defined below, for each of the available versions of a feed. The array must be sorted by increasing MAJOR and MINOR version number.", "type": "array", "items": { "type": "object", "properties": { "version": { "description": "The semantic version of the feed in the form X.Y", "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" ] }, "url": { "description": "URL of the corresponding gbfs.json endpoint", "type": "string", "format": "uri" } }, "required": [ "version", "url" ] } } }, "required": [ "versions" ], "additionalProperties": false } }, "required": [ "data", "id", "last_updated", "ttl", "type", "version" ] }