Table of Contents

Method Parse

Namespace
AvroSharp.Schemas
Assembly
AvroSharp.dll

Parse(string)

Parses a schema from JSON text.

public AvroSchema Parse(string json)

Parameters

json string

The schema JSON.

Returns

AvroSchema

Exceptions

AvroSchemaException

The JSON is malformed or the schema is invalid.

Parse(ReadOnlySpan<byte>)

Parses a schema from UTF-8 encoded JSON.

public AvroSchema Parse(ReadOnlySpan<byte> utf8Json)

Parameters

utf8Json ReadOnlySpan<byte>

The schema JSON as UTF-8 bytes.

Returns

AvroSchema

Exceptions

AvroSchemaException

The JSON is malformed or the schema is invalid.