Class AvroSchemaParser
Parses Avro schema JSON. A parser remembers the named schemas it has parsed, so later schemas
(for example other .avsc files) can refer to them by name.
public sealed class AvroSchemaParser
- Inheritance
-
AvroSchemaParser
- Inherited Members
Remarks
Parsing is atomic: if a schema is invalid, none of its named types are added to NamedSchemas. Instances are not thread-safe.
Constructors
- AvroSchemaParser(AvroSchemaParseOptions?)
Initializes a parser.
Properties
- NamedSchemas
Gets the named schemas known to this parser, by full name.
- Options
Gets the parse options.
Methods
- AddNamedSchemas(AvroSchema)
Makes a named schema, and every named schema it contains, available to schemas parsed later.
- Parse(ReadOnlySpan<byte>)
Parses a schema from UTF-8 encoded JSON.
- Parse(string)
Parses a schema from JSON text.
- ParseAsync(Stream, CancellationToken)
Reads and parses a schema from a stream of UTF-8 encoded JSON.