Skip to content

Commit

Permalink
updated $schema last version
Browse files Browse the repository at this point in the history
  • Loading branch information
albertoabellagarcia committed Sep 17, 2024
1 parent 6a08a67 commit a60ae12
Showing 1 changed file with 75 additions and 75 deletions.
150 changes: 75 additions & 75 deletions GtfsRoute/schema.json
Original file line number Diff line number Diff line change
@@ -1,80 +1,80 @@
{
"$schema": "http://json-schema.org/schema#",
"$schemaVersion": "0.0.1",
"modelTags": "",
"$id": "https://smart-data-models.github.io/data-models/specs/UrbanMobility/GtfsRoute/schema.json",
"title": "Smart Data Models. GTFS Schema - Route",
"description": "GTFS Route",
"type": "object",
"allOf": [
{
"$ref": "https://smart-data-models.github.io/data-models/common-schema.json#/definitions/GSMA-Commons"
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$schemaVersion": "0.0.1",
"modelTags": "",
"$id": "https://smart-data-models.github.io/data-models/specs/UrbanMobility/GtfsRoute/schema.json",
"title": "Smart Data Models. GTFS Schema - Route",
"description": "GTFS Route",
"type": "object",
"allOf": [
{
"$ref": "https://smart-data-models.github.io/data-models/common-schema.json#/definitions/GSMA-Commons"
},
{
"properties": {
"type": {
"type": "string",
"enum": [
"GtfsRoute"
],
"description": "Property. NGSI Entity type. It has to be GtfsRoute"
},
{
"properties": {
"type": {
"type": "string",
"enum": [
"GtfsRoute"
],
"description": "Property. NGSI Entity type. It has to be GtfsRoute"
},
"page": {
"$ref": "https://smart-data-models.github.io/dataModel.UrbanMobility/gtfs-schema.json#/definitions/GTFS-Stop-Commons/properties/page"
},
"routeColor": {
"type": "string",
"description": "Property. Same as GTFS `route_color`. Model:'https://schema.org/Text'. See [GTFS](https://developers.google.com/transit/gtfs/reference/#routestxt)"
},
"routeTextColor": {
"type": "string",
"description": "Property. Same as GTFS `route_text_color`. Model:'https://schema.org/Text'. See [GTFS](https://developers.google.com/transit/gtfs/reference/#routestxt)"
},
"routeType": {
"type": "string",
"enum": [
"0",
"1",
"2",
"3",
"4",
"5",
"6",
"7"
],
"description": "Property. Same as GTFS `route_type`. Model:'https://schema.org/Text'. allowed values those allowed for `route_type` as prescribed by [GTFS](https://developers.google.com/transit/gtfs/reference/#routestxt). Enum:'0, 1, 2, 3, 4, 5, 6, 7'"
},
"routeSortOrder": {
"type": "integer",
"minimum": 0,
"description": "Property. Same as GTFS `route_sort_order`. Model:'https://schema.org/Number'"
},
"operatedBy": {
"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. Agency that operates this route. Model:'https://schema.org/Text'. It shall point to an Entity of Type GtfsAgency"
},
"shortName": {
"type": "string",
"description": "Property. Same as GTFS `route_short_name`. Model:'https://schema.org/Text'"
}
"page": {
"$ref": "https://smart-data-models.github.io/dataModel.UrbanMobility/gtfs-schema.json#/definitions/GTFS-Stop-Commons/properties/page"
},
"routeColor": {
"type": "string",
"description": "Property. Same as GTFS `route_color`. Model:'https://schema.org/Text'. See [GTFS](https://developers.google.com/transit/gtfs/reference/#routestxt)"
},
"routeTextColor": {
"type": "string",
"description": "Property. Same as GTFS `route_text_color`. Model:'https://schema.org/Text'. See [GTFS](https://developers.google.com/transit/gtfs/reference/#routestxt)"
},
"routeType": {
"type": "string",
"enum": [
"0",
"1",
"2",
"3",
"4",
"5",
"6",
"7"
],
"description": "Property. Same as GTFS `route_type`. Model:'https://schema.org/Text'. allowed values those allowed for `route_type` as prescribed by [GTFS](https://developers.google.com/transit/gtfs/reference/#routestxt). Enum:'0, 1, 2, 3, 4, 5, 6, 7'"
},
"routeSortOrder": {
"type": "integer",
"minimum": 0,
"description": "Property. Same as GTFS `route_sort_order`. Model:'https://schema.org/Number'"
},
"operatedBy": {
"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. Agency that operates this route. Model:'https://schema.org/Text'. It shall point to an Entity of Type GtfsAgency"
},
"shortName": {
"type": "string",
"description": "Property. Same as GTFS `route_short_name`. Model:'https://schema.org/Text'"
}
],
"required": [
"id",
"type"
]
}
}
],
"required": [
"id",
"type"
]
}

0 comments on commit a60ae12

Please sign in to comment.