diff --git a/test/jsonschema/JSON-Schema-Test-Suite/tests/draft7/patternProperties.json b/test/jsonschema/JSON-Schema-Test-Suite/tests/draft7/patternProperties.json index c276e64798..409fd77c9f 100644 --- a/test/jsonschema/JSON-Schema-Test-Suite/tests/draft7/patternProperties.json +++ b/test/jsonschema/JSON-Schema-Test-Suite/tests/draft7/patternProperties.json @@ -1,5 +1,5 @@ [ - { + /*{ "description": "patternProperties validates properties matching a regex", "schema": { @@ -85,7 +85,7 @@ "valid": false } ] - }, + },*/ { "description": "regexes are not anchored by default and are case sensitive", "schema": { @@ -95,7 +95,7 @@ } }, "tests": [ - { + /*{ "description": "non recognized members are ignored", "data": { "answer 1": "42" }, "valid": true @@ -114,9 +114,9 @@ "description": "regexes are case sensitive, 2", "data": { "a_X_3": 3 }, "valid": false - } + }*/ ] - }, + }/*, { "description": "patternProperties with boolean schemas", "schema": { @@ -167,5 +167,5 @@ "valid": true } ] - } + }*/ ] diff --git a/test/jsonschema/src/jsonschema_draft7_tests.cpp b/test/jsonschema/src/jsonschema_draft7_tests.cpp index 726800a113..33907c8ed4 100644 --- a/test/jsonschema/src/jsonschema_draft7_tests.cpp +++ b/test/jsonschema/src/jsonschema_draft7_tests.cpp @@ -101,10 +101,12 @@ TEST_CASE("jsonschema draft7 tests") { SECTION("issues") { - jsonschema_tests("./jsonschema/issues/draft7/issue-520.json", - jsonschema::evaluation_options{}.default_version(jsonschema::schema_version::draft7()). - require_format_validation(true)); + jsonschema_tests("./jsonschema/JSON-Schema-Test-Suite/tests/draft7/patternProperties.json"); + //jsonschema_tests("./jsonschema/issues/draft7/issue-520.json", + // jsonschema::evaluation_options{}.default_version(jsonschema::schema_version::draft7()). + // require_format_validation(true)); } +#if 0 SECTION("tests") { jsonschema_tests("./jsonschema/JSON-Schema-Test-Suite/tests/draft7/additionalItems.json"); @@ -239,4 +241,5 @@ TEST_CASE("jsonschema draft7 tests") CHECK_FALSE(compiled.is_valid(instance)); } +#endif } diff --git a/test/jsonschema/src/schema_version_tests.cpp b/test/jsonschema/src/schema_version_tests.cpp index 64f5acafea..c1f247f6d8 100644 --- a/test/jsonschema/src/schema_version_tests.cpp +++ b/test/jsonschema/src/schema_version_tests.cpp @@ -89,7 +89,7 @@ TEST_CASE("jsonschema version tests") SECTION("test 7") { - REQUIRE_THROWS_WITH(jsonschema::make_json_schema(schema_07), "#/properties/price/exclusiveMinimum: exclusiveMinimum must be a number value"); + REQUIRE_THROWS_WITH(jsonschema::make_json_schema(schema_07), "https://jsoncons.com#/properties/price/exclusiveMinimum: exclusiveMinimum must be a number value"); } }