Enum EJsonSchemaVersion

java.lang.Object
java.lang.Enum<EJsonSchemaVersion>
de.xima.fc.prompt.service.support.EJsonSchemaVersion
All Implemented Interfaces:
Serializable, Comparable<EJsonSchemaVersion>

public enum EJsonSchemaVersion extends Enum<EJsonSchemaVersion>
Enumeration of JSON schema versions.
Since:
8.5.0
  • Enum Constant Details

    • DRAFT_2020_12

      public static final EJsonSchemaVersion DRAFT_2020_12
      The 2020-12 version of the JSON schema specification, published on 16 June 2022.
    • DRAFT_2019_09

      public static final EJsonSchemaVersion DRAFT_2019_09
      The 2019-09 version of the JSON schema specification, published on 17 September 2019.
    • DRAFT_07

      public static final EJsonSchemaVersion DRAFT_07
      The 07 version of the JSON schema specification, published on 19 March 2018.
    • DRAFT_06

      public static final EJsonSchemaVersion DRAFT_06
      The 06 version of the JSON schema specification, published on 21 April 2017.
    • DRAFT_05

      public static final EJsonSchemaVersion DRAFT_05
      The 05 version of the JSON schema specification, published on 13 October 2016.

      Q: What happened to draft-05?

      The draft-05 core and validation specifications were intended to be more clear and readable rewrites of draft-04, to give us a strong base for draft-06 changes. Implementors should not implement or advertise support for "draft-05".

      Implementations that supported "draft-05" by implementing proposals from right after the publication of draft-04 should either remove that support or give it a different name to avoid confusion.

    • DRAFT_04

      public static final EJsonSchemaVersion DRAFT_04
      The 04 version of the JSON schema specification.
  • Method Details

    • values

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

      public static EJsonSchemaVersion valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
      NullPointerException - if the argument is null
    • schemaId

      public String schemaId()
      Gets the schema ID (URI) associated with this JSON schema version, e.g. https://json-schema.org/draft/2020-12/schema for DRAFT_2020_12.
      Returns:
      The schema ID (URI) associated with this JSON schema version.