added realm to jspg processing
This commit is contained in:
@ -2,13 +2,18 @@
|
||||
{
|
||||
"description": "a schema given for items",
|
||||
"database": {
|
||||
"schemas": {
|
||||
"items_0_0": {
|
||||
"items": {
|
||||
"type": "integer"
|
||||
"types": [
|
||||
{
|
||||
"name": "items_0_0",
|
||||
"schemas": {
|
||||
"items_0_0": {
|
||||
"items": {
|
||||
"type": "integer"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"tests": [
|
||||
{
|
||||
@ -64,11 +69,16 @@
|
||||
{
|
||||
"description": "items with boolean schema (true)",
|
||||
"database": {
|
||||
"schemas": {
|
||||
"items_1_0": {
|
||||
"items": true
|
||||
"types": [
|
||||
{
|
||||
"name": "items_1_0",
|
||||
"schemas": {
|
||||
"items_1_0": {
|
||||
"items": true
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"tests": [
|
||||
{
|
||||
@ -98,11 +108,16 @@
|
||||
{
|
||||
"description": "items with boolean schema (false)",
|
||||
"database": {
|
||||
"schemas": {
|
||||
"items_2_0": {
|
||||
"items": false
|
||||
"types": [
|
||||
{
|
||||
"name": "items_2_0",
|
||||
"schemas": {
|
||||
"items_2_0": {
|
||||
"items": false
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"tests": [
|
||||
{
|
||||
@ -132,41 +147,56 @@
|
||||
{
|
||||
"description": "items and subitems",
|
||||
"database": {
|
||||
"schemas": {
|
||||
"items_3_0": {
|
||||
"type": "array",
|
||||
"items": false,
|
||||
"prefixItems": [
|
||||
{
|
||||
"type": "item"
|
||||
},
|
||||
{
|
||||
"type": "item"
|
||||
},
|
||||
{
|
||||
"type": "item"
|
||||
"types": [
|
||||
{
|
||||
"name": "items_3_0",
|
||||
"schemas": {
|
||||
"items_3_0": {
|
||||
"type": "array",
|
||||
"items": false,
|
||||
"prefixItems": [
|
||||
{
|
||||
"type": "item"
|
||||
},
|
||||
{
|
||||
"type": "item"
|
||||
},
|
||||
{
|
||||
"type": "item"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"item": {
|
||||
"type": "array",
|
||||
"items": false,
|
||||
"prefixItems": [
|
||||
{
|
||||
"type": "sub-item"
|
||||
},
|
||||
{
|
||||
"type": "sub-item"
|
||||
{
|
||||
"name": "item",
|
||||
"schemas": {
|
||||
"item": {
|
||||
"type": "array",
|
||||
"items": false,
|
||||
"prefixItems": [
|
||||
{
|
||||
"type": "sub-item"
|
||||
},
|
||||
{
|
||||
"type": "sub-item"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"sub-item": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"foo"
|
||||
]
|
||||
{
|
||||
"name": "sub-item",
|
||||
"schemas": {
|
||||
"sub-item": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"foo"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"tests": [
|
||||
{
|
||||
@ -368,23 +398,28 @@
|
||||
{
|
||||
"description": "nested items",
|
||||
"database": {
|
||||
"schemas": {
|
||||
"items_4_0": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"types": [
|
||||
{
|
||||
"name": "items_4_0",
|
||||
"schemas": {
|
||||
"items_4_0": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "number"
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "number"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"tests": [
|
||||
{
|
||||
@ -500,16 +535,21 @@
|
||||
{
|
||||
"description": "prefixItems with no additional items allowed",
|
||||
"database": {
|
||||
"schemas": {
|
||||
"items_5_0": {
|
||||
"prefixItems": [
|
||||
{},
|
||||
{},
|
||||
{}
|
||||
],
|
||||
"items": false
|
||||
"types": [
|
||||
{
|
||||
"name": "items_5_0",
|
||||
"schemas": {
|
||||
"items_5_0": {
|
||||
"prefixItems": [
|
||||
{},
|
||||
{},
|
||||
{}
|
||||
],
|
||||
"items": false
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"tests": [
|
||||
{
|
||||
@ -576,22 +616,27 @@
|
||||
{
|
||||
"description": "items does not look in applicators, valid case",
|
||||
"database": {
|
||||
"schemas": {
|
||||
"items_6_0": {
|
||||
"allOf": [
|
||||
{
|
||||
"prefixItems": [
|
||||
"types": [
|
||||
{
|
||||
"name": "items_6_0",
|
||||
"schemas": {
|
||||
"items_6_0": {
|
||||
"allOf": [
|
||||
{
|
||||
"minimum": 3
|
||||
"prefixItems": [
|
||||
{
|
||||
"minimum": 3
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
],
|
||||
"items": {
|
||||
"minimum": 5
|
||||
}
|
||||
}
|
||||
],
|
||||
"items": {
|
||||
"minimum": 5
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"tests": [
|
||||
{
|
||||
@ -623,18 +668,23 @@
|
||||
{
|
||||
"description": "prefixItems validation adjusts the starting index for items",
|
||||
"database": {
|
||||
"schemas": {
|
||||
"items_7_0": {
|
||||
"prefixItems": [
|
||||
{
|
||||
"type": "string"
|
||||
"types": [
|
||||
{
|
||||
"name": "items_7_0",
|
||||
"schemas": {
|
||||
"items_7_0": {
|
||||
"prefixItems": [
|
||||
{
|
||||
"type": "string"
|
||||
}
|
||||
],
|
||||
"items": {
|
||||
"type": "integer"
|
||||
}
|
||||
}
|
||||
],
|
||||
"items": {
|
||||
"type": "integer"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"tests": [
|
||||
{
|
||||
@ -667,14 +717,19 @@
|
||||
{
|
||||
"description": "items with heterogeneous array",
|
||||
"database": {
|
||||
"schemas": {
|
||||
"items_8_0": {
|
||||
"prefixItems": [
|
||||
{}
|
||||
],
|
||||
"items": false
|
||||
"types": [
|
||||
{
|
||||
"name": "items_8_0",
|
||||
"schemas": {
|
||||
"items_8_0": {
|
||||
"prefixItems": [
|
||||
{}
|
||||
],
|
||||
"items": false
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"tests": [
|
||||
{
|
||||
@ -706,13 +761,18 @@
|
||||
{
|
||||
"description": "items with null instance elements",
|
||||
"database": {
|
||||
"schemas": {
|
||||
"items_9_0": {
|
||||
"items": {
|
||||
"type": "null"
|
||||
"types": [
|
||||
{
|
||||
"name": "items_9_0",
|
||||
"schemas": {
|
||||
"items_9_0": {
|
||||
"items": {
|
||||
"type": "null"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"tests": [
|
||||
{
|
||||
@ -731,12 +791,17 @@
|
||||
{
|
||||
"description": "extensible: true allows extra items (when items is false)",
|
||||
"database": {
|
||||
"schemas": {
|
||||
"items_10_0": {
|
||||
"items": false,
|
||||
"extensible": true
|
||||
"types": [
|
||||
{
|
||||
"name": "items_10_0",
|
||||
"schemas": {
|
||||
"items_10_0": {
|
||||
"items": false,
|
||||
"extensible": true
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"tests": [
|
||||
{
|
||||
@ -755,14 +820,19 @@
|
||||
{
|
||||
"description": "extensible: true allows extra properties for items",
|
||||
"database": {
|
||||
"schemas": {
|
||||
"items_11_0": {
|
||||
"items": {
|
||||
"minimum": 5
|
||||
},
|
||||
"extensible": true
|
||||
"types": [
|
||||
{
|
||||
"name": "items_11_0",
|
||||
"schemas": {
|
||||
"items_11_0": {
|
||||
"items": {
|
||||
"minimum": 5
|
||||
},
|
||||
"extensible": true
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"tests": [
|
||||
{
|
||||
@ -793,12 +863,17 @@
|
||||
{
|
||||
"description": "array: simple extensible array",
|
||||
"database": {
|
||||
"schemas": {
|
||||
"items_12_0": {
|
||||
"type": "array",
|
||||
"extensible": true
|
||||
"types": [
|
||||
{
|
||||
"name": "items_12_0",
|
||||
"schemas": {
|
||||
"items_12_0": {
|
||||
"type": "array",
|
||||
"extensible": true
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"tests": [
|
||||
{
|
||||
@ -827,12 +902,17 @@
|
||||
{
|
||||
"description": "array: strict array",
|
||||
"database": {
|
||||
"schemas": {
|
||||
"items_13_0": {
|
||||
"type": "array",
|
||||
"extensible": false
|
||||
"types": [
|
||||
{
|
||||
"name": "items_13_0",
|
||||
"schemas": {
|
||||
"items_13_0": {
|
||||
"type": "array",
|
||||
"extensible": false
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"tests": [
|
||||
{
|
||||
@ -860,14 +940,19 @@
|
||||
{
|
||||
"description": "array: items extensible",
|
||||
"database": {
|
||||
"schemas": {
|
||||
"items_14_0": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"extensible": true
|
||||
"types": [
|
||||
{
|
||||
"name": "items_14_0",
|
||||
"schemas": {
|
||||
"items_14_0": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"extensible": true
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"tests": [
|
||||
{
|
||||
@ -897,15 +982,20 @@
|
||||
{
|
||||
"description": "array: items strict",
|
||||
"database": {
|
||||
"schemas": {
|
||||
"items_15_0": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"extensible": false
|
||||
"types": [
|
||||
{
|
||||
"name": "items_15_0",
|
||||
"schemas": {
|
||||
"items_15_0": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"extensible": false
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"tests": [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user