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,9 +1,13 @@
[
{
"description": "integer type matches integers",
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "integer"
"database": {
"schemas": [
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "integer"
}
]
},
"tests": [
{
@ -55,9 +59,13 @@
},
{
"description": "number type matches numbers",
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "number"
"database": {
"schemas": [
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "number"
}
]
},
"tests": [
{
@ -109,9 +117,13 @@
},
{
"description": "string type matches strings",
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "string"
"database": {
"schemas": [
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "string"
}
]
},
"tests": [
{
@ -163,9 +175,13 @@
},
{
"description": "object type matches objects",
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object"
"database": {
"schemas": [
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object"
}
]
},
"tests": [
{
@ -207,9 +223,13 @@
},
{
"description": "array type matches arrays",
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "array"
"database": {
"schemas": [
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "array"
}
]
},
"tests": [
{
@ -251,9 +271,13 @@
},
{
"description": "boolean type matches booleans",
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "boolean"
"database": {
"schemas": [
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "boolean"
}
]
},
"tests": [
{
@ -310,9 +334,13 @@
},
{
"description": "null type matches only the null object",
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "null"
"database": {
"schemas": [
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "null"
}
]
},
"tests": [
{
@ -369,11 +397,15 @@
},
{
"description": "multiple types can be specified in an array",
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": [
"integer",
"string"
"database": {
"schemas": [
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": [
"integer",
"string"
]
}
]
},
"tests": [
@ -416,10 +448,14 @@
},
{
"description": "type as array with one item",
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": [
"string"
"database": {
"schemas": [
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": [
"string"
]
}
]
},
"tests": [
@ -437,13 +473,17 @@
},
{
"description": "type: array or object",
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": [
"array",
"object"
],
"items": {}
"database": {
"schemas": [
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": [
"array",
"object"
],
"items": {}
}
]
},
"tests": [
{
@ -479,14 +519,18 @@
},
{
"description": "type: array, object or null",
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": [
"array",
"object",
"null"
],
"items": {}
"database": {
"schemas": [
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": [
"array",
"object",
"null"
],
"items": {}
}
]
},
"tests": [
{
@ -522,10 +566,14 @@
},
{
"description": "extensible: true allows extra properties",
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"extensible": true
"database": {
"schemas": [
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"extensible": true
}
]
},
"tests": [
{