Skip to content

Commit 00ee148

Browse files
authored
Fix invalid examples (#45)
* Fix invalid JSON in examples * fix missing comma * fix calendar indentation * Fix invalid time zone
1 parent 50473f8 commit 00ee148

File tree

1 file changed

+35
-36
lines changed

1 file changed

+35
-36
lines changed

reference.md

Lines changed: 35 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ Field Name | Presence | Type | Description
260260
"version": "1.0",
261261
"data": {
262262
"language": "en",
263-
"timezone": "Canada/Toronto",
263+
"timezone": "America/Toronto",
264264
"name": "Example MicroTransit",
265265
"short_name": "Micro",
266266
"operator": "MicroTransit, Inc",
@@ -301,19 +301,19 @@ Field Name | Presence | Type | Description
301301
"brand_id": "regular_ride",
302302
"brand_name": "Regular Ride",
303303
"brand_color": "1C7F49",
304-
"brand_text_color": "FFFFFF",
304+
"brand_text_color": "FFFFFF"
305305
},
306306
{
307307
"brand_id": "large_ride",
308308
"brand_name": "Large Ride",
309309
"brand_color": "1C7F49",
310-
"brand_text_color": "FFFFFF",
310+
"brand_text_color": "FFFFFF"
311311
},
312312
{
313313
"brand_id": "shared_ride",
314314
"brand_name": "Shared Ride",
315315
"brand_color": "1C7F49",
316-
"brand_text_color": "FFFFFF",
316+
"brand_text_color": "FFFFFF"
317317
}
318318
]
319319
}
@@ -345,7 +345,7 @@ Field Name | Presence | Type | Description
345345
{
346346
"vehicle_type_id": "large_van",
347347
"max_capacity": 7,
348-
"wheelchair_boarding": "boarding_accessible",
348+
"wheelchair_boarding": "boarding_accessible"
349349
}
350350
]
351351
}
@@ -516,37 +516,36 @@ Field Name | Presence | Type | Description
516516
"version": "1.0",
517517
"data": {
518518
"calendars": [
519-
{
520-
"calendar_id": "weekday",
521-
"days": [
519+
{
520+
"calendar_id": "weekday",
521+
"days": [
522522
"mon",
523523
"tue",
524524
"wed",
525525
"thu",
526526
"fri"
527-
],
528-
"start_date": "20210901",
529-
"end_date": "20211031",
530-
"excepted_dates": [
527+
],
528+
"start_date": "20210901",
529+
"end_date": "20211031",
530+
"excepted_dates": [
531531
"20210906"
532-
]
533-
},
534-
{
535-
"calendar_id": "weekend",
536-
"days": [
532+
]
533+
},
534+
{
535+
"calendar_id": "weekend",
536+
"days": [
537537
"sat",
538538
"sun"
539-
],
540-
"start_date": "20210901",
541-
"end_date": "20211031"
542-
},
543-
{
544-
"calendar_id": "labor_day"
545-
"start_date": "20210906",
546-
"end_date": "20210906"
547-
}
548-
]
549-
}
539+
],
540+
"start_date": "20210901",
541+
"end_date": "20211031"
542+
},
543+
{
544+
"calendar_id": "labor_day",
545+
"start_date": "20210906",
546+
"end_date": "20210906"
547+
}
548+
]
550549
}
551550
}
552551
```
@@ -628,12 +627,12 @@ The first 20 minutes cost $1.00 CAD per minute, and are charged every minute. Af
628627
{
629628
"interval": 1,
630629
"end": 20,
631-
"amount": 1.0,
630+
"amount": 1.0
632631
},
633632
{
634633
"interval": 0.5,
635634
"start": 20,
636-
"amount": 1.5,
635+
"amount": 1.5
637636
}
638637
]
639638
}
@@ -665,7 +664,7 @@ The user does not pay more than the base price of $2.50 CAD for the first 10km.
665664
{
666665
"interval": 5,
667666
"start": 25,
668-
"amount": 3.0,
667+
"amount": 3.0
669668
}
670669
],
671670
"rider": [
@@ -776,15 +775,15 @@ The following fields are all attributes within the main "data" object for this f
776775
"to_zone_ids": null,
777776
"booking_type": 1,
778777
"prior_notice_duration_min": 30,
779-
"prior_notice_duration_max": 180,
778+
"prior_notice_duration_max": 180
780779
},
781780
{
782781
"from_zone_ids": ["zoneA"],
783782
"to_zone_ids": ["zoneB"],
784783
"booking_type": 2,
785784
"prior_notice_start_day": 2,
786-
"prior_notice_last_time": "17:00:00",
787-
}
785+
"prior_notice_last_time": "17:00:00"
786+
}
788787
]
789788
}
790789
}
@@ -846,7 +845,7 @@ Field Name | Presence | Type | Description
846845
"android_uri": "https://www.example.com/app?service_type=REG&platform=android",
847846
"ios_uri": "https://www.example.com/app?service_type=REG&platform=ios",
848847
"web_uri": "https://www.example.com/app?service_type=REG",
849-
"phone_number": "+18005551234",
848+
"phone_number": "+18005551234"
850849
}
851850
},
852851
{
@@ -860,7 +859,7 @@ Field Name | Presence | Type | Description
860859
"android_uri": "https://www.example.com/app?service_type=XL&platform=android",
861860
"ios_uri": "https://www.example.com/app?service_type=XL&platform=ios",
862861
"web_uri": "https://www.example.com/app?service_type=XL",
863-
"phone_number": "+18005551234",
862+
"phone_number": "+18005551234"
864863
}
865864
}
866865
]

0 commit comments

Comments
 (0)