fix(sys): fix bad swagger example format

This commit is contained in:
JianBo He 2022-04-18 15:43:10 +08:00
parent 59c41c7c6e
commit 7c931e4dc6
2 changed files with 3 additions and 2 deletions

View File

@ -57,7 +57,8 @@
<<"delayed">>, <<"delayed">>,
<<"event_message">>, <<"event_message">>,
<<"prometheus">>, <<"prometheus">>,
<<"telemetry">> <<"telemetry">>,
<<"sys_topics">>
] ++ global_zone_roots() ] ++ global_zone_roots()
). ).

View File

@ -76,7 +76,7 @@ schema("/mqtt/sys_topics") ->
}. }.
schema_sys_topics() -> schema_sys_topics() ->
emqx_dashboard_swagger:schema_with_examples( emqx_dashboard_swagger:schema_with_example(
hoconsc:ref(emqx_schema, "sys_topics"), example_sys_topics()). hoconsc:ref(emqx_schema, "sys_topics"), example_sys_topics()).
example_sys_topics() -> example_sys_topics() ->