-
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
10a1d89
commit 3676cdd
Showing
1 changed file
with
76 additions
and
76 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,80 +1,80 @@ | ||
{ | ||
"$schema": "http://json-schema.org/schema#", | ||
"$schemaVersion": "0.0.1", | ||
"modelTags": "", | ||
"$id": "https://smart-data-models.github.io/dataModel.UrbanMobility/GtfsCalendarRule/schema.json", | ||
"title": "Smart Data Models. GTFS Schema", | ||
"description": "Smart Data Models. GTFS Calendar Rule", | ||
"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/dataModel.UrbanMobility/GtfsCalendarRule/schema.json", | ||
"title": "Smart Data Models. GTFS Schema", | ||
"description": "Smart Data Models. GTFS Calendar Rule", | ||
"type": "object", | ||
"allOf": [ | ||
{ | ||
"$ref": "https://smart-data-models.github.io/data-models/common-schema.json#/definitions/GSMA-Commons" | ||
}, | ||
{ | ||
"properties": { | ||
"type": { | ||
"type": "string", | ||
"enum": [ | ||
"GtfsCalendarRule" | ||
], | ||
"description": "Property. NGSI Entity Type: It has to be GtfsCalendarRule" | ||
}, | ||
{ | ||
"properties": { | ||
"type": { | ||
"type": "string", | ||
"enum": [ | ||
"GtfsCalendarRule" | ||
], | ||
"description": "Property. NGSI Entity Type: It has to be GtfsCalendarRule" | ||
}, | ||
"hasService": { | ||
"$ref": "https://smart-data-models.github.io/dataModel.UrbanMobility/gtfs-schema.json#/definitions/GTFS-Stop-Commons/properties/hasService" | ||
}, | ||
"monday": { | ||
"type": "boolean", | ||
"description": "Property. Same as GTFS `monday`. Model:'https://schema.org/Boolean'" | ||
}, | ||
"tuesday": { | ||
"type": "boolean", | ||
"description": "Property. Same as GTFS `tuesday`. Model:'https://schema.org/Boolean'" | ||
}, | ||
"wednesday": { | ||
"type": "boolean", | ||
"description": "Property. Same as GTFS `wednesday`. Model:'https://schema.org/Boolean'" | ||
}, | ||
"thursday": { | ||
"type": "boolean", | ||
"description": "Property. Same as GTFS `thursday`. Model:'https://schema.org/Boolean'" | ||
}, | ||
"friday": { | ||
"type": "boolean", | ||
"description": "Property. Same as GTFS `friday`. Model:'https://schema.org/Boolean'" | ||
}, | ||
"saturday": { | ||
"type": "boolean", | ||
"description": "Property. Same as GTFS `saturday`. Model:'https://schema.org/Boolean'" | ||
}, | ||
"sunday": { | ||
"type": "boolean", | ||
"description": "Property. Same as GTFS `sunday`. Model:'https://schema.org/Boolean'" | ||
}, | ||
"startDate": { | ||
"type": "string", | ||
"format": "date", | ||
"description": "Property. Start date of this rule in `YYYY-MM-DD` format. It can be obtained from the field `start_date` of [calendar.txt](https://developers.google.com/transit/gtfs/reference/#calendartxt). Model:'https://schema.org/Date'" | ||
}, | ||
"endDate": { | ||
"type": "string", | ||
"format": "date", | ||
"description": "Property. End date of this rule in `YYYY-MM-DD` format. It can be obtained from the field `end_date` of [calendar.txt](https://developers.google.com/transit/gtfs/reference/#calendartxt). Model:'https://schema.org/Boolean'" | ||
} | ||
} | ||
"hasService": { | ||
"$ref": "https://smart-data-models.github.io/dataModel.UrbanMobility/gtfs-schema.json#/definitions/GTFS-Stop-Commons/properties/hasService" | ||
}, | ||
"monday": { | ||
"type": "boolean", | ||
"description": "Property. Same as GTFS `monday`. Model:'https://schema.org/Boolean'" | ||
}, | ||
"tuesday": { | ||
"type": "boolean", | ||
"description": "Property. Same as GTFS `tuesday`. Model:'https://schema.org/Boolean'" | ||
}, | ||
"wednesday": { | ||
"type": "boolean", | ||
"description": "Property. Same as GTFS `wednesday`. Model:'https://schema.org/Boolean'" | ||
}, | ||
"thursday": { | ||
"type": "boolean", | ||
"description": "Property. Same as GTFS `thursday`. Model:'https://schema.org/Boolean'" | ||
}, | ||
"friday": { | ||
"type": "boolean", | ||
"description": "Property. Same as GTFS `friday`. Model:'https://schema.org/Boolean'" | ||
}, | ||
"saturday": { | ||
"type": "boolean", | ||
"description": "Property. Same as GTFS `saturday`. Model:'https://schema.org/Boolean'" | ||
}, | ||
"sunday": { | ||
"type": "boolean", | ||
"description": "Property. Same as GTFS `sunday`. Model:'https://schema.org/Boolean'" | ||
}, | ||
"startDate": { | ||
"type": "string", | ||
"format": "date", | ||
"description": "Property. Start date of this rule in `YYYY-MM-DD` format. It can be obtained from the field `start_date` of [calendar.txt](https://developers.google.com/transit/gtfs/reference/#calendartxt). Model:'https://schema.org/Date'" | ||
}, | ||
"endDate": { | ||
"type": "string", | ||
"format": "date", | ||
"description": "Property. End date of this rule in `YYYY-MM-DD` format. It can be obtained from the field `end_date` of [calendar.txt](https://developers.google.com/transit/gtfs/reference/#calendartxt). Model:'https://schema.org/Boolean'" | ||
} | ||
], | ||
"required": [ | ||
"id", | ||
"type", | ||
"hasService", | ||
"monday", | ||
"tuesday", | ||
"wednesday", | ||
"thursday", | ||
"friday", | ||
"saturday", | ||
"sunday", | ||
"startDate", | ||
"endDate" | ||
] | ||
} | ||
} | ||
], | ||
"required": [ | ||
"id", | ||
"type", | ||
"hasService", | ||
"monday", | ||
"tuesday", | ||
"wednesday", | ||
"thursday", | ||
"friday", | ||
"saturday", | ||
"sunday", | ||
"startDate", | ||
"endDate" | ||
] | ||
} |