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,7 @@
"database": {
"schemas": [
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "schema1",
"properties": {
"foo": {
"type": "string"
@ -26,7 +26,8 @@
"foo": "value",
"bar": 123
},
"valid": true
"valid": true,
"schema_id": "schema1"
},
{
"description": "additional property matching schema is valid",
@ -35,7 +36,8 @@
"is_active": true,
"hidden": false
},
"valid": true
"valid": true,
"schema_id": "schema1"
},
{
"description": "additional property not matching schema is invalid",
@ -43,7 +45,8 @@
"foo": "value",
"is_active": 1
},
"valid": false
"valid": false,
"schema_id": "schema1"
}
]
},
@ -52,7 +55,6 @@
"database": {
"schemas": [
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"foo": {
"type": "string"
@ -61,7 +63,8 @@
"extensible": true,
"additionalProperties": {
"type": "integer"
}
},
"$id": "additionalProperties_1_0"
}
]
},
@ -73,7 +76,8 @@
"count": 5,
"age": 42
},
"valid": true
"valid": true,
"schema_id": "additionalProperties_1_0"
},
{
"description": "additional property not matching schema is invalid despite extensible: true",
@ -81,7 +85,8 @@
"foo": "hello",
"count": "five"
},
"valid": false
"valid": false,
"schema_id": "additionalProperties_1_0"
}
]
},
@ -90,7 +95,7 @@
"database": {
"schemas": [
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "schema3",
"properties": {
"type": {
"type": "string"
@ -118,7 +123,8 @@
"field3"
]
},
"valid": true
"valid": true,
"schema_id": "schema3"
},
{
"description": "invalid array of integers",
@ -129,7 +135,8 @@
2
]
},
"valid": false
"valid": false,
"schema_id": "schema3"
},
{
"description": "invalid non-array type",
@ -137,7 +144,8 @@
"type": "my_type",
"group_a": "field1"
},
"valid": false
"valid": false,
"schema_id": "schema3"
}
]
}