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,23 +1,27 @@
[
{
"description": "merging: properties accumulate",
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$defs": {
"base": {
"database": {
"schemas": [
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$defs": {
"base": {
"properties": {
"base_prop": {
"type": "string"
}
}
}
},
"$ref": "#/$defs/base",
"properties": {
"base_prop": {
"child_prop": {
"type": "string"
}
}
}
},
"$ref": "#/$defs/base",
"properties": {
"child_prop": {
"type": "string"
}
}
]
},
"tests": [
{
@ -46,28 +50,32 @@
},
{
"description": "merging: required fields accumulate",
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$defs": {
"base": {
"database": {
"schemas": [
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$defs": {
"base": {
"properties": {
"a": {
"type": "string"
}
},
"required": [
"a"
]
}
},
"$ref": "#/$defs/base",
"properties": {
"a": {
"b": {
"type": "string"
}
},
"required": [
"a"
"b"
]
}
},
"$ref": "#/$defs/base",
"properties": {
"b": {
"type": "string"
}
},
"required": [
"b"
]
},
"tests": [
@ -109,36 +117,40 @@
},
{
"description": "merging: dependencies accumulate",
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$defs": {
"base": {
"database": {
"schemas": [
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$defs": {
"base": {
"properties": {
"trigger": {
"type": "string"
},
"base_dep": {
"type": "string"
}
},
"dependencies": {
"trigger": [
"base_dep"
]
}
}
},
"$ref": "#/$defs/base",
"properties": {
"trigger": {
"type": "string"
},
"base_dep": {
"child_dep": {
"type": "string"
}
},
"dependencies": {
"trigger": [
"base_dep"
"child_dep"
]
}
}
},
"$ref": "#/$defs/base",
"properties": {
"child_dep": {
"type": "string"
}
},
"dependencies": {
"trigger": [
"child_dep"
]
}
]
},
"tests": [
{
@ -182,32 +194,36 @@
},
{
"description": "merging: form and display do NOT merge",
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$defs": {
"base": {
"database": {
"schemas": [
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$defs": {
"base": {
"properties": {
"a": {
"type": "string"
},
"b": {
"type": "string"
}
},
"form": [
"a",
"b"
]
}
},
"$ref": "#/$defs/base",
"properties": {
"a": {
"type": "string"
},
"b": {
"c": {
"type": "string"
}
},
"form": [
"a",
"b"
"c"
]
}
},
"$ref": "#/$defs/base",
"properties": {
"c": {
"type": "string"
}
},
"form": [
"c"
]
},
"tests": [