File tree 6 files changed +122
-12
lines changed
6 files changed +122
-12
lines changed Original file line number Diff line number Diff line change 156
156
{
157
157
"description" : " propertyDependencies with additionalProperties" ,
158
158
"schema" : {
159
- "propertyDependencies" : {
160
- "foo" : {"bar" : {}}
159
+ "$schema" : " https://json-schema.org/draft/next/schema" ,
160
+ "propertyDependencies" : {
161
+ "foo" : {
162
+ "bar" : {
163
+ "properties" : {
164
+ "buz" : {}
165
+ }
166
+ }
167
+ }
161
168
},
162
169
"additionalProperties" : false
163
170
},
164
171
"tests" : [
165
172
{
166
- "description" : " additionalProperties doesn't consider propertyDependencies" ,
167
- "data" : {"foo" : " " },
173
+ "description" : " additionalProperties doesn't consider propertyDependencies properties" ,
174
+ "data" : {"foo" : " bar" },
175
+ "valid" : false
176
+ },
177
+ {
178
+ "description" : " additionalProperties doesn't consider the innner schema properties" ,
179
+ "data" : {"foo" : " bar" , "buz" : " " },
168
180
"valid" : false
169
181
}
170
182
]
171
183
},
172
184
{
173
185
"description" : " dependentSchemas with additionalProperties" ,
174
186
"schema" : {
187
+ "$schema" : " https://json-schema.org/draft/next/schema" ,
175
188
"dependentSchemas" : {
176
- "foo" : {}
189
+ "foo" : {
190
+ "properties" : {
191
+ "bar" :{}
192
+ }
193
+ }
177
194
},
178
195
"additionalProperties" : false
179
196
},
182
199
"description" : " additionalProperties doesn't consider dependentSchemas" ,
183
200
"data" : {"foo" : " " },
184
201
"valid" : false
202
+ },
203
+ {
204
+ "description" : " additionalProperties does't consider inner schema property" ,
205
+ "data" : {"bar" : " " },
206
+ "valid" : false
207
+ },
208
+ {
209
+ "description" : " additionalProperties doesn't consider both" ,
210
+ "data" : {"bar" : " " , "foo" : " " },
211
+ "valid" : false
185
212
}
186
213
]
187
214
}
Original file line number Diff line number Diff line change 1607
1607
{
1608
1608
"description" : " propertyDependencies with unevaluatedProperties" ,
1609
1609
"schema" : {
1610
+ "$schema" : " https://json-schema.org/draft/next/schema" ,
1610
1611
"propertyDependencies" : {
1611
- "foo" : {"bar" : {}}
1612
+ "foo" : {
1613
+ "bar" : {
1614
+ "properties" : {
1615
+ "buz" : {}
1616
+ }
1617
+ }
1618
+ }
1612
1619
},
1613
1620
"unevaluatedProperties" : false
1614
1621
},
1615
1622
1616
1623
"tests" : [
1617
1624
{
1618
1625
"description" : " unevaluatedProperties doesn't consider propertyDependencies" ,
1619
- "data" : {"foo" : " " },
1626
+ "data" : {"foo" : " bar" },
1627
+ "valid" : false
1628
+ },
1629
+ {
1630
+ "description" : " unevaluatedProperties doesn't consider inner schema properties" ,
1631
+ "data" : {"foo" : " bar" , "buz" : " " },
1620
1632
"valid" : false
1621
1633
}
1622
1634
]
1623
1635
},
1624
1636
{
1625
1637
"description" : " dependentSchemas with unevaluatedProperties" ,
1626
1638
"schema" : {
1639
+ "$schema" : " https://json-schema.org/draft/next/schema" ,
1627
1640
"dependentSchemas" : {
1628
- "foo" : {}
1641
+ "foo" : {
1642
+ "properties" : {
1643
+ "bar" :{}
1644
+ }
1645
+ }
1629
1646
},
1630
1647
"unevaluatedProperties" : false
1631
1648
},
1634
1651
"description" : " unevaluatedProperties doesn't consider dependentSchemas" ,
1635
1652
"data" : {"foo" : " " },
1636
1653
"valid" : false
1654
+ },
1655
+ {
1656
+ "description" : " unevaluatedproperties does't consider inner schema property" ,
1657
+ "data" : {"bar" : " " },
1658
+ "valid" : false
1659
+ },
1660
+ {
1661
+ "description" : " unevaluatedProperties doesn't consider both" ,
1662
+ "data" : {"bar" : " " , "foo" : " " },
1663
+ "valid" : false
1637
1664
}
1638
1665
]
1639
1666
}
Original file line number Diff line number Diff line change 158
158
"schema" : {
159
159
"$schema" : " https://json-schema.org/draft/2019-09/schema" ,
160
160
"dependentSchemas" : {
161
- "foo" : {}
161
+ "foo" : {
162
+ "properties" : {
163
+ "bar" :{}
164
+ }
165
+ }
162
166
},
163
167
"additionalProperties" : false
164
168
},
167
171
"description" : " additionalProperties doesn't consider dependentSchemas" ,
168
172
"data" : {"foo" : " " },
169
173
"valid" : false
174
+ },
175
+ {
176
+ "description" : " additionalProperties does't consider inner schema property" ,
177
+ "data" : {"bar" : " " },
178
+ "valid" : false
179
+ },
180
+ {
181
+ "description" : " additionalProperties doesn't consider both" ,
182
+ "data" : {"bar" : " " , "foo" : " " },
183
+ "valid" : false
170
184
}
171
185
]
172
186
}
Original file line number Diff line number Diff line change 1573
1573
"schema" : {
1574
1574
"$schema" : " https://json-schema.org/draft/2019-09/schema" ,
1575
1575
"dependentSchemas" : {
1576
- "foo" : {}
1576
+ "foo" : {
1577
+ "properties" : {
1578
+ "bar" :{}
1579
+ }
1580
+ }
1577
1581
},
1578
1582
"unevaluatedProperties" : false
1579
1583
},
1582
1586
"description" : " unevaluatedProperties doesn't consider dependentSchemas" ,
1583
1587
"data" : {"foo" : " " },
1584
1588
"valid" : false
1589
+ },
1590
+ {
1591
+ "description" : " unevaluatedproperties does't consider inner schema property" ,
1592
+ "data" : {"bar" : " " },
1593
+ "valid" : false
1594
+ },
1595
+ {
1596
+ "description" : " unevaluatedProperties doesn't consider both" ,
1597
+ "data" : {"bar" : " " , "foo" : " " },
1598
+ "valid" : false
1585
1599
}
1586
1600
]
1587
1601
}
Original file line number Diff line number Diff line change 164
164
"schema" : {
165
165
"$schema" : " https://json-schema.org/draft/2020-12/schema" ,
166
166
"dependentSchemas" : {
167
- "foo" : {}
167
+ "foo" : {
168
+ "properties" : {
169
+ "bar" :{}
170
+ }
171
+ }
168
172
},
169
173
"additionalProperties" : false
170
174
},
173
177
"description" : " additionalProperties doesn't consider dependentSchemas" ,
174
178
"data" : {"foo" : " " },
175
179
"valid" : false
180
+ },
181
+ {
182
+ "description" : " additionalProperties does't consider inner schema property" ,
183
+ "data" : {"bar" : " " },
184
+ "valid" : false
185
+ },
186
+ {
187
+ "description" : " additionalProperties doesn't consider both" ,
188
+ "data" : {"bar" : " " , "foo" : " " },
189
+ "valid" : false
176
190
}
177
191
]
178
192
}
Original file line number Diff line number Diff line change 1570
1570
"schema" : {
1571
1571
"$schema" : " https://json-schema.org/draft/2020-12/schema" ,
1572
1572
"dependentSchemas" : {
1573
- "foo" : {}
1573
+ "foo" : {
1574
+ "properties" : {
1575
+ "bar" :{}
1576
+ }
1577
+ }
1574
1578
},
1575
1579
"unevaluatedProperties" : false
1576
1580
},
1579
1583
"description" : " unevaluatedProperties doesn't consider dependentSchemas" ,
1580
1584
"data" : {"foo" : " " },
1581
1585
"valid" : false
1586
+ },
1587
+ {
1588
+ "description" : " unevaluatedproperties does't consider inner schema property" ,
1589
+ "data" : {"bar" : " " },
1590
+ "valid" : false
1591
+ },
1592
+ {
1593
+ "description" : " unevaluatedProperties doesn't consider both" ,
1594
+ "data" : {"bar" : " " , "foo" : " " },
1595
+ "valid" : false
1582
1596
}
1583
1597
]
1584
1598
}
You can’t perform that action at this time.
0 commit comments