Table of Contents

Class AvroSchemaParseOptions

Namespace
AvroSharp.Schemas
Assembly
AvroSharp.dll

Options for AvroSchemaParser.

public sealed class AvroSchemaParseOptions
Inheritance
AvroSchemaParseOptions
Inherited Members

Fields

DefaultMaxDepth

The default MaxDepth: 256.

Properties

AllowComments

Gets a value indicating whether JavaScript-style comments and trailing commas are accepted. Defaults to false (strict JSON).

AllowIdenticalRedefinitions

Gets whether a named type that an earlier Parse(string) call on the same parser defined may be defined again, provided both definitions have the same Parsing Canonical Form (docs, aliases and defaults may differ). Schema sets written for tools that read one file at a time often repeat shared types in every file. The first definition stays the one that later schemas refer to. A name defined twice within one schema is always an error. Defaults to false.

Default

Gets the default options.

MaxDepth

Gets the maximum JSON nesting depth, at least 1. The default is DefaultMaxDepth.

ValidateDefaults

Gets a value indicating whether field default values must match the field schema, as described in the specification. Defaults to true.

ValidateNames

Gets a value indicating whether names, namespaces, field names and enum symbols must follow the specification's [A-Za-z_][A-Za-z0-9_]* rule. Defaults to true. Disable only to read legacy schemas produced by non-conforming tools.

See Also