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 theoriginalnon 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
 
 - 
 
- 
- 
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
public Schema parse(io.vertx.core.json.JsonObject jsonSchema)
- Parameters:
 jsonSchema- JSON representing the schema- Returns:
 - the schema instance
 
 
- 
parse
public Schema parse(io.vertx.core.json.JsonObject jsonSchema, JsonPointer schemaPointer)
- Parameters:
 jsonSchema- JSON representing the schemaschemaPointer- Scope of schema. Must be a JSONPointer with absolute URI- Returns:
 - the schema instance
 
 
- 
parse
public Schema parse(Boolean jsonSchema)
- Parameters:
 jsonSchema- JSON representing the schema- Returns:
 - the schema instance
 
 
- 
parse
public Schema parse(Boolean jsonSchema, JsonPointer schemaPointer)
- Parameters:
 jsonSchema- JSON representing the schemaschemaPointer- Scope of schema. Must be a JSONPointer with absolute URI- Returns:
 - the schema instance
 
 
- 
parseFromString
public Schema parseFromString(String unparsedJson)
- Parameters:
 unparsedJson- Unparsed JSON representing the schema.- Returns:
 - the schema instance
 
 
- 
parseFromString
public Schema parseFromString(String unparsedJson, JsonPointer schemaPointer)
- Parameters:
 unparsedJson- Unparsed JSON representing the schema.schemaPointer- Scope of schema. Must be a JSONPointer with absolute URI- Returns:
 - the schema instance
 
 
- 
getSchemaRouter
public SchemaRouter getSchemaRouter()
- Returns:
 
 
- 
createOpenAPI3SchemaParser
public static SchemaParser createOpenAPI3SchemaParser(SchemaRouter router)
- Parameters:
 router-- Returns:
 
 
- 
createDraft7SchemaParser
public static SchemaParser createDraft7SchemaParser(SchemaRouter router)
- Parameters:
 router-- Returns:
 
 
- 
createDraft201909SchemaParser
public static SchemaParser createDraft201909SchemaParser(SchemaRouter router)
- Parameters:
 router-- Returns:
 
 
- 
withValidatorFactory
public SchemaParser withValidatorFactory(io.vertx.json.schema.common.ValidatorFactory factory)
- Parameters:
 factory- new factory- Returns:
 - a reference to this
 
 
- 
withStringFormatValidator
public SchemaParser withStringFormatValidator(String formatName, Predicate<String> predicate)
- 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)
 
 - 
 
 -