Skip to content
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

Support OpenAPI 3.1 in addition to 3.0 #219

Merged
merged 3 commits into from
Aug 29, 2023

Conversation

czechboy0
Copy link
Contributor

Motivation

Fixes #39. We need to start accepting 3.1 documents in addition to 3.0.

It also has useful features, like being able to add descriptions to references.

Modifications

Migrated the codebase to use the OpenAPIKit instead of the OpenAPIKit30 module, and updated the parser to handle both 3.0 and 3.1, and convert 3.0 to 3.1 documents in memory transparently.

Result

OpenAPI 3.1 documents are now accepted, instead of rejected. Any 3.1 specific features can be addressed separately, this is the MVP support.

Test Plan

Updated the file-based reference test to use version 3.1.0, and the parser tests that 3.0.x documents are loaded and converted successfully. So no need to duplicate our reference tests or anything.

@czechboy0 czechboy0 mentioned this pull request Aug 25, 2023
@czechboy0 czechboy0 added this to the 0.1.next milestone Aug 25, 2023
@czechboy0 czechboy0 merged commit d2dbd0d into apple:main Aug 29, 2023
@czechboy0 czechboy0 deleted the hd-openapi-31-support branch August 29, 2023 12:56
@czechboy0 czechboy0 added the 🔨 semver/patch No public API change. label Aug 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🔨 semver/patch No public API change.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support OpenAPI 3.1
3 participants