Skip to content

Down-convert OAS 3.1 constructs for SDK generation - #6

Merged
rpanfili merged 2 commits into
mainfrom
openapi_down
Jul 17, 2026
Merged

Down-convert OAS 3.1 constructs for SDK generation#6
rpanfili merged 2 commits into
mainfrom
openapi_down

Conversation

@rpanfili

@rpanfili rpanfili commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

publish.yaml's "Generate the SDK" step fails spec validation because openapi-merge always declares the merged output as openapi: 3.0.3 regardless of what any input file says. 9 of 22 merged specs genuinely target OAS 3.1, and their JSON Schema 2020-12 constructs (e.g. graph-sync.yaml's schema-level examples list, from FastAPI/Pydantic v2) are invalid under 3.0 — causing openapi-generator-cli to reject the spec.

Also fixes: the generated python.yml workflow was failing separately with Error: The version '3.7' ... was not found for Ubuntu 24.04 — unrelated to the OAS 3.1/3.0 fix above, but discovered while validating this PR's CI. Python 3.7 is EOL and was never this client's actual supported floor (both publish.yaml's own test job and config.json start at 3.8); GitHub's runners simply stopped shipping it. The version comes from openapi-generator-cli's bundled CI template, pinned here at a 2024-05 release — upstream has since fixed this, we just don't consume that fix yet. Marked .github/workflows/python.yml as hand-maintained (.openapi-generator-ignore) so this survives future SDK regenerations, rather than silently reverting on the next release.

@rpanfili
rpanfili marked this pull request as ready for review July 17, 2026 15:02
@rpanfili
rpanfili merged commit cf88789 into main Jul 17, 2026
8 checks passed
@rpanfili
rpanfili deleted the openapi_down branch July 17, 2026 15:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant