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.
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.