Table of Contents

Method Parse

Namespace
AvroSharp.Schemas
Assembly
AvroSharp.dll

Parse(string, AvroSchemaParseOptions?)

Parses a schema from JSON text.

public static AvroSchema Parse(string json, AvroSchemaParseOptions? options = null)

Parameters

json string

The schema JSON.

options AvroSchemaParseOptions

Parse options, or null for the defaults.

Returns

AvroSchema

Exceptions

AvroSchemaException

The JSON is malformed or the schema is invalid.

Parse(ReadOnlySpan<byte>, AvroSchemaParseOptions?)

Parses a schema from UTF-8 encoded JSON.

public static AvroSchema Parse(ReadOnlySpan<byte> utf8Json, AvroSchemaParseOptions? options = null)

Parameters

utf8Json ReadOnlySpan<byte>

The schema JSON as UTF-8 bytes.

options AvroSchemaParseOptions

Parse options, or null for the defaults.

Returns

AvroSchema

Exceptions

AvroSchemaException

The JSON is malformed or the schema is invalid.