Skip to content

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

@mnahkies

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.

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