Enum Class Schema.Type

java.lang.Object
java.lang.Enum<Schema.Type>
io.micronaut.jsonschema.visitor.model.Schema.Type
All Implemented Interfaces:
Serializable, Comparable<Schema.Type>, Constable
Enclosing class:
Schema

public static enum Schema.Type extends Enum<Schema.Type>
The type of schema exactly matching a primitive JSON type.
  • Enum Constant Details

    • ARRAY

      public static final Schema.Type ARRAY
      An ordered list of instances.
    • BOOLEAN

      public static final Schema.Type BOOLEAN
      A "true" or "false" value.
    • NULL

      public static final Schema.Type NULL
      A JSON "null" value.
    • INTEGER

      public static final Schema.Type INTEGER
      An integer.
    • NUMBER

      public static final Schema.Type NUMBER
      An arbitrary-precision, base-10 decimal number value.
    • OBJECT

      public static final Schema.Type OBJECT
      An unordered set of properties mapping a string to an instance.
    • STRING

      public static final Schema.Type STRING
      A string of Unicode code points.
  • Method Details

    • values

      public static Schema.Type[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static Schema.Type valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null