Home AnyOfIntent Class
AnyOfIntent Class
Cancel

AnyOfIntent Class

Namespace: Json.Schema.Generation.Intents

Inheritance: AnyOfIntent 🡒 object

Implemented interfaces:

  • ISchemaKeywordIntent

Provides intent to create a anyOf keyword.

Properties

NameTypeSummary
SubschemasList<IEnumerable<ISchemaKeywordIntent>>Gets the subschemas to include.

Constructors

AnyOfIntent(IEnumerable<IEnumerable<ISchemaKeywordIntent>> subschemas)

Creates a new instance of the Json.Schema.Generation.Intents.AnyOfIntent class.

Declaration

1
public AnyOfIntent(IEnumerable<IEnumerable<ISchemaKeywordIntent>> subschemas)
ParameterTypeDescription
subschemasIEnumerable<IEnumerable<ISchemaKeywordIntent>>The subschemas to include.

AnyOfIntent(params IEnumerable<ISchemaKeywordIntent>[] subschemas)

Creates a new instance of the Json.Schema.Generation.Intents.AnyOfIntent class.

Declaration

1
public AnyOfIntent(params IEnumerable<ISchemaKeywordIntent>[] subschemas)
ParameterTypeDescription
subschemasparams IEnumerable<ISchemaKeywordIntent>[]The subschemas to include.

Methods

Apply(JsonSchemaBuilder builder)

Applies the keyword to the Json.Schema.JsonSchemaBuilder.

Declaration

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