Home UniqueItemsAttribute Class
UniqueItemsAttribute Class
Cancel

UniqueItemsAttribute Class

Namespace: Json.Schema.Generation

Inheritance: UniqueItemsAttribute 🡒 ConditionalAttribute 🡒 Attribute 🡒 object

Implemented interfaces:

  • INestableAttribute
  • IAttributeHandler

Applies a uniqueItems keyword.

Properties

NameTypeSummary
ConditionGroupobjectIdentifies the condition group under which this attribute applies.
GenericParameterintThe index of the parameter to which the attribute should apply. Default is -1 to indicate the root.
TypeIdobject 
ValueboolWhether the items should be unique.

Constructors

UniqueItemsAttribute(bool value)

Creates a new Json.Schema.Generation.UniqueItemsAttribute instance.

Declaration

1
public UniqueItemsAttribute(bool value)
ParameterTypeDescription
valueboolThe value.
Contents