Kriskras99 commented on PR #591:
URL: https://github.com/apache/avro-rs/pull/591#issuecomment-5078155193

   @PookieBuns thanks for your feedback! I agree that we don't want to support 
this, unfortunately it is required to support `#[serde(untagged)]`.
   
   I did send in a suggestion to the Avro developer mailing list to add support 
for custom attributes on unions, so we can add a 
`"org.apache.avro.rust.untagged": true` attribute which would allow us to have 
a significantly better implementation. Unfortunately, I did not yet get a 
response on that email.
   
   For now, I think further restricting it by name would be the best option and 
then we can further restrict it to requiring the attribute if/when that is 
supported by the other Avro parsers.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to