Uses of Class
com.networknt.schema.SpecVersion.VersionFlag
-
Packages that use SpecVersion.VersionFlag Package Description com.networknt.schema com.networknt.schema.format -
-
Uses of SpecVersion.VersionFlag in com.networknt.schema
Fields in com.networknt.schema declared as SpecVersion.VersionFlag Modifier and Type Field Description private static SpecVersion.VersionFlag
UnevaluatedItemsValidator. DEFAULT_VERSION
private SpecVersion.VersionFlag
JsonMetaSchema.Builder. specification
private SpecVersion.VersionFlag
JsonMetaSchema. specification
Fields in com.networknt.schema with type parameters of type SpecVersion.VersionFlag Modifier and Type Field Description private static java.util.Map<java.lang.String,SpecVersion.VersionFlag>
SpecVersionDetector. supportedVersions
private java.util.EnumSet<SpecVersion.VersionFlag>
VersionCode. versions
Methods in com.networknt.schema that return SpecVersion.VersionFlag Modifier and Type Method Description static SpecVersion.VersionFlag
SpecVersionDetector. detect(com.fasterxml.jackson.databind.JsonNode jsonNode)
Detects schema version based on the schema tag: if the schema tag is not present, throwsJsonSchemaException
with the corresponding message, otherwise - returns the detected spec version.static SpecVersion.VersionFlag
SpecVersionDetector. detectVersion(com.fasterxml.jackson.databind.JsonNode jsonNode, java.nio.file.Path specification, SpecVersion.VersionFlag defaultVersion, boolean throwIfUnsupported)
SpecVersion.VersionFlag
JsonMetaSchema. getSpecification()
static SpecVersion.VersionFlag
SpecVersion.VersionFlag. valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static SpecVersion.VersionFlag[]
SpecVersion.VersionFlag. values()
Returns an array containing the constants of this enum type, in the order they are declared.Methods in com.networknt.schema that return types with arguments of type SpecVersion.VersionFlag Modifier and Type Method Description java.util.Optional<SpecVersion.VersionFlag>
ValidationContext. activeDialect()
static java.util.Optional<SpecVersion.VersionFlag>
SpecVersionDetector. detectOptionalVersion(com.fasterxml.jackson.databind.JsonNode jsonNode, boolean throwIfUnsupported)
Detects schema version based on the schema tag: if the schema tag is not present, returns an emptyOptional
value, otherwise - returns the detected spec version wrapped intoOptional
.static java.util.Optional<SpecVersion.VersionFlag>
SpecVersionDetector. detectOptionalVersion(java.lang.String schemaUri)
static java.util.Optional<SpecVersion.VersionFlag>
SpecVersionDetector. detectVersionFromPath(java.nio.file.Path path)
static java.util.Optional<SpecVersion.VersionFlag>
SpecVersion.VersionFlag. fromId(java.lang.String id)
(package private) java.util.EnumSet<SpecVersion.VersionFlag>
VersionCode. getVersions()
Methods in com.networknt.schema with parameters of type SpecVersion.VersionFlag Modifier and Type Method Description static JsonSchemaVersion
JsonSchemaFactory. checkVersion(SpecVersion.VersionFlag versionFlag)
Gets the json schema version to get the meta schema.static SpecVersion.VersionFlag
SpecVersionDetector. detectVersion(com.fasterxml.jackson.databind.JsonNode jsonNode, java.nio.file.Path specification, SpecVersion.VersionFlag defaultVersion, boolean throwIfUnsupported)
static JsonSchemaFactory
JsonSchemaFactory. getInstance(SpecVersion.VersionFlag versionFlag)
Creates a factory with a default schema dialect.static JsonSchemaFactory
JsonSchemaFactory. getInstance(SpecVersion.VersionFlag versionFlag, java.util.function.Consumer<JsonSchemaFactory.Builder> customizer)
Creates a factory with a default schema dialect.static java.util.List<ValidatorTypeCode>
ValidatorTypeCode. getKeywords(SpecVersion.VersionFlag versionFlag)
JsonMetaSchema.Builder
JsonMetaSchema.Builder. specification(SpecVersion.VersionFlag specification)
Sets the specification.Constructors in com.networknt.schema with parameters of type SpecVersion.VersionFlag Constructor Description JsonMetaSchema(java.lang.String iri, java.lang.String idKeyword, java.util.Map<java.lang.String,Keyword> keywords, java.util.Map<java.lang.String,java.lang.Boolean> vocabularies, SpecVersion.VersionFlag specification, JsonMetaSchema.Builder builder)
VersionCode(SpecVersion.VersionFlag[] versionFlags)
-
Uses of SpecVersion.VersionFlag in com.networknt.schema.format
Methods in com.networknt.schema.format with parameters of type SpecVersion.VersionFlag Modifier and Type Method Description protected boolean
BaseFormatJsonValidator. isFormatAssertionVocabularyEnabled(SpecVersion.VersionFlag specification, java.util.Map<java.lang.String,java.lang.Boolean> vocabularies)
-