MCPcopy Create free account
hub / github.com/apache/avro-rs / validate

Method validate

avro/src/types.rs:378–380  ·  view source on GitHub ↗

Validate the value against the given [`Schema`]. See the [Avro specification](https://avro.apache.org/docs/++version++/specification) for the full set of rules of schema validation. # Panics Will panic if the schema contain unresolved references or duplicate named types.

(&self, schema: &Schema)

Source from the content-addressed store, hash-verified

376 /// [`validate_with_names`](Self::validate_with_names) instead.
377 ///
378 /// See the [Avro specification](https://avro.apache.org/docs/++version++/specification)
379 /// for the full set of rules of schema validation.
380 ///
381 /// # Panics
382 /// Will panic if the schema contain unresolved references or duplicate named types.
383 pub fn validate(&self, schema: &Schema) -> bool {

Calls 1

validate_schemataMethod · 0.80

Tested by

no test coverage detected