Home DefsIntent Class
DefsIntent Class
Cancel

DefsIntent Class

Namespace: Json.Schema.Generation.Intents

Inheritance: DefsIntent 🡒 object

Implemented interfaces:

  • ISchemaKeywordIntent

Provides intent to create a $defs keyword.

Properties

NameTypeSummary
DefinitionsDictionary<string, SchemaGenerationContextBase>The contexts that represent the definitions.

Constructors

DefsIntent(Dictionary<string, SchemaGenerationContextBase> definitions)

Creates a new Json.Schema.Generation.Intents.DefsIntent instance.

Declaration

1
public DefsIntent(Dictionary<string, SchemaGenerationContextBase> definitions)
ParameterTypeDescription
definitionsDictionary<string, SchemaGenerationContextBase>The contexts.

Methods

Apply(JsonSchemaBuilder builder)

Applies the keyword to the Json.Schema.JsonSchemaBuilder.

Declaration

1
public void Apply(JsonSchemaBuilder builder)
ParameterTypeDescription
builderJsonSchemaBuilderThe builder.
Contents