Kriskras99 commented on code in PR #470:
URL: https://github.com/apache/avro-rs/pull/470#discussion_r2826931210
##########
avro/src/schema/mod.rs:
##########
@@ -688,7 +690,18 @@ impl Schema {
UnionSchema::new(schemas).map(Schema::Union)
}
- fn denormalize(
+ /// Remove all external references from the schema.
+ ///
+ /// `schemata` must contain all externally referenced schemas.
+ ///
+ /// # Errors
+ /// Will return a [`Details::SchemaResolutionError`] if it fails to find
+ /// a referenced schema. This will put the schema in a partly denormalized
state.
+ pub fn denormalize(&mut self, schemata: &[Schema]) -> AvroResult<()> {
+ self.denormalize_inner(schemata, &mut HashSet::new())
Review Comment:
And if users really don't want that, they can do the clone themselves.
--
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]