feat: translate map to object in schema.json
This commit is contained in:
parent
82a54b17fa
commit
07933e3638
|
@ -1,6 +1,6 @@
|
||||||
{application, emqx_conf, [
|
{application, emqx_conf, [
|
||||||
{description, "EMQX configuration management"},
|
{description, "EMQX configuration management"},
|
||||||
{vsn, "0.1.2"},
|
{vsn, "0.1.3"},
|
||||||
{registered, []},
|
{registered, []},
|
||||||
{mod, {emqx_conf_app, []}},
|
{mod, {emqx_conf_app, []}},
|
||||||
{applications, [kernel, stdlib]},
|
{applications, [kernel, stdlib]},
|
||||||
|
|
|
@ -399,6 +399,10 @@ typename_to_spec("failure_strategy()", _Mod) ->
|
||||||
#{type => enum, symbols => [force, drop, throw]};
|
#{type => enum, symbols => [force, drop, throw]};
|
||||||
typename_to_spec("initial()", _Mod) ->
|
typename_to_spec("initial()", _Mod) ->
|
||||||
#{type => string};
|
#{type => string};
|
||||||
|
typename_to_spec("map()", _Mod) ->
|
||||||
|
#{type => object};
|
||||||
|
typename_to_spec("#{" ++ _, Mod) ->
|
||||||
|
typename_to_spec("map()", Mod);
|
||||||
typename_to_spec(Name, Mod) ->
|
typename_to_spec(Name, Mod) ->
|
||||||
Spec = range(Name),
|
Spec = range(Name),
|
||||||
Spec1 = remote_module_type(Spec, Name, Mod),
|
Spec1 = remote_module_type(Spec, Name, Mod),
|
||||||
|
|
Loading…
Reference in New Issue