Re: defaults for complex types (was Re: recursive types)

2020-03-24 Thread Andy Le
Hi Roger, I'm thinking of reading again Avro Spec and writing down some dis-ambiguity rules. Suggested rule above for enums is one of them. It would be great if you can provide me other ones. To me, using rules is the most affordable way to keep compatibilities. If you care, please check my fo

Re: defaults for complex types (was Re: recursive types)

2020-03-24 Thread roger peppe
Hi, My immediate thought, if preserving backward-compatibility is a concern, is to specify that the current rule applies recursively. That is where the spec says: "Default values for union fields correspond to the first schema in the union", we'd say: "Default values for union fields (and any unio