From 4c46aec60f8af56da07d3f4c61f78940395188f1 Mon Sep 17 00:00:00 2001 From: ochafik Date: Thu, 21 Mar 2024 10:11:26 +0000 Subject: [PATCH] json: nits --- common/json-schema-to-grammar.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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")) {