File tree 2 files changed +24
-0
lines changed
encoding/jsonschema/testdata/txtar
2 files changed +24
-0
lines changed Original file line number Diff line number Diff line change
1
+ // This tests that we can use an ID with an empty fragment that's
2
+ // not present in the canonical URI.
3
+ -- schema.json --
4
+ {
5
+ "$schema": "https://json-schema.org/draft/2019-09/schema#",
6
+ "$id": "http://example.test",
7
+ "type": "string"
8
+ }
9
+ -- out/decode/extract --
10
+ ERROR:
11
+ invalid $schema URL "https://json-schema.org/draft/2019-09/schema#": $schema URI not recognized:
12
+ schema.json:2:3
Original file line number Diff line number Diff line change
1
+ // This tests that we can use an ID without the conventional empty fragment that's
2
+ // present in the canonical URI.
3
+ -- schema.json --
4
+ {
5
+ "$schema": "http://json-schema.org/draft-04/schema",
6
+ "id": "http://example.test",
7
+ "type": "string"
8
+ }
9
+ -- out/decode/extract --
10
+ ERROR:
11
+ invalid $schema URL "http://json-schema.org/draft-04/schema": $schema URI not recognized:
12
+ schema.json:2:3
You can’t perform that action at this time.
0 commit comments