Home ISchemaKeywordIntent Interface
ISchemaKeywordIntent Interface
Cancel

ISchemaKeywordIntent Interface

Namespace: Json.Schema.Generation

Inheritance: ISchemaKeywordIntent

Describes the intent to create a keyword.

Remarks

Because Json.Schema.JsonSchema is immutable, the system cannot generate the schema directly as it needs to do some optimization first. Keyword intents allow this. They record all of the data needed by the keyword. Application involves translating the intent into an actual keyword on the Json.Schema.JsonSchemaBuilder using one of the fluent extension methods provided by Json.Schema.JsonSchemaBuilderExtensions. Custom intents will need to be applied from within custom Json.Schema.Generation.Generators.ISchemaGenerator implementations.

Methods

Apply(JsonSchemaBuilder builder)

Applies the keyword to the Json.Schema.JsonSchemaBuilder.

Declaration

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