json: nit: simplify condition
This commit is contained in:
parent
5c2d3fa1ae
commit
f714d7f1a7
1 changed files with 1 additions and 1 deletions
|
@ -493,7 +493,7 @@ private:
|
|||
}
|
||||
prop_names.push_back(prop_name);
|
||||
}
|
||||
if (additional_properties.is_null() || additional_properties.is_object() || (additional_properties.is_boolean() && additional_properties.get<bool>())) {
|
||||
if (!(additional_properties.is_boolean() && !additional_properties.get<bool>())) {
|
||||
std::string sub_name = name + (name.empty() ? "" : "-") + "additional";
|
||||
std::string value_rule =
|
||||
additional_properties.is_object() ? visit(additional_properties, sub_name + "-value")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue