Table of Contents

Constructor FixedSchema

Namespace
AvroSharp.Schemas
Assembly
AvroSharp.dll

FixedSchema(SchemaName, int, AvroLogicalType?, string?, IEnumerable<SchemaName>?, IReadOnlyDictionary<string, JsonElement>?)

Initializes a fixed schema.

public FixedSchema(SchemaName name, int size, AvroLogicalType? logicalType = null, string? doc = null, IEnumerable<SchemaName>? aliases = null, IReadOnlyDictionary<string, JsonElement>? properties = null)

Parameters

name SchemaName

The fixed name.

size int

The number of bytes per value; must not be negative.

logicalType AvroLogicalType

An optional logical type (decimal, uuid with size 16, or duration with size 12).

doc string

Optional documentation.

aliases IEnumerable<SchemaName>

Optional alternative names.

properties IReadOnlyDictionary<string, JsonElement>

Optional custom properties.

Exceptions

AvroSchemaException

The size is negative or the logical type does not apply.