Ajout du validateur json + correctif factory metadata
This commit is contained in:
13
lib/All/json-schema-validator/test/issue-143/CMakeLists.txt
Normal file
13
lib/All/json-schema-validator/test/issue-143/CMakeLists.txt
Normal file
@@ -0,0 +1,13 @@
|
||||
add_test_simple_schema(Issue::143-1
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/schema.json
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/instance-fail-1.json)
|
||||
add_test_simple_schema(Issue::143-a
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/schema.json
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/instance-fail-a.json)
|
||||
add_test_simple_schema(Issue::143-ok
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/schema.json
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/instance.json)
|
||||
|
||||
set_tests_properties(Issue::143-1 Issue::143-a
|
||||
PROPERTIES
|
||||
WILL_FAIL 1)
|
||||
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"ref1": "a",
|
||||
"refa": "a"
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"ref1": 12,
|
||||
"refa": 12
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"ref1": 12,
|
||||
"refa": "a"
|
||||
}
|
||||
21
lib/All/json-schema-validator/test/issue-143/schema.json
Normal file
21
lib/All/json-schema-validator/test/issue-143/schema.json
Normal file
@@ -0,0 +1,21 @@
|
||||
{
|
||||
"type": "object",
|
||||
|
||||
"properties": {
|
||||
"unknown_keyword_storage": {
|
||||
"1": {
|
||||
"type": "number"
|
||||
},
|
||||
"a": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"ref1": {
|
||||
"$ref": "#/properties/unknown_keyword_storage/1"
|
||||
},
|
||||
"refa": {
|
||||
"$ref": "#/properties/unknown_keyword_storage/a"
|
||||
}
|
||||
},
|
||||
"additionalProperties": false
|
||||
}
|
||||
Reference in New Issue
Block a user