-
Notifications
You must be signed in to change notification settings - Fork 7
/
schema.json
48 lines (48 loc) · 1.51 KB
/
schema.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$schemaVersion": "0.0.2",
"modelTags": "",
"$id": "https://smart-data-models.github.io/dataModel.UrbanMobility/GtfsCalendarDateRule/schema.json",
"title": "Smart Data Models. GTFS Schema",
"description": "GTFS Calendar Date Rule",
"type": "object",
"allOf": [
{
"$ref": "https://smart-data-models.github.io/data-models/common-schema.json#/definitions/GSMA-Commons"
},
{
"properties": {
"type": {
"type": "string",
"enum": [
"GtfsCalendarDateRule"
],
"description": "Property. NGSI Entity Type: It has to be GtfsCalendarDateRule. Enum:'GtfsCalendarDateRule'"
},
"appliesOn": {
"type": "string",
"format": "date",
"description": "Property. Date (in YYYY-MM-DD format) this rule applies to. It shall be obtained from the GTFS `date` field. Model:'https://schema.org/Date'"
},
"exceptionType": {
"type": "string",
"enum": [
"1",
"2"
],
"description": "Property. Same as GTFS `exception_type` field. Model:'https://schema.org/Text'. Enum:'1, 2'"
},
"hasService": {
"$ref": "https://smart-data-models.github.io/dataModel.UrbanMobility/gtfs-schema.json#/definitions/GTFS-Stop-Commons/properties/hasService"
}
}
}
],
"required": [
"id",
"type",
"hasService",
"appliesOn",
"exceptionType"
]
}