YamlSchemaExporterOptions class

Configures the behavior of the YamlSchemaExporter APIs.

Namespace: System.Text.Yaml.Schema ยท Assembly: Styml.dll

public sealed class YamlSchemaExporterOptions

Configures the behavior of the YamlSchemaExporter APIs.

ConstructorsLink to this heading

public YamlSchemaExporterOptions();

PropertiesLink to this heading

DefaultLink to this heading

Gets the default configuration object used by YamlSchemaExporter.

public static YamlSchemaExporterOptions Default { get; }

TransformSchemaNodeLink to this heading

Defines a callback that is invoked for every schema that is generated within the type graph.

public Func<YamlSchemaExporterContext, YamlNode, YamlNode>? TransformSchemaNode { get; init; }

TreatNullObliviousAsNonNullableLink to this heading

Determines whether non-nullable schemas should be generated for null oblivious reference types.

public bool TreatNullObliviousAsNonNullable { get; init; }

Defaults to false. Due to restrictions in the run-time representation of nullable reference types most occurrences are null oblivious and are treated as nullable by the serializer. A notable exception to that rule are nullability annotations of field, property and constructor parameters which are represented in the contract metadata.

Generated from the XML documentation of the libraryBuilt with Douze

Esc to close