{ "$schema": "http://json-schema.org/schema#", "$schemaVersion": "0.0.1", "$id": "https://smart-data-models.github.io/dataModel.UrbanMobility/GtfsTransferRule/schema.json", "title": "Smart Data Models. GTFS Schema - TransferRule", "description": "GTFS Transfer Rule", "type": "object", "allOf": [ { "$ref": "https://smart-data-models.github.io/data-models/common-schema.json#/definitions/GSMA-Commons" }, { "properties": { "type": { "type": "string", "enum": [ "GtfsTransferRule" ], "description": "Property. NGSI Entity type. It has to be GtfsTransferRule" }, "hasOrigin": { "anyOf": [ { "type": "string", "minLength": 1, "maxLength": 256, "pattern": "^[\\w\\-\\.\\{\\}\\$\\+\\*\\[\\]`|~^@!,:\\\\]+$", "description": "Property. Identifier format of any NGSI entity" }, { "type": "string", "format": "uri", "description": "Property. Identifier format of any NGSI entity" } ], "description": "Relationship. Trip associated to this Entity. It shall point to an Entity of type GtfsStop or GtfsStation. Model:'http://schema.org/URL'" }, "hasDestination": { "anyOf": [ { "type": "string", "minLength": 1, "maxLength": 256, "pattern": "^[\\w\\-\\.\\{\\}\\$\\+\\*\\[\\]`|~^@!,:\\\\]+$", "description": "Property. Identifier format of any NGSI entity" }, { "type": "string", "format": "uri", "description": "Property. Identifier format of any NGSI entity" } ], "description": "Relationship. Trip associated to this Entity. It shall point to an Entity of type GtfsStop or GtfsStation. Model:'http://schema.org/URL'" }, "transferType": { "type": "string", "enum": [ "0", "1", "2", "3" ], "description": "Property. Same as GTFS `transfer_type`. Model:'https://schema.org/Text'. Enum:'0, 1, 2, 3'" }, "minimumTransferTime": { "type": "integer", "minValue": 1, "description": "Property. Same as GTFS `min_transfer_time`. Model:'https://schema.org/Integer'. Unit:'seconds'" } } } ], "required": [ "id", "type", "hasOrigin", "hasDestination", "transferType" ] }