validator refactor progress

This commit is contained in:
2026-03-03 00:13:37 -05:00
parent e14f53e7d9
commit 3898c43742
81 changed files with 6331 additions and 7934 deletions

View File

@ -1,14 +1,18 @@
[
{
"description": "a schema given for prefixItems",
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"prefixItems": [
"database": {
"schemas": [
{
"type": "integer"
},
{
"type": "string"
"$schema": "https://json-schema.org/draft/2020-12/schema",
"prefixItems": [
{
"type": "integer"
},
{
"type": "string"
}
]
}
]
},
@ -63,11 +67,15 @@
},
{
"description": "prefixItems with boolean schemas",
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"prefixItems": [
true,
false
"database": {
"schemas": [
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"prefixItems": [
true,
false
]
}
]
},
"tests": [
@ -95,14 +103,18 @@
},
{
"description": "additional items are allowed by default",
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"prefixItems": [
"database": {
"schemas": [
{
"type": "integer"
"$schema": "https://json-schema.org/draft/2020-12/schema",
"prefixItems": [
{
"type": "integer"
}
],
"extensible": true
}
],
"extensible": true
]
},
"tests": [
{
@ -118,11 +130,15 @@
},
{
"description": "prefixItems with null instance elements",
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"prefixItems": [
"database": {
"schemas": [
{
"type": "null"
"$schema": "https://json-schema.org/draft/2020-12/schema",
"prefixItems": [
{
"type": "null"
}
]
}
]
},
@ -138,14 +154,18 @@
},
{
"description": "extensible: true allows extra items with prefixItems",
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"prefixItems": [
"database": {
"schemas": [
{
"type": "integer"
"$schema": "https://json-schema.org/draft/2020-12/schema",
"prefixItems": [
{
"type": "integer"
}
],
"extensible": true
}
],
"extensible": true
]
},
"tests": [
{