Enum EJsonSchemaVersion

    • Enum Constant Detail

      • 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 Detail

      • values

        public static EJsonSchemaVersion[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (EJsonSchemaVersion c : EJsonSchemaVersion.values())
            System.out.println(c);
        
        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