[ { "description": "refs to future drafts are processed as future drafts", "schema": { "$schema": "https://json-schema.org/draft/2019-09/schema", "type": "array", "$ref": "http://localhost:1234/draft2020-12/prefixItems.json" }, "skip": { "v3": "extract error: cannot compile resulting schema: invalid import path: \"localhost:1234/draft2020-12/prefixItems.json:prefixItems\":\n generated.cue:1:8\n", "v3-roundtrip": "inital extract failed" }, "tests": [ { "description": "first item not a string is invalid", "comment": "if the implementation is not processing the $ref as a 2020-12 schema, this test will fail", "data": [ 1, 2, 3 ], "valid": false, "skip": { "v3": "could not extract schema", "v3-roundtrip": "could not extract schema" } }, { "description": "first item is a string is valid", "data": [ "a string", 1, 2, 3 ], "valid": true, "skip": { "v3": "could not extract schema", "v3-roundtrip": "could not extract schema" } } ] }, { "description": "refs to historic drafts are processed as historic drafts", "schema": { "type": "object", "allOf": [ { "properties": { "foo": true } }, { "$ref": "http://localhost:1234/draft7/ignore-dependentRequired.json" } ] }, "skip": { "v3": "extract error: cannot compile resulting schema: invalid import path: \"localhost:1234/draft7/ignore-dependentRequired.json:schema\":\n generated.cue:1:8\n", "v3-roundtrip": "inital extract failed" }, "tests": [ { "description": "missing bar is valid", "comment": "if the implementation is not processing the $ref as a draft 7 schema, this test will fail", "data": { "foo": "any value" }, "valid": true, "skip": { "v3": "could not extract schema", "v3-roundtrip": "could not extract schema" } } ] } ]