Kriskras99 commented on code in PR #579:
URL: https://github.com/apache/avro-rs/pull/579#discussion_r3564981388


##########
avro/src/types.rs:
##########
@@ -404,6 +415,26 @@ impl Value {
         )
     }
 
+    /// Validate the value against the given schema using `names` to resolve 
any references.
+    ///
+    /// See the [Avro 
specification](https://avro.apache.org/docs/++version++/specification)
+    /// for the full set of rules of schema validation.
+    pub fn validate_with_names<S: Borrow<Schema> + Debug>(
+        &self,
+        schema: &Schema,
+        names: &HashMap<Name, S>,
+    ) -> bool {
+        match self.validate_internal(schema, names, None) {
+            Some(reason) => {
+                let log_message =
+                    format!("Invalid value: {self:?} for schema: {schema:?}. 
Reason: {reason}");

Review Comment:
   Leftover from copying parts of `validate_schemata`



-- 
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]

Reply via email to