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

Too many errors reported when the "unevaluatedProperties" property is used #962

Closed
slafon51 opened this issue Feb 8, 2024 · 0 comments · Fixed by #963
Closed

Too many errors reported when the "unevaluatedProperties" property is used #962

slafon51 opened this issue Feb 8, 2024 · 0 comments · Fixed by #963

Comments

@slafon51
Copy link

slafon51 commented Feb 8, 2024

Hello,

Since version 1.3.1, too many errors are reported when the "unevaluatedProperties" property is used.

With the schema :

{
  "type": "object",
  "required": [
    "key1"
  ],
  "properties": {
    "key1": {
      "type": "string"
    },
    "key2": {
      "type": "string"
    },
    "key3": {
      "type": "string"
    }
  },
  "unevaluatedProperties": false
}

and the data :

{
    "key2": "value2",
    "key3": "value3",
    "key4": "value4"
}

The version 1.3.0 returns the following errors, which are correct:

$: required property 'key1' not found
$.key4: must not have unevaluated properties

But the version 1.3.1 returns :

$: required property 'key1' not found
$.key2: must not have unevaluated properties
$.key3: must not have unevaluated properties
$.key4: must not have unevaluated properties

and the version 1.3.2 returns the same errors :

$: required property 'key1' not found
$: property 'key2' must not be unevaluated
$: property 'key3' must not be unevaluated
$: property 'key4' must not be unevaluated

Best regards.

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

Successfully merging a pull request may close this issue.

1 participant