You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "Randall Hauch (JIRA)" <ji...@apache.org> on 2018/11/01 21:46:00 UTC

[jira] [Commented] (KAFKA-7292) Converters should report their configuration options

    [ https://issues.apache.org/jira/browse/KAFKA-7292?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16672272#comment-16672272 ] 

Randall Hauch commented on KAFKA-7292:
--------------------------------------

Connect's REST API also needs to use these ConfigDefs when validating a configuration or describing a connector's ConfigDef.

> Converters should report their configuration options
> ----------------------------------------------------
>
>                 Key: KAFKA-7292
>                 URL: https://issues.apache.org/jira/browse/KAFKA-7292
>             Project: Kafka
>          Issue Type: Improvement
>          Components: KafkaConnect
>            Reporter: Jeremy Custenborder
>            Priority: Major
>
> Converters do not support returning their configuration like Connectors and Transformations do. Given this can be configured by an end user it should also be reported via the API. 
> {code:java}
> public interface Converter {
>   void configure(Map<String, ?> var1, boolean var2);
>   byte[] fromConnectData(String var1, Schema var2, Object var3);
>   SchemaAndValue toConnectData(String var1, byte[] var2);
>   default ConfigDef config() {
>     return new ConfigDef();
>   }
> }
> {code}
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)