Skip to content

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

Description

@mnahkies

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingopenapi31Issue is related to openapi 3.1 support

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions