From c1545e6c88185dee1536d3ddefe0aaeac93f334e Mon Sep 17 00:00:00 2001 From: Vinit Pandit <106718914+MeastroZI@users.noreply.github.com> Date: Fri, 26 Apr 2024 17:43:42 +0530 Subject: [PATCH] Update unevaluatedProperties.json https://github.com/json-schema-org/JSON-Schema-Test-Suite/issues/723 think removing the bar matches the test with the description, as foo itself is evaluated. --- tests/draft-next/unevaluatedProperties.json | 8 +++----- tests/draft2019-09/unevaluatedProperties.json | 8 +++----- tests/draft2020-12/unevaluatedProperties.json | 8 +++----- 3 files changed, 9 insertions(+), 15 deletions(-) diff --git a/tests/draft-next/unevaluatedProperties.json b/tests/draft-next/unevaluatedProperties.json index 13fe6e03..e288ea3b 100644 --- a/tests/draft-next/unevaluatedProperties.json +++ b/tests/draft-next/unevaluatedProperties.json @@ -528,17 +528,15 @@ { "description": "when if is true and has no unevaluated properties", "data": { - "foo": "then", - "bar": "bar" + "foo": "then" }, - "valid": false + "valid": true }, { "description": "when if is true and has unevaluated properties", "data": { "foo": "then", - "bar": "bar", - "baz": "baz" + "bar": "bar" }, "valid": false }, diff --git a/tests/draft2019-09/unevaluatedProperties.json b/tests/draft2019-09/unevaluatedProperties.json index e8765112..be3d3d9d 100644 --- a/tests/draft2019-09/unevaluatedProperties.json +++ b/tests/draft2019-09/unevaluatedProperties.json @@ -528,17 +528,15 @@ { "description": "when if is true and has no unevaluated properties", "data": { - "foo": "then", - "bar": "bar" + "foo": "then" }, - "valid": false + "valid": true }, { "description": "when if is true and has unevaluated properties", "data": { "foo": "then", - "bar": "bar", - "baz": "baz" + "bar": "bar" }, "valid": false }, diff --git a/tests/draft2020-12/unevaluatedProperties.json b/tests/draft2020-12/unevaluatedProperties.json index 0da38f67..93a2a6d5 100644 --- a/tests/draft2020-12/unevaluatedProperties.json +++ b/tests/draft2020-12/unevaluatedProperties.json @@ -535,17 +535,15 @@ { "description": "when if is true and has no unevaluated properties", "data": { - "foo": "then", - "bar": "bar" + "foo": "then" }, - "valid": false + "valid": true }, { "description": "when if is true and has unevaluated properties", "data": { "foo": "then", - "bar": "bar", - "baz": "baz" + "bar": "bar" }, "valid": false },