From 2a47ab2cabe5a483fa6b71e0429d9f5c90eece67 Mon Sep 17 00:00:00 2001 From: Dave Date: Sun, 14 Apr 2019 17:08:10 +0100 Subject: [PATCH] #2 - Adding version 0.1.0. Closes #2. --- archive/mobile-library-stops.v0.1.0.json | 174 +++++++++++++++++++++++ mobile-library-stops.json | 174 +++++++++++++++++++++++ 2 files changed, 348 insertions(+) create mode 100644 archive/mobile-library-stops.v0.1.0.json create mode 100644 mobile-library-stops.json diff --git a/archive/mobile-library-stops.v0.1.0.json b/archive/mobile-library-stops.v0.1.0.json new file mode 100644 index 0000000..7673018 --- /dev/null +++ b/archive/mobile-library-stops.v0.1.0.json @@ -0,0 +1,174 @@ +{ + "fields": [ + { + "name": "organisation", + "title": "Organisation", + "description": "The organisation operating the mobile library", + "type": "string", + "format": "default", + "constraints": { + "required": true + } + }, + { + "name": "mobile", + "title": "Mobile Name", + "description": "A name for the mobile library", + "type": "string", + "format": "default", + "constraints": { + "required": true + } + }, + { + "name": "route", + "title": "Route", + "description": "A name for the route", + "type": "string", + "format": "default", + "constraints": { + "required": true + } + }, + { + "name": "community", + "title": "Community", + "description": "The community served by the stop", + "type": "string", + "format": "default", + "constraints": { + "required": false + } + }, + { + "name": "stop", + "title": "Stop", + "description": "The individual stop name", + "type": "string", + "format": "default", + "constraints": { + "required": true + } + }, + { + "name": "address", + "title": "Address", + "description": "An address for the stop", + "type": "string", + "format": "default", + "constraints": { + "required": false + } + }, + { + "name": "postcode", + "title": "Postcode", + "type": "string", + "description": "Nearest postcode for the stop", + "format": "default", + "constraints": { + "required": false, + "pattern": "^$|^([A-Za-z][A-Ha-hJ-Yj-y]?[0-9][A-Za-z0-9]? ?[0-9][A-Za-z]{2}|[Gg][Ii][Rr] ?0[Aa]{2})$" + } + }, + { + "name": "geox", + "title": "Geopoint X", + "description": "X coordinate (e.g. longitude) for stop location", + "type": "number", + "format": "default", + "constraints": { + "required": true + } + }, + { + "name": "geoy", + "title": "Geopoint Y", + "description": "Y coordinate (e.g. latitude) for stop location", + "type": "number", + "format": "default", + "constraints": { + "required": true + } + }, + { + "name": "day", + "title": "Day", + "description": "The day of the week the mobile library visits this stop", + "type": "string", + "format": "default", + "constraints": { + "required": true, + "enum": [ + "Monday", + "Tuesday", + "Wednesday", + "Thursday", + "Friday", + "Saturday", + "Sunday" + ] + } + }, + { + "name": "arrival", + "title": "Arrival Time", + "type": "time", + "format": "default", + "description": "The time the mobile library arrives at the stop", + "constraints": { + "required": true + } + }, + { + "name": "departure", + "title": "Departure Time", + "type": "time", + "format": "default", + "description": "The time the mobile library leaves the stop", + "constraints": { + "required": true + } + }, + { + "name": "frequency", + "title": "Frequency", + "type": "string", + "format": "default", + "description": "The schedule for repeated visits to this stop in iCal Recurrence Rule format", + "constraints": { + "required": true + } + }, + { + "name": "start", + "title": "Start Date", + "type": "date", + "format": "default", + "description": "The date the timetable for this stop started", + "constraints": { + "required": true + } + }, + { + "name": "end", + "title": "End Date", + "type": "date", + "format": "default", + "description": "The date the timetable for this stop will end", + "constraints": { + "required": false + } + }, + { + "name": "timetable", + "title": "Timetable Link", + "type": "string", + "format": "uri", + "description": "A link to a web page, or PDF for the stop, route, or mobile timetable", + "constraints": { + "required": false + } + } + ] +} \ No newline at end of file diff --git a/mobile-library-stops.json b/mobile-library-stops.json new file mode 100644 index 0000000..7673018 --- /dev/null +++ b/mobile-library-stops.json @@ -0,0 +1,174 @@ +{ + "fields": [ + { + "name": "organisation", + "title": "Organisation", + "description": "The organisation operating the mobile library", + "type": "string", + "format": "default", + "constraints": { + "required": true + } + }, + { + "name": "mobile", + "title": "Mobile Name", + "description": "A name for the mobile library", + "type": "string", + "format": "default", + "constraints": { + "required": true + } + }, + { + "name": "route", + "title": "Route", + "description": "A name for the route", + "type": "string", + "format": "default", + "constraints": { + "required": true + } + }, + { + "name": "community", + "title": "Community", + "description": "The community served by the stop", + "type": "string", + "format": "default", + "constraints": { + "required": false + } + }, + { + "name": "stop", + "title": "Stop", + "description": "The individual stop name", + "type": "string", + "format": "default", + "constraints": { + "required": true + } + }, + { + "name": "address", + "title": "Address", + "description": "An address for the stop", + "type": "string", + "format": "default", + "constraints": { + "required": false + } + }, + { + "name": "postcode", + "title": "Postcode", + "type": "string", + "description": "Nearest postcode for the stop", + "format": "default", + "constraints": { + "required": false, + "pattern": "^$|^([A-Za-z][A-Ha-hJ-Yj-y]?[0-9][A-Za-z0-9]? ?[0-9][A-Za-z]{2}|[Gg][Ii][Rr] ?0[Aa]{2})$" + } + }, + { + "name": "geox", + "title": "Geopoint X", + "description": "X coordinate (e.g. longitude) for stop location", + "type": "number", + "format": "default", + "constraints": { + "required": true + } + }, + { + "name": "geoy", + "title": "Geopoint Y", + "description": "Y coordinate (e.g. latitude) for stop location", + "type": "number", + "format": "default", + "constraints": { + "required": true + } + }, + { + "name": "day", + "title": "Day", + "description": "The day of the week the mobile library visits this stop", + "type": "string", + "format": "default", + "constraints": { + "required": true, + "enum": [ + "Monday", + "Tuesday", + "Wednesday", + "Thursday", + "Friday", + "Saturday", + "Sunday" + ] + } + }, + { + "name": "arrival", + "title": "Arrival Time", + "type": "time", + "format": "default", + "description": "The time the mobile library arrives at the stop", + "constraints": { + "required": true + } + }, + { + "name": "departure", + "title": "Departure Time", + "type": "time", + "format": "default", + "description": "The time the mobile library leaves the stop", + "constraints": { + "required": true + } + }, + { + "name": "frequency", + "title": "Frequency", + "type": "string", + "format": "default", + "description": "The schedule for repeated visits to this stop in iCal Recurrence Rule format", + "constraints": { + "required": true + } + }, + { + "name": "start", + "title": "Start Date", + "type": "date", + "format": "default", + "description": "The date the timetable for this stop started", + "constraints": { + "required": true + } + }, + { + "name": "end", + "title": "End Date", + "type": "date", + "format": "default", + "description": "The date the timetable for this stop will end", + "constraints": { + "required": false + } + }, + { + "name": "timetable", + "title": "Timetable Link", + "type": "string", + "format": "uri", + "description": "A link to a web page, or PDF for the stop, route, or mobile timetable", + "constraints": { + "required": false + } + } + ] +} \ No newline at end of file