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 d0f21f4 commit b7b1d7b
Showing 1 changed file with 38 additions and 38 deletions.
76 changes: 38 additions & 38 deletions GtfsShape/schema.json
Original file line number Diff line number Diff line change
@@ -1,42 +1,42 @@
{
"$schema": "http://json-schema.org/schema#",
"$schemaVersion": "0.0.2",
"modelTags": "",
"$id": "https://smart-data-models.github.io/data-models/specs/UrbanMobility/GtfsShape/schema.json",
"title": "Smart Data Models. GTFS Schema",
"description": "GTFS Shape",
"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.2",
"modelTags": "",
"$id": "https://smart-data-models.github.io/data-models/specs/UrbanMobility/GtfsShape/schema.json",
"title": "Smart Data Models. GTFS Schema",
"description": "GTFS Shape",
"type": "object",
"allOf": [
{
"$ref": "https://smart-data-models.github.io/data-models/common-schema.json#/definitions/GSMA-Commons"
},
{
"$ref": "https://smart-data-models.github.io/data-models/common-schema.json#/definitions/Location-Commons"
},
{
"properties": {
"type": {
"type": "string",
"enum": [
"GtfsShape"
],
"description": "Property. NGSI Entity type. It has to be GtfsShape"
},
{
"$ref": "https://smart-data-models.github.io/data-models/common-schema.json#/definitions/Location-Commons"
},
{
"properties": {
"type": {
"type": "string",
"enum": [
"GtfsShape"
],
"description": "Property. NGSI Entity type. It has to be GtfsShape"
},
"distanceTravelled": {
"type": "array",
"description": "Property. An array of the distance travelled when reaching each of the points that make the `LineString` or `MultiLineString` that represents this shape. It shall match the same number of elements as the corresponding `LineString` or `MultiLineString`",
"items": {
"type": "number",
"minimum": 0
},
"minItems": 1
}
}
"distanceTravelled": {
"type": "array",
"description": "Property. An array of the distance travelled when reaching each of the points that make the `LineString` or `MultiLineString` that represents this shape. It shall match the same number of elements as the corresponding `LineString` or `MultiLineString`",
"items": {
"type": "number",
"minimum": 0
},
"minItems": 1
}
],
"required": [
"id",
"type",
"location"
]
}
}
],
"required": [
"id",
"type",
"location"
]
}

0 comments on commit b7b1d7b

Please sign in to comment.