Namespace: Json.Schema.Generation.Intents
Inheritance: ItemsIntent
🡒 object
Implemented interfaces:
- ISchemaKeywordIntent
- IContextContainer
Provides intent to create an items
keyword.
Properties
Name | Type | Summary |
---|---|---|
Context | SchemaGenerationContextBase | The context that represents the inner requirements. |
Constructors
ItemsIntent(SchemaGenerationContextBase context)
Creates a new Json.Schema.Generation.Intents.ItemsIntent instance.
Declaration
1
public ItemsIntent(SchemaGenerationContextBase context)
Parameter | Type | Description |
---|---|---|
context | SchemaGenerationContextBase | The context. |
Methods
Apply(JsonSchemaBuilder builder)
Applies the keyword to the Json.Schema.JsonSchemaBuilder.
Declaration
1
public void Apply(JsonSchemaBuilder builder)
Parameter | Type | Description |
---|---|---|
builder | JsonSchemaBuilder | The builder. |
Replace(int hashCode, SchemaGenerationContextBase newContext)
Replaces one context with another.
Declaration
1
public void Replace(int hashCode, SchemaGenerationContextBase newContext)
Parameter | Type | Description |
---|---|---|
hashCode | int | The hashcode of the context to replace. |
newContext | SchemaGenerationContextBase | The new context. |