[
	{
		"description": "Location-independent identifier",
		"schema": {
			"$schema": "https://json-schema.org/draft/2019-09/schema",
			"$ref": "#foo",
			"$defs": {
				"A": {
					"$anchor": "foo",
					"type": "integer"
				}
			}
		},
		"skip": {
			"v2": "extract error: cannot determine CUE location for JSON Schema location id=https://cue.jsonschema.invalid#foo: anchors (foo) not supported (and 3 more errors)",
			"v3": "extract error: cannot determine CUE location for JSON Schema location id=https://cue.jsonschema.invalid#foo: anchors (foo) not supported (and 3 more errors)"
		},
		"tests": [
			{
				"description": "match",
				"data": 1,
				"valid": true,
				"skip": {
					"v2": "could not compile schema",
					"v3": "could not compile schema"
				}
			},
			{
				"description": "mismatch",
				"data": "a",
				"valid": false,
				"skip": {
					"v2": "could not compile schema",
					"v3": "could not compile schema"
				}
			}
		]
	},
	{
		"description": "Location-independent identifier with absolute URI",
		"schema": {
			"$schema": "https://json-schema.org/draft/2019-09/schema",
			"$ref": "http://localhost:1234/draft2019-09/bar#foo",
			"$defs": {
				"A": {
					"$id": "http://localhost:1234/draft2019-09/bar",
					"$anchor": "foo",
					"type": "integer"
				}
			}
		},
		"skip": {
			"v2": "extract error: cannot determine CUE location for JSON Schema location id=http://localhost:1234/draft2019-09/bar#foo: anchors (foo) not supported (and 3 more errors)",
			"v3": "extract error: cannot determine CUE location for JSON Schema location id=http://localhost:1234/draft2019-09/bar#foo: anchors (foo) not supported (and 3 more errors)"
		},
		"tests": [
			{
				"description": "match",
				"data": 1,
				"valid": true,
				"skip": {
					"v2": "could not compile schema",
					"v3": "could not compile schema"
				}
			},
			{
				"description": "mismatch",
				"data": "a",
				"valid": false,
				"skip": {
					"v2": "could not compile schema",
					"v3": "could not compile schema"
				}
			}
		]
	},
	{
		"description": "Location-independent identifier with base URI change in subschema",
		"schema": {
			"$schema": "https://json-schema.org/draft/2019-09/schema",
			"$id": "http://localhost:1234/draft2019-09/root",
			"$ref": "http://localhost:1234/draft2019-09/nested.json#foo",
			"$defs": {
				"A": {
					"$id": "nested.json",
					"$defs": {
						"B": {
							"$anchor": "foo",
							"type": "integer"
						}
					}
				}
			}
		},
		"skip": {
			"v2": "extract error: cannot determine CUE location for JSON Schema location id=http://localhost:1234/draft2019-09/nested.json#foo: anchors (foo) not supported (and 3 more errors)",
			"v3": "extract error: cannot determine CUE location for JSON Schema location id=http://localhost:1234/draft2019-09/nested.json#foo: anchors (foo) not supported (and 3 more errors)"
		},
		"tests": [
			{
				"description": "match",
				"data": 1,
				"valid": true,
				"skip": {
					"v2": "could not compile schema",
					"v3": "could not compile schema"
				}
			},
			{
				"description": "mismatch",
				"data": "a",
				"valid": false,
				"skip": {
					"v2": "could not compile schema",
					"v3": "could not compile schema"
				}
			}
		]
	},
	{
		"description": "same $anchor with different base uri",
		"schema": {
			"$schema": "https://json-schema.org/draft/2019-09/schema",
			"$id": "http://localhost:1234/draft2019-09/foobar",
			"$defs": {
				"A": {
					"$id": "child1",
					"allOf": [
						{
							"$id": "child2",
							"$anchor": "my_anchor",
							"type": "number"
						},
						{
							"$anchor": "my_anchor",
							"type": "string"
						}
					]
				}
			},
			"$ref": "child1#my_anchor"
		},
		"skip": {
			"v2": "extract error: keyword \"$anchor\" not yet implemented (and 5 more errors)",
			"v3": "extract error: keyword \"$anchor\" not yet implemented (and 5 more errors)"
		},
		"tests": [
			{
				"description": "$ref resolves to /$defs/A/allOf/1",
				"data": "a",
				"valid": true,
				"skip": {
					"v2": "could not compile schema",
					"v3": "could not compile schema"
				}
			},
			{
				"description": "$ref does not resolve to /$defs/A/allOf/0",
				"data": 1,
				"valid": false,
				"skip": {
					"v2": "could not compile schema",
					"v3": "could not compile schema"
				}
			}
		]
	}
]
