schema.v1.0.gbfs.json Maven / Gradle / Ivy
The newest version!
{
"$schema": "http://json-schema.org/draft-07/schema",
"$id": "https://github.com/MobilityData/gbfs/blob/v1.0/gbfs.md#gbfsjson",
"description": "Auto-discovery file that links to all of the other files published by the system.",
"type": "object",
"properties": {
"last_updated": {
"description": "Last time the data in the feed was updated in POSIX time.",
"type": "integer",
"minimum": 0,
"maximum": 1924988399
},
"ttl": {
"description": "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
},
"data": {
"description": "Response data in the form of name:value pairs.",
"type": "object",
"patternProperties": {
"^[a-zA-Z]{2}$": {
"type": "object",
"properties": {
"feeds": {
"description": "An array of all of the feeds that are published by the auto-discovery file. Each element in the array is an object with the keys below.",
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"url": {
"type": "string"
}
},
"required": ["name", "url"]
}
}
},
"required": ["feeds"]
}
},
"minProperties": 1,
"additionalProperties": false
}
},
"required": ["last_updated", "ttl", "data"]
}