Ajout du validateur json + correctif factory metadata

This commit is contained in:
Tom Ray
2026-04-02 00:07:49 +02:00
parent 48348936a8
commit 55a3c05cbe
206 changed files with 17070 additions and 320 deletions

View File

@@ -0,0 +1,3 @@
add_test_simple_schema(Issue::9
${CMAKE_CURRENT_SOURCE_DIR}/base.json
${CMAKE_CURRENT_SOURCE_DIR}/instance.json)

View File

@@ -0,0 +1,13 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"description": "Describes bar",
"type": "object",
"required": [
"name"
],
"properties": {
"name": {
"type": "string"
}
}
}

View File

@@ -0,0 +1,9 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"description": "Describes foo",
"type": "object",
"allOf": [
{ "$ref": "bar.json" },
{ "$ref": "foo/foo.json" }
]
}

View File

@@ -0,0 +1,5 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"description": "Describes baz",
"$ref": "qux/qux.json"
}

View File

@@ -0,0 +1,13 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"description": "Describes qux",
"type": "object",
"required": [
"name"
],
"properties": {
"name": {
"type": "string"
}
}
}

View File

@@ -0,0 +1,5 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"description": "Describes foo",
"$ref": "baz/baz.json"
}

View File

@@ -0,0 +1,3 @@
{
"name": "name"
}