Uh oh!
There was an error while loading. Please reload this page.
Fix schemas/Error code property in Uber example - #1144
Conversation
The [live API returns][Uber products GET] e.g.:
{
"message": "No authentication provided.",
"code": "unauthorized"
}
This commit corrects the schema for `code` to be of `type: string`.
[Uber products GET]: https://api.uber.com/v1/productswebron
commented
Jun 5, 2017
Aha! So I'm not sure we're actually looking to accurately describe the Uber API but! Are you sure it's always a string? |
OJFord
commented
Jun 6, 2017
Ah, sorry, I should have guessed it wasn't intended to be a 'real' example from the fact that the 'petstore' example isn't live at all. (I initially assumed that it was a live demo.)
No, I'm not sure. But I don't believe sum types are supported? Which I suppose doesn't matter if this isn't intended to be a live example. |
MikeRalphson
commented
Jun 6, 2017
Petstore is live at petstore.swagger.io/v2 - is there a link which is not working? |
Ah! All (v2/3 YAML/JSON) schemata point to /v1. |
RobDolinMS
commented
Jun 6, 2017
Thank you @OJFord for this PR. Replying to @webron's question:
Uber's API documentation at: https://developer.uber.com/docs/riders/guides/errors#error-format says that LGTM |
RobDolinMS
commented
Jun 9, 2017
#TDC: Thank you @OJFord for this. |
The live API returns e.g.:
This commit corrects the schema for
codeto be oftype: string.