Repository navigation
Conversation
wgsadmin
left a comment
There was a problem hiding this comment.
Review summary
🚨 Blocker: 1 — the isochrone response now permits a missing/null isoline, which requires coordinated SDK handling or a breaking specification release.
NOT_FOUND narrows four public response enums and can break regenerated SDK consumers at compile time.
No security or unrelated quality findings.
| ], | ||
| "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." |
There was a problem hiding this comment.
NOT_FOUND from 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 current fix(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.
| "$ref": "#/components/schemas/IsolineResponseDistance" | ||
| }, | ||
| { | ||
| "type": "null" |
There was a problem hiding this comment.
🚨 This makes isoline both optional and nullable, and the Distance service now actually returns {"status":"ZERO_RESULTS"} without it. Existing generated clients model isoline as required, so consumers that dereference it unconditionally can fail at runtime as soon as the new response is seen. Because this fix(spec) merge will publish only a patch release, please coordinate/update the affected SDK models before merging, or mark the specification release as breaking so consumers are not given a patch-level compatibility guarantee.
02f97a6 to
567a181
Compare
What?
Refreshes
upstream/fromhttps://api.woosmap.com/<name>/openapi.json.Why?
The merged spec only picks up upstream changes through this PR. Check the diff for contract changes that the SDKs need to follow before merging: merging publishes a patch release.