FasterXML / jackson-dataformats-binary

Uber-project for standard Jackson binary format backends: avro, cbor, ion, protobuf, smile
Apache License 2.0
316 stars 136 forks source link

Avro generator does not enforce `StreamWriteConstraints` (2.17 / 3.0.0-SNAPSHOT) #387

Open cowtowncoder opened 1 year ago

cowtowncoder commented 1 year ago

Unlike other codecs, work via #386 did not add full checking for Avro: this because serialization side does not use fully incremental/streaming generation: instead value objects from Apache Avro library are constructed and their serialization methods called. It would be possible to add proper nesting level handling there, and should be done, when someone has time to dig into it. This should not be super difficult and I can help if need be.