Home PropertyNamesIntent Class
PropertyNamesIntent Class
Cancel

PropertyNamesIntent Class

Namespace: Json.Schema.Generation.Intents

Inheritance: PropertyNamesIntent 🡒 object

Implemented interfaces:

  • ISchemaKeywordIntent
  • IContextContainer

Provides intent to create a propertyNames keyword.

Properties

NameTypeSummary
ContextSchemaGenerationContextBaseThe context that represents the inner requirements.

Constructors

PropertyNamesIntent(SchemaGenerationContextBase context)

Creates a new Json.Schema.Generation.Intents.PropertyNamesIntent instance.

Declaration

1
public PropertyNamesIntent(SchemaGenerationContextBase context)
ParameterTypeDescription
contextSchemaGenerationContextBaseThe context.

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.

Remarks

To implement this, call System.Object.GetHashCode on the contained contexts. If any match, replace them with.

Contents