
schema.v3.0-RC.system_regions.system_regions.json Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gbfs-java-model Show documentation
Show all versions of gbfs-java-model Show documentation
Generates Java model from GBFS JSON schema using jsonschema2pojo.
{
"$schema": "http://json-schema.org/draft-07/schema",
"$id": "https://github.com/NABSA/gbfs/blob/v3.0-RC/gbfs.md#system_regionsjson",
"description":
"Describes regions for a system that is broken up by geographic or political region.",
"type": "object",
"properties": {
"last_updated": {
"description":
"Last time the data in the feed was updated in POSIX time.",
"type": "integer",
"minimum": 1450155600
},
"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
},
"version": {
"description":
"GBFS version number to which the feed conforms, according to the versioning framework (added in v1.1).",
"type": "string",
"enum": [
"3.0-RC",
"3.0"
]
},
"data": {
"description": "Describe regions for a system that is broken up by geographic or political region.",
"type": "object",
"properties": {
"regions": {
"description": "Array of regions.",
"type": "array",
"items": {
"type": "object",
"properties": {
"region_id": {
"description": "identifier of the region.",
"type": "string"
},
"name": {
"description": "Public name for this region.",
"type": "array",
"items": {
"type": "object",
"properties": {
"text": {
"description": "The translated text.",
"type": "string"
},
"language": {
"description": "IETF BCP 47 language code.",
"type": "string",
"pattern": "^[a-z]{2,3}(-[A-Z]{2})?$"
}
},
"required": ["text", "language"]
}
}
},
"required": ["region_id", "name"]
}
}
},
"required": ["regions"]
}
},
"required": ["last_updated", "ttl", "version", "data"]
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy