Method CreateRecursive
CreateRecursive(SchemaName, Func<RecordSchema, IEnumerable<RecordField>>, string?, IEnumerable<SchemaName>?, bool, IReadOnlyDictionary<string, JsonElement>?)
Creates a record whose fields may refer to the record itself, such as a linked list node.
public static RecordSchema CreateRecursive(SchemaName name, Func<RecordSchema, IEnumerable<RecordField>> fields, string? doc = null, IEnumerable<SchemaName>? aliases = null, bool isError = false, IReadOnlyDictionary<string, JsonElement>? properties = null)
Parameters
nameSchemaNameThe record name.
fieldsFunc<RecordSchema, IEnumerable<RecordField>>Creates the fields, given the record being defined.
docstringOptional documentation.
aliasesIEnumerable<SchemaName>Optional alternative names.
isErrorbooltrue for a protocol
errortype.propertiesIReadOnlyDictionary<string, JsonElement>Optional custom properties.