chore: bump dashboard schema version to 0.2.0

This commit is contained in:
zmstone 2024-04-16 16:58:45 +02:00
parent 4d38a8fd44
commit 2bd72aab44
1 changed files with 18 additions and 5 deletions

View File

@ -44,6 +44,8 @@
]) ])
). ).
-define(SCHEMA_VERSION, <<"0.2.0">>).
%%-------------------------------------------------------------------- %%--------------------------------------------------------------------
%% minirest API and schema %% minirest API and schema
%%-------------------------------------------------------------------- %%--------------------------------------------------------------------
@ -97,20 +99,31 @@ gen_schema(connectors) ->
connectors_schema_json(). connectors_schema_json().
hotconf_schema_json() -> hotconf_schema_json() ->
SchemaInfo = #{title => <<"EMQX Hot Conf API Schema">>, version => <<"0.1.0">>}, SchemaInfo = #{
title => <<"EMQX Hot Conf Schema">>,
version => ?SCHEMA_VERSION
},
gen_api_schema_json_iodata(emqx_mgmt_api_configs, SchemaInfo). gen_api_schema_json_iodata(emqx_mgmt_api_configs, SchemaInfo).
bridge_schema_json() -> bridge_schema_json() ->
SchemaInfo = #{title => <<"EMQX Data Bridge API Schema">>, version => <<"0.1.0">>}, SchemaInfo = #{
title => <<"EMQX Data Bridge Schema">>,
version => ?SCHEMA_VERSION
},
gen_api_schema_json_iodata(emqx_bridge_api, SchemaInfo). gen_api_schema_json_iodata(emqx_bridge_api, SchemaInfo).
actions_schema_json() -> actions_schema_json() ->
SchemaInfo = #{title => <<"EMQX Data Actions API Schema">>, version => <<"0.1.0">>}, SchemaInfo = #{
%% Note: this will be moved to `emqx_actions' application in the future. title => <<"EMQX Data Actions and Sources Schema">>,
version => ?SCHEMA_VERSION
},
gen_api_schema_json_iodata(emqx_bridge_v2_api, SchemaInfo). gen_api_schema_json_iodata(emqx_bridge_v2_api, SchemaInfo).
connectors_schema_json() -> connectors_schema_json() ->
SchemaInfo = #{title => <<"EMQX Connectors Schema">>, version => <<"0.1.0">>}, SchemaInfo = #{
title => <<"EMQX Connectors Schema">>,
version => ?SCHEMA_VERSION
},
gen_api_schema_json_iodata(emqx_connector_api, SchemaInfo). gen_api_schema_json_iodata(emqx_connector_api, SchemaInfo).
gen_api_schema_json_iodata(SchemaMod, SchemaInfo) -> gen_api_schema_json_iodata(SchemaMod, SchemaInfo) ->