summaryrefslogtreecommitdiff
path: root/common/json-schema-to-grammar.h
diff options
context:
space:
mode:
authorOlivier Chafik <ochafik@users.noreply.github.com>2024-03-22 13:07:44 +0000
committerGitHub <noreply@github.com>2024-03-22 15:07:44 +0200
commit72114edf068a9b2f54d3b09e9a198f611be397e8 (patch)
tree0614f917e7ecd6a9c86dbcebd43ce4161dea8997 /common/json-schema-to-grammar.h
parent2f0e81e053b41ca28e73a841e7bdbf9820baaa57 (diff)
json-schema-to-grammar : fix order of props + non-str const/enum (#6232)
* json: ordered json in server/schema converter to respect orig order * json: ws nits * json: support non-string const / enums
Diffstat (limited to 'common/json-schema-to-grammar.h')
-rw-r--r--common/json-schema-to-grammar.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/json-schema-to-grammar.h b/common/json-schema-to-grammar.h
index 2e4c6ade..e1abed30 100644
--- a/common/json-schema-to-grammar.h
+++ b/common/json-schema-to-grammar.h
@@ -1,4 +1,4 @@
#pragma once
#include "json.hpp"
-std::string json_schema_to_grammar(const nlohmann::json& schema);
+std::string json_schema_to_grammar(const nlohmann::ordered_json& schema);