jcustenborder / xjc-kafka-connect-plugin

Kafka Connect plugin to extend code generated by xjc to produce Kafka Connect Schemas and Structs.
3 stars 7 forks source link

Optional elements #11

Open piotrsmolinski opened 5 years ago

piotrsmolinski commented 5 years ago

I was facing issues where all Connect schema were marked as optional, also these, who were members of arrays. I noticed that Kafka Connect strictly enforces optional flag in a schema. Therefore if an object should be a member of array property, it cannot be optional. On the other hand it can be used in another place as optional property. Therefore we need more flexibility to mark the schema as optional or required.