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,8 +4,8 @@
"database": {
"schemas": [
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"maxLength": 2
"maxLength": 2,
"$id": "maxLength_0_0"
}
]
},
@ -13,27 +13,32 @@
{
"description": "shorter is valid",
"data": "f",
"valid": true
"valid": true,
"schema_id": "maxLength_0_0"
},
{
"description": "exact length is valid",
"data": "fo",
"valid": true
"valid": true,
"schema_id": "maxLength_0_0"
},
{
"description": "too long is invalid",
"data": "foo",
"valid": false
"valid": false,
"schema_id": "maxLength_0_0"
},
{
"description": "ignores non-strings",
"data": 100,
"valid": true
"valid": true,
"schema_id": "maxLength_0_0"
},
{
"description": "two graphemes is long enough",
"data": "\uD83D\uDCA9\uD83D\uDCA9",
"valid": true
"data": "💩💩",
"valid": true,
"schema_id": "maxLength_0_0"
}
]
},
@ -42,8 +47,8 @@
"database": {
"schemas": [
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"maxLength": 2.0
"maxLength": 2,
"$id": "maxLength_1_0"
}
]
},
@ -51,12 +56,14 @@
{
"description": "shorter is valid",
"data": "f",
"valid": true
"valid": true,
"schema_id": "maxLength_1_0"
},
{
"description": "too long is invalid",
"data": "foo",
"valid": false
"valid": false,
"schema_id": "maxLength_1_0"
}
]
}