From 3181cefafa9fe863baf20db1ca195f69926663ea Mon Sep 17 00:00:00 2001 From: Jason Desrosiers Date: Tue, 10 Mar 2026 13:21:03 -0700 Subject: [PATCH] Fix issues with v1 tests --- tests/v1/defs.json | 21 --------------------- tests/v1/ref.json | 21 +++------------------ 2 files changed, 3 insertions(+), 39 deletions(-) delete mode 100644 tests/v1/defs.json diff --git a/tests/v1/defs.json b/tests/v1/defs.json deleted file mode 100644 index 8e167655..00000000 --- a/tests/v1/defs.json +++ /dev/null @@ -1,21 +0,0 @@ -[ - { - "description": "validate definition against metaschema", - "schema": { - "$schema": "https://json-schema.org/v1", - "$ref": "https://json-schema.org/v1" - }, - "tests": [ - { - "description": "valid definition schema", - "data": {"$defs": {"foo": {"type": "integer"}}}, - "valid": true - }, - { - "description": "invalid definition schema", - "data": {"$defs": {"foo": {"type": 1}}}, - "valid": false - } - ] - } -] diff --git a/tests/v1/ref.json b/tests/v1/ref.json index e7a36f68..dde3e5b1 100644 --- a/tests/v1/ref.json +++ b/tests/v1/ref.json @@ -185,17 +185,17 @@ "description": "remote ref, containing refs itself", "schema": { "$schema": "https://json-schema.org/v1", - "$ref": "https://json-schema.org/v1" + "$ref": "http://localhost:1234/v1/ref-and-defs" }, "tests": [ { "description": "remote ref valid", - "data": {"minLength": 1}, + "data": { "bar": "" }, "valid": true }, { "description": "remote ref invalid", - "data": {"minLength": -1}, + "data": { "bar": 0 }, "valid": false } ] @@ -824,21 +824,6 @@ } ] }, - { - "description": "URN base URI with f-component", - "schema": { - "$schema": "https://json-schema.org/v1", - "$comment": "RFC 8141 ยง2.3.3, but we don't allow fragments", - "$ref": "https://json-schema.org/v1" - }, - "tests": [ - { - "description": "is invalid", - "data": {"$id": "urn:example:foo-bar-baz-qux#somepart"}, - "valid": false - } - ] - }, { "description": "URN base URI with URN and JSON pointer ref", "schema": {