Skip to content

Commit 959aca9

Browse files
committed
shifting test
1 parent 605d7d7 commit 959aca9

10 files changed

+150
-101
lines changed

tests/draft-next/additionalProperties.json

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,5 +176,37 @@
176176
"valid": false
177177
}
178178
]
179+
},
180+
{
181+
"description": "propertyDependencies with additionalProperties",
182+
"schema": {
183+
"propertyDependencies" : {
184+
"foo": {"bar": {}}
185+
},
186+
"additionalProperties": false
187+
},
188+
"tests": [
189+
{
190+
"description": "propertyDependencies properties are count as additionalproperties" ,
191+
"data": {"foo": ""},
192+
"valid": false
193+
}
194+
]
195+
},
196+
{
197+
"description": "dependent schema with additionalProperties",
198+
"schema": {
199+
"dependentSchemas": {
200+
"foo": {}
201+
},
202+
"additionalProperties": false
203+
},
204+
"tests": [
205+
{
206+
"description": "dependentSchemas properties are counted as additional properties",
207+
"data": {"foo": ""},
208+
"valid": false
209+
}
210+
]
179211
}
180212
]

tests/draft-next/propertyDependencies.json

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -157,38 +157,5 @@
157157
"valid": false
158158
}
159159
]
160-
},
161-
{
162-
"description": "propertyDependencies with additionalProperties",
163-
"schema": {
164-
"propertyDependencies" : {
165-
"foo": {"bar": {}}
166-
},
167-
"additionalProperties": false
168-
},
169-
"tests": [
170-
{
171-
"description": "propertyDependencies properties are count as additionalproperties" ,
172-
"data": {"foo": ""},
173-
"valid": false
174-
}
175-
]
176-
},
177-
{
178-
"description": "propertyDependencies with unevaluatedProperties" ,
179-
"schema" : {
180-
"propertyDependencies": {
181-
"foo": {"bar": {}}
182-
},
183-
"unevaluatedProperties": false
184-
},
185-
186-
"tests": [
187-
{
188-
"description": "propertyDependencies properties are count as the unevaluatedProperties" ,
189-
"data": {"foo": ""},
190-
"valid": false
191-
}
192-
]
193160
}
194161
]

tests/draft-next/unevaluatedProperties.json

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1603,5 +1603,38 @@
16031603
"valid": false
16041604
}
16051605
]
1606+
},
1607+
{
1608+
"description": "propertyDependencies with unevaluatedProperties" ,
1609+
"schema" : {
1610+
"propertyDependencies": {
1611+
"foo": {"bar": {}}
1612+
},
1613+
"unevaluatedProperties": false
1614+
},
1615+
1616+
"tests": [
1617+
{
1618+
"description": "propertyDependencies properties are count as the unevaluatedProperties" ,
1619+
"data": {"foo": ""},
1620+
"valid": false
1621+
}
1622+
]
1623+
},
1624+
{
1625+
"description": "dependent schema with unevaluatedProperties",
1626+
"schema": {
1627+
"dependentSchemas": {
1628+
"foo": {}
1629+
},
1630+
"unevaluatedProperties": false
1631+
},
1632+
"tests": [
1633+
{
1634+
"description": "dependentSchemas properties are counted as unevaluated properties",
1635+
"data": {"foo": ""},
1636+
"valid": false
1637+
}
1638+
]
16061639
}
16071640
]

tests/draft2019-09/additionalProperties.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,5 +176,22 @@
176176
"valid": false
177177
}
178178
]
179+
},
180+
{
181+
"description": "dependent schema with additionalProperties",
182+
"schema": {
183+
"$schema": "https://json-schema.org/draft/2019-09/schema",
184+
"dependentSchemas": {
185+
"foo": {}
186+
},
187+
"additionalProperties": false
188+
},
189+
"tests": [
190+
{
191+
"description": "dependentSchemas properties are counted as additional properties",
192+
"data": {"foo": ""},
193+
"valid": false
194+
}
195+
]
179196
}
180197
]

tests/draft2019-09/dependentSchemas.json

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -167,39 +167,5 @@
167167
"valid": true
168168
}
169169
]
170-
},
171-
{
172-
"description": "dependent schema with additionalProperties",
173-
"schema": {
174-
"$schema": "https://json-schema.org/draft/2019-09/schema",
175-
"dependentSchemas": {
176-
"foo": {}
177-
},
178-
"additionalProperties": false
179-
},
180-
"tests": [
181-
{
182-
"description": "dependentSchemas properties are counted as additional properties",
183-
"data": {"foo": ""},
184-
"valid": false
185-
}
186-
]
187-
},
188-
{
189-
"description": "dependent schema with unevaluatedProperties",
190-
"schema": {
191-
"$schema": "https://json-schema.org/draft/2019-09/schema",
192-
"dependentSchemas": {
193-
"foo": {}
194-
},
195-
"unevaluatedProperties": false
196-
},
197-
"tests": [
198-
{
199-
"description": "dependentSchemas properties are counted as unevaluated properties",
200-
"data": {"foo": ""},
201-
"valid": false
202-
}
203-
]
204170
}
205171
]

tests/draft2019-09/unevaluatedProperties.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1567,5 +1567,22 @@
15671567
"valid": false
15681568
}
15691569
]
1570+
},
1571+
{
1572+
"description": "dependent schema with unevaluatedProperties",
1573+
"schema": {
1574+
"$schema": "https://json-schema.org/draft/2019-09/schema",
1575+
"dependentSchemas": {
1576+
"foo": {}
1577+
},
1578+
"unevaluatedProperties": false
1579+
},
1580+
"tests": [
1581+
{
1582+
"description": "dependentSchemas properties are counted as unevaluated properties",
1583+
"data": {"foo": ""},
1584+
"valid": false
1585+
}
1586+
]
15701587
}
15711588
]

tests/draft2020-12/additionalProperties.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,5 +182,22 @@
182182
"valid": false
183183
}
184184
]
185+
},
186+
{
187+
"description": "dependent schema with additionalProperties",
188+
"schema": {
189+
"$schema": "https://json-schema.org/draft/2020-12/schema",
190+
"dependentSchemas": {
191+
"foo": {}
192+
},
193+
"additionalProperties": false
194+
},
195+
"tests": [
196+
{
197+
"description": "dependentSchemas properties are counted as additional properties",
198+
"data": {"foo": ""},
199+
"valid": false
200+
}
201+
]
185202
}
186203
]

tests/draft2020-12/dependentSchemas.json

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -167,39 +167,5 @@
167167
"valid": true
168168
}
169169
]
170-
},
171-
{
172-
"description": "dependent schema with additionalProperties",
173-
"schema": {
174-
"$schema": "https://json-schema.org/draft/2020-12/schema",
175-
"dependentSchemas": {
176-
"foo": {}
177-
},
178-
"additionalProperties": false
179-
},
180-
"tests": [
181-
{
182-
"description": "dependentSchemas properties are counted as additional properties",
183-
"data": {"foo": ""},
184-
"valid": false
185-
}
186-
]
187-
},
188-
{
189-
"description": "dependent schema with unevaluatedProperties",
190-
"schema": {
191-
"$schema": "https://json-schema.org/draft/2020-12/schema",
192-
"dependentSchemas": {
193-
"foo": {}
194-
},
195-
"unevaluatedProperties": false
196-
},
197-
"tests": [
198-
{
199-
"description": "dependentSchemas properties are counted as unevaluated properties",
200-
"data": {"foo": ""},
201-
"valid": false
202-
}
203-
]
204170
}
205171
]

tests/draft2020-12/unevaluatedItems.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -795,5 +795,22 @@
795795
}
796796

797797
]
798+
},
799+
{
800+
"description": "dependent schema with unevaluatedProperties",
801+
"schema": {
802+
"$schema": "https://json-schema.org/draft/2020-12/schema",
803+
"dependentSchemas": {
804+
"foo": {}
805+
},
806+
"unevaluatedProperties": false
807+
},
808+
"tests": [
809+
{
810+
"description": "dependentSchemas properties are counted as unevaluated properties",
811+
"data": {"foo": ""},
812+
"valid": false
813+
}
814+
]
798815
}
799816
]

tests/draft2020-12/unevaluatedProperties.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1564,5 +1564,22 @@
15641564
"valid": false
15651565
}
15661566
]
1567+
},
1568+
{
1569+
"description": "dependent schema with unevaluatedProperties",
1570+
"schema": {
1571+
"$schema": "https://json-schema.org/draft/2019-09/schema",
1572+
"dependentSchemas": {
1573+
"foo": {}
1574+
},
1575+
"unevaluatedProperties": false
1576+
},
1577+
"tests": [
1578+
{
1579+
"description": "dependentSchemas properties are counted as unevaluated properties",
1580+
"data": {"foo": ""},
1581+
"valid": false
1582+
}
1583+
]
15671584
}
15681585
]

0 commit comments

Comments
 (0)