Przeczytaj w języku angielskim

Udostępnij za pośrednictwem


AIJsonSchemaCreateOptions Class

Definition

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Provides options for configuring the behavior of AIJsonUtilities JSON schema creation functionality.

C#
public sealed class AIJsonSchemaCreateOptions
Inheritance
AIJsonSchemaCreateOptions

Constructors

Properties

Default

Gets the default options instance.

DisallowAdditionalProperties

Gets a value indicating whether to generate schemas with the additionalProperties set to false for .NET objects.

IncludeSchemaKeyword

Gets a value indicating whether to include the $schema keyword in inferred schemas.

IncludeTypeInEnumSchemas

Gets a value indicating whether to include the type keyword in inferred schemas for .NET enums.

RequireAllProperties

Gets a value indicating whether to mark all properties as required in the schema.

TransformSchemaNode

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

Applies to

Produkt Wersje
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Standard 2.0 (package-provided)