Enum EJsonSchemaVersion
- All Implemented Interfaces:
Serializable, Comparable<EJsonSchemaVersion>
Enumeration of JSON schema versions.
- Since:
- 8.5.0
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe 04 version of the JSON schema specification.The 05 version of the JSON schema specification, published on 13 October 2016.The 06 version of the JSON schema specification, published on 21 April 2017.The 07 version of the JSON schema specification, published on 19 March 2018.The 2019-09 version of the JSON schema specification, published on 17 September 2019.The 2020-12 version of the JSON schema specification, published on 16 June 2022. -
Method Summary
Modifier and TypeMethodDescriptionschemaId()Gets the schema ID (URI) associated with this JSON schema version, e.g.static EJsonSchemaVersionReturns the enum constant of this type with the specified name.static EJsonSchemaVersion[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
DRAFT_2020_12
The 2020-12 version of the JSON schema specification, published on 16 June 2022. -
DRAFT_2019_09
The 2019-09 version of the JSON schema specification, published on 17 September 2019. -
DRAFT_07
The 07 version of the JSON schema specification, published on 19 March 2018. -
DRAFT_06
The 06 version of the JSON schema specification, published on 21 April 2017. -
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
The 04 version of the JSON schema specification.
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
schemaId
Gets the schema ID (URI) associated with this JSON schema version, e.g. https://json-schema.org/draft/2020-12/schema forDRAFT_2020_12.- Returns:
- The schema ID (URI) associated with this JSON schema version.
-