Просмотр исходного кода

fix(schema_types): add missing `secret()` type

Thales Macedo Garitezi 2 лет назад
Родитель
Сommit
f5545bbdf3
1 измененных файлов с 6 добавлено и 0 удалено
  1. 6 0
      apps/emqx_conf/src/emqx_conf_schema_types.erl

+ 6 - 0
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] ->