diff --git a/common/json-schema-to-grammar.cpp b/common/json-schema-to-grammar.cpp index 90855b47e..dc6d30ef1 100644 --- a/common/json-schema-to-grammar.cpp +++ b/common/json-schema-to-grammar.cpp @@ -443,7 +443,7 @@ private: rule += " \",\" space ( "; } - std::function&, bool)> get_recursive_refs = [&](const std::vector & ks, bool first_is_optional) { + std::function &, bool)> get_recursive_refs = [&](const std::vector & ks, bool first_is_optional) { std::string res; if (ks.empty()) { return res; @@ -613,7 +613,7 @@ public: std::unordered_set required; std::vector> properties; std::string hybrid_name = name; - std::function add_component = [&](const json & comp_schema, bool is_required) { + std::function add_component = [&](const json & comp_schema, bool is_required) { if (comp_schema.contains("$ref")) { add_component(_refs[comp_schema["$ref"]], is_required); } else if (comp_schema.contains("properties")) {