From 38e767b8085f6cef4849929847cfbdccd997506e Mon Sep 17 00:00:00 2001 From: "Zaiming (Stone) Shi" Date: Fri, 9 Jun 2023 09:14:55 +0200 Subject: [PATCH] fix(schema): map new duration types to dashboard's type name --- apps/emqx_conf/src/emqx_conf.erl | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/apps/emqx_conf/src/emqx_conf.erl b/apps/emqx_conf/src/emqx_conf.erl index cc56d5e46..d2e45581d 100644 --- a/apps/emqx_conf/src/emqx_conf.erl +++ b/apps/emqx_conf/src/emqx_conf.erl @@ -320,10 +320,16 @@ typename_to_spec("atom()", _Mod) -> #{type => string}; typename_to_spec("duration()", _Mod) -> #{type => duration}; +typename_to_spec("timeout_duration()", _Mod) -> + #{type => duration}; typename_to_spec("duration_s()", _Mod) -> #{type => duration}; +typename_to_spec("timeout_duration_s()", _Mod) -> + #{type => duration}; typename_to_spec("duration_ms()", _Mod) -> #{type => duration}; +typename_to_spec("timeout_duration_ms()", _Mod) -> + #{type => duration}; typename_to_spec("percent()", _Mod) -> #{type => percent}; typename_to_spec("file()", _Mod) ->