```rust #[test] fn avro_rs_xxx_schema_defaults() -> TestResult { let schema = Schema::parse_str( r#"{ "type": "record", "name": "defaults", "fields": [ {"name": "boolean", "type": "bool", "default": true} ] }"#)?; Ok(()) } ``` This fails with: ``` The application panicked (crashed). apache_avro::error::Error: Error { details: Unknown primitive type: bool } in avro/src/schema/mod.rs, line 5134 thread: schema::tests::avro_rs_xxx_schema_defaults ```
Activity
martin-g commentedon Feb 11, 2026
https://avro.apache.org/docs/1.12.0/specification/#primitive-types says:
boolean: a binary valueavro-rs/avro/src/schema/parser.rs
Line 129 in 60ea1bb
Solution:
s/bool/boolean/
Kriskras99 commentedon Feb 11, 2026
Whoops😅