Table of Contents

Constructor PrimitiveSchema

Namespace
AvroSharp.Schemas
Assembly
AvroSharp.dll

PrimitiveSchema(AvroSchemaType, AvroLogicalType?, IReadOnlyDictionary<string, JsonElement>?)

Initializes a primitive schema.

public PrimitiveSchema(AvroSchemaType type, AvroLogicalType? logicalType = null, IReadOnlyDictionary<string, JsonElement>? properties = null)

Parameters

type AvroSchemaType

A primitive schema type.

logicalType AvroLogicalType

An optional logical type; it must be valid for type.

properties IReadOnlyDictionary<string, JsonElement>

Optional custom properties.

Exceptions

AvroSchemaException

type is not primitive, or the logical type does not apply to it.