Skip to content

Commit 82ba050

Browse files
committed
Do not make use of definitions in Draft 3 test
The `definitions` locator keyword was introduced in Draft 4. As a simple workaround, we can use `properties` instead. Signed-off-by: Juan Cruz Viotti <[email protected]>
1 parent fbdfaa0 commit 82ba050

5 files changed

+8
-8
lines changed

tests/json-schema-draft-03/keywords-additionalItems-boolean.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"registry": {
44
"http://example.com/": {
55
"additionalItems": false,
6-
"definitions": {
6+
"properties": {
77
"foo": { "id": "urn:example:foo" }
88
}
99
}

tests/json-schema-draft-03/keywords-additionalProperties-boolean.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"registry": {
44
"http://example.com/": {
55
"additionalProperties": false,
6-
"definitions": {
6+
"properties": {
77
"foo": { "id": "urn:example:foo" }
88
}
99
}

tests/json-schema-draft-03/pointer-crossing-id-in-dependencies-object.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"dependencies": {
66
"foo": {
77
"id": "http://example.com/oh-hey-a-subschema",
8-
"definitions": {
8+
"properties": {
99
"id": {},
1010
"foo": {
1111
"id": "foo",
@@ -18,7 +18,7 @@
1818
},
1919
"tests": [
2020
{
21-
"ref": "http://example.com/#/dependencies/foo/definitions/foo",
21+
"ref": "http://example.com/#/dependencies/foo/properties/foo",
2222
"target": { "id": "foo", "bar": "baz" },
2323
"then": {
2424
"ref": "#",

tests/json-schema-draft-03/pointer-crossing-id-in-items-array.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"items": [
66
{
77
"id": "http://example.com/oh-hey-an-items",
8-
"definitions": {
8+
"properties": {
99
"id": {},
1010
"foo": {
1111
"id": "foo",
@@ -18,7 +18,7 @@
1818
},
1919
"tests": [
2020
{
21-
"ref": "http://example.com/#/items/0/definitions/foo",
21+
"ref": "http://example.com/#/items/0/properties/foo",
2222
"target": { "id": "foo", "bar": "baz" },
2323
"then": {
2424
"ref": "#",

tests/json-schema-draft-03/pointer-crossing-id-in-items-object.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"http://example.com/": {
55
"items": {
66
"id": "http://example.com/oh-hey-an-items",
7-
"definitions": {
7+
"properties": {
88
"id": {},
99
"foo": {
1010
"id": "foo",
@@ -16,7 +16,7 @@
1616
},
1717
"tests": [
1818
{
19-
"ref": "http://example.com/#/items/definitions/foo",
19+
"ref": "http://example.com/#/items/properties/foo",
2020
"target": { "id": "foo", "bar": "baz" },
2121
"then": {
2222
"ref": "#",

0 commit comments

Comments
 (0)