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,6 @@
add_test_simple_schema(Issue::96
${CMAKE_CURRENT_SOURCE_DIR}/schema.json
${CMAKE_CURRENT_SOURCE_DIR}/instance.json)
set_tests_properties(Issue::96
PROPERTIES
WILL_FAIL 1)

View File

@@ -0,0 +1 @@
{"top": {"value": 101}}

View File

@@ -0,0 +1,23 @@
{
"$id": "http://xxx.local/schemas/mySchema.json",
"$schema": "http://json-schema.org/draft-07/schema#",
"definitions": {
"topDef": {
"$id": "#topDef_ref",
"type": "object",
"properties": {
"value": {
"type": "integer",
"maximum": 100
}
}
}
},
"type": "object",
"properties": {
"top": {
"$ref": "#/definitions/topDef"
}
}
}