[KAFKA-240] Source Connector - Support for Json Schema Created: 21/Jul/21  Updated: 27/Oct/23  Resolved: 18/Oct/21

Status: Closed
Project: Kafka Connector
Component/s: Source
Affects Version/s: None
Fix Version/s: None

Type: New Feature Priority: Major - P3
Reporter: Rachit Agrawal Assignee: Ross Lawley
Resolution: Works as Designed Votes: 0
Labels: external-user
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Documented
Documentation Changes: Needed

 Description   

Source connector currently supports schema in Avro format using the below properties;

output.format.value=SCHEMA
output.schema.value=<avro schema>

 

Confluent Kafka as of v5.5 also supports JSON Schemas (https://json-schema.org/understanding-json-schema).

 

This is ticket is implement support for JSON Schema for source connector.



 Comments   
Comment by Ross Lawley [ 18/Oct/21 ]

Hi rachitagrawa@hotmail.com

Just to clarify you can use the Kafka converters to output to Json Schema. The configuration for defining the schema just uses the less verbose Avro schema definition.

Kind Regards,

Ross

Comment by Robert Walters [ 26/Jul/21 ]

Hi rachitagrawa@hotmail.com,  We chose to initially go with AVRO to define the JSON schema as it is more succinct.  We will consider adding JSON schemas in a future release.

Generated at Thu Feb 08 09:05:55 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.