فهرست منبع

feat: translate map to object in schema.json

Zhongwen Deng 3 سال پیش
والد
کامیت
07933e3638
2فایلهای تغییر یافته به همراه5 افزوده شده و 1 حذف شده
  1. 1 1
      apps/emqx_conf/src/emqx_conf.app.src
  2. 4 0
      apps/emqx_conf/src/emqx_conf.erl

+ 1 - 1
apps/emqx_conf/src/emqx_conf.app.src

@@ -1,6 +1,6 @@
 {application, emqx_conf, [
     {description, "EMQX configuration management"},
-    {vsn, "0.1.2"},
+    {vsn, "0.1.3"},
     {registered, []},
     {mod, {emqx_conf_app, []}},
     {applications, [kernel, stdlib]},

+ 4 - 0
apps/emqx_conf/src/emqx_conf.erl

@@ -399,6 +399,10 @@ typename_to_spec("failure_strategy()", _Mod) ->
     #{type => enum, symbols => [force, drop, throw]};
 typename_to_spec("initial()", _Mod) ->
     #{type => string};
+typename_to_spec("map()", _Mod) ->
+    #{type => object};
+typename_to_spec("#{" ++ _, Mod) ->
+    typename_to_spec("map()", Mod);
 typename_to_spec(Name, Mod) ->
     Spec = range(Name),
     Spec1 = remote_module_type(Spec, Name, Mod),