In Avro 1.7.7, is there a way to specify a *non-empty* array, map, etc.?
There doesn't seem to be according to the spec
<https://avro.apache.org/docs/1.7.7/spec.html#Maps>.

There are applications in which we mandate that a data format has a
non-empty array. It'd be nice if that could be expressed in the schema so
data with nonempty arrays fail to serialize (and are thus never put on a
Kafka topic). Fail earlier > fail later.

Thanks,

TX

Reply via email to