Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SilverRail: MODE_TRAIN schema #107

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
99 changes: 96 additions & 3 deletions prebuilt/core/booking.json
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,38 @@
"type": "object"
},
"MODE_TRAIN": {
"type": "object"
"type": "object",
"properties": {
"trainId": {
"description": "The train id / designator",
"type": "string",
"minLength": 1
},
"trainType": {
"description": "The train type, e.g. Inter-City",
"type": "string",
"minLength": 1
},
"coach": {
"description": "The coach, e.g. B",
"type": "string",
"minLength": 1
},
"seatNumber": {
"description": "Seat number, e.g. 42",
"type": "string",
"minLength": 1
},
"carrierName": {
"description": "Carrier name, e.g. LonUnderground",
"type": "string",
"minLength": 1
}
},
"additionalProperties": false,
"required": [
"trainId"
]
},
"MODE_TRAINISH": {
"type": "object"
Expand Down Expand Up @@ -1022,7 +1053,38 @@
"type": "object"
},
"MODE_TRAIN": {
"type": "object"
"type": "object",
"properties": {
"trainId": {
"description": "The train id / designator",
"type": "string",
"minLength": 1
},
"trainType": {
"description": "The train type, e.g. Inter-City",
"type": "string",
"minLength": 1
},
"coach": {
"description": "The coach, e.g. B",
"type": "string",
"minLength": 1
},
"seatNumber": {
"description": "Seat number, e.g. 42",
"type": "string",
"minLength": 1
},
"carrierName": {
"description": "Carrier name, e.g. LonUnderground",
"type": "string",
"minLength": 1
}
},
"additionalProperties": false,
"required": [
"trainId"
]
},
"MODE_TRAINISH": {
"type": "object"
Expand Down Expand Up @@ -1568,7 +1630,38 @@
"type": "object"
},
"MODE_TRAIN": {
"type": "object"
"type": "object",
"properties": {
"trainId": {
"description": "The train id / designator",
"type": "string",
"minLength": 1
},
"trainType": {
"description": "The train type, e.g. Inter-City",
"type": "string",
"minLength": 1
},
"coach": {
"description": "The coach, e.g. B",
"type": "string",
"minLength": 1
},
"seatNumber": {
"description": "Seat number, e.g. 42",
"type": "string",
"minLength": 1
},
"carrierName": {
"description": "Carrier name, e.g. LonUnderground",
"type": "string",
"minLength": 1
}
},
"additionalProperties": false,
"required": [
"trainId"
]
},
"MODE_TRAINISH": {
"type": "object"
Expand Down
99 changes: 96 additions & 3 deletions prebuilt/maas-backend/bookings/bookings-cancel/response.json
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,38 @@
"type": "object"
},
"MODE_TRAIN": {
"type": "object"
"type": "object",
"properties": {
"trainId": {
"description": "The train id / designator",
"type": "string",
"minLength": 1
},
"trainType": {
"description": "The train type, e.g. Inter-City",
"type": "string",
"minLength": 1
},
"coach": {
"description": "The coach, e.g. B",
"type": "string",
"minLength": 1
},
"seatNumber": {
"description": "Seat number, e.g. 42",
"type": "string",
"minLength": 1
},
"carrierName": {
"description": "Carrier name, e.g. LonUnderground",
"type": "string",
"minLength": 1
}
},
"additionalProperties": false,
"required": [
"trainId"
]
},
"MODE_TRAINISH": {
"type": "object"
Expand Down Expand Up @@ -1022,7 +1053,38 @@
"type": "object"
},
"MODE_TRAIN": {
"type": "object"
"type": "object",
"properties": {
"trainId": {
"description": "The train id / designator",
"type": "string",
"minLength": 1
},
"trainType": {
"description": "The train type, e.g. Inter-City",
"type": "string",
"minLength": 1
},
"coach": {
"description": "The coach, e.g. B",
"type": "string",
"minLength": 1
},
"seatNumber": {
"description": "Seat number, e.g. 42",
"type": "string",
"minLength": 1
},
"carrierName": {
"description": "Carrier name, e.g. LonUnderground",
"type": "string",
"minLength": 1
}
},
"additionalProperties": false,
"required": [
"trainId"
]
},
"MODE_TRAINISH": {
"type": "object"
Expand Down Expand Up @@ -1568,7 +1630,38 @@
"type": "object"
},
"MODE_TRAIN": {
"type": "object"
"type": "object",
"properties": {
"trainId": {
"description": "The train id / designator",
"type": "string",
"minLength": 1
},
"trainType": {
"description": "The train type, e.g. Inter-City",
"type": "string",
"minLength": 1
},
"coach": {
"description": "The coach, e.g. B",
"type": "string",
"minLength": 1
},
"seatNumber": {
"description": "Seat number, e.g. 42",
"type": "string",
"minLength": 1
},
"carrierName": {
"description": "Carrier name, e.g. LonUnderground",
"type": "string",
"minLength": 1
}
},
"additionalProperties": false,
"required": [
"trainId"
]
},
"MODE_TRAINISH": {
"type": "object"
Expand Down
99 changes: 96 additions & 3 deletions prebuilt/maas-backend/bookings/bookings-create/response.json
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,38 @@
"type": "object"
},
"MODE_TRAIN": {
"type": "object"
"type": "object",
"properties": {
"trainId": {
"description": "The train id / designator",
"type": "string",
"minLength": 1
},
"trainType": {
"description": "The train type, e.g. Inter-City",
"type": "string",
"minLength": 1
},
"coach": {
"description": "The coach, e.g. B",
"type": "string",
"minLength": 1
},
"seatNumber": {
"description": "Seat number, e.g. 42",
"type": "string",
"minLength": 1
},
"carrierName": {
"description": "Carrier name, e.g. LonUnderground",
"type": "string",
"minLength": 1
}
},
"additionalProperties": false,
"required": [
"trainId"
]
},
"MODE_TRAINISH": {
"type": "object"
Expand Down Expand Up @@ -1022,7 +1053,38 @@
"type": "object"
},
"MODE_TRAIN": {
"type": "object"
"type": "object",
"properties": {
"trainId": {
"description": "The train id / designator",
"type": "string",
"minLength": 1
},
"trainType": {
"description": "The train type, e.g. Inter-City",
"type": "string",
"minLength": 1
},
"coach": {
"description": "The coach, e.g. B",
"type": "string",
"minLength": 1
},
"seatNumber": {
"description": "Seat number, e.g. 42",
"type": "string",
"minLength": 1
},
"carrierName": {
"description": "Carrier name, e.g. LonUnderground",
"type": "string",
"minLength": 1
}
},
"additionalProperties": false,
"required": [
"trainId"
]
},
"MODE_TRAINISH": {
"type": "object"
Expand Down Expand Up @@ -1568,7 +1630,38 @@
"type": "object"
},
"MODE_TRAIN": {
"type": "object"
"type": "object",
"properties": {
"trainId": {
"description": "The train id / designator",
"type": "string",
"minLength": 1
},
"trainType": {
"description": "The train type, e.g. Inter-City",
"type": "string",
"minLength": 1
},
"coach": {
"description": "The coach, e.g. B",
"type": "string",
"minLength": 1
},
"seatNumber": {
"description": "Seat number, e.g. 42",
"type": "string",
"minLength": 1
},
"carrierName": {
"description": "Carrier name, e.g. LonUnderground",
"type": "string",
"minLength": 1
}
},
"additionalProperties": false,
"required": [
"trainId"
]
},
"MODE_TRAINISH": {
"type": "object"
Expand Down
Loading