Class ValueTypeSchema

    • Field Detail

      • enums

        protected java.util.Set<java.lang.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 Detail

      • ValueTypeSchema

        public ValueTypeSchema()
    • Method Detail

      • getEnums

        public java.util.Set<java.lang.String> getEnums()
      • getFormat

        public com.fasterxml.jackson.databind.jsonFormatVisitors.JsonValueFormat getFormat()
      • isValueTypeSchema

        public boolean isValueTypeSchema()
        Description copied from class: JsonSchema
        determine if this JsonSchema is an ValueTypeSchema.
        Overrides:
        isValueTypeSchema in class JsonSchema
        Returns:
        true if this JsonSchema is an ValueTypeSchema, false otherwise
      • setEnums

        public void setEnums​(java.util.Set<java.lang.String> enums)
      • setFormat

        public void setFormat​(com.fasterxml.jackson.databind.jsonFormatVisitors.JsonValueFormat format)