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

Function nested_optional_record

avro/src/schema_compatibility.rs:540–542  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

538 }
539
540 fn nested_optional_record() -> Schema {
541 Schema::parse_str(r#"{"type":"record","name":"parent","fields":[{"name":"attribute","type":["null",{"type":"record","name":"child","fields":[{"name":"id","type":"string"}]}],"default":null}]}"#).unwrap()
542 }
543
544 fn int_list_record_schema() -> Schema {
545 Schema::parse_str(r#"{"type":"record", "name":"List", "fields": [{"name": "head", "type": "int"},{"name": "tail", "type": {"type": "array", "items": "int"}}]}"#).unwrap()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected