public class Draft7SchemaParser extends BaseSchemaParser
router, validatorFactories
Modifier | Constructor and Description |
---|---|
protected |
Draft7SchemaParser(SchemaRouter router) |
Modifier and Type | Method and Description |
---|---|
static Draft7SchemaParser |
create(SchemaRouter router)
Instantiate a Draft7SchemaParser
|
protected List<ValidatorFactory> |
initValidatorFactories() |
static Schema |
parse(Vertx vertx,
JsonObject schema,
URI scope)
Parse a draft-7 schema
|
createSchema, getSchemaRouter, parse, parseFromString, resolveIdAndAlias, 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 Draft7SchemaParser(SchemaRouter router)
protected List<ValidatorFactory> initValidatorFactories()
initValidatorFactories
in class BaseSchemaParser
public static Draft7SchemaParser 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.