Kriskras99 opened a new pull request, #359: URL: https://github.com/apache/avro-rs/pull/359
This is done by adding a `#[avro(flatten]` attribute so that the schema (for that field) is also flattened, and by adding support in `SchemaAwareWriteSerializer` for serializing a struct via Map instead of Struct. `flatten` does not work with `to_value`, as `to_value` does not have access to the schema. I moved the Serde related modules to a separate `serde` module as I needed to add another module for the `StringSerializer` (to decode Map keys) and that would make the root too messy. Putting it in the root `util` module would also work, but it's a lot of (filler) code and would make that module unreadable. Closes #247, requires #351 -- 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]
