Kriskras99 opened a new pull request, #397: URL: https://github.com/apache/avro-rs/pull/397
A user can now override the schema used by `#[derive(AvroSchema)]` using `#[avro(with)]`. If no argument is supplied to `with`, then it will use the same module as specified in `#[serde(with = ".."]`. It is a compile error if the Serde attribute is missing. If an argument is supplied to `with`, it will call this function with the same arguments as `AvroSchemaComponent::get_schema_in_ctxt`. I've also replaced the `AvroSchemaComponent` implementation for `uuid::Uuid` with the `Schema::Uuid(UuidSchema::Fixed)` representation. Users who want the old schema can use `#[avro(with)]` to revert back. User-facing documentation will follow in a separate PR, which also contains an overhaul of the entire Serde/derive documentation of these crates. -- 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]
