Repository navigation
fix(spec): sync upstream OpenAPI specs #230
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
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3,7 +3,7 @@ | |
| "info": { | ||
| "title": "Distance", | ||
| "description": "\nWoosmap Distance API is a service providing road travel distance and duration calculations, on a Worldwide scale.\n\nBoth `departure_time` and `arrival_time` use traffic data. Matrix supports only `departure_time`, while Route and Tolls support either parameter.\n\nMatrices can be calculated for a large number of origins and destinations. (max 200 elements (origins x destinations) per request)\n\n[Get Started Here](https://developers.woosmap.com/products/distance-api/get-started/)", | ||
| "version": "v9.3.31" | ||
| "version": "v9.3.47" | ||
| }, | ||
| "paths": { | ||
| "/distance/isochrone/json/": { | ||
|
|
@@ -1402,12 +1402,11 @@ | |
| "type": "string", | ||
| "enum": [ | ||
| "OK", | ||
| "NOT_FOUND", | ||
| "ZERO_RESULTS", | ||
| "ERROR" | ||
| ], | ||
| "title": "Status", | ||
| "description": "The status of each element.\n* `OK` The response contains a valid result.\n* `NOT_FOUND` The origin and/or destination of this pairing could not be matched to the network.\n* `ZERO_RESULTS` No route could be found between the origin and destination." | ||
| "description": "The status of each element.\n* `OK` The response contains a valid result.\n* `ZERO_RESULTS` No route could be found between the origin and destination." | ||
| } | ||
| }, | ||
| "type": "object", | ||
|
|
@@ -1438,12 +1437,11 @@ | |
| "type": "string", | ||
| "enum": [ | ||
| "OK", | ||
| "NOT_FOUND", | ||
| "ZERO_RESULTS", | ||
| "ERROR" | ||
| ], | ||
| "title": "Status", | ||
| "description": "The status of each element.\n* `OK` The response contains a valid result.\n* `NOT_FOUND` The origin and/or destination of this pairing could not be matched to the network.\n* `ZERO_RESULTS` No route could be found between the origin and destination." | ||
| "description": "The status of each element.\n* `OK` The response contains a valid result.\n* `ZERO_RESULTS` No route could be found between the origin and destination." | ||
| }, | ||
| "distance": { | ||
| "$ref": "#/components/schemas/MatrixDistanceDuration", | ||
|
|
@@ -1463,12 +1461,11 @@ | |
| "type": "string", | ||
| "enum": [ | ||
| "OK", | ||
| "NOT_FOUND", | ||
| "ZERO_RESULTS", | ||
| "ERROR" | ||
| ], | ||
| "title": "Status", | ||
| "description": "The status of each element.\n* `OK` The response contains a valid result.\n* `NOT_FOUND` The origin and/or destination of this pairing could not be matched to the network.\n* `ZERO_RESULTS` No route could be found between the origin and destination." | ||
| "description": "The status of each element.\n* `OK` The response contains a valid result.\n* `ZERO_RESULTS` No route could be found between the origin and destination." | ||
| }, | ||
| "distance": { | ||
| "$ref": "#/components/schemas/MatrixDistanceDuration", | ||
|
|
@@ -1493,12 +1490,11 @@ | |
| "type": "string", | ||
| "enum": [ | ||
| "OK", | ||
| "NOT_FOUND", | ||
| "ZERO_RESULTS", | ||
| "ERROR" | ||
| ], | ||
| "title": "Status", | ||
| "description": "The status of each element.\n* `OK` The response contains a valid result.\n* `NOT_FOUND` The origin and/or destination of this pairing could not be matched to the network.\n* `ZERO_RESULTS` No route could be found between the origin and destination." | ||
| "description": "The status of each element.\n* `OK` The response contains a valid result.\n* `ZERO_RESULTS` No route could be found between the origin and destination." | ||
| }, | ||
| "duration": { | ||
| "$ref": "#/components/schemas/MatrixDistanceDuration", | ||
|
|
@@ -1671,15 +1667,15 @@ | |
| }, | ||
| { | ||
| "$ref": "#/components/schemas/IsolineResponseDistance" | ||
| }, | ||
| { | ||
| "type": "null" | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🚨 This makes |
||
| } | ||
| ], | ||
| "title": "Isoline" | ||
| } | ||
| }, | ||
| "type": "object", | ||
| "required": [ | ||
| "isoline" | ||
| ], | ||
| "title": "IsochroneResponse", | ||
| "examples": [ | ||
| { | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NOT_FOUNDfrom these four response enums is source-incompatible for SDKs generated from the spec: code that references the generated enum member will no longer compile after regeneration. Since the currentfix(spec)commit is analyzed as a patch, please either retain the member for compatibility if the service can still emit it, or treat this as a breaking release and coordinate the SDK change before merging.