Home EnumIntent Class
EnumIntent Class
Cancel

EnumIntent Class

Namespace: Json.Schema.Generation.Intents

Inheritance: EnumIntent 🡒 object

Implemented interfaces:

  • ISchemaKeywordIntent

Provides intent to create an enum keyword.

Properties

NameTypeSummary
NamesList<string>The names defined by the enumeration.

Constructors

EnumIntent(IEnumerable<string> names)

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

Declaration

1
public EnumIntent(IEnumerable<string> names)
ParameterTypeDescription
namesIEnumerable<string>The names defined by the enumeration.

EnumIntent(params string[] names)

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

Declaration

1
public EnumIntent(params string[] names)
ParameterTypeDescription
namesparams string[]The names defined by the enumeration.

EnumIntent(IEnumerable<JsonNode> values)

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

Declaration

1
public EnumIntent(IEnumerable<JsonNode> values)
ParameterTypeDescription
valuesIEnumerable<JsonNode>The values defined by the enumeration.

EnumIntent(params JsonNode[] values)

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

Declaration

1
public EnumIntent(params JsonNode[] values)
ParameterTypeDescription
valuesparams JsonNode[]The values defined by the enumeration.

Methods

Apply(JsonSchemaBuilder builder)

Applies the keyword to the Json.Schema.JsonSchemaBuilder.

Declaration

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