Namespace: Json.Schema.Generation
Inheritance: AdditionalItemsAttribute
🡒 ConditionalAttribute
🡒 Attribute
🡒 object
Implemented interfaces:
- 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. |
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 the a schema for the keyword. |