martin-g opened a new issue, #71:
URL: https://github.com/apache/avro-rs/issues/71
`apache_avro::schema::tests::avro_rs_53_uuid_with_fixed` fails sometimes with
```
File "/home/martin/git/apache/avro-rs/avro/src/types.rs", line 462, in
apache_avro::types::Value::validate_internal
File "/home/martin/git/apache/avro-rs/avro/src/types.rs", line 606, in
apache_avro::types::Value::validate_internal::{{closure}}
File
"/home/martin/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/slice/iter/macros.rs",
line 232, in <core::slice::iter::Iter<T> as
core::iter::traits::iterator::Iterator>::fold
File "/home/martin/git/apache/avro-rs/avro/src/types.rs", line 593, in
apache_avro::types::Value::validate_internal
File "/home/martin/git/apache/avro-rs/avro/src/writer.rs", line 593, in
apache_avro::writer::write_value_ref_owned_resolved
File "/home/martin/git/apache/avro-rs/avro/src/writer.rs", line 497, in
apache_avro::writer::GenericSingleObjectWriter::write_value_ref
File "/home/martin/git/apache/avro-rs/avro/src/writer.rs", line 555, in
apache_avro::writer::SpecificSingleObjectWriter<T>::write_ref
File "/home/martin/git/apache/avro-rs/avro/src/schema.rs", line 6478, in
apache_avro::schema::tests::avro_rs_53_uuid_with_fixed
File "/home/martin/git/apache/avro-rs/avro/src/schema.rs", line 6447, in
apache_avro::schema::tests::avro_rs_53_uuid_with_fixed::{{closure}}
```
Serde calls
https://github.com/apache/avro-rs/blob/d6a1e4f5b66d429a7e6eb73a7679083c0e9f4d45/avro/src/ser.rs#L180-L185
instead of
https://github.com/apache/avro-rs/blob/d6a1e4f5b66d429a7e6eb73a7679083c0e9f4d45/avro/src/ser.rs#L176-L178
when serializing `Comment::id` field of type `Uuid`.
It appears the reason is `serializer.is_human_readable()`:
https://github.com/uuid-rs/uuid/blob/4473398413f7e3f4103374559b8d038b4801329a/src/external/serde_support.rs#L23-L31
--
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]