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

fix(oas-normalize): dont attempt to upconvert an OpenAPI definition #862

Merged
merged 3 commits into from
Apr 17, 2024

Conversation

erunion
Copy link
Member

@erunion erunion commented Apr 17, 2024

🧰 Changes

Discovered this while running our OpenAPI 3.1 webhooks example through OASNormalize.validate() but when you supply convertToLatest we always attempt to funnel the API definition through swagger2openapi; because OpenAPI 3.1 definitions with only webhooks don't have paths swagger2openapi throws an error on no paths being present.

@erunion erunion added the bug Something isn't working label Apr 17, 2024
@erunion erunion merged commit 46cdc4f into main Apr 17, 2024
5 checks passed
@erunion erunion deleted the fix/normalize-tweaks branch April 17, 2024 00:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants