fix(bridges_v1): avoid merging action examples for non-v1 bridges
Since some new bridges might not have a V1 equivalent (i.e. they are not registered in `emqx_bridge_enterprise`), we should avoid displaying their examples in the V1 API spec.
This commit is contained in:
parent
35aaca1aa6
commit
2f1d88d414
|
@ -82,9 +82,7 @@ schema_modules() ->
|
||||||
].
|
].
|
||||||
|
|
||||||
examples(Method) ->
|
examples(Method) ->
|
||||||
ActionExamples = emqx_bridge_v2_schema:examples(Method),
|
registered_examples(Method).
|
||||||
RegisteredExamples = registered_examples(Method),
|
|
||||||
maps:merge(ActionExamples, RegisteredExamples).
|
|
||||||
|
|
||||||
registered_examples(Method) ->
|
registered_examples(Method) ->
|
||||||
MergeFun =
|
MergeFun =
|
||||||
|
|
Loading…
Reference in New Issue