Home PropertiesIntent Class
PropertiesIntent Class
Cancel

PropertiesIntent Class

Namespace: Json.Schema.Generation.Intents

Inheritance: PropertiesIntent 🡒 object

Implemented interfaces:

  • ISchemaKeywordIntent
  • IContextContainer

Provides intent to create an additionalProperties keyword.

Properties

NameTypeSummary
PropertiesDictionary<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)
ParameterTypeDescription
propertiesDictionary<string, SchemaGenerationContextBase>The contexts.

Methods

Apply(JsonSchemaBuilder builder)

Applies the keyword to the Json.Schema.JsonSchemaBuilder.

Declaration

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

Replace(int hashCode, SchemaGenerationContextBase newContext)

Replaces one context with another.

Declaration

1
public void Replace(int hashCode, SchemaGenerationContextBase newContext)
ParameterTypeDescription
hashCodeintThe hashcode of the context to replace.
newContextSchemaGenerationContextBaseThe new context.
Contents