Class ValueTypeSchema

Direct Known Subclasses:
BooleanSchema, NumberSchema, StringSchema

public abstract class ValueTypeSchema extends SimpleTypeSchema
This class represents a JsonSchema A primitive type.
  • Field Details

    • enums

      protected Set<String> enums
      This provides an enumeration of all possible values that are valid for the instance property. This MUST be an array, and each item in the array represents a possible value for the instance value. If this attribute is defined, the instance value MUST be one of the values in the array in order for the schema to be valid. Comparison of enum values uses the same algorithm as defined in "uniqueItems" (Section 5.15).
    • format

      protected com.fasterxml.jackson.databind.jsonFormatVisitors.JsonValueFormat format
      This property defines the type of data, content type, or microformat to be expected in the instance property values. A format attribute MAY be one of the values listed below, and if so, SHOULD adhere to the semantics describing for the format. A format SHOULD only be used to give meaning to primitive types (string, integer, number, or boolean). Validators MAY (but are not required to) validate that the instance values conform to a format. Additional custom formats MAY be created. These custom formats MAY be expressed as an URI, and this URI MAY reference a schema of that

      NOTE: serialization of `format` was fixed in Jackson 2.7; requires at least this version of databind

  • Constructor Details

    • ValueTypeSchema

      public ValueTypeSchema()
  • Method Details