Ajout du validateur json + correctif factory metadata
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
add_test_simple_schema(Issue::9
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/base.json
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/instance.json)
|
||||
13
lib/All/json-schema-validator/test/issue-9/bar.json
Normal file
13
lib/All/json-schema-validator/test/issue-9/bar.json
Normal file
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"$schema": "http://json-schema.org/draft-04/schema#",
|
||||
"description": "Describes bar",
|
||||
"type": "object",
|
||||
"required": [
|
||||
"name"
|
||||
],
|
||||
"properties": {
|
||||
"name": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
9
lib/All/json-schema-validator/test/issue-9/base.json
Normal file
9
lib/All/json-schema-validator/test/issue-9/base.json
Normal 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" }
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"$schema": "http://json-schema.org/draft-04/schema#",
|
||||
"description": "Describes baz",
|
||||
"$ref": "qux/qux.json"
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"$schema": "http://json-schema.org/draft-04/schema#",
|
||||
"description": "Describes qux",
|
||||
"type": "object",
|
||||
"required": [
|
||||
"name"
|
||||
],
|
||||
"properties": {
|
||||
"name": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
5
lib/All/json-schema-validator/test/issue-9/foo/foo.json
Normal file
5
lib/All/json-schema-validator/test/issue-9/foo/foo.json
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"$schema": "http://json-schema.org/draft-04/schema#",
|
||||
"description": "Describes foo",
|
||||
"$ref": "baz/baz.json"
|
||||
}
|
||||
3
lib/All/json-schema-validator/test/issue-9/instance.json
Normal file
3
lib/All/json-schema-validator/test/issue-9/instance.json
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"name": "name"
|
||||
}
|
||||
Reference in New Issue
Block a user