test(jspg): rename items fixture to array and resolve unused HashMap warning
- Rename fixtures/items.json to fixtures/array.json to better reflect array testing constraints. - Update reference paths in src/tests/fixtures.rs and across other fixture JSON files. - Remove unused HashMap import in src/validator/rules/dict.rs to resolve the compiler warning.
This commit is contained in:
@ -1,12 +1,147 @@
|
||||
[
|
||||
{
|
||||
"description": "array type without items allows any items",
|
||||
"database": {
|
||||
"types": [
|
||||
{
|
||||
"name": "array_0_0",
|
||||
"schemas": {
|
||||
"array_0_0": {
|
||||
"type": "array"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"tests": [
|
||||
{
|
||||
"description": "empty array is valid",
|
||||
"data": [],
|
||||
"schema_id": "array_0_0",
|
||||
"action": "validate",
|
||||
"expect": {
|
||||
"success": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"description": "array with items is valid",
|
||||
"data": [
|
||||
1,
|
||||
"foo"
|
||||
],
|
||||
"schema_id": "array_0_0",
|
||||
"action": "validate",
|
||||
"expect": {
|
||||
"success": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"description": "array with arbitrary objects is valid since items is not constrained",
|
||||
"data": [
|
||||
{
|
||||
"extra_prop": 1
|
||||
}
|
||||
],
|
||||
"schema_id": "array_0_0",
|
||||
"action": "validate",
|
||||
"expect": {
|
||||
"success": true
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "items with boolean schema (true)",
|
||||
"database": {
|
||||
"types": [
|
||||
{
|
||||
"name": "array_1_0",
|
||||
"schemas": {
|
||||
"array_1_0": {
|
||||
"items": true
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"tests": [
|
||||
{
|
||||
"description": "any array is valid",
|
||||
"data": [
|
||||
1,
|
||||
"foo",
|
||||
true
|
||||
],
|
||||
"schema_id": "array_1_0",
|
||||
"action": "validate",
|
||||
"expect": {
|
||||
"success": true
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "items with boolean schema (false)",
|
||||
"database": {
|
||||
"types": [
|
||||
{
|
||||
"name": "array_2_0",
|
||||
"schemas": {
|
||||
"array_2_0": {
|
||||
"items": false
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"tests": [
|
||||
{
|
||||
"description": "empty array is valid",
|
||||
"data": [],
|
||||
"schema_id": "array_2_0",
|
||||
"action": "validate",
|
||||
"expect": {
|
||||
"success": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"description": "any non-empty array is invalid",
|
||||
"data": [
|
||||
1,
|
||||
"foo"
|
||||
],
|
||||
"schema_id": "array_2_0",
|
||||
"action": "validate",
|
||||
"expect": {
|
||||
"success": false,
|
||||
"errors": [
|
||||
{
|
||||
"code": "FALSE_SCHEMA",
|
||||
"details": {
|
||||
"path": "0",
|
||||
"schema": "array_2_0"
|
||||
}
|
||||
},
|
||||
{
|
||||
"code": "FALSE_SCHEMA",
|
||||
"details": {
|
||||
"path": "1",
|
||||
"schema": "array_2_0"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "a schema given for items",
|
||||
"database": {
|
||||
"types": [
|
||||
{
|
||||
"name": "items_0_0",
|
||||
"name": "array_3_0",
|
||||
"schemas": {
|
||||
"items_0_0": {
|
||||
"array_3_0": {
|
||||
"items": {
|
||||
"type": "integer"
|
||||
}
|
||||
@ -23,7 +158,7 @@
|
||||
2,
|
||||
3
|
||||
],
|
||||
"schema_id": "items_0_0",
|
||||
"schema_id": "array_3_0",
|
||||
"action": "validate",
|
||||
"expect": {
|
||||
"success": true
|
||||
@ -35,7 +170,7 @@
|
||||
1,
|
||||
"x"
|
||||
],
|
||||
"schema_id": "items_0_0",
|
||||
"schema_id": "array_3_0",
|
||||
"action": "validate",
|
||||
"expect": {
|
||||
"success": false,
|
||||
@ -47,7 +182,7 @@
|
||||
},
|
||||
"details": {
|
||||
"path": "1",
|
||||
"schema": "items_0_0"
|
||||
"schema": "array_3_0"
|
||||
}
|
||||
}
|
||||
]
|
||||
@ -58,7 +193,7 @@
|
||||
"data": {
|
||||
"foo": "bar"
|
||||
},
|
||||
"schema_id": "items_0_0",
|
||||
"schema_id": "array_3_0",
|
||||
"action": "validate",
|
||||
"expect": {
|
||||
"success": false,
|
||||
@ -70,7 +205,7 @@
|
||||
},
|
||||
"details": {
|
||||
"path": "foo",
|
||||
"schema": "items_0_0"
|
||||
"schema": "array_3_0"
|
||||
}
|
||||
}
|
||||
]
|
||||
@ -82,7 +217,7 @@
|
||||
"0": "invalid",
|
||||
"length": 1
|
||||
},
|
||||
"schema_id": "items_0_0",
|
||||
"schema_id": "array_3_0",
|
||||
"action": "validate",
|
||||
"expect": {
|
||||
"success": false,
|
||||
@ -94,7 +229,7 @@
|
||||
},
|
||||
"details": {
|
||||
"path": "0",
|
||||
"schema": "items_0_0"
|
||||
"schema": "array_3_0"
|
||||
}
|
||||
},
|
||||
{
|
||||
@ -104,108 +239,16 @@
|
||||
},
|
||||
"details": {
|
||||
"path": "length",
|
||||
"schema": "items_0_0"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "items with boolean schema (true)",
|
||||
"database": {
|
||||
"types": [
|
||||
{
|
||||
"name": "items_1_0",
|
||||
"schemas": {
|
||||
"items_1_0": {
|
||||
"items": true
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"tests": [
|
||||
{
|
||||
"description": "any array is valid",
|
||||
"data": [
|
||||
1,
|
||||
"foo",
|
||||
true
|
||||
],
|
||||
"schema_id": "items_1_0",
|
||||
"action": "validate",
|
||||
"expect": {
|
||||
"success": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"description": "empty array is valid",
|
||||
"data": [],
|
||||
"schema_id": "items_1_0",
|
||||
"action": "validate",
|
||||
"expect": {
|
||||
"success": true
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "items with boolean schema (false)",
|
||||
"database": {
|
||||
"types": [
|
||||
{
|
||||
"name": "items_2_0",
|
||||
"schemas": {
|
||||
"items_2_0": {
|
||||
"items": false
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"tests": [
|
||||
{
|
||||
"description": "any non-empty array is invalid",
|
||||
"data": [
|
||||
1,
|
||||
"foo",
|
||||
true
|
||||
],
|
||||
"schema_id": "items_2_0",
|
||||
"action": "validate",
|
||||
"expect": {
|
||||
"success": false,
|
||||
"errors": [
|
||||
{
|
||||
"code": "FALSE_SCHEMA",
|
||||
"details": {
|
||||
"path": "0",
|
||||
"schema": "items_2_0"
|
||||
}
|
||||
},
|
||||
{
|
||||
"code": "FALSE_SCHEMA",
|
||||
"details": {
|
||||
"path": "1",
|
||||
"schema": "items_2_0"
|
||||
}
|
||||
},
|
||||
{
|
||||
"code": "FALSE_SCHEMA",
|
||||
"details": {
|
||||
"path": "2",
|
||||
"schema": "items_2_0"
|
||||
"schema": "array_3_0"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"description": "empty array is valid",
|
||||
"data": [],
|
||||
"schema_id": "items_2_0",
|
||||
"description": "primitive strings are valid since items is ignored on primitives",
|
||||
"data": "hello",
|
||||
"schema_id": "array_3_0",
|
||||
"action": "validate",
|
||||
"expect": {
|
||||
"success": true
|
||||
@ -218,9 +261,9 @@
|
||||
"database": {
|
||||
"types": [
|
||||
{
|
||||
"name": "items_4_0",
|
||||
"name": "array_4_0",
|
||||
"schemas": {
|
||||
"items_4_0": {
|
||||
"array_4_0": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "array",
|
||||
@ -272,7 +315,7 @@
|
||||
]
|
||||
]
|
||||
],
|
||||
"schema_id": "items_4_0",
|
||||
"schema_id": "array_4_0",
|
||||
"action": "validate",
|
||||
"expect": {
|
||||
"success": true
|
||||
@ -310,7 +353,7 @@
|
||||
]
|
||||
]
|
||||
],
|
||||
"schema_id": "items_4_0",
|
||||
"schema_id": "array_4_0",
|
||||
"action": "validate",
|
||||
"expect": {
|
||||
"success": false,
|
||||
@ -322,7 +365,7 @@
|
||||
},
|
||||
"details": {
|
||||
"path": "0/0/0/0",
|
||||
"schema": "items_4_0"
|
||||
"schema": "array_4_0"
|
||||
}
|
||||
}
|
||||
]
|
||||
@ -354,7 +397,7 @@
|
||||
]
|
||||
]
|
||||
],
|
||||
"schema_id": "items_4_0",
|
||||
"schema_id": "array_4_0",
|
||||
"action": "validate",
|
||||
"expect": {
|
||||
"success": false,
|
||||
@ -366,7 +409,7 @@
|
||||
},
|
||||
"details": {
|
||||
"path": "0/0/0",
|
||||
"schema": "items_4_0"
|
||||
"schema": "array_4_0"
|
||||
}
|
||||
},
|
||||
{
|
||||
@ -376,7 +419,7 @@
|
||||
},
|
||||
"details": {
|
||||
"path": "0/1/0",
|
||||
"schema": "items_4_0"
|
||||
"schema": "array_4_0"
|
||||
}
|
||||
},
|
||||
{
|
||||
@ -386,7 +429,7 @@
|
||||
},
|
||||
"details": {
|
||||
"path": "0/2/0",
|
||||
"schema": "items_4_0"
|
||||
"schema": "array_4_0"
|
||||
}
|
||||
},
|
||||
{
|
||||
@ -396,7 +439,7 @@
|
||||
},
|
||||
"details": {
|
||||
"path": "1/0/0",
|
||||
"schema": "items_4_0"
|
||||
"schema": "array_4_0"
|
||||
}
|
||||
},
|
||||
{
|
||||
@ -406,7 +449,7 @@
|
||||
},
|
||||
"details": {
|
||||
"path": "1/1/0",
|
||||
"schema": "items_4_0"
|
||||
"schema": "array_4_0"
|
||||
}
|
||||
},
|
||||
{
|
||||
@ -416,7 +459,7 @@
|
||||
},
|
||||
"details": {
|
||||
"path": "1/2/0",
|
||||
"schema": "items_4_0"
|
||||
"schema": "array_4_0"
|
||||
}
|
||||
}
|
||||
]
|
||||
@ -429,9 +472,9 @@
|
||||
"database": {
|
||||
"types": [
|
||||
{
|
||||
"name": "items_9_0",
|
||||
"name": "array_5_0",
|
||||
"schemas": {
|
||||
"items_9_0": {
|
||||
"array_5_0": {
|
||||
"items": {
|
||||
"type": "null"
|
||||
}
|
||||
@ -446,140 +489,7 @@
|
||||
"data": [
|
||||
null
|
||||
],
|
||||
"schema_id": "items_9_0",
|
||||
"action": "validate",
|
||||
"expect": {
|
||||
"success": true
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "extensible: true allows extra items (when items is false)",
|
||||
"database": {
|
||||
"types": [
|
||||
{
|
||||
"name": "items_10_0",
|
||||
"schemas": {
|
||||
"items_10_0": {
|
||||
"items": false,
|
||||
"extensible": true
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"tests": [
|
||||
{
|
||||
"description": "extra item is valid",
|
||||
"data": [
|
||||
1
|
||||
],
|
||||
"schema_id": "items_10_0",
|
||||
"action": "validate",
|
||||
"expect": {
|
||||
"success": false,
|
||||
"errors": [
|
||||
{
|
||||
"code": "FALSE_SCHEMA",
|
||||
"details": {
|
||||
"path": "0",
|
||||
"schema": "items_10_0"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "extensible: true allows extra properties for items",
|
||||
"database": {
|
||||
"types": [
|
||||
{
|
||||
"name": "items_11_0",
|
||||
"schemas": {
|
||||
"items_11_0": {
|
||||
"items": {
|
||||
"minimum": 5
|
||||
},
|
||||
"extensible": true
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"tests": [
|
||||
{
|
||||
"description": "valid item is valid",
|
||||
"data": [
|
||||
5,
|
||||
6
|
||||
],
|
||||
"schema_id": "items_11_0",
|
||||
"action": "validate",
|
||||
"expect": {
|
||||
"success": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"description": "invalid item (less than min) is invalid even with extensible: true",
|
||||
"data": [
|
||||
4
|
||||
],
|
||||
"schema_id": "items_11_0",
|
||||
"action": "validate",
|
||||
"expect": {
|
||||
"success": false,
|
||||
"errors": [
|
||||
{
|
||||
"code": "MINIMUM_VIOLATED",
|
||||
"values": {
|
||||
"limit": "5",
|
||||
"value": "4"
|
||||
},
|
||||
"details": {
|
||||
"path": "0",
|
||||
"schema": "items_11_0"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "array: simple extensible array",
|
||||
"database": {
|
||||
"types": [
|
||||
{
|
||||
"name": "items_12_0",
|
||||
"schemas": {
|
||||
"items_12_0": {
|
||||
"type": "array",
|
||||
"extensible": true
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"tests": [
|
||||
{
|
||||
"description": "empty array is valid",
|
||||
"data": [],
|
||||
"schema_id": "items_12_0",
|
||||
"action": "validate",
|
||||
"expect": {
|
||||
"success": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"description": "array with items is valid (extensible)",
|
||||
"data": [
|
||||
1,
|
||||
"foo"
|
||||
],
|
||||
"schema_id": "items_12_0",
|
||||
"schema_id": "array_5_0",
|
||||
"action": "validate",
|
||||
"expect": {
|
||||
"success": true
|
||||
@ -592,9 +502,9 @@
|
||||
"database": {
|
||||
"types": [
|
||||
{
|
||||
"name": "items_14_0",
|
||||
"name": "array_6_0",
|
||||
"schemas": {
|
||||
"items_14_0": {
|
||||
"array_6_0": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"extensible": true
|
||||
@ -605,15 +515,6 @@
|
||||
]
|
||||
},
|
||||
"tests": [
|
||||
{
|
||||
"description": "empty array is valid",
|
||||
"data": [],
|
||||
"schema_id": "items_14_0",
|
||||
"action": "validate",
|
||||
"expect": {
|
||||
"success": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"description": "array with items is valid (items explicitly allowed to be anything extensible)",
|
||||
"data": [
|
||||
@ -621,7 +522,7 @@
|
||||
"foo",
|
||||
{}
|
||||
],
|
||||
"schema_id": "items_14_0",
|
||||
"schema_id": "array_6_0",
|
||||
"action": "validate",
|
||||
"expect": {
|
||||
"success": true
|
||||
@ -634,9 +535,9 @@
|
||||
"database": {
|
||||
"types": [
|
||||
{
|
||||
"name": "items_15_0",
|
||||
"name": "array_7_0",
|
||||
"schemas": {
|
||||
"items_15_0": {
|
||||
"array_7_0": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "object",
|
||||
@ -648,23 +549,12 @@
|
||||
]
|
||||
},
|
||||
"tests": [
|
||||
{
|
||||
"description": "empty array is valid (empty objects)",
|
||||
"data": [
|
||||
{}
|
||||
],
|
||||
"schema_id": "items_15_0",
|
||||
"action": "validate",
|
||||
"expect": {
|
||||
"success": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"description": "array with strict object items is valid",
|
||||
"data": [
|
||||
{}
|
||||
],
|
||||
"schema_id": "items_15_0",
|
||||
"schema_id": "array_7_0",
|
||||
"action": "validate",
|
||||
"expect": {
|
||||
"success": true
|
||||
@ -677,7 +567,7 @@
|
||||
"extra": 1
|
||||
}
|
||||
],
|
||||
"schema_id": "items_15_0",
|
||||
"schema_id": "array_7_0",
|
||||
"action": "validate",
|
||||
"expect": {
|
||||
"success": false,
|
||||
@ -689,7 +579,7 @@
|
||||
},
|
||||
"details": {
|
||||
"path": "0/extra",
|
||||
"schema": "items_15_0"
|
||||
"schema": "array_7_0"
|
||||
}
|
||||
}
|
||||
]
|
||||
@ -268,16 +268,6 @@
|
||||
"path": "",
|
||||
"schema": "booleanSchema_1_0"
|
||||
}
|
||||
},
|
||||
{
|
||||
"code": "STRICT_ITEM_VIOLATION",
|
||||
"values": {
|
||||
"index": "0"
|
||||
},
|
||||
"details": {
|
||||
"path": "0",
|
||||
"schema": "booleanSchema_1_0"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@ -156,26 +156,6 @@
|
||||
"path": "",
|
||||
"schema": "const_1_0"
|
||||
}
|
||||
},
|
||||
{
|
||||
"code": "STRICT_ITEM_VIOLATION",
|
||||
"values": {
|
||||
"index": "0"
|
||||
},
|
||||
"details": {
|
||||
"path": "0",
|
||||
"schema": "const_1_0"
|
||||
}
|
||||
},
|
||||
{
|
||||
"code": "STRICT_ITEM_VIOLATION",
|
||||
"values": {
|
||||
"index": "1"
|
||||
},
|
||||
"details": {
|
||||
"path": "1",
|
||||
"schema": "const_1_0"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
@ -233,16 +213,6 @@
|
||||
"path": "",
|
||||
"schema": "const_2_0"
|
||||
}
|
||||
},
|
||||
{
|
||||
"code": "STRICT_ITEM_VIOLATION",
|
||||
"values": {
|
||||
"index": "0"
|
||||
},
|
||||
"details": {
|
||||
"path": "0",
|
||||
"schema": "const_2_0"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
@ -268,36 +238,6 @@
|
||||
"path": "",
|
||||
"schema": "const_2_0"
|
||||
}
|
||||
},
|
||||
{
|
||||
"code": "STRICT_ITEM_VIOLATION",
|
||||
"values": {
|
||||
"index": "0"
|
||||
},
|
||||
"details": {
|
||||
"path": "0",
|
||||
"schema": "const_2_0"
|
||||
}
|
||||
},
|
||||
{
|
||||
"code": "STRICT_ITEM_VIOLATION",
|
||||
"values": {
|
||||
"index": "1"
|
||||
},
|
||||
"details": {
|
||||
"path": "1",
|
||||
"schema": "const_2_0"
|
||||
}
|
||||
},
|
||||
{
|
||||
"code": "STRICT_ITEM_VIOLATION",
|
||||
"values": {
|
||||
"index": "2"
|
||||
},
|
||||
"details": {
|
||||
"path": "2",
|
||||
"schema": "const_2_0"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
@ -534,16 +474,6 @@
|
||||
"path": "",
|
||||
"schema": "const_6_0"
|
||||
}
|
||||
},
|
||||
{
|
||||
"code": "STRICT_ITEM_VIOLATION",
|
||||
"values": {
|
||||
"index": "0"
|
||||
},
|
||||
"details": {
|
||||
"path": "0",
|
||||
"schema": "const_6_0"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
@ -567,16 +497,6 @@
|
||||
"path": "",
|
||||
"schema": "const_6_0"
|
||||
}
|
||||
},
|
||||
{
|
||||
"code": "STRICT_ITEM_VIOLATION",
|
||||
"values": {
|
||||
"index": "0"
|
||||
},
|
||||
"details": {
|
||||
"path": "0",
|
||||
"schema": "const_6_0"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
@ -630,16 +550,6 @@
|
||||
"path": "",
|
||||
"schema": "const_7_0"
|
||||
}
|
||||
},
|
||||
{
|
||||
"code": "STRICT_ITEM_VIOLATION",
|
||||
"values": {
|
||||
"index": "0"
|
||||
},
|
||||
"details": {
|
||||
"path": "0",
|
||||
"schema": "const_7_0"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
@ -663,16 +573,6 @@
|
||||
"path": "",
|
||||
"schema": "const_7_0"
|
||||
}
|
||||
},
|
||||
{
|
||||
"code": "STRICT_ITEM_VIOLATION",
|
||||
"values": {
|
||||
"index": "0"
|
||||
},
|
||||
"details": {
|
||||
"path": "0",
|
||||
"schema": "const_7_0"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@ -177,8 +177,8 @@
|
||||
{
|
||||
"code": "CONTAINS_VIOLATED",
|
||||
"values": {
|
||||
"count": "0",
|
||||
"limit": "1"
|
||||
"limit": "1",
|
||||
"count": "0"
|
||||
},
|
||||
"details": {
|
||||
"path": "",
|
||||
@ -227,8 +227,8 @@
|
||||
{
|
||||
"code": "CONTAINS_VIOLATED",
|
||||
"values": {
|
||||
"limit": "1",
|
||||
"count": "0"
|
||||
"count": "0",
|
||||
"limit": "1"
|
||||
},
|
||||
"details": {
|
||||
"path": "",
|
||||
@ -275,16 +275,6 @@
|
||||
"path": "",
|
||||
"schema": "contains_3_0"
|
||||
}
|
||||
},
|
||||
{
|
||||
"code": "STRICT_ITEM_VIOLATION",
|
||||
"values": {
|
||||
"index": "0"
|
||||
},
|
||||
"details": {
|
||||
"path": "0",
|
||||
"schema": "contains_3_0"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
@ -383,8 +373,8 @@
|
||||
{
|
||||
"code": "MULTIPLE_OF_VIOLATED",
|
||||
"values": {
|
||||
"value": "3",
|
||||
"multiple_of": "2"
|
||||
"multiple_of": "2",
|
||||
"value": "3"
|
||||
},
|
||||
"details": {
|
||||
"path": "0",
|
||||
@ -394,8 +384,8 @@
|
||||
{
|
||||
"code": "MULTIPLE_OF_VIOLATED",
|
||||
"values": {
|
||||
"multiple_of": "2",
|
||||
"value": "9"
|
||||
"value": "9",
|
||||
"multiple_of": "2"
|
||||
},
|
||||
"details": {
|
||||
"path": "2",
|
||||
@ -431,8 +421,8 @@
|
||||
{
|
||||
"code": "CONTAINS_VIOLATED",
|
||||
"values": {
|
||||
"limit": "1",
|
||||
"count": "0"
|
||||
"count": "0",
|
||||
"limit": "1"
|
||||
},
|
||||
"details": {
|
||||
"path": "",
|
||||
@ -599,7 +589,7 @@
|
||||
},
|
||||
"tests": [
|
||||
{
|
||||
"description": "extra items cause failure",
|
||||
"description": "extra items do not cause failure",
|
||||
"data": [
|
||||
1,
|
||||
2
|
||||
@ -607,19 +597,7 @@
|
||||
"schema_id": "contains_8_0",
|
||||
"action": "validate",
|
||||
"expect": {
|
||||
"success": false,
|
||||
"errors": [
|
||||
{
|
||||
"code": "STRICT_ITEM_VIOLATION",
|
||||
"values": {
|
||||
"index": "1"
|
||||
},
|
||||
"details": {
|
||||
"path": "1",
|
||||
"schema": "contains_8_0"
|
||||
}
|
||||
}
|
||||
]
|
||||
"success": true
|
||||
}
|
||||
},
|
||||
{
|
||||
|
||||
@ -151,9 +151,9 @@
|
||||
{
|
||||
"code": "EDGE_MISSING",
|
||||
"values": {
|
||||
"child_type": "child",
|
||||
"property_name": "children",
|
||||
"parent_type": "parent"
|
||||
"parent_type": "parent",
|
||||
"child_type": "child"
|
||||
},
|
||||
"details": {
|
||||
"path": "full.parent/children",
|
||||
@ -390,9 +390,9 @@
|
||||
{
|
||||
"code": "AMBIGUOUS_TYPE_RELATIONS",
|
||||
"values": {
|
||||
"parent_type": "actor",
|
||||
"property_name": "ambiguous_edge",
|
||||
"child_type": "junction",
|
||||
"property_name": "ambiguous_edge"
|
||||
"parent_type": "actor"
|
||||
},
|
||||
"details": {
|
||||
"path": "full.actor/ambiguous_edge",
|
||||
|
||||
@ -227,8 +227,8 @@
|
||||
{
|
||||
"code": "DEPENDENCY_MISSING",
|
||||
"values": {
|
||||
"property_name": "quux",
|
||||
"required_property": "bar"
|
||||
"required_property": "bar",
|
||||
"property_name": "quux"
|
||||
},
|
||||
"details": {
|
||||
"path": "",
|
||||
@ -276,8 +276,8 @@
|
||||
{
|
||||
"code": "DEPENDENCY_MISSING",
|
||||
"values": {
|
||||
"property_name": "quux",
|
||||
"required_property": "foo"
|
||||
"required_property": "foo",
|
||||
"property_name": "quux"
|
||||
},
|
||||
"details": {
|
||||
"path": "",
|
||||
@ -287,8 +287,8 @@
|
||||
{
|
||||
"code": "DEPENDENCY_MISSING",
|
||||
"values": {
|
||||
"property_name": "quux",
|
||||
"required_property": "bar"
|
||||
"required_property": "bar",
|
||||
"property_name": "quux"
|
||||
},
|
||||
"details": {
|
||||
"path": "",
|
||||
|
||||
@ -164,8 +164,8 @@
|
||||
{
|
||||
"code": "DYNAMIC_TYPE_RESOLUTION_FAILED",
|
||||
"values": {
|
||||
"discriminator": "kind",
|
||||
"pointer": "$kind.filter"
|
||||
"pointer": "$kind.filter",
|
||||
"discriminator": "kind"
|
||||
},
|
||||
"details": {
|
||||
"path": "filter",
|
||||
|
||||
@ -560,16 +560,6 @@
|
||||
"path": "",
|
||||
"schema": "enum_6_0"
|
||||
}
|
||||
},
|
||||
{
|
||||
"code": "STRICT_ITEM_VIOLATION",
|
||||
"values": {
|
||||
"index": "0"
|
||||
},
|
||||
"details": {
|
||||
"path": "0",
|
||||
"schema": "enum_6_0"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
@ -593,16 +583,6 @@
|
||||
"path": "",
|
||||
"schema": "enum_6_0"
|
||||
}
|
||||
},
|
||||
{
|
||||
"code": "STRICT_ITEM_VIOLATION",
|
||||
"values": {
|
||||
"index": "0"
|
||||
},
|
||||
"details": {
|
||||
"path": "0",
|
||||
"schema": "enum_6_0"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
@ -728,16 +708,6 @@
|
||||
"path": "",
|
||||
"schema": "enum_8_0"
|
||||
}
|
||||
},
|
||||
{
|
||||
"code": "STRICT_ITEM_VIOLATION",
|
||||
"values": {
|
||||
"index": "0"
|
||||
},
|
||||
"details": {
|
||||
"path": "0",
|
||||
"schema": "enum_8_0"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
@ -761,16 +731,6 @@
|
||||
"path": "",
|
||||
"schema": "enum_8_0"
|
||||
}
|
||||
},
|
||||
{
|
||||
"code": "STRICT_ITEM_VIOLATION",
|
||||
"values": {
|
||||
"index": "0"
|
||||
},
|
||||
"details": {
|
||||
"path": "0",
|
||||
"schema": "enum_8_0"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
@ -873,16 +833,6 @@
|
||||
"path": "",
|
||||
"schema": "enum_10_0"
|
||||
}
|
||||
},
|
||||
{
|
||||
"code": "STRICT_ITEM_VIOLATION",
|
||||
"values": {
|
||||
"index": "0"
|
||||
},
|
||||
"details": {
|
||||
"path": "0",
|
||||
"schema": "enum_10_0"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
@ -1007,16 +957,6 @@
|
||||
"path": "",
|
||||
"schema": "enum_12_0"
|
||||
}
|
||||
},
|
||||
{
|
||||
"code": "STRICT_ITEM_VIOLATION",
|
||||
"values": {
|
||||
"index": "0"
|
||||
},
|
||||
"details": {
|
||||
"path": "0",
|
||||
"schema": "enum_12_0"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@ -34,8 +34,8 @@
|
||||
{
|
||||
"code": "EXCLUSIVE_MAXIMUM_VIOLATED",
|
||||
"values": {
|
||||
"value": "3",
|
||||
"limit": "3"
|
||||
"limit": "3",
|
||||
"value": "3"
|
||||
},
|
||||
"details": {
|
||||
"path": "",
|
||||
@ -56,8 +56,8 @@
|
||||
{
|
||||
"code": "EXCLUSIVE_MAXIMUM_VIOLATED",
|
||||
"values": {
|
||||
"value": "3.5",
|
||||
"limit": "3"
|
||||
"limit": "3",
|
||||
"value": "3.5"
|
||||
},
|
||||
"details": {
|
||||
"path": "",
|
||||
|
||||
@ -56,8 +56,8 @@
|
||||
{
|
||||
"code": "EXCLUSIVE_MINIMUM_VIOLATED",
|
||||
"values": {
|
||||
"limit": "1.1",
|
||||
"value": "0.6"
|
||||
"value": "0.6",
|
||||
"limit": "1.1"
|
||||
},
|
||||
"details": {
|
||||
"path": "",
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@ -70,8 +70,8 @@
|
||||
{
|
||||
"code": "CONTAINS_VIOLATED",
|
||||
"values": {
|
||||
"count": "0",
|
||||
"limit": "1"
|
||||
"limit": "1",
|
||||
"count": "0"
|
||||
},
|
||||
"details": {
|
||||
"path": "",
|
||||
@ -106,8 +106,8 @@
|
||||
{
|
||||
"code": "CONTAINS_VIOLATED",
|
||||
"values": {
|
||||
"count": "2",
|
||||
"limit": "1"
|
||||
"limit": "1",
|
||||
"count": "2"
|
||||
},
|
||||
"details": {
|
||||
"path": "",
|
||||
@ -284,8 +284,8 @@
|
||||
{
|
||||
"code": "CONTAINS_VIOLATED",
|
||||
"values": {
|
||||
"count": "4",
|
||||
"limit": "3"
|
||||
"limit": "3",
|
||||
"count": "4"
|
||||
},
|
||||
"details": {
|
||||
"path": "",
|
||||
|
||||
@ -52,8 +52,8 @@
|
||||
{
|
||||
"code": "MAX_ITEMS_VIOLATED",
|
||||
"values": {
|
||||
"count": "3",
|
||||
"limit": "2"
|
||||
"limit": "2",
|
||||
"count": "3"
|
||||
},
|
||||
"details": {
|
||||
"path": "",
|
||||
@ -115,8 +115,8 @@
|
||||
{
|
||||
"code": "MAX_ITEMS_VIOLATED",
|
||||
"values": {
|
||||
"limit": "2",
|
||||
"count": "3"
|
||||
"count": "3",
|
||||
"limit": "2"
|
||||
},
|
||||
"details": {
|
||||
"path": "",
|
||||
@ -158,8 +158,8 @@
|
||||
{
|
||||
"code": "MAX_ITEMS_VIOLATED",
|
||||
"values": {
|
||||
"limit": "2",
|
||||
"count": "3"
|
||||
"count": "3",
|
||||
"limit": "2"
|
||||
},
|
||||
"details": {
|
||||
"path": "",
|
||||
|
||||
@ -43,8 +43,8 @@
|
||||
{
|
||||
"code": "MAXIMUM_VIOLATED",
|
||||
"values": {
|
||||
"value": "3.5",
|
||||
"limit": "3"
|
||||
"limit": "3",
|
||||
"value": "3.5"
|
||||
},
|
||||
"details": {
|
||||
"path": "",
|
||||
|
||||
@ -239,8 +239,8 @@
|
||||
{
|
||||
"code": "DEPENDENCY_MISSING",
|
||||
"values": {
|
||||
"property_name": "trigger",
|
||||
"required_property": "base_dep"
|
||||
"required_property": "base_dep",
|
||||
"property_name": "trigger"
|
||||
},
|
||||
"details": {
|
||||
"path": "",
|
||||
|
||||
@ -67,8 +67,8 @@
|
||||
{
|
||||
"code": "CONTAINS_VIOLATED",
|
||||
"values": {
|
||||
"count": "0",
|
||||
"limit": "1"
|
||||
"limit": "1",
|
||||
"count": "0"
|
||||
},
|
||||
"details": {
|
||||
"path": "",
|
||||
@ -91,8 +91,8 @@
|
||||
{
|
||||
"code": "CONTAINS_VIOLATED",
|
||||
"values": {
|
||||
"count": "0",
|
||||
"limit": "1"
|
||||
"limit": "1",
|
||||
"count": "0"
|
||||
},
|
||||
"details": {
|
||||
"path": "",
|
||||
@ -169,8 +169,8 @@
|
||||
{
|
||||
"code": "CONTAINS_VIOLATED",
|
||||
"values": {
|
||||
"count": "0",
|
||||
"limit": "2"
|
||||
"limit": "2",
|
||||
"count": "0"
|
||||
},
|
||||
"details": {
|
||||
"path": "",
|
||||
@ -193,8 +193,8 @@
|
||||
{
|
||||
"code": "CONTAINS_VIOLATED",
|
||||
"values": {
|
||||
"limit": "2",
|
||||
"count": "1"
|
||||
"count": "1",
|
||||
"limit": "2"
|
||||
},
|
||||
"details": {
|
||||
"path": "",
|
||||
@ -301,8 +301,8 @@
|
||||
{
|
||||
"code": "CONTAINS_VIOLATED",
|
||||
"values": {
|
||||
"limit": "2",
|
||||
"count": "1"
|
||||
"count": "1",
|
||||
"limit": "2"
|
||||
},
|
||||
"details": {
|
||||
"path": "",
|
||||
@ -381,8 +381,8 @@
|
||||
{
|
||||
"code": "CONTAINS_VIOLATED",
|
||||
"values": {
|
||||
"count": "1",
|
||||
"limit": "2"
|
||||
"limit": "2",
|
||||
"count": "1"
|
||||
},
|
||||
"details": {
|
||||
"path": "",
|
||||
@ -463,8 +463,8 @@
|
||||
{
|
||||
"code": "CONTAINS_VIOLATED",
|
||||
"values": {
|
||||
"limit": "3",
|
||||
"count": "0"
|
||||
"count": "0",
|
||||
"limit": "3"
|
||||
},
|
||||
"details": {
|
||||
"path": "",
|
||||
@ -513,8 +513,8 @@
|
||||
{
|
||||
"code": "CONTAINS_VIOLATED",
|
||||
"values": {
|
||||
"limit": "1",
|
||||
"count": "3"
|
||||
"count": "3",
|
||||
"limit": "1"
|
||||
},
|
||||
"details": {
|
||||
"path": "",
|
||||
@ -657,8 +657,8 @@
|
||||
{
|
||||
"code": "CONTAINS_VIOLATED",
|
||||
"values": {
|
||||
"limit": "1",
|
||||
"count": "2"
|
||||
"count": "2",
|
||||
"limit": "1"
|
||||
},
|
||||
"details": {
|
||||
"path": "",
|
||||
|
||||
@ -48,8 +48,8 @@
|
||||
{
|
||||
"code": "MIN_ITEMS_VIOLATED",
|
||||
"values": {
|
||||
"count": "0",
|
||||
"limit": "1"
|
||||
"limit": "1",
|
||||
"count": "0"
|
||||
},
|
||||
"details": {
|
||||
"path": "",
|
||||
@ -108,8 +108,8 @@
|
||||
{
|
||||
"code": "MIN_ITEMS_VIOLATED",
|
||||
"values": {
|
||||
"limit": "1",
|
||||
"count": "0"
|
||||
"count": "0",
|
||||
"limit": "1"
|
||||
},
|
||||
"details": {
|
||||
"path": "",
|
||||
|
||||
@ -43,8 +43,8 @@
|
||||
{
|
||||
"code": "MIN_LENGTH_VIOLATED",
|
||||
"values": {
|
||||
"count": "1",
|
||||
"limit": "2"
|
||||
"limit": "2",
|
||||
"count": "1"
|
||||
},
|
||||
"details": {
|
||||
"path": "",
|
||||
@ -74,8 +74,8 @@
|
||||
{
|
||||
"code": "MIN_LENGTH_VIOLATED",
|
||||
"values": {
|
||||
"limit": "2",
|
||||
"count": "1"
|
||||
"count": "1",
|
||||
"limit": "2"
|
||||
},
|
||||
"details": {
|
||||
"path": "",
|
||||
|
||||
@ -128,8 +128,8 @@
|
||||
{
|
||||
"code": "MIN_PROPERTIES_VIOLATED",
|
||||
"values": {
|
||||
"limit": "1",
|
||||
"count": "0"
|
||||
"count": "0",
|
||||
"limit": "1"
|
||||
},
|
||||
"details": {
|
||||
"path": "",
|
||||
|
||||
@ -127,8 +127,8 @@
|
||||
{
|
||||
"code": "MINIMUM_VIOLATED",
|
||||
"values": {
|
||||
"limit": "-2",
|
||||
"value": "-2.0001"
|
||||
"value": "-2.0001",
|
||||
"limit": "-2"
|
||||
},
|
||||
"details": {
|
||||
"path": "",
|
||||
|
||||
@ -148,8 +148,8 @@
|
||||
{
|
||||
"code": "MULTIPLE_OF_VIOLATED",
|
||||
"values": {
|
||||
"multiple_of": "0.0001",
|
||||
"value": "0.00751"
|
||||
"value": "0.00751",
|
||||
"multiple_of": "0.0001"
|
||||
},
|
||||
"details": {
|
||||
"path": "",
|
||||
|
||||
@ -407,16 +407,6 @@
|
||||
"path": "",
|
||||
"schema": "not_4_0"
|
||||
}
|
||||
},
|
||||
{
|
||||
"code": "STRICT_ITEM_VIOLATION",
|
||||
"values": {
|
||||
"index": "0"
|
||||
},
|
||||
"details": {
|
||||
"path": "0",
|
||||
"schema": "not_4_0"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
@ -610,16 +600,6 @@
|
||||
"path": "",
|
||||
"schema": "not_5_0"
|
||||
}
|
||||
},
|
||||
{
|
||||
"code": "STRICT_ITEM_VIOLATION",
|
||||
"values": {
|
||||
"index": "0"
|
||||
},
|
||||
"details": {
|
||||
"path": "0",
|
||||
"schema": "not_5_0"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@ -34,7 +34,8 @@
|
||||
{
|
||||
"code": "PATTERN_VIOLATED",
|
||||
"values": {
|
||||
"pattern": "^a*$"
|
||||
"pattern": "^a*$",
|
||||
"value": "abc"
|
||||
},
|
||||
"details": {
|
||||
"path": "",
|
||||
|
||||
@ -489,16 +489,6 @@
|
||||
"path": "constructor",
|
||||
"schema": "properties_4_0"
|
||||
}
|
||||
},
|
||||
{
|
||||
"code": "STRICT_PROPERTY_VIOLATION",
|
||||
"values": {
|
||||
"property_name": "length"
|
||||
},
|
||||
"details": {
|
||||
"path": "constructor/length",
|
||||
"schema": "properties_4_0"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@ -43,8 +43,8 @@
|
||||
{
|
||||
"code": "MAX_LENGTH_VIOLATED",
|
||||
"values": {
|
||||
"count": "6",
|
||||
"limit": "3"
|
||||
"limit": "3",
|
||||
"count": "6"
|
||||
},
|
||||
"details": {
|
||||
"path": "",
|
||||
@ -141,7 +141,8 @@
|
||||
{
|
||||
"code": "PATTERN_VIOLATED",
|
||||
"values": {
|
||||
"pattern": "^a+$"
|
||||
"pattern": "^a+$",
|
||||
"value": "aaA"
|
||||
},
|
||||
"details": {
|
||||
"path": "",
|
||||
@ -430,8 +431,8 @@
|
||||
{
|
||||
"code": "MAX_LENGTH_VIOLATED",
|
||||
"values": {
|
||||
"limit": "3",
|
||||
"count": "6"
|
||||
"count": "6",
|
||||
"limit": "3"
|
||||
},
|
||||
"details": {
|
||||
"path": "",
|
||||
|
||||
@ -139,8 +139,8 @@
|
||||
{
|
||||
"code": "MAX_LENGTH_VIOLATED",
|
||||
"values": {
|
||||
"limit": "5",
|
||||
"count": "26"
|
||||
"count": "26",
|
||||
"limit": "5"
|
||||
},
|
||||
"details": {
|
||||
"path": "email",
|
||||
|
||||
@ -1697,138 +1697,6 @@ fn test_not_11_1() {
|
||||
crate::tests::runner::run_test_case(&path, 11, 1).unwrap();
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_items_0_0() {
|
||||
let path = format!("{}/fixtures/items.json", env!("CARGO_MANIFEST_DIR"));
|
||||
crate::tests::runner::run_test_case(&path, 0, 0).unwrap();
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_items_0_1() {
|
||||
let path = format!("{}/fixtures/items.json", env!("CARGO_MANIFEST_DIR"));
|
||||
crate::tests::runner::run_test_case(&path, 0, 1).unwrap();
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_items_0_2() {
|
||||
let path = format!("{}/fixtures/items.json", env!("CARGO_MANIFEST_DIR"));
|
||||
crate::tests::runner::run_test_case(&path, 0, 2).unwrap();
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_items_0_3() {
|
||||
let path = format!("{}/fixtures/items.json", env!("CARGO_MANIFEST_DIR"));
|
||||
crate::tests::runner::run_test_case(&path, 0, 3).unwrap();
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_items_1_0() {
|
||||
let path = format!("{}/fixtures/items.json", env!("CARGO_MANIFEST_DIR"));
|
||||
crate::tests::runner::run_test_case(&path, 1, 0).unwrap();
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_items_1_1() {
|
||||
let path = format!("{}/fixtures/items.json", env!("CARGO_MANIFEST_DIR"));
|
||||
crate::tests::runner::run_test_case(&path, 1, 1).unwrap();
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_items_2_0() {
|
||||
let path = format!("{}/fixtures/items.json", env!("CARGO_MANIFEST_DIR"));
|
||||
crate::tests::runner::run_test_case(&path, 2, 0).unwrap();
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_items_2_1() {
|
||||
let path = format!("{}/fixtures/items.json", env!("CARGO_MANIFEST_DIR"));
|
||||
crate::tests::runner::run_test_case(&path, 2, 1).unwrap();
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_items_3_0() {
|
||||
let path = format!("{}/fixtures/items.json", env!("CARGO_MANIFEST_DIR"));
|
||||
crate::tests::runner::run_test_case(&path, 3, 0).unwrap();
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_items_3_1() {
|
||||
let path = format!("{}/fixtures/items.json", env!("CARGO_MANIFEST_DIR"));
|
||||
crate::tests::runner::run_test_case(&path, 3, 1).unwrap();
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_items_3_2() {
|
||||
let path = format!("{}/fixtures/items.json", env!("CARGO_MANIFEST_DIR"));
|
||||
crate::tests::runner::run_test_case(&path, 3, 2).unwrap();
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_items_4_0() {
|
||||
let path = format!("{}/fixtures/items.json", env!("CARGO_MANIFEST_DIR"));
|
||||
crate::tests::runner::run_test_case(&path, 4, 0).unwrap();
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_items_5_0() {
|
||||
let path = format!("{}/fixtures/items.json", env!("CARGO_MANIFEST_DIR"));
|
||||
crate::tests::runner::run_test_case(&path, 5, 0).unwrap();
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_items_6_0() {
|
||||
let path = format!("{}/fixtures/items.json", env!("CARGO_MANIFEST_DIR"));
|
||||
crate::tests::runner::run_test_case(&path, 6, 0).unwrap();
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_items_6_1() {
|
||||
let path = format!("{}/fixtures/items.json", env!("CARGO_MANIFEST_DIR"));
|
||||
crate::tests::runner::run_test_case(&path, 6, 1).unwrap();
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_items_7_0() {
|
||||
let path = format!("{}/fixtures/items.json", env!("CARGO_MANIFEST_DIR"));
|
||||
crate::tests::runner::run_test_case(&path, 7, 0).unwrap();
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_items_7_1() {
|
||||
let path = format!("{}/fixtures/items.json", env!("CARGO_MANIFEST_DIR"));
|
||||
crate::tests::runner::run_test_case(&path, 7, 1).unwrap();
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_items_8_0() {
|
||||
let path = format!("{}/fixtures/items.json", env!("CARGO_MANIFEST_DIR"));
|
||||
crate::tests::runner::run_test_case(&path, 8, 0).unwrap();
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_items_8_1() {
|
||||
let path = format!("{}/fixtures/items.json", env!("CARGO_MANIFEST_DIR"));
|
||||
crate::tests::runner::run_test_case(&path, 8, 1).unwrap();
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_items_9_0() {
|
||||
let path = format!("{}/fixtures/items.json", env!("CARGO_MANIFEST_DIR"));
|
||||
crate::tests::runner::run_test_case(&path, 9, 0).unwrap();
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_items_9_1() {
|
||||
let path = format!("{}/fixtures/items.json", env!("CARGO_MANIFEST_DIR"));
|
||||
crate::tests::runner::run_test_case(&path, 9, 1).unwrap();
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_items_9_2() {
|
||||
let path = format!("{}/fixtures/items.json", env!("CARGO_MANIFEST_DIR"));
|
||||
crate::tests::runner::run_test_case(&path, 9, 2).unwrap();
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_traits_0_0() {
|
||||
let path = format!("{}/fixtures/traits.json", env!("CARGO_MANIFEST_DIR"));
|
||||
@ -1859,6 +1727,114 @@ fn test_traits_3_0() {
|
||||
crate::tests::runner::run_test_case(&path, 3, 0).unwrap();
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_array_0_0() {
|
||||
let path = format!("{}/fixtures/array.json", env!("CARGO_MANIFEST_DIR"));
|
||||
crate::tests::runner::run_test_case(&path, 0, 0).unwrap();
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_array_0_1() {
|
||||
let path = format!("{}/fixtures/array.json", env!("CARGO_MANIFEST_DIR"));
|
||||
crate::tests::runner::run_test_case(&path, 0, 1).unwrap();
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_array_0_2() {
|
||||
let path = format!("{}/fixtures/array.json", env!("CARGO_MANIFEST_DIR"));
|
||||
crate::tests::runner::run_test_case(&path, 0, 2).unwrap();
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_array_1_0() {
|
||||
let path = format!("{}/fixtures/array.json", env!("CARGO_MANIFEST_DIR"));
|
||||
crate::tests::runner::run_test_case(&path, 1, 0).unwrap();
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_array_2_0() {
|
||||
let path = format!("{}/fixtures/array.json", env!("CARGO_MANIFEST_DIR"));
|
||||
crate::tests::runner::run_test_case(&path, 2, 0).unwrap();
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_array_2_1() {
|
||||
let path = format!("{}/fixtures/array.json", env!("CARGO_MANIFEST_DIR"));
|
||||
crate::tests::runner::run_test_case(&path, 2, 1).unwrap();
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_array_3_0() {
|
||||
let path = format!("{}/fixtures/array.json", env!("CARGO_MANIFEST_DIR"));
|
||||
crate::tests::runner::run_test_case(&path, 3, 0).unwrap();
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_array_3_1() {
|
||||
let path = format!("{}/fixtures/array.json", env!("CARGO_MANIFEST_DIR"));
|
||||
crate::tests::runner::run_test_case(&path, 3, 1).unwrap();
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_array_3_2() {
|
||||
let path = format!("{}/fixtures/array.json", env!("CARGO_MANIFEST_DIR"));
|
||||
crate::tests::runner::run_test_case(&path, 3, 2).unwrap();
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_array_3_3() {
|
||||
let path = format!("{}/fixtures/array.json", env!("CARGO_MANIFEST_DIR"));
|
||||
crate::tests::runner::run_test_case(&path, 3, 3).unwrap();
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_array_3_4() {
|
||||
let path = format!("{}/fixtures/array.json", env!("CARGO_MANIFEST_DIR"));
|
||||
crate::tests::runner::run_test_case(&path, 3, 4).unwrap();
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_array_4_0() {
|
||||
let path = format!("{}/fixtures/array.json", env!("CARGO_MANIFEST_DIR"));
|
||||
crate::tests::runner::run_test_case(&path, 4, 0).unwrap();
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_array_4_1() {
|
||||
let path = format!("{}/fixtures/array.json", env!("CARGO_MANIFEST_DIR"));
|
||||
crate::tests::runner::run_test_case(&path, 4, 1).unwrap();
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_array_4_2() {
|
||||
let path = format!("{}/fixtures/array.json", env!("CARGO_MANIFEST_DIR"));
|
||||
crate::tests::runner::run_test_case(&path, 4, 2).unwrap();
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_array_5_0() {
|
||||
let path = format!("{}/fixtures/array.json", env!("CARGO_MANIFEST_DIR"));
|
||||
crate::tests::runner::run_test_case(&path, 5, 0).unwrap();
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_array_6_0() {
|
||||
let path = format!("{}/fixtures/array.json", env!("CARGO_MANIFEST_DIR"));
|
||||
crate::tests::runner::run_test_case(&path, 6, 0).unwrap();
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_array_7_0() {
|
||||
let path = format!("{}/fixtures/array.json", env!("CARGO_MANIFEST_DIR"));
|
||||
crate::tests::runner::run_test_case(&path, 7, 0).unwrap();
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_array_7_1() {
|
||||
let path = format!("{}/fixtures/array.json", env!("CARGO_MANIFEST_DIR"));
|
||||
crate::tests::runner::run_test_case(&path, 7, 1).unwrap();
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_enum_0_0() {
|
||||
let path = format!("{}/fixtures/enum.json", env!("CARGO_MANIFEST_DIR"));
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
use std::collections::{HashMap, HashSet};
|
||||
use std::collections::HashSet;
|
||||
|
||||
use serde_json::Value;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user