From f5545bbdf31d30757466a78553a8a388f5d4efd3 Mon Sep 17 00:00:00 2001 From: Thales Macedo Garitezi Date: Tue, 14 Nov 2023 16:08:13 -0300 Subject: [PATCH] fix(schema_types): add missing `secret()` type --- apps/emqx_conf/src/emqx_conf_schema_types.erl | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/apps/emqx_conf/src/emqx_conf_schema_types.erl b/apps/emqx_conf/src/emqx_conf_schema_types.erl index e948142fc..dc3af77b2 100644 --- a/apps/emqx_conf/src/emqx_conf_schema_types.erl +++ b/apps/emqx_conf/src/emqx_conf_schema_types.erl @@ -265,6 +265,12 @@ readable("port_number()") -> Result = try_range("1..65535"), true = is_map(Result), Result; +readable("secret()") -> + #{ + swagger => #{type => string, example => <<"R4ND0M/S∃CЯ∃T"/utf8>>}, + dashboard => #{type => string}, + docgen => #{type => "String", example => <<"R4ND0M/S∃CЯ∃T"/utf8>>} + }; readable(TypeStr0) -> case string:split(TypeStr0, ":") of [ModuleStr, TypeStr] ->