Skip to content

Commit ef4dd25

Browse files
committed
Fix
Signed-off-by: Juan Cruz Viotti <jv@jviotti.com>
1 parent 05b4f2d commit ef4dd25

3 files changed

Lines changed: 183 additions & 36 deletions

File tree

test/evaluator/evaluator_2020_12.json

Lines changed: 61 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1709,8 +1709,15 @@
17091709
},
17101710
{
17111711
"description": "items_integer_bounded_1",
1712-
"schema": {"$schema": "https://json-schema.org/draft/2020-12/schema", "items": {"type": "number", "minimum": 0, "maximum": 100}},
1713-
"instance": [10, 50, 99],
1712+
"schema": {
1713+
"$schema": "https://json-schema.org/draft/2020-12/schema",
1714+
"items": {
1715+
"type": "number",
1716+
"minimum": 0,
1717+
"maximum": 100
1718+
}
1719+
},
1720+
"instance": [ 10, 50, 99 ],
17141721
"valid": true,
17151722
"fast": {
17161723
"pre": [
@@ -1770,8 +1777,15 @@
17701777
},
17711778
{
17721779
"description": "items_integer_bounded_2",
1773-
"schema": {"$schema": "https://json-schema.org/draft/2020-12/schema", "items": {"type": "number", "minimum": 0, "maximum": 100}},
1774-
"instance": [10, 200, 50],
1780+
"schema": {
1781+
"$schema": "https://json-schema.org/draft/2020-12/schema",
1782+
"items": {
1783+
"type": "number",
1784+
"minimum": 0,
1785+
"maximum": 100
1786+
}
1787+
},
1788+
"instance": [ 10, 200, 50 ],
17751789
"valid": false,
17761790
"fast": {
17771791
"pre": [
@@ -1813,8 +1827,15 @@
18131827
},
18141828
{
18151829
"description": "items_integer_bounded_3",
1816-
"schema": {"$schema": "https://json-schema.org/draft/2020-12/schema", "items": {"type": "number", "minimum": 0, "maximum": 100}},
1817-
"instance": ["foo"],
1830+
"schema": {
1831+
"$schema": "https://json-schema.org/draft/2020-12/schema",
1832+
"items": {
1833+
"type": "number",
1834+
"minimum": 0,
1835+
"maximum": 100
1836+
}
1837+
},
1838+
"instance": [ "foo" ],
18181839
"valid": false,
18191840
"fast": {
18201841
"pre": [
@@ -1844,15 +1865,29 @@
18441865
},
18451866
{
18461867
"description": "items_integer_bounded_4",
1847-
"schema": {"$schema": "https://json-schema.org/draft/2020-12/schema", "items": {"type": "number", "minimum": 0, "maximum": 100}},
1868+
"schema": {
1869+
"$schema": "https://json-schema.org/draft/2020-12/schema",
1870+
"items": {
1871+
"type": "number",
1872+
"minimum": 0,
1873+
"maximum": 100
1874+
}
1875+
},
18481876
"instance": "not an array",
18491877
"valid": true,
18501878
"fast": {},
18511879
"exhaustive": {}
18521880
},
18531881
{
18541882
"description": "items_integer_bounded_5",
1855-
"schema": {"$schema": "https://json-schema.org/draft/2020-12/schema", "items": {"type": "number", "minimum": 0, "maximum": 100}},
1883+
"schema": {
1884+
"$schema": "https://json-schema.org/draft/2020-12/schema",
1885+
"items": {
1886+
"type": "number",
1887+
"minimum": 0,
1888+
"maximum": 100
1889+
}
1890+
},
18561891
"instance": [],
18571892
"valid": true,
18581893
"fast": {
@@ -1870,8 +1905,15 @@
18701905
},
18711906
{
18721907
"description": "items_integer_bounded_6",
1873-
"schema": {"$schema": "https://json-schema.org/draft/2020-12/schema", "items": {"type": "number", "minimum": 0, "maximum": 100}},
1874-
"instance": [10.5, 99.9],
1908+
"schema": {
1909+
"$schema": "https://json-schema.org/draft/2020-12/schema",
1910+
"items": {
1911+
"type": "number",
1912+
"minimum": 0,
1913+
"maximum": 100
1914+
}
1915+
},
1916+
"instance": [ 10.5, 99.9 ],
18751917
"valid": true,
18761918
"fast": {
18771919
"pre": [
@@ -1922,8 +1964,15 @@
19221964
},
19231965
{
19241966
"description": "items_integer_bounded_7_real_bounds",
1925-
"schema": {"$schema": "https://json-schema.org/draft/2020-12/schema", "items": {"type": "number", "minimum": 0.5, "maximum": 100}},
1926-
"instance": [1, 50],
1967+
"schema": {
1968+
"$schema": "https://json-schema.org/draft/2020-12/schema",
1969+
"items": {
1970+
"type": "number",
1971+
"minimum": 0.5,
1972+
"maximum": 100
1973+
}
1974+
},
1975+
"instance": [ 1, 50 ],
19271976
"valid": true,
19281977
"fast": {
19291978
"pre": [

test/evaluator/evaluator_draft4.json

Lines changed: 61 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9705,8 +9705,15 @@
97059705
},
97069706
{
97079707
"description": "items_integer_bounded_1",
9708-
"schema": {"$schema": "http://json-schema.org/draft-04/schema#", "items": {"type": "number", "minimum": 0, "maximum": 100}},
9709-
"instance": [10, 50, 99],
9708+
"schema": {
9709+
"$schema": "http://json-schema.org/draft-04/schema#",
9710+
"items": {
9711+
"type": "number",
9712+
"minimum": 0,
9713+
"maximum": 100
9714+
}
9715+
},
9716+
"instance": [ 10, 50, 99 ],
97109717
"valid": true,
97119718
"fast": {
97129719
"pre": [
@@ -9760,8 +9767,15 @@
97609767
},
97619768
{
97629769
"description": "items_integer_bounded_2",
9763-
"schema": {"$schema": "http://json-schema.org/draft-04/schema#", "items": {"type": "number", "minimum": 0, "maximum": 100}},
9764-
"instance": [10, 200, 50],
9770+
"schema": {
9771+
"$schema": "http://json-schema.org/draft-04/schema#",
9772+
"items": {
9773+
"type": "number",
9774+
"minimum": 0,
9775+
"maximum": 100
9776+
}
9777+
},
9778+
"instance": [ 10, 200, 50 ],
97659779
"valid": false,
97669780
"fast": {
97679781
"pre": [
@@ -9800,8 +9814,15 @@
98009814
},
98019815
{
98029816
"description": "items_integer_bounded_3",
9803-
"schema": {"$schema": "http://json-schema.org/draft-04/schema#", "items": {"type": "number", "minimum": 0, "maximum": 100}},
9804-
"instance": ["foo"],
9817+
"schema": {
9818+
"$schema": "http://json-schema.org/draft-04/schema#",
9819+
"items": {
9820+
"type": "number",
9821+
"minimum": 0,
9822+
"maximum": 100
9823+
}
9824+
},
9825+
"instance": [ "foo" ],
98059826
"valid": false,
98069827
"fast": {
98079828
"pre": [
@@ -9831,15 +9852,29 @@
98319852
},
98329853
{
98339854
"description": "items_integer_bounded_4",
9834-
"schema": {"$schema": "http://json-schema.org/draft-04/schema#", "items": {"type": "number", "minimum": 0, "maximum": 100}},
9855+
"schema": {
9856+
"$schema": "http://json-schema.org/draft-04/schema#",
9857+
"items": {
9858+
"type": "number",
9859+
"minimum": 0,
9860+
"maximum": 100
9861+
}
9862+
},
98359863
"instance": "not an array",
98369864
"valid": true,
98379865
"fast": {},
98389866
"exhaustive": {}
98399867
},
98409868
{
98419869
"description": "items_integer_bounded_5",
9842-
"schema": {"$schema": "http://json-schema.org/draft-04/schema#", "items": {"type": "number", "minimum": 0, "maximum": 100}},
9870+
"schema": {
9871+
"$schema": "http://json-schema.org/draft-04/schema#",
9872+
"items": {
9873+
"type": "number",
9874+
"minimum": 0,
9875+
"maximum": 100
9876+
}
9877+
},
98439878
"instance": [],
98449879
"valid": true,
98459880
"fast": {
@@ -9867,8 +9902,15 @@
98679902
},
98689903
{
98699904
"description": "items_integer_bounded_6",
9870-
"schema": {"$schema": "http://json-schema.org/draft-04/schema#", "items": {"type": "number", "minimum": 0, "maximum": 100}},
9871-
"instance": [10.5, 99.9],
9905+
"schema": {
9906+
"$schema": "http://json-schema.org/draft-04/schema#",
9907+
"items": {
9908+
"type": "number",
9909+
"minimum": 0,
9910+
"maximum": 100
9911+
}
9912+
},
9913+
"instance": [ 10.5, 99.9 ],
98729914
"valid": true,
98739915
"fast": {
98749916
"pre": [
@@ -9913,8 +9955,15 @@
99139955
},
99149956
{
99159957
"description": "items_integer_bounded_7_real_bounds",
9916-
"schema": {"$schema": "http://json-schema.org/draft-04/schema#", "items": {"type": "number", "minimum": 0.5, "maximum": 100}},
9917-
"instance": [1, 50],
9958+
"schema": {
9959+
"$schema": "http://json-schema.org/draft-04/schema#",
9960+
"items": {
9961+
"type": "number",
9962+
"minimum": 0.5,
9963+
"maximum": 100
9964+
}
9965+
},
9966+
"instance": [ 1, 50 ],
99189967
"valid": true,
99199968
"fast": {
99209969
"pre": [

test/evaluator/evaluator_draft6.json

Lines changed: 61 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3144,8 +3144,15 @@
31443144
},
31453145
{
31463146
"description": "items_integer_bounded_1",
3147-
"schema": {"$schema": "http://json-schema.org/draft-06/schema#", "items": {"type": "number", "minimum": 0, "maximum": 100}},
3148-
"instance": [10, 50, 99],
3147+
"schema": {
3148+
"$schema": "http://json-schema.org/draft-06/schema#",
3149+
"items": {
3150+
"type": "number",
3151+
"minimum": 0,
3152+
"maximum": 100
3153+
}
3154+
},
3155+
"instance": [ 10, 50, 99 ],
31493156
"valid": true,
31503157
"fast": {
31513158
"pre": [
@@ -3199,8 +3206,15 @@
31993206
},
32003207
{
32013208
"description": "items_integer_bounded_2",
3202-
"schema": {"$schema": "http://json-schema.org/draft-06/schema#", "items": {"type": "number", "minimum": 0, "maximum": 100}},
3203-
"instance": [10, 200, 50],
3209+
"schema": {
3210+
"$schema": "http://json-schema.org/draft-06/schema#",
3211+
"items": {
3212+
"type": "number",
3213+
"minimum": 0,
3214+
"maximum": 100
3215+
}
3216+
},
3217+
"instance": [ 10, 200, 50 ],
32043218
"valid": false,
32053219
"fast": {
32063220
"pre": [
@@ -3239,8 +3253,15 @@
32393253
},
32403254
{
32413255
"description": "items_integer_bounded_3",
3242-
"schema": {"$schema": "http://json-schema.org/draft-06/schema#", "items": {"type": "number", "minimum": 0, "maximum": 100}},
3243-
"instance": ["foo"],
3256+
"schema": {
3257+
"$schema": "http://json-schema.org/draft-06/schema#",
3258+
"items": {
3259+
"type": "number",
3260+
"minimum": 0,
3261+
"maximum": 100
3262+
}
3263+
},
3264+
"instance": [ "foo" ],
32443265
"valid": false,
32453266
"fast": {
32463267
"pre": [
@@ -3270,15 +3291,29 @@
32703291
},
32713292
{
32723293
"description": "items_integer_bounded_4",
3273-
"schema": {"$schema": "http://json-schema.org/draft-06/schema#", "items": {"type": "number", "minimum": 0, "maximum": 100}},
3294+
"schema": {
3295+
"$schema": "http://json-schema.org/draft-06/schema#",
3296+
"items": {
3297+
"type": "number",
3298+
"minimum": 0,
3299+
"maximum": 100
3300+
}
3301+
},
32743302
"instance": "not an array",
32753303
"valid": true,
32763304
"fast": {},
32773305
"exhaustive": {}
32783306
},
32793307
{
32803308
"description": "items_integer_bounded_5",
3281-
"schema": {"$schema": "http://json-schema.org/draft-06/schema#", "items": {"type": "number", "minimum": 0, "maximum": 100}},
3309+
"schema": {
3310+
"$schema": "http://json-schema.org/draft-06/schema#",
3311+
"items": {
3312+
"type": "number",
3313+
"minimum": 0,
3314+
"maximum": 100
3315+
}
3316+
},
32823317
"instance": [],
32833318
"valid": true,
32843319
"fast": {
@@ -3306,8 +3341,15 @@
33063341
},
33073342
{
33083343
"description": "items_integer_bounded_6",
3309-
"schema": {"$schema": "http://json-schema.org/draft-06/schema#", "items": {"type": "number", "minimum": 0, "maximum": 100}},
3310-
"instance": [10.5, 99.9],
3344+
"schema": {
3345+
"$schema": "http://json-schema.org/draft-06/schema#",
3346+
"items": {
3347+
"type": "number",
3348+
"minimum": 0,
3349+
"maximum": 100
3350+
}
3351+
},
3352+
"instance": [ 10.5, 99.9 ],
33113353
"valid": true,
33123354
"fast": {
33133355
"pre": [
@@ -3352,8 +3394,15 @@
33523394
},
33533395
{
33543396
"description": "items_integer_bounded_7_real_bounds",
3355-
"schema": {"$schema": "http://json-schema.org/draft-06/schema#", "items": {"type": "number", "minimum": 0.5, "maximum": 100}},
3356-
"instance": [1, 50],
3397+
"schema": {
3398+
"$schema": "http://json-schema.org/draft-06/schema#",
3399+
"items": {
3400+
"type": "number",
3401+
"minimum": 0.5,
3402+
"maximum": 100
3403+
}
3404+
},
3405+
"instance": [ 1, 50 ],
33573406
"valid": true,
33583407
"fast": {
33593408
"pre": [

0 commit comments

Comments
 (0)