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

Differences between 3.0 and 3.1 #273

Open
yewtc opened this issue Feb 20, 2024 · 0 comments
Open

Differences between 3.0 and 3.1 #273

yewtc opened this issue Feb 20, 2024 · 0 comments

Comments

@yewtc
Copy link

yewtc commented Feb 20, 2024

  • JSON::Validator version: 5.14
  • Perl version: 5.32 (+ others)
  • Operating system: Centos 7 (+others Fedora 39, ubuntu 22, ...)

Steps to reproduce the behaviour

Valid 3.0.1 data is failing to validate,

Expected behavior

It should validate

Actual behavior

It doesn't.

Between 3.0 and 3.1 the meaning of exclusiveMinimum and exclusiveMaximum changed. The behaviour of the code is as for 3.1.

Versions of openapi before 3.1 used an older version of the JSON schema. Specifically it used to be that exclusiveMinmum was a boolean rather than a value. The effect is that pre 3.1 schemas are checked against "true" which equates to 1 in perl terms.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant