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

Routes query v3 #490

Open
wants to merge 10 commits into
base: develop_debrecated
Choose a base branch
from

Conversation

konker
Copy link
Contributor

@konker konker commented Feb 18, 2020

What has been implemented?

Mainly extra itinerary properties to support routes-query-v3 (used for Whim Ride)

Todos:

  • Write tests

Versioning:

  • Breaking change

@thanhtr thanhtr force-pushed the routes-query-v3 branch 2 times, most recently from f3113c1 to 9bcddf5 Compare May 29, 2020 13:32
{ "$ref": "http://maasglobal.com/core/components/units.json#/definitions/uuid" },
{
"type": "string",
"enum": ["UNKNOWN"]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If not available, isn't it made more sense just being null?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe :D

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In this way there is a clear indication that the routes query was executed without a requestId, and is soemthing positive to base other things on, e.g. searching logs for bad requests to omit them from further use.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd still suggest using null. Null is very clear, comparing to what you think about "undefined"

maas-schemas/schemas/core/itinerary.json Outdated Show resolved Hide resolved
@@ -64,6 +64,12 @@
"agencyId": {
"$ref": "http://maasglobal.com/core/components/common.json#/definitions/agencyId"
},
"agencyName": {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I assume this is the provider that provided the route?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ye

maas-schemas/schemas/core/leg.json Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants