Home IAttributeHandler Interface
IAttributeHandler Interface
Cancel

IAttributeHandler Interface

Namespace: Json.Schema.Generation

Inheritance: IAttributeHandler

Defines requirements to handle converting an attribute to a keyword intent.

Methods

AddConstraints(SchemaGenerationContextBase context, Attribute attribute)

Processes the type and any attributes (present on the context), and adds intents to the context.

Declaration

1
public abstract void AddConstraints(SchemaGenerationContextBase context, Attribute attribute)
ParameterTypeDescription
contextSchemaGenerationContextBaseThe generation context.
attributeAttributeThe attribute.

Remarks

A common pattern is to implement Json.Schema.Generation.IAttributeHandler on the attribute itself. In this case, the parameter will be the same instance as the handler and can likely be ignored.

Contents