From ab1f3b6b2f1ce446aa59dc4463ead79c6c88e382 Mon Sep 17 00:00:00 2001 From: "Zaiming (Stone) Shi" Date: Mon, 13 Nov 2023 21:55:03 +0100 Subject: [PATCH] fix(emqx_conf_schema_types): address review comments --- apps/emqx_conf/src/emqx_conf_schema_types.erl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/apps/emqx_conf/src/emqx_conf_schema_types.erl b/apps/emqx_conf/src/emqx_conf_schema_types.erl index 3c097b1e2..e948142fc 100644 --- a/apps/emqx_conf/src/emqx_conf_schema_types.erl +++ b/apps/emqx_conf/src/emqx_conf_schema_types.erl @@ -258,7 +258,7 @@ readable("service_account_json()") -> readable("json_binary()") -> #{ swagger => #{type => string, example => <<"{\"a\": [1,true]}">>}, - dashboard => #{type => object}, + dashboard => #{type => string}, docgen => #{type => "String", example => <<"{\"a\": [1,true]}">>} }; readable("port_number()") -> @@ -330,6 +330,5 @@ try_range(Name) -> add_integer_prop(Schema, Key, Value) -> case string:to_integer(Value) of {error, no_integer} -> Schema; - {Int, []} when Key =:= minimum -> Schema#{Key => Int}; {Int, []} -> Schema#{Key => Int} end.