significantly simplified the validator and work continues on query

This commit is contained in:
2026-03-03 17:58:31 -05:00
parent 3898c43742
commit e7f20e2cb6
58 changed files with 5446 additions and 5693 deletions

View File

@ -4,7 +4,6 @@
"database": {
"schemas": [
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"prefixItems": [
{
"type": "integer"
@ -12,7 +11,8 @@
{
"type": "string"
}
]
],
"$id": "prefixItems_0_0"
}
]
},
@ -23,7 +23,8 @@
1,
"foo"
],
"valid": true
"valid": true,
"schema_id": "prefixItems_0_0"
},
{
"description": "wrong types",
@ -31,14 +32,16 @@
"foo",
1
],
"valid": false
"valid": false,
"schema_id": "prefixItems_0_0"
},
{
"description": "incomplete array of items",
"data": [
1
],
"valid": true
"valid": true,
"schema_id": "prefixItems_0_0"
},
{
"description": "array with additional items (invalid due to strictness)",
@ -47,12 +50,14 @@
"foo",
true
],
"valid": false
"valid": false,
"schema_id": "prefixItems_0_0"
},
{
"description": "empty array",
"data": [],
"valid": true
"valid": true,
"schema_id": "prefixItems_0_0"
},
{
"description": "JavaScript pseudo-array is valid (invalid due to strict object validation)",
@ -61,7 +66,8 @@
"1": "valid",
"length": 2
},
"valid": false
"valid": false,
"schema_id": "prefixItems_0_0"
}
]
},
@ -70,11 +76,11 @@
"database": {
"schemas": [
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"prefixItems": [
true,
false
]
],
"$id": "prefixItems_1_0"
}
]
},
@ -84,7 +90,8 @@
"data": [
1
],
"valid": true
"valid": true,
"schema_id": "prefixItems_1_0"
},
{
"description": "array with two items is invalid",
@ -92,12 +99,14 @@
1,
"foo"
],
"valid": false
"valid": false,
"schema_id": "prefixItems_1_0"
},
{
"description": "empty array is valid",
"data": [],
"valid": true
"valid": true,
"schema_id": "prefixItems_1_0"
}
]
},
@ -106,13 +115,13 @@
"database": {
"schemas": [
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"prefixItems": [
{
"type": "integer"
}
],
"extensible": true
"extensible": true,
"$id": "prefixItems_2_0"
}
]
},
@ -124,7 +133,8 @@
"foo",
false
],
"valid": true
"valid": true,
"schema_id": "prefixItems_2_0"
}
]
},
@ -133,12 +143,12 @@
"database": {
"schemas": [
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"prefixItems": [
{
"type": "null"
}
]
],
"$id": "prefixItems_3_0"
}
]
},
@ -148,7 +158,8 @@
"data": [
null
],
"valid": true
"valid": true,
"schema_id": "prefixItems_3_0"
}
]
},
@ -157,13 +168,13 @@
"database": {
"schemas": [
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"prefixItems": [
{
"type": "integer"
}
],
"extensible": true
"extensible": true,
"$id": "prefixItems_4_0"
}
]
},
@ -174,7 +185,8 @@
1,
"foo"
],
"valid": true
"valid": true,
"schema_id": "prefixItems_4_0"
}
]
}