added realm to jspg processing
This commit is contained in:
@ -2,11 +2,16 @@
|
||||
{
|
||||
"description": "const validation",
|
||||
"database": {
|
||||
"schemas": {
|
||||
"const_0_0": {
|
||||
"const": 2
|
||||
"types": [
|
||||
{
|
||||
"name": "const_0_0",
|
||||
"schemas": {
|
||||
"const_0_0": {
|
||||
"const": 2
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"tests": [
|
||||
{
|
||||
@ -41,18 +46,23 @@
|
||||
{
|
||||
"description": "const with object",
|
||||
"database": {
|
||||
"schemas": {
|
||||
"const_1_0": {
|
||||
"const": {
|
||||
"foo": "bar",
|
||||
"baz": "bax"
|
||||
},
|
||||
"properties": {
|
||||
"foo": {},
|
||||
"baz": {}
|
||||
"types": [
|
||||
{
|
||||
"name": "const_1_0",
|
||||
"schemas": {
|
||||
"const_1_0": {
|
||||
"const": {
|
||||
"foo": "bar",
|
||||
"baz": "bax"
|
||||
},
|
||||
"properties": {
|
||||
"foo": {},
|
||||
"baz": {}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"tests": [
|
||||
{
|
||||
@ -107,15 +117,20 @@
|
||||
{
|
||||
"description": "const with array",
|
||||
"database": {
|
||||
"schemas": {
|
||||
"const_2_0": {
|
||||
"const": [
|
||||
{
|
||||
"foo": "bar"
|
||||
"types": [
|
||||
{
|
||||
"name": "const_2_0",
|
||||
"schemas": {
|
||||
"const_2_0": {
|
||||
"const": [
|
||||
{
|
||||
"foo": "bar"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"tests": [
|
||||
{
|
||||
@ -160,11 +175,16 @@
|
||||
{
|
||||
"description": "const with null",
|
||||
"database": {
|
||||
"schemas": {
|
||||
"const_3_0": {
|
||||
"const": null
|
||||
"types": [
|
||||
{
|
||||
"name": "const_3_0",
|
||||
"schemas": {
|
||||
"const_3_0": {
|
||||
"const": null
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"tests": [
|
||||
{
|
||||
@ -190,11 +210,16 @@
|
||||
{
|
||||
"description": "const with false does not match 0",
|
||||
"database": {
|
||||
"schemas": {
|
||||
"const_4_0": {
|
||||
"const": false
|
||||
"types": [
|
||||
{
|
||||
"name": "const_4_0",
|
||||
"schemas": {
|
||||
"const_4_0": {
|
||||
"const": false
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"tests": [
|
||||
{
|
||||
@ -229,11 +254,16 @@
|
||||
{
|
||||
"description": "const with true does not match 1",
|
||||
"database": {
|
||||
"schemas": {
|
||||
"const_5_0": {
|
||||
"const": true
|
||||
"types": [
|
||||
{
|
||||
"name": "const_5_0",
|
||||
"schemas": {
|
||||
"const_5_0": {
|
||||
"const": true
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"tests": [
|
||||
{
|
||||
@ -268,13 +298,18 @@
|
||||
{
|
||||
"description": "const with [false] does not match [0]",
|
||||
"database": {
|
||||
"schemas": {
|
||||
"const_6_0": {
|
||||
"const": [
|
||||
false
|
||||
]
|
||||
"types": [
|
||||
{
|
||||
"name": "const_6_0",
|
||||
"schemas": {
|
||||
"const_6_0": {
|
||||
"const": [
|
||||
false
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"tests": [
|
||||
{
|
||||
@ -315,13 +350,18 @@
|
||||
{
|
||||
"description": "const with [true] does not match [1]",
|
||||
"database": {
|
||||
"schemas": {
|
||||
"const_7_0": {
|
||||
"const": [
|
||||
true
|
||||
]
|
||||
"types": [
|
||||
{
|
||||
"name": "const_7_0",
|
||||
"schemas": {
|
||||
"const_7_0": {
|
||||
"const": [
|
||||
true
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"tests": [
|
||||
{
|
||||
@ -362,13 +402,18 @@
|
||||
{
|
||||
"description": "const with {\"a\": false} does not match {\"a\": 0}",
|
||||
"database": {
|
||||
"schemas": {
|
||||
"const_8_0": {
|
||||
"const": {
|
||||
"a": false
|
||||
"types": [
|
||||
{
|
||||
"name": "const_8_0",
|
||||
"schemas": {
|
||||
"const_8_0": {
|
||||
"const": {
|
||||
"a": false
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"tests": [
|
||||
{
|
||||
@ -409,13 +454,18 @@
|
||||
{
|
||||
"description": "const with {\"a\": true} does not match {\"a\": 1}",
|
||||
"database": {
|
||||
"schemas": {
|
||||
"const_9_0": {
|
||||
"const": {
|
||||
"a": true
|
||||
"types": [
|
||||
{
|
||||
"name": "const_9_0",
|
||||
"schemas": {
|
||||
"const_9_0": {
|
||||
"const": {
|
||||
"a": true
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"tests": [
|
||||
{
|
||||
@ -456,11 +506,16 @@
|
||||
{
|
||||
"description": "const with 0 does not match other zero-like types",
|
||||
"database": {
|
||||
"schemas": {
|
||||
"const_10_0": {
|
||||
"const": 0
|
||||
"types": [
|
||||
{
|
||||
"name": "const_10_0",
|
||||
"schemas": {
|
||||
"const_10_0": {
|
||||
"const": 0
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"tests": [
|
||||
{
|
||||
@ -522,11 +577,16 @@
|
||||
{
|
||||
"description": "const with 1 does not match true",
|
||||
"database": {
|
||||
"schemas": {
|
||||
"const_11_0": {
|
||||
"const": 1
|
||||
"types": [
|
||||
{
|
||||
"name": "const_11_0",
|
||||
"schemas": {
|
||||
"const_11_0": {
|
||||
"const": 1
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"tests": [
|
||||
{
|
||||
@ -561,11 +621,16 @@
|
||||
{
|
||||
"description": "const with -2.0 matches integer and float types",
|
||||
"database": {
|
||||
"schemas": {
|
||||
"const_12_0": {
|
||||
"const": -2
|
||||
"types": [
|
||||
{
|
||||
"name": "const_12_0",
|
||||
"schemas": {
|
||||
"const_12_0": {
|
||||
"const": -2
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"tests": [
|
||||
{
|
||||
@ -618,11 +683,16 @@
|
||||
{
|
||||
"description": "float and integers are equal up to 64-bit representation limits",
|
||||
"database": {
|
||||
"schemas": {
|
||||
"const_13_0": {
|
||||
"const": 9007199254740992
|
||||
"types": [
|
||||
{
|
||||
"name": "const_13_0",
|
||||
"schemas": {
|
||||
"const_13_0": {
|
||||
"const": 9007199254740992
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"tests": [
|
||||
{
|
||||
@ -666,11 +736,16 @@
|
||||
{
|
||||
"description": "nul characters in strings",
|
||||
"database": {
|
||||
"schemas": {
|
||||
"const_14_0": {
|
||||
"const": "hello\u0000there"
|
||||
"types": [
|
||||
{
|
||||
"name": "const_14_0",
|
||||
"schemas": {
|
||||
"const_14_0": {
|
||||
"const": "hello\u0000there"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"tests": [
|
||||
{
|
||||
@ -696,17 +771,22 @@
|
||||
{
|
||||
"description": "characters with the same visual representation but different codepoint",
|
||||
"database": {
|
||||
"schemas": {
|
||||
"const_15_0": {
|
||||
"const": "μ",
|
||||
"$comment": "U+03BC"
|
||||
"types": [
|
||||
{
|
||||
"name": "const_15_0",
|
||||
"schemas": {
|
||||
"const_15_0": {
|
||||
"const": "\u03bc",
|
||||
"$comment": "U+03BC"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"tests": [
|
||||
{
|
||||
"description": "character uses the same codepoint",
|
||||
"data": "μ",
|
||||
"data": "\u03bc",
|
||||
"comment": "U+03BC",
|
||||
"schema_id": "const_15_0",
|
||||
"action": "validate",
|
||||
@ -716,7 +796,7 @@
|
||||
},
|
||||
{
|
||||
"description": "character looks the same but uses a different codepoint",
|
||||
"data": "µ",
|
||||
"data": "\u00b5",
|
||||
"comment": "U+00B5",
|
||||
"schema_id": "const_15_0",
|
||||
"action": "validate",
|
||||
@ -729,17 +809,22 @@
|
||||
{
|
||||
"description": "characters with the same visual representation, but different number of codepoints",
|
||||
"database": {
|
||||
"schemas": {
|
||||
"const_16_0": {
|
||||
"const": "ä",
|
||||
"$comment": "U+00E4"
|
||||
"types": [
|
||||
{
|
||||
"name": "const_16_0",
|
||||
"schemas": {
|
||||
"const_16_0": {
|
||||
"const": "\u00e4",
|
||||
"$comment": "U+00E4"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"tests": [
|
||||
{
|
||||
"description": "character uses the same codepoint",
|
||||
"data": "ä",
|
||||
"data": "\u00e4",
|
||||
"comment": "U+00E4",
|
||||
"schema_id": "const_16_0",
|
||||
"action": "validate",
|
||||
@ -749,7 +834,7 @@
|
||||
},
|
||||
{
|
||||
"description": "character looks the same but uses combining marks",
|
||||
"data": "ä",
|
||||
"data": "a\u0308",
|
||||
"comment": "a, U+0308",
|
||||
"schema_id": "const_16_0",
|
||||
"action": "validate",
|
||||
@ -762,14 +847,19 @@
|
||||
{
|
||||
"description": "extensible: true allows extra properties in const object match",
|
||||
"database": {
|
||||
"schemas": {
|
||||
"const_17_0": {
|
||||
"const": {
|
||||
"a": 1
|
||||
},
|
||||
"extensible": true
|
||||
"types": [
|
||||
{
|
||||
"name": "const_17_0",
|
||||
"schemas": {
|
||||
"const_17_0": {
|
||||
"const": {
|
||||
"a": 1
|
||||
},
|
||||
"extensible": true
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"tests": [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user