JsonSchemaWriter class

A customizable JSON schema writer backed by a list of cases.
AssemblyChr.Avro.Json
NamespaceChr.Avro.Representation
Signature
public class JsonSchemaWriter : Chr.Avro.Representation.IJsonSchemaWriter, Chr.Avro.Representation.ISchemaWriter
Baseobject
InterfacesIJsonSchemaWriter
ISchemaWriter

Constructors

JsonSchemaWriter()
Creates a new JSON schema writer.
JsonSchemaWriter(IEnumerable<Func<IJsonSchemaWriter, IJsonSchemaWriterCase>>)
Creates a new JSON schema writer.

Properties

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

Methods

IEnumerable<Func<IJsonSchemaWriter, IJsonSchemaWriterCase>> CreateCaseBuilders()
Creates a default list of case builders.
string Write(Schema, bool, ConcurrentDictionary<string, NamedSchema>)
Writes a serialized Avro schema.
void Write(Schema, Stream, bool, ConcurrentDictionary<string, NamedSchema>)
Writes a serialized Avro schema.
void Write(Schema, Utf8JsonWriter, bool, ConcurrentDictionary<string, NamedSchema>)
Writes a serialized Avro schema.
Chr.Avro