Skip to content

Commit

Permalink
Merge pull request #776 from vonpoland/update-booking-options-from
Browse files Browse the repository at this point in the history
Set from as optional param in booking-option request
  • Loading branch information
vonpoland authored Jul 3, 2024
2 parents 37107e5 + 5398e5f commit 7879026
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion maas-schemas/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "maas-schemas",
"version": "23.0.0",
"version": "24.0.0",
"description": "Schemas for MaaS infrastructure",
"main": "index.js",
"engine": {
Expand Down
2 changes: 1 addition & 1 deletion maas-schemas/schemas/tsp/booking-options-list/request.json
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@
"type": ["string", "number", "boolean"]
}
},
"required": ["startTime", "from"],
"required": ["startTime"],
"additionalProperties": true,
"examples": [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ export type Request = t.Branded<
> &
Record<string, unknown>) & {
startTime: Defined;
from: Defined;
},
RequestBrand
>;
Expand Down Expand Up @@ -135,7 +134,6 @@ export type RequestC = t.BrandC<
>,
t.TypeC<{
startTime: typeof Defined;
from: typeof Defined;
}>,
]
>,
Expand Down Expand Up @@ -188,7 +186,6 @@ export const Request: RequestC = t.brand(
]),
t.type({
startTime: Defined,
from: Defined,
}),
]),
(
Expand Down Expand Up @@ -233,7 +230,6 @@ export const Request: RequestC = t.brand(
> &
Record<string, unknown>) & {
startTime: Defined;
from: Defined;
},
RequestBrand
> => true,
Expand Down

0 comments on commit 7879026

Please sign in to comment.