Skip to content

Cannot validate with OpenAPI specification schema #336

@navrocky

Description

@navrocky

I've tried loading two different OpenAPI json schemas and failed both times.

  1. With OpenAPI schema 3.0.x (2019-04-02) i've get unexpected exception "type must be number, but is boolean" when executing set_root_schema
  2. With OpenAPI schema 3.1 (2020-12) set_root_schema completed without errors, but the subsequent validation was always successful and even in the case of incorrect json.

Here is a sample project with errors: github.com/navrocky/cpp-json-schema-validation-errors

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions