avro-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Doug Cutting <cutt...@apache.org>
Subject Re: Schema validation of a field's default values
Date Mon, 05 Nov 2012 22:01:10 GMT
We should probably follow Postel's law and be liberal in what we accept
during deserialization.  So we might more rigorously check default values
when writing even though that's not when they're used.  Most schemas that
are used when writing are also used for reading.


On Mon, Nov 5, 2012 at 1:44 PM, Mark Hayes <mark@greybird.com> wrote:

> I'm not sure how it can be added to Avro without breaking existing apps.
>  If ResolvingGrammarDecoder.encode were changed to correct the deficiencies
> I mentioned, existing schemas that don't pass the stricter rules would
> cause errors in the builder, and errors when applying default values from a
> reader schema during deserialization.
>
> --mark
>

Mime
View raw message