Record Class ConfigurationSchemaProperty

java.lang.Object
java.lang.Record
io.micronaut.jsonschema.configuration.validator.model.ConfigurationSchemaProperty
Record Components:
type - The JSON Schema type (string or array)
description - Optional description
format - Optional string format
deprecated - Whether this property is deprecated
pattern - Optional regex pattern for strings
minLength - Minimum length for string values
maxLength - Maximum length for string values
minItems - Minimum number of items for array values
maxItems - Maximum number of items for array values
uniqueItems - Whether array items must be unique
multipleOf - Numeric multiple-of constraint
constValue - Constant value constraint
javaType - Micronaut extension for the Java type (x-micronaut-javaType)
sourceType - Micronaut extension for the source type (x-micronaut-sourceType)
micronautPath - Micronaut extension for the resolved config path (x-micronaut-path)
properties - Object properties mapped from properties
required - Required property names mapped from required
minProperties - Minimum number of properties for object values
maxProperties - Maximum number of properties for object values
enumValues - Allowed values mapped from enum
minimum - Minimum numeric value
exclusiveMinimum - Exclusive minimum numeric value
maximum - Maximum numeric value
exclusiveMaximum - Exclusive maximum numeric value
items - Schema for array items
additionalProperties - Schema for additional properties (boolean or object)
defs - Local schema definitions mapped from $defs
ref - Reference to another schema mapped from $ref

@Internal public record ConfigurationSchemaProperty(@Nullable Object type, @Nullable String description, @Nullable String format, @Nullable Boolean deprecated, @Nullable String pattern, @Nullable Integer minLength, @Nullable Integer maxLength, @Nullable Integer minItems, @Nullable Integer maxItems, @Nullable Boolean uniqueItems, @Nullable BigDecimal multipleOf, @Nullable Object constValue, @Nullable String javaType, @Nullable String sourceType, @Nullable String micronautPath, @Nullable Map<String, ConfigurationSchemaProperty> properties, @Nullable List<String> required, @Nullable Integer minProperties, @Nullable Integer maxProperties, @Nullable List<Object> enumValues, @Nullable BigDecimal minimum, @Nullable BigDecimal exclusiveMinimum, @Nullable BigDecimal maximum, @Nullable BigDecimal exclusiveMaximum, @Nullable ConfigurationSchemaProperty items, @Nullable Object additionalProperties, @Nullable Map<String, ConfigurationSchemaProperty> defs, @Nullable String ref) extends Record
Configuration schema property model used by the configuration validator.

This represents schema nodes under properties, additionalProperties, items, and $defs. It also contains Micronaut-specific extensions used to bind a schema node to a configuration property.

  • Constructor Details

  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • type

      public @Nullable Object type()
      Returns the value of the type record component.
      Returns:
      the value of the type record component
    • description

      public @Nullable String description()
      Returns the value of the description record component.
      Returns:
      the value of the description record component
    • format

      public @Nullable String format()
      Returns the value of the format record component.
      Returns:
      the value of the format record component
    • deprecated

      public @Nullable Boolean deprecated()
      Returns the value of the deprecated record component.
      Returns:
      the value of the deprecated record component
    • pattern

      public @Nullable String pattern()
      Returns the value of the pattern record component.
      Returns:
      the value of the pattern record component
    • minLength

      public @Nullable Integer minLength()
      Returns the value of the minLength record component.
      Returns:
      the value of the minLength record component
    • maxLength

      public @Nullable Integer maxLength()
      Returns the value of the maxLength record component.
      Returns:
      the value of the maxLength record component
    • minItems

      public @Nullable Integer minItems()
      Returns the value of the minItems record component.
      Returns:
      the value of the minItems record component
    • maxItems

      public @Nullable Integer maxItems()
      Returns the value of the maxItems record component.
      Returns:
      the value of the maxItems record component
    • uniqueItems

      public @Nullable Boolean uniqueItems()
      Returns the value of the uniqueItems record component.
      Returns:
      the value of the uniqueItems record component
    • multipleOf

      public @Nullable BigDecimal multipleOf()
      Returns the value of the multipleOf record component.
      Returns:
      the value of the multipleOf record component
    • constValue

      public @Nullable Object constValue()
      Returns the value of the constValue record component.
      Returns:
      the value of the constValue record component
    • javaType

      public @Nullable String javaType()
      Returns the value of the javaType record component.
      Returns:
      the value of the javaType record component
    • sourceType

      public @Nullable String sourceType()
      Returns the value of the sourceType record component.
      Returns:
      the value of the sourceType record component
    • micronautPath

      public @Nullable String micronautPath()
      Returns the value of the micronautPath record component.
      Returns:
      the value of the micronautPath record component
    • properties

      public @Nullable Map<String, ConfigurationSchemaProperty> properties()
      Returns the value of the properties record component.
      Returns:
      the value of the properties record component
    • required

      public @Nullable List<String> required()
      Returns the value of the required record component.
      Returns:
      the value of the required record component
    • minProperties

      public @Nullable Integer minProperties()
      Returns the value of the minProperties record component.
      Returns:
      the value of the minProperties record component
    • maxProperties

      public @Nullable Integer maxProperties()
      Returns the value of the maxProperties record component.
      Returns:
      the value of the maxProperties record component
    • enumValues

      public @Nullable List<Object> enumValues()
      Returns the value of the enumValues record component.
      Returns:
      the value of the enumValues record component
    • minimum

      public @Nullable BigDecimal minimum()
      Returns the value of the minimum record component.
      Returns:
      the value of the minimum record component
    • exclusiveMinimum

      public @Nullable BigDecimal exclusiveMinimum()
      Returns the value of the exclusiveMinimum record component.
      Returns:
      the value of the exclusiveMinimum record component
    • maximum

      public @Nullable BigDecimal maximum()
      Returns the value of the maximum record component.
      Returns:
      the value of the maximum record component
    • exclusiveMaximum

      public @Nullable BigDecimal exclusiveMaximum()
      Returns the value of the exclusiveMaximum record component.
      Returns:
      the value of the exclusiveMaximum record component
    • items

      public @Nullable ConfigurationSchemaProperty items()
      Returns the value of the items record component.
      Returns:
      the value of the items record component
    • additionalProperties

      public @Nullable Object additionalProperties()
      Returns the value of the additionalProperties record component.
      Returns:
      the value of the additionalProperties record component
    • defs

      public @Nullable Map<String, ConfigurationSchemaProperty> defs()
      Returns the value of the defs record component.
      Returns:
      the value of the defs record component
    • ref

      public @Nullable String ref()
      Returns the value of the ref record component.
      Returns:
      the value of the ref record component