JsonSchemaReader class

A customizable JSON schema reader backed by a list of cases.
AssemblyChr.Avro.Json
NamespaceChr.Avro.Representation
Signature
public class JsonSchemaReader : Chr.Avro.Representation.IJsonSchemaReader, Chr.Avro.Representation.ISchemaReader
Baseobject
InterfacesIJsonSchemaReader
ISchemaReader

Constructors

JsonSchemaReader()
Creates a new JSON schema reader.
JsonSchemaReader(IEnumerable<Func<IJsonSchemaReader, IJsonSchemaReaderCase>>)
Creates a new JSON schema reader.

Properties

IEnumerable<IJsonSchemaReaderCase> Cases
A list of cases that the read methods will attempt to apply. If the first case does not match, the next case will be tested, and so on.

Methods

IEnumerable<Func<IJsonSchemaReader, IJsonSchemaReaderCase>> CreateCaseBuilders()
Creates a default list of case builders.
Schema Read(Stream, ConcurrentDictionary<string, Schema>, string)
Reads a serialized Avro schema.
Schema Read(string, ConcurrentDictionary<string, Schema>)
Reads a serialized Avro schema.
Schema Read(JsonElement, ConcurrentDictionary<string, Schema>, string)
Reads a serialized Avro schema.
Chr.Avro