schema.v1.0.system_pricing_plans.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#system_pricing_plansjson",
"description": "Describes the pricing schemes of 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": "Array that contains one object per plan as defined below.",
"type": "object",
"properties": {
"plans": {
"type": "array",
"items": {
"type": "object",
"properties": {
"plan_id": {
"description": "Identifier of a pricing plan in the system.",
"type": "string"
},
"url": {
"description": "URL where the customer c…bout this pricing plan.",
"type": "string"
},
"name": {
"description": "Name of this pricing plan.",
"type": "string"
},
"currency": {
"description": "Currency used to pay the fare in ISO 4217 code.",
"type": "string",
"minLength": 3,
"maxLength": 3
},
"price": {
"description": "Fare price.",
"type": "number"
},
"is_taxable": {
"description": "Will additional tax be added to the base price?",
"type": ["number"]
},
"description": {
"description": "Customer-readable description of the pricing plan.",
"type": "string"
}
},
"required": [
"plan_id",
"name",
"currency",
"price",
"is_taxable",
"description"
]
}
}
},
"required": ["plans"]
}
},
"required": ["last_updated", "ttl", "data"]
}