-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Labels
bugSomething isn't workingSomething isn't workingopenapi31Issue is related to openapi 3.1 supportIssue is related to openapi 3.1 support
Description
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:
- OpenAPI 3.1 examples not validating through AJV using OpenAPI 3.1 spec OAI/OpenAPI-Specification#2689
- Support $dynamicAnchor and $recursiveAnchor in any schema location (not only root) ajv-validator/ajv#1745
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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingopenapi31Issue is related to openapi 3.1 supportIssue is related to openapi 3.1 support