Class AttributeCollector
java.lang.Object
com.github.victools.jsonschema.generator.impl.AttributeCollector
Helper class for looking-up various attribute values for a field or method via a given configuration instance.
-
Constructor Summary
ConstructorsConstructorDescriptionAttributeCollector(tools.jackson.databind.ObjectMapper objectMapper) Constructor accepting the object mapper to use. -
Method Summary
Modifier and TypeMethodDescriptionstatic tools.jackson.databind.node.ObjectNodecollectFieldAttributes(FieldScope field, SchemaGenerationContext generationContext) Collect a field's contextual attributes (i.e. everything not related to the structure).static tools.jackson.databind.node.ObjectNodecollectMethodAttributes(MethodScope method, SchemaGenerationContext generationContext) Collect a method's contextual attributes (i.e. everything not related to the structure).static tools.jackson.databind.node.ObjectNodecollectTypeAttributes(TypeScope scope, SchemaGenerationContext generationContext, Set<String> allowedSchemaTypes) Collect a given scope's general type attributes (i.e. everything not related to the structure).static voidmergeMissingAttributes(tools.jackson.databind.node.ObjectNode targetNode, tools.jackson.databind.node.ObjectNode attributeContainer) Merge the second node's attributes into the first, skipping those attributes that are already contained in the first node.setAdditionalProperties(tools.jackson.databind.node.ObjectNode node, tools.jackson.databind.JsonNode additionalProperties, SchemaGenerationContext generationContext) Setter for "SchemaKeyword.TAG_ADDITIONAL_PROPERTIES" attribute.setAnchor(tools.jackson.databind.node.ObjectNode node, String anchor, SchemaGenerationContext generationContext) Setter for "SchemaKeyword.TAG_ANCHOR" attribute.setArrayMaxItems(tools.jackson.databind.node.ObjectNode node, Integer maxItemCount) Deprecated.setArrayMaxItems(tools.jackson.databind.node.ObjectNode node, Integer maxItemCount, SchemaGenerationContext generationContext) Setter for "SchemaKeyword.TAG_ITEMS_MAX" attribute.setArrayMinItems(tools.jackson.databind.node.ObjectNode node, Integer minItemCount) Deprecated.setArrayMinItems(tools.jackson.databind.node.ObjectNode node, Integer minItemCount, SchemaGenerationContext generationContext) Setter for "SchemaKeyword.TAG_ITEMS_MIN" attribute.setArrayUniqueItems(tools.jackson.databind.node.ObjectNode node, Boolean uniqueItems) Deprecated.setArrayUniqueItems(tools.jackson.databind.node.ObjectNode node, Boolean uniqueItems, SchemaGenerationContext generationContext) Setter for "SchemaKeyword.TAG_ITEMS_UNIQUE" attribute.setDefault(tools.jackson.databind.node.ObjectNode node, Object defaultValue) Deprecated.setDefault(tools.jackson.databind.node.ObjectNode node, Object defaultValue, SchemaGenerationContext generationContext) Setter for "SchemaKeyword.TAG_DEFAULT" attribute.setDescription(tools.jackson.databind.node.ObjectNode node, String description) Deprecated.setDescription(tools.jackson.databind.node.ObjectNode node, String description, SchemaGenerationContext generationContext) Setter for "SchemaKeyword.TAG_DESCRIPTION" attribute.setEnum(tools.jackson.databind.node.ObjectNode node, Collection<?> enumValues) Deprecated.setEnum(tools.jackson.databind.node.ObjectNode node, Collection<?> enumValues, SchemaGenerationContext generationContext) Setter for "SchemaKeyword.TAG_CONST"/"SchemaKeyword.TAG_ENUM" attribute.setId(tools.jackson.databind.node.ObjectNode node, String id, SchemaGenerationContext generationContext) Setter for "SchemaKeyword.TAG_ID" attribute.setNumberExclusiveMaximum(tools.jackson.databind.node.ObjectNode node, BigDecimal exclusiveMaximum) Deprecated.setNumberExclusiveMaximum(tools.jackson.databind.node.ObjectNode node, BigDecimal exclusiveMaximum, SchemaGenerationContext generationContext) Setter for "SchemaKeyword.TAG_MAXIMUM_EXCLUSIVE" attribute.setNumberExclusiveMinimum(tools.jackson.databind.node.ObjectNode node, BigDecimal exclusiveMinimum) Deprecated.setNumberExclusiveMinimum(tools.jackson.databind.node.ObjectNode node, BigDecimal exclusiveMinimum, SchemaGenerationContext generationContext) Setter for "SchemaKeyword.TAG_MINIMUM_EXCLUSIVE" attribute (considering Draft 7).setNumberInclusiveMaximum(tools.jackson.databind.node.ObjectNode node, BigDecimal inclusiveMaximum) Deprecated.setNumberInclusiveMaximum(tools.jackson.databind.node.ObjectNode node, BigDecimal inclusiveMaximum, SchemaGenerationContext generationContext) Setter for "SchemaKeyword.TAG_MAXIMUM" attribute (considering Draft 7).setNumberInclusiveMinimum(tools.jackson.databind.node.ObjectNode node, BigDecimal inclusiveMinimum) Deprecated.setNumberInclusiveMinimum(tools.jackson.databind.node.ObjectNode node, BigDecimal inclusiveMinimum, SchemaGenerationContext generationContext) Setter for "SchemaKeyword.TAG_MINIMUM" attribute (considering Draft 7).setNumberMultipleOf(tools.jackson.databind.node.ObjectNode node, BigDecimal multipleOf) Deprecated.setNumberMultipleOf(tools.jackson.databind.node.ObjectNode node, BigDecimal multipleOf, SchemaGenerationContext generationContext) Setter for "SchemaKeyword.TAG_MULTIPLE_OF" attribute.setPatternProperties(tools.jackson.databind.node.ObjectNode node, Map<String, tools.jackson.databind.JsonNode> patternProperties, SchemaGenerationContext generationContext) Setter for "SchemaKeyword.TAG_PATTERN_PROPERTIES" attribute.setReadOnly(tools.jackson.databind.node.ObjectNode node, boolean readOnly, SchemaGenerationContext generationContext) Setter for "SchemaKeyword.TAG_READ_ONLY" attribute.setStringFormat(tools.jackson.databind.node.ObjectNode node, String format) Deprecated.setStringFormat(tools.jackson.databind.node.ObjectNode node, String format, SchemaGenerationContext generationContext) Setter for "SchemaKeyword.TAG_FORMAT" attribute (considering Draft 7).setStringMaxLength(tools.jackson.databind.node.ObjectNode node, Integer maxLength) Deprecated.setStringMaxLength(tools.jackson.databind.node.ObjectNode node, Integer maxLength, SchemaGenerationContext generationContext) Setter for "SchemaKeyword.TAG_LENGTH_MAX" attribute (considering Draft 7).setStringMinLength(tools.jackson.databind.node.ObjectNode node, Integer minLength) Deprecated.setStringMinLength(tools.jackson.databind.node.ObjectNode node, Integer minLength, SchemaGenerationContext generationContext) Setter for "SchemaKeyword.TAG_LENGTH_MIN" attribute (considering Draft 7).setStringPattern(tools.jackson.databind.node.ObjectNode node, String pattern) Deprecated.setStringPattern(tools.jackson.databind.node.ObjectNode node, String pattern, SchemaGenerationContext generationContext) Setter for "SchemaKeyword.TAG_PATTERN" attribute (considering Draft 7).Deprecated.setTitle(tools.jackson.databind.node.ObjectNode node, String title, SchemaGenerationContext generationContext) Setter for "SchemaKeyword.TAG_TITLE" attribute.setWriteOnly(tools.jackson.databind.node.ObjectNode node, boolean writeOnly, SchemaGenerationContext generationContext) Setter for "SchemaKeyword.TAG_WRITE_ONLY" attribute.
-
Constructor Details
-
AttributeCollector
public AttributeCollector(tools.jackson.databind.ObjectMapper objectMapper) Constructor accepting the object mapper to use.- Parameters:
objectMapper- object mapper
-
-
Method Details
-
collectFieldAttributes
public static tools.jackson.databind.node.ObjectNode collectFieldAttributes(FieldScope field, SchemaGenerationContext generationContext) Collect a field's contextual attributes (i.e. everything not related to the structure).- Parameters:
field- the field for which to collect JSON schema attributesgenerationContext- generation context, including configuration to apply when looking-up attribute values- Returns:
- node holding all collected attributes (possibly empty)
-
collectMethodAttributes
public static tools.jackson.databind.node.ObjectNode collectMethodAttributes(MethodScope method, SchemaGenerationContext generationContext) Collect a method's contextual attributes (i.e. everything not related to the structure).- Parameters:
method- the method for which to collect JSON schema attributesgenerationContext- generation context, including configuration to apply when looking-up attribute values- Returns:
- node holding all collected attributes (possibly empty)
-
collectTypeAttributes
public static tools.jackson.databind.node.ObjectNode collectTypeAttributes(TypeScope scope, SchemaGenerationContext generationContext, Set<String> allowedSchemaTypes) Collect a given scope's general type attributes (i.e. everything not related to the structure).- Parameters:
scope- the scope/type representation for which to collect JSON schema attributesgenerationContext- generation context, including configuration to apply when looking-up attribute valuesallowedSchemaTypes- declared schema types determining which attributes are meaningful to be included- Returns:
- node holding all collected attributes (possibly empty)
-
mergeMissingAttributes
public static void mergeMissingAttributes(tools.jackson.databind.node.ObjectNode targetNode, tools.jackson.databind.node.ObjectNode attributeContainer) Merge the second node's attributes into the first, skipping those attributes that are already contained in the first node.- Parameters:
targetNode- node to add non-existent attributes toattributeContainer- container holding attributes to add to the first node
-
setId
public AttributeCollector setId(tools.jackson.databind.node.ObjectNode node, String id, SchemaGenerationContext generationContext) Setter for "SchemaKeyword.TAG_ID" attribute.- Parameters:
node- schema node to set attribute onid- attribute value to setgenerationContext- generation context, including configuration to apply when looking-up attribute values- Returns:
- this instance (for chaining)
-
setAnchor
public AttributeCollector setAnchor(tools.jackson.databind.node.ObjectNode node, String anchor, SchemaGenerationContext generationContext) Setter for "SchemaKeyword.TAG_ANCHOR" attribute.- Parameters:
node- schema node to set attribute onanchor- attribute value to setgenerationContext- generation context, including configuration to apply when looking-up attribute values- Returns:
- this instance (for chaining)
-
setTitle
@Deprecated public AttributeCollector setTitle(tools.jackson.databind.node.ObjectNode node, String title) Deprecated.Setter for "SchemaKeyword.TAG_TITLE" attribute (considering Draft 7).- Parameters:
node- schema node to set attribute ontitle- attribute value to set- Returns:
- this instance (for chaining)
-
setTitle
public AttributeCollector setTitle(tools.jackson.databind.node.ObjectNode node, String title, SchemaGenerationContext generationContext) Setter for "SchemaKeyword.TAG_TITLE" attribute.- Parameters:
node- schema node to set attribute ontitle- attribute value to setgenerationContext- generation context, including configuration to apply when looking-up attribute values- Returns:
- this instance (for chaining)
-
setDescription
@Deprecated public AttributeCollector setDescription(tools.jackson.databind.node.ObjectNode node, String description) Deprecated.Setter for "SchemaKeyword.TAG_DESCRIPTION" attribute (considering Draft 7).- Parameters:
node- schema node to set attribute ondescription- attribute value to set- Returns:
- this instance (for chaining)
-
setDescription
public AttributeCollector setDescription(tools.jackson.databind.node.ObjectNode node, String description, SchemaGenerationContext generationContext) Setter for "SchemaKeyword.TAG_DESCRIPTION" attribute.- Parameters:
node- schema node to set attribute ondescription- attribute value to setgenerationContext- generation context, including configuration to apply when looking-up attribute values- Returns:
- this instance (for chaining)
-
setDefault
@Deprecated public AttributeCollector setDefault(tools.jackson.databind.node.ObjectNode node, Object defaultValue) Deprecated.Setter for "SchemaKeyword.TAG_DEFAULT" attribute (considering Draft 7).- Parameters:
node- schema node to set attribute ondefaultValue- attribute value to set- Returns:
- this instance (for chaining)
-
setDefault
public AttributeCollector setDefault(tools.jackson.databind.node.ObjectNode node, Object defaultValue, SchemaGenerationContext generationContext) Setter for "SchemaKeyword.TAG_DEFAULT" attribute.- Parameters:
node- schema node to set attribute ondefaultValue- attribute value to setgenerationContext- generation context, including configuration to apply when looking-up attribute values- Returns:
- this instance (for chaining)
-
setEnum
@Deprecated public AttributeCollector setEnum(tools.jackson.databind.node.ObjectNode node, Collection<?> enumValues) Deprecated.Setter for "SchemaKeyword.TAG_CONST"/"SchemaKeyword.TAG_ENUM" attribute (considering Draft 7).- Parameters:
node- schema node to set attribute onenumValues- attribute value to set- Returns:
- this instance (for chaining)
-
setEnum
public AttributeCollector setEnum(tools.jackson.databind.node.ObjectNode node, Collection<?> enumValues, SchemaGenerationContext generationContext) Setter for "SchemaKeyword.TAG_CONST"/"SchemaKeyword.TAG_ENUM" attribute.- Parameters:
node- schema node to set attribute onenumValues- attribute value to setgenerationContext- generation context, including configuration to apply when looking-up attribute values- Returns:
- this instance (for chaining)
-
setReadOnly
public AttributeCollector setReadOnly(tools.jackson.databind.node.ObjectNode node, boolean readOnly, SchemaGenerationContext generationContext) Setter for "SchemaKeyword.TAG_READ_ONLY" attribute.- Parameters:
node- schema node to set attribute onreadOnly- attribute value to setgenerationContext- generation context, including configuration to apply when looking-up attribute values- Returns:
- this instance (for chaining)
-
setWriteOnly
public AttributeCollector setWriteOnly(tools.jackson.databind.node.ObjectNode node, boolean writeOnly, SchemaGenerationContext generationContext) Setter for "SchemaKeyword.TAG_WRITE_ONLY" attribute.- Parameters:
node- schema node to set attribute onwriteOnly- attribute value to setgenerationContext- generation context, including configuration to apply when looking-up attribute values- Returns:
- this instance (for chaining)
-
setAdditionalProperties
public AttributeCollector setAdditionalProperties(tools.jackson.databind.node.ObjectNode node, tools.jackson.databind.JsonNode additionalProperties, SchemaGenerationContext generationContext) Setter for "SchemaKeyword.TAG_ADDITIONAL_PROPERTIES" attribute.- Parameters:
node- schema node to set attribute onadditionalProperties- attribute value to set (sub-schema)generationContext- generation context, including configuration to apply when looking-up attribute values- Returns:
- this instance (for chaining)
-
setPatternProperties
public AttributeCollector setPatternProperties(tools.jackson.databind.node.ObjectNode node, Map<String, tools.jackson.databind.JsonNode> patternProperties, SchemaGenerationContext generationContext) Setter for "SchemaKeyword.TAG_PATTERN_PROPERTIES" attribute.- Parameters:
node- schema node to set attribute onpatternProperties- resolved attribute value to set (sub-schema mapped by respective property name pattern)generationContext- generation context, including configuration to apply when looking-up attribute values- Returns:
- this instance (for chaining)
-
setStringMinLength
@Deprecated public AttributeCollector setStringMinLength(tools.jackson.databind.node.ObjectNode node, Integer minLength) Deprecated.Setter for "SchemaKeyword.TAG_LENGTH_MIN" attribute (considering Draft 7).- Parameters:
node- schema node to set attribute onminLength- attribute value to set- Returns:
- this instance (for chaining)
-
setStringMinLength
public AttributeCollector setStringMinLength(tools.jackson.databind.node.ObjectNode node, Integer minLength, SchemaGenerationContext generationContext) Setter for "SchemaKeyword.TAG_LENGTH_MIN" attribute (considering Draft 7).- Parameters:
node- schema node to set attribute onminLength- attribute value to setgenerationContext- generation context, including configuration to apply when looking-up attribute values- Returns:
- this instance (for chaining)
-
setStringMaxLength
@Deprecated public AttributeCollector setStringMaxLength(tools.jackson.databind.node.ObjectNode node, Integer maxLength) Deprecated.Setter for "SchemaKeyword.TAG_LENGTH_MAX" attribute (considering Draft 7).- Parameters:
node- schema node to set attribute onmaxLength- attribute value to set- Returns:
- this instance (for chaining)
-
setStringMaxLength
public AttributeCollector setStringMaxLength(tools.jackson.databind.node.ObjectNode node, Integer maxLength, SchemaGenerationContext generationContext) Setter for "SchemaKeyword.TAG_LENGTH_MAX" attribute (considering Draft 7).- Parameters:
node- schema node to set attribute onmaxLength- attribute value to setgenerationContext- generation context, including configuration to apply when looking-up attribute values- Returns:
- this instance (for chaining)
-
setStringFormat
@Deprecated public AttributeCollector setStringFormat(tools.jackson.databind.node.ObjectNode node, String format) Deprecated.Setter for "SchemaKeyword.TAG_FORMAT" attribute (considering Draft 7).- Parameters:
node- schema node to set attribute onformat- attribute value to set- Returns:
- this instance (for chaining)
-
setStringFormat
public AttributeCollector setStringFormat(tools.jackson.databind.node.ObjectNode node, String format, SchemaGenerationContext generationContext) Setter for "SchemaKeyword.TAG_FORMAT" attribute (considering Draft 7).- Parameters:
node- schema node to set attribute onformat- attribute value to setgenerationContext- generation context, including configuration to apply when looking-up attribute values- Returns:
- this instance (for chaining)
-
setStringPattern
@Deprecated public AttributeCollector setStringPattern(tools.jackson.databind.node.ObjectNode node, String pattern) Deprecated.Setter for "SchemaKeyword.TAG_PATTERN" attribute (considering Draft 7).- Parameters:
node- schema node to set attribute onpattern- attribute value to set- Returns:
- this instance (for chaining)
-
setStringPattern
public AttributeCollector setStringPattern(tools.jackson.databind.node.ObjectNode node, String pattern, SchemaGenerationContext generationContext) Setter for "SchemaKeyword.TAG_PATTERN" attribute (considering Draft 7).- Parameters:
node- schema node to set attribute onpattern- attribute value to setgenerationContext- generation context, including configuration to apply when looking-up attribute values- Returns:
- this instance (for chaining)
-
setNumberInclusiveMinimum
@Deprecated public AttributeCollector setNumberInclusiveMinimum(tools.jackson.databind.node.ObjectNode node, BigDecimal inclusiveMinimum) Deprecated.Setter for "SchemaKeyword.TAG_MINIMUM" attribute (considering Draft 7).- Parameters:
node- schema node to set attribute oninclusiveMinimum- attribute value to set- Returns:
- this instance (for chaining)
-
setNumberInclusiveMinimum
public AttributeCollector setNumberInclusiveMinimum(tools.jackson.databind.node.ObjectNode node, BigDecimal inclusiveMinimum, SchemaGenerationContext generationContext) Setter for "SchemaKeyword.TAG_MINIMUM" attribute (considering Draft 7).- Parameters:
node- schema node to set attribute oninclusiveMinimum- attribute value to setgenerationContext- generation context, including configuration to apply when looking-up attribute values- Returns:
- this instance (for chaining)
-
setNumberExclusiveMinimum
@Deprecated public AttributeCollector setNumberExclusiveMinimum(tools.jackson.databind.node.ObjectNode node, BigDecimal exclusiveMinimum) Deprecated.Setter for "SchemaKeyword.TAG_MINIMUM_EXCLUSIVE" attribute (considering Draft 7).- Parameters:
node- schema node to set attribute onexclusiveMinimum- attribute value to set- Returns:
- this instance (for chaining)
-
setNumberExclusiveMinimum
public AttributeCollector setNumberExclusiveMinimum(tools.jackson.databind.node.ObjectNode node, BigDecimal exclusiveMinimum, SchemaGenerationContext generationContext) Setter for "SchemaKeyword.TAG_MINIMUM_EXCLUSIVE" attribute (considering Draft 7).- Parameters:
node- schema node to set attribute onexclusiveMinimum- attribute value to setgenerationContext- generation context, including configuration to apply when looking-up attribute values- Returns:
- this instance (for chaining)
-
setNumberInclusiveMaximum
@Deprecated public AttributeCollector setNumberInclusiveMaximum(tools.jackson.databind.node.ObjectNode node, BigDecimal inclusiveMaximum) Deprecated.Setter for "SchemaKeyword.TAG_MAXIMUM" attribute (considering Draft 7).- Parameters:
node- schema node to set attribute oninclusiveMaximum- attribute value to set- Returns:
- this instance (for chaining)
-
setNumberInclusiveMaximum
public AttributeCollector setNumberInclusiveMaximum(tools.jackson.databind.node.ObjectNode node, BigDecimal inclusiveMaximum, SchemaGenerationContext generationContext) Setter for "SchemaKeyword.TAG_MAXIMUM" attribute (considering Draft 7).- Parameters:
node- schema node to set attribute oninclusiveMaximum- attribute value to setgenerationContext- generation context, including configuration to apply when looking-up attribute values- Returns:
- this instance (for chaining)
-
setNumberExclusiveMaximum
@Deprecated public AttributeCollector setNumberExclusiveMaximum(tools.jackson.databind.node.ObjectNode node, BigDecimal exclusiveMaximum) Deprecated.Setter for "SchemaKeyword.TAG_MAXIMUM_EXCLUSIVE" attribute (considering Draft 7).- Parameters:
node- schema node to set attribute onexclusiveMaximum- attribute value to set- Returns:
- this instance (for chaining)
-
setNumberExclusiveMaximum
public AttributeCollector setNumberExclusiveMaximum(tools.jackson.databind.node.ObjectNode node, BigDecimal exclusiveMaximum, SchemaGenerationContext generationContext) Setter for "SchemaKeyword.TAG_MAXIMUM_EXCLUSIVE" attribute.- Parameters:
node- schema node to set attribute onexclusiveMaximum- attribute value to setgenerationContext- generation context, including configuration to apply when looking-up attribute values- Returns:
- this instance (for chaining)
-
setNumberMultipleOf
@Deprecated public AttributeCollector setNumberMultipleOf(tools.jackson.databind.node.ObjectNode node, BigDecimal multipleOf) Deprecated.Setter for "SchemaKeyword.TAG_MULTIPLE_OF" attribute (considering Draft 7).- Parameters:
node- schema node to set attribute onmultipleOf- attribute value to set- Returns:
- this instance (for chaining)
-
setNumberMultipleOf
public AttributeCollector setNumberMultipleOf(tools.jackson.databind.node.ObjectNode node, BigDecimal multipleOf, SchemaGenerationContext generationContext) Setter for "SchemaKeyword.TAG_MULTIPLE_OF" attribute.- Parameters:
node- schema node to set attribute onmultipleOf- attribute value to setgenerationContext- generation context, including configuration to apply when looking-up attribute values- Returns:
- this instance (for chaining)
-
setArrayMinItems
@Deprecated public AttributeCollector setArrayMinItems(tools.jackson.databind.node.ObjectNode node, Integer minItemCount) Deprecated.Setter for "SchemaKeyword.TAG_ITEMS_MIN" attribute (considering Draft 7).- Parameters:
node- schema node to set attribute onminItemCount- attribute value to set- Returns:
- this instance (for chaining)
-
setArrayMinItems
public AttributeCollector setArrayMinItems(tools.jackson.databind.node.ObjectNode node, Integer minItemCount, SchemaGenerationContext generationContext) Setter for "SchemaKeyword.TAG_ITEMS_MIN" attribute.- Parameters:
node- schema node to set attribute onminItemCount- attribute value to setgenerationContext- generation context, including configuration to apply when looking-up attribute values- Returns:
- this instance (for chaining)
-
setArrayMaxItems
@Deprecated public AttributeCollector setArrayMaxItems(tools.jackson.databind.node.ObjectNode node, Integer maxItemCount) Deprecated.Setter for "SchemaKeyword.TAG_ITEMS_MAX" attribute (considering Draft 7).- Parameters:
node- schema node to set attribute onmaxItemCount- attribute value to set- Returns:
- this instance (for chaining)
-
setArrayMaxItems
public AttributeCollector setArrayMaxItems(tools.jackson.databind.node.ObjectNode node, Integer maxItemCount, SchemaGenerationContext generationContext) Setter for "SchemaKeyword.TAG_ITEMS_MAX" attribute.- Parameters:
node- schema node to set attribute onmaxItemCount- attribute value to setgenerationContext- generation context, including configuration to apply when looking-up attribute values- Returns:
- this instance (for chaining)
-
setArrayUniqueItems
@Deprecated public AttributeCollector setArrayUniqueItems(tools.jackson.databind.node.ObjectNode node, Boolean uniqueItems) Deprecated.Setter for "SchemaKeyword.TAG_ITEMS_UNIQUE" attribute (considering Draft 7).- Parameters:
node- schema node to set attribute onuniqueItems- attribute value to set- Returns:
- this instance (for chaining)
-
setArrayUniqueItems
public AttributeCollector setArrayUniqueItems(tools.jackson.databind.node.ObjectNode node, Boolean uniqueItems, SchemaGenerationContext generationContext) Setter for "SchemaKeyword.TAG_ITEMS_UNIQUE" attribute.- Parameters:
node- schema node to set attribute onuniqueItems- attribute value to setgenerationContext- generation context, including configuration to apply when looking-up attribute values- Returns:
- this instance (for chaining)
-
setArrayMaxItems(ObjectNode, Integer, SchemaGenerationContext)instead