Ajout du validateur json + correctif factory metadata
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
add_test_simple_schema(Issue::75
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/schema.json
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/instance.json)
|
||||
10
lib/All/json-schema-validator/test/issue-75/TypeId.json
Normal file
10
lib/All/json-schema-validator/test/issue-75/TypeId.json
Normal file
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"data" : {
|
||||
"TypeId" : {
|
||||
"type" : "string",
|
||||
"description" : "POD type of data matching bmf::data::TypeId enum",
|
||||
"enum" : [ "CHAR", "UCHAR", "SHORT", "USHORT", "INT", "UINT",
|
||||
"LONG", "ULONG", "FLOAT", "DOUBLE" ]
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
["INT", "LONG"]
|
||||
6
lib/All/json-schema-validator/test/issue-75/schema.json
Normal file
6
lib/All/json-schema-validator/test/issue-75/schema.json
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"type" : "array",
|
||||
"items": {
|
||||
"$ref": "TypeId.json#/data/TypeId"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user