Package io.vertx.mutiny.json.schema
Class SchemaParser
- java.lang.Object
-
- io.vertx.mutiny.json.schema.SchemaParser
-
public class SchemaParser extends Object
Parse a Json Schema. The parser can be extended to support custom keywords using NOTE: This class has been automatically generated from theoriginal
non Mutiny-ified interface using Vert.x codegen.
-
-
Field Summary
Fields Modifier and Type Field Description static TypeArg<SchemaParser>
__TYPE_ARG
-
Constructor Summary
Constructors Constructor Description SchemaParser(io.vertx.json.schema.SchemaParser delegate)
SchemaParser(Object delegate)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static SchemaParser
createDraft201909SchemaParser(SchemaRouter router)
Deprecated.static SchemaParser
createDraft7SchemaParser(SchemaRouter router)
Deprecated.static SchemaParser
createOpenAPI3SchemaParser(SchemaRouter router)
Deprecated.boolean
equals(Object o)
io.vertx.json.schema.SchemaParser
getDelegate()
SchemaRouter
getSchemaRouter()
Deprecated.int
hashCode()
static SchemaParser
newInstance(io.vertx.json.schema.SchemaParser arg)
Schema
parse(io.vertx.core.json.JsonObject jsonSchema)
Deprecated.Schema
parse(io.vertx.core.json.JsonObject jsonSchema, JsonPointer schemaPointer)
Deprecated.Schema
parse(Boolean jsonSchema)
Deprecated.Schema
parse(Boolean jsonSchema, JsonPointer schemaPointer)
Deprecated.Schema
parseFromString(String unparsedJson)
Deprecated.Schema
parseFromString(String unparsedJson, JsonPointer schemaPointer)
Deprecated.String
toString()
SchemaParser
withStringFormatValidator(String formatName, Predicate<String> predicate)
Deprecated.SchemaParser
withValidatorFactory(io.vertx.json.schema.common.ValidatorFactory factory)
Deprecated.
-
-
-
Field Detail
-
__TYPE_ARG
public static final TypeArg<SchemaParser> __TYPE_ARG
-
-
Constructor Detail
-
SchemaParser
public SchemaParser(io.vertx.json.schema.SchemaParser delegate)
-
SchemaParser
public SchemaParser(Object delegate)
-
-
Method Detail
-
getDelegate
public io.vertx.json.schema.SchemaParser getDelegate()
-
parse
@Deprecated public Schema parse(io.vertx.core.json.JsonObject jsonSchema)
Deprecated.- Parameters:
jsonSchema
- JSON representing the schema- Returns:
- the schema instance
-
parse
@Deprecated public Schema parse(io.vertx.core.json.JsonObject jsonSchema, JsonPointer schemaPointer)
Deprecated.- 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.- Parameters:
jsonSchema
- JSON representing the schema- Returns:
- the schema instance
-
parse
@Deprecated public Schema parse(Boolean jsonSchema, JsonPointer schemaPointer)
Deprecated.- 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.- Parameters:
unparsedJson
- Unparsed JSON representing the schema.- Returns:
- the schema instance
-
parseFromString
@Deprecated public Schema parseFromString(String unparsedJson, JsonPointer schemaPointer)
Deprecated.- 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.- Returns:
-
createOpenAPI3SchemaParser
@Deprecated public static SchemaParser createOpenAPI3SchemaParser(SchemaRouter router)
Deprecated.- Parameters:
router
-- Returns:
-
createDraft7SchemaParser
@Deprecated public static SchemaParser createDraft7SchemaParser(SchemaRouter router)
Deprecated.- Parameters:
router
-- Returns:
-
createDraft201909SchemaParser
@Deprecated public static SchemaParser createDraft201909SchemaParser(SchemaRouter router)
Deprecated.- Parameters:
router
-- Returns:
-
withValidatorFactory
@Deprecated public SchemaParser withValidatorFactory(io.vertx.json.schema.common.ValidatorFactory factory)
Deprecated.- Parameters:
factory
- new factory- Returns:
- a reference to this
-
withStringFormatValidator
@Deprecated public SchemaParser withStringFormatValidator(String formatName, Predicate<String> predicate)
Deprecated.- Parameters:
formatName
- format namepredicate
- predicate for the new format- Returns:
- a reference to this
-
newInstance
public static SchemaParser newInstance(io.vertx.json.schema.SchemaParser arg)
-
-