You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"doc": "Each geometry object stores a mesh, a set of transformations applied to it after loading, and a set of selections, which can be used to specify boundary conditions and materials."
14
20
},
15
21
{
16
-
"pointer": "/geometry/mesh/",
22
+
"pointer": "/geometry/*/mesh",
17
23
"type": "file",
18
24
"extensions": [".obj",".msh"],
19
25
"doc": "Path of the mesh file to load."
20
26
},
21
27
{
22
-
"pointer": "/geometry/transformation/",
28
+
"pointer": "/geometry/*/transformation",
23
29
"type": "object",
24
30
"default": null,
25
31
"optional": ["translation","rotation","scale"],
26
32
"doc": "Geometric transformations applied to the geometry after loading it."
log.push_back(log_item("error","Inconsistent specifications: " + new_pointer + " is an optional field with " + std::to_string(defaults.size()) + " default values."));
90
+
log.push_back(log_item("error","Inconsistent specifications: " + new_pointer + " is an optional field with " + std::to_string(defaults.size()) + " default values."));
96
91
returnfalse;
97
92
}
98
93
}
99
94
// if it is not mandatory and not optional, something is wrong
100
95
else
101
96
{
102
-
log.push_back(log_item("warning","Inconsistent specifications: " + new_pointer + " is neither an optional or a mandatory field."));
97
+
log.push_back(log_item("warning","Inconsistent specifications: " + new_pointer + " is neither an optional or a mandatory field."));
103
98
if (strict)
104
99
returnfalse;
105
100
}
106
101
107
102
// now let's make sure it can be validated
108
103
if (!verify_json(new_pointer, i.value(), rules))
109
104
returnfalse;
110
-
111
105
}
112
106
107
+
// In case of a list
108
+
// All the elements in the list must pass the test
109
+
if (input.is_array())
110
+
{
111
+
for (auto i : input)
112
+
if (!verify_json((pointer == "/" ? "" : pointer) + "/*", i, rules))
0 commit comments