Package io.vertx.reactivex.json.schema
Class SchemaParser
- java.lang.Object
-
- io.vertx.reactivex.json.schema.SchemaParser
-
-
Field Summary
Fields Modifier and Type Field Description static TypeArg<SchemaParser>
__TYPE_ARG
-
Constructor Summary
Constructors Constructor Description SchemaParser(SchemaParser delegate)
SchemaParser(Object delegate)
-
Method Summary
-
-
-
Field Detail
-
__TYPE_ARG
public static final TypeArg<SchemaParser> __TYPE_ARG
-
-
Constructor Detail
-
SchemaParser
public SchemaParser(SchemaParser delegate)
-
SchemaParser
public SchemaParser(Object delegate)
-
-
Method Detail
-
getDelegate
public SchemaParser getDelegate()
-
parse
@Deprecated public Schema parse(JsonObject jsonSchema)
Deprecated.Build a schema from provided json assigning a random scope. This method registers the parsed schema (and relative subschemas) to the schema router- Parameters:
jsonSchema
- JSON representing the schema- Returns:
- the schema instance
-
parse
@Deprecated public Schema parse(JsonObject jsonSchema, JsonPointer schemaPointer)
Deprecated.Build a schema from provided json. This method registers the parsed schema (and relative subschemas) to the schema router- Parameters:
jsonSchema
- JSON representing the schemaschemaPointer
- Scope of schema. Must be a JSONPointer with absolute URI- Returns:
- the schema instance
-
parse
@Deprecated public Schema parse(Boolean jsonSchema)
Deprecated.Builds a true of false schema assigning a random scope- Parameters:
jsonSchema
- JSON representing the schema- Returns:
- the schema instance
-
parse
@Deprecated public Schema parse(Boolean jsonSchema, JsonPointer schemaPointer)
Deprecated.Builds a true of false schema- Parameters:
jsonSchema
- JSON representing the schemaschemaPointer
- Scope of schema. Must be a JSONPointer with absolute URI- Returns:
- the schema instance
-
parseFromString
@Deprecated public Schema parseFromString(String unparsedJson)
Deprecated.Build a schema from provided unparsed json assigning a random scope. This method registers the parsed schema (and relative subschemas) to the schema router- Parameters:
unparsedJson
- Unparsed JSON representing the schema.- Returns:
- the schema instance
-
parseFromString
@Deprecated public Schema parseFromString(String unparsedJson, JsonPointer schemaPointer)
Deprecated.Build a schema from provided unparsed json. This method registers the parsed schema (and relative subschemas) to the schema router- Parameters:
unparsedJson
- Unparsed JSON representing the schema.schemaPointer
- Scope of schema. Must be a JSONPointer with absolute URI- Returns:
- the schema instance
-
getSchemaRouter
@Deprecated public SchemaRouter getSchemaRouter()
Deprecated.Get schema router registered to this schema parser- Returns:
-
createOpenAPI3SchemaParser
@Deprecated public static SchemaParser createOpenAPI3SchemaParser(SchemaRouter router)
Deprecated.Create a newSchemaParser
for OpenAPI schemas- Parameters:
router
-- Returns:
-
createDraft7SchemaParser
@Deprecated public static SchemaParser createDraft7SchemaParser(SchemaRouter router)
Deprecated.Create a newSchemaParser
for Json Schema Draft-7 schemas- Parameters:
router
-- Returns:
-
createDraft201909SchemaParser
@Deprecated public static SchemaParser createDraft201909SchemaParser(SchemaRouter router)
Deprecated.Create a newSchemaParser
for Json Schema Draft2019-09 schemas- Parameters:
router
-- Returns:
-
withValidatorFactory
@Deprecated public SchemaParser withValidatorFactory(ValidatorFactory factory)
Deprecated.Add a to this schema parser to support custom keywords- Parameters:
factory
- new factory- Returns:
- a reference to this
-
withStringFormatValidator
@Deprecated public SchemaParser withStringFormatValidator(String formatName, Predicate<String> predicate)
Deprecated.Add a custom format validator- Parameters:
formatName
- format namepredicate
- predicate for the new format- Returns:
- a reference to this
-
newInstance
public static SchemaParser newInstance(SchemaParser arg)
-
-