Skip to content

fix(spec): sync upstream OpenAPI specs - #230

Open
gaelsimon wants to merge 1 commit into
masterfrom
chore/sync-upstream-specs
Open

gaelsimon wants to merge 1 commit into
masterfrom
chore/sync-upstream-specs

Conversation

@gaelsimon

Copy link
Copy Markdown
Member

What?

Refreshes upstream/ from https://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.

@wgsadmin wgsadmin added the ai-reviewer-queued Nairi reviewer has a review in flight for this PR label Nov 16, 2026

@wgsadmin wgsadmin left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Review summary

🚨 Blocker: 1 — the isochrone response now permits a missing/null isoline, which requires coordinated SDK handling or a breaking specification release.

⚠️ Should fix: 1 — removing NOT_FOUND narrows four public response enums and can break regenerated SDK consumers at compile time.

No security or unrelated quality findings.

Comment thread upstream/distance.json
],
"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."

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

⚠️ Removing 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.

Comment thread upstream/distance.json
"$ref": "#/components/schemas/IsolineResponseDistance"
},
{
"type": "null"

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

🚨 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.

@wgsadmin wgsadmin added ai-reviewer-done Nairi reviewer has finished with this PR \u2014 remove to ask again and removed ai-reviewer-queued Nairi reviewer has a review in flight for this PR labels Nov 16, 2026
@gaelsimon
gaelsimon force-pushed the chore/sync-upstream-specs branch from 02f97a6 to 567a181 Compare November 23, 2026 06:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ai-reviewer-done Nairi reviewer has finished with this PR \u2014 remove to ask again

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants