Namespace: Json.Schema.Generation
Inheritance: AdditionalItemsAttribute 🡒 ConditionalAttribute 🡒 Attribute 🡒 object
Implemented interfaces:
- INestableAttribute
- IAttributeHandler
Applies an additionalProperties keyword.
Properties
| Name | Type | Summary |
|---|---|---|
| BoolValue | bool? | If the attribute value represents a boolean schema, gets the boolean value. |
| ConditionGroup | object | Identifies the condition group under which this attribute applies. |
| GenericParameter | int | The index of the parameter to which the attribute should apply. Default is -1 to indicate the root. |
| TypeId | object | Â |
| TypeValue | Type | If the attribute value represents a type schema, gets the type. |
Constructors
AdditionalItemsAttribute(bool boolSchema)
Creates a new Json.Schema.Generation.AdditionalPropertiesAttribute instance.
Declaration
1
public AdditionalItemsAttribute(bool boolSchema)
| Parameter | Type | Description |
|---|---|---|
| boolSchema | bool | A boolean schema. |
AdditionalItemsAttribute(Type typeSchema)
Creates a new Json.Schema.Generation.AdditionalPropertiesAttribute instance.
Declaration
1
public AdditionalItemsAttribute(Type typeSchema)
| Parameter | Type | Description |
|---|---|---|
| typeSchema | Type | A type to generate a schema for the keyword. |