Skip to content

Commit 7dc768a

Browse files
committed
Backport eada031 to earlier drafts.
1 parent 49c6197 commit 7dc768a

File tree

2 files changed

+10
-50
lines changed

2 files changed

+10
-50
lines changed

tests/draft6/dependencies.json

Lines changed: 5 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,11 @@
5757
"description": "object with one property",
5858
"data": {"bar": 2},
5959
"valid": true
60+
},
61+
{
62+
"description": "non-object is valid",
63+
"data": 1,
64+
"valid": true
6065
}
6166
]
6267
},
@@ -169,31 +174,6 @@
169174
}
170175
]
171176
},
172-
{
173-
"description": "empty array of dependencies",
174-
"schema": {
175-
"dependencies": {
176-
"foo": []
177-
}
178-
},
179-
"tests": [
180-
{
181-
"description": "object with property is valid",
182-
"data": { "foo": 1 },
183-
"valid": true
184-
},
185-
{
186-
"description": "empty object is valid",
187-
"data": {},
188-
"valid": true
189-
},
190-
{
191-
"description": "non-object is valid",
192-
"data": 1,
193-
"valid": true
194-
}
195-
]
196-
},
197177
{
198178
"description": "dependencies with escaped characters",
199179
"schema": {

tests/draft7/dependencies.json

Lines changed: 5 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,11 @@
5757
"description": "object with one property",
5858
"data": {"bar": 2},
5959
"valid": true
60+
},
61+
{
62+
"description": "non-object is valid",
63+
"data": 1,
64+
"valid": true
6065
}
6166
]
6267
},
@@ -169,31 +174,6 @@
169174
}
170175
]
171176
},
172-
{
173-
"description": "empty array of dependencies",
174-
"schema": {
175-
"dependencies": {
176-
"foo": []
177-
}
178-
},
179-
"tests": [
180-
{
181-
"description": "object with property is valid",
182-
"data": { "foo": 1 },
183-
"valid": true
184-
},
185-
{
186-
"description": "empty object is valid",
187-
"data": {},
188-
"valid": true
189-
},
190-
{
191-
"description": "non-object is valid",
192-
"data": 1,
193-
"valid": true
194-
}
195-
]
196-
},
197177
{
198178
"description": "dependencies with escaped characters",
199179
"schema": {

0 commit comments

Comments
 (0)