fix: add schema desc for connector

This commit is contained in:
Stefan Strigler 2023-10-09 15:40:50 +02:00 committed by Zaiming (Stone) Shi
parent c9b683fd78
commit 4b4eb19b0b
1 changed files with 3 additions and 3 deletions

View File

@ -497,11 +497,11 @@ desc("config") ->
?DESC("desc_config");
desc(resource_opts) ->
?DESC(emqx_resource_schema, "resource_opts");
desc("get_" ++ Type) when Type =:= "consumer"; Type =:= "producer" ->
desc("get_" ++ Type) when Type =:= "consumer"; Type =:= "producer"; Type =:= "connector" ->
["Configuration for Kafka using `GET` method."];
desc("put_" ++ Type) when Type =:= "consumer"; Type =:= "producer" ->
desc("put_" ++ Type) when Type =:= "consumer"; Type =:= "producer"; Type =:= "connector" ->
["Configuration for Kafka using `PUT` method."];
desc("post_" ++ Type) when Type =:= "consumer"; Type =:= "producer" ->
desc("post_" ++ Type) when Type =:= "consumer"; Type =:= "producer"; Type =:= "connector" ->
["Configuration for Kafka using `POST` method."];
desc(kafka_producer_action) ->
?DESC("kafka_producer_action");