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

OpenAPI 3.1.x schemas falsely fail validation with ajv #103

Open
mnahkies opened this issue Nov 12, 2023 · 0 comments
Open

OpenAPI 3.1.x schemas falsely fail validation with ajv #103

mnahkies opened this issue Nov 12, 2023 · 0 comments
Labels
bug Something isn't working openapi31 Issue is related to openapi 3.1 support

Comments

@mnahkies
Copy link
Owner

Expected Behavior
A valid openapi: "3.1.0" document should pass initial validation against the openapi 3.1 specification without errors.

Actual Behavior
Validation fails with confusing / obtuse error messages.

Cause
It seems that ajv does not support some of the keywords used in defining the specification properly, causing it to fail:

The best thing to do is probably wait for ajv to improve support for $dynamicAnchor, and skip validation for 3.1 specifications in the meantime.

@mnahkies mnahkies added bug Something isn't working openapi31 Issue is related to openapi 3.1 support labels Nov 12, 2023
mnahkies added a commit that referenced this issue Nov 12, 2023
skips validation of openapi 3.1.0 documents for now due to #103
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working openapi31 Issue is related to openapi 3.1 support
Projects
None yet
Development

No branches or pull requests

1 participant