chore: avoid unnecessary default values being filled when querying via the v1 api.
see: https://emqx.atlassian.net/browse/EMQX-11482
This commit is contained in:
parent
d7bf8e97d2
commit
72bc046063
|
@ -73,7 +73,7 @@ bridge_v1_config_to_connector_config(BridgeV1Conf) ->
|
|||
|
||||
bridge_v1_config_to_action_config(BridgeV1Conf, ConnectorName) ->
|
||||
Parameters = maps:with(?PARAMETER_KEYS, BridgeV1Conf),
|
||||
Parameters1 = Parameters#{<<"path">> => <<>>},
|
||||
Parameters1 = Parameters#{<<"path">> => <<>>, <<"headers">> => #{}},
|
||||
CommonKeys = [<<"enable">>, <<"description">>],
|
||||
ActionConfig = maps:with(?ACTION_KEYS ++ CommonKeys, BridgeV1Conf),
|
||||
ActionConfig#{<<"parameters">> => Parameters1, <<"connector">> => ConnectorName}.
|
||||
|
|
Loading…
Reference in New Issue