public class Draft201909SchemaParser extends BaseSchemaParser
router, validatorFactories
Modifier | Constructor and Description |
---|---|
protected |
Draft201909SchemaParser(SchemaRouter router) |
Modifier and Type | Method and Description |
---|---|
static Draft201909SchemaParser |
create(SchemaRouter router)
Instantiate a Draft201909SchemaParser
|
protected SchemaImpl |
createSchema(JsonObject schema,
JsonPointer scope,
MutableStateValidator parent) |
Draft201909SchemaParser |
ignoreFormatKeyword()
Because in draft2019-09
format keyword is no longer an assertion,
you may turn the validation of the keyword off using this method |
protected List<ValidatorFactory> |
initValidatorFactories() |
static Schema |
parse(Vertx vertx,
JsonObject schema,
URI scope)
Parse a draft2019-09 schema
|
protected Map.Entry<Optional<JsonPointer>,Optional<String>> |
resolveIdAndAlias(JsonObject schema,
URI scope) |
getSchemaRouter, parse, parseFromString, withStringFormatValidator, withValidatorFactory
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
parse, parse, parse, parse, parse, parse, parse, parseFromString, parseFromString, parseFromString, parseFromString
createDraft201909SchemaParser, createDraft7SchemaParser, createOpenAPI3SchemaParser
protected Draft201909SchemaParser(SchemaRouter router)
protected List<ValidatorFactory> initValidatorFactories()
initValidatorFactories
in class BaseSchemaParser
protected Map.Entry<Optional<JsonPointer>,Optional<String>> resolveIdAndAlias(JsonObject schema, URI scope)
resolveIdAndAlias
in class BaseSchemaParser
protected SchemaImpl createSchema(JsonObject schema, JsonPointer scope, MutableStateValidator parent)
createSchema
in class BaseSchemaParser
public Draft201909SchemaParser ignoreFormatKeyword()
format
keyword is no longer an assertion,
you may turn the validation of the keyword off using this methodpublic static Draft201909SchemaParser create(SchemaRouter router)
router
- router to associate to read $refpublic static Schema parse(Vertx vertx, JsonObject schema, URI scope)
vertx
- this vertx instanceschema
- parsed json schemascope
- scope of json schemaSchemaException
- if schema is invalidCopyright © 2021 Eclipse. All rights reserved.