fix(redis): remove `required` meta from schema

Since there's a default value, this field shouldn't be marked as
required.
This commit is contained in:
Thales Macedo Garitezi 2023-03-29 16:41:42 -03:00
parent 9b35aeec6d
commit 806ee716ee
2 changed files with 1 additions and 2 deletions

View File

@ -1,7 +1,7 @@
%% -*- mode: erlang -*- %% -*- mode: erlang -*-
{application, emqx_connector, [ {application, emqx_connector, [
{description, "EMQX Data Integration Connectors"}, {description, "EMQX Data Integration Connectors"},
{vsn, "0.1.17"}, {vsn, "0.1.18"},
{registered, []}, {registered, []},
{mod, {emqx_connector_app, []}}, {mod, {emqx_connector_app, []}},
{applications, [ {applications, [

View File

@ -285,7 +285,6 @@ redis_fields() ->
{database, #{ {database, #{
type => integer(), type => integer(),
default => 0, default => 0,
required => true,
desc => ?DESC("database") desc => ?DESC("database")
}}, }},
{auto_reconnect, fun emqx_connector_schema_lib:auto_reconnect/1} {auto_reconnect, fun emqx_connector_schema_lib:auto_reconnect/1}