Namespace: Json.Schema.Generation.Intents
Inheritance: PropertiesIntent
🡒 object
Implemented interfaces:
- ISchemaKeywordIntent
- IContextContainer
Provides intent to create an additionalProperties
keyword.
Properties
Name | Type | Summary |
---|---|---|
Properties | Dictionary<string, SchemaGenerationContextBase> | The contexts that represent the properties. |
Constructors
PropertiesIntent(Dictionary<string, SchemaGenerationContextBase> properties)
Creates a new Json.Schema.Generation.Intents.PropertiesIntent instance.
Declaration
1
public PropertiesIntent(Dictionary<string, SchemaGenerationContextBase> properties)
Parameter | Type | Description |
---|---|---|
properties | Dictionary<string, SchemaGenerationContextBase> | The contexts. |
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. |