-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d0f21f4
commit b7b1d7b
Showing
1 changed file
with
38 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
] | ||
} |