Package io.vertx.json.schema.common.dsl
Class SchemaBuilder<T extends SchemaBuilder<?,?>,K extends Keyword>
- java.lang.Object
-
- io.vertx.json.schema.common.dsl.SchemaBuilder<T,K>
-
- Type Parameters:
T-K-
- Direct Known Subclasses:
ArraySchemaBuilder,BooleanSchemaBuilder,GenericSchemaBuilder,NumberSchemaBuilder,ObjectSchemaBuilder,StringSchemaBuilder,TupleSchemaBuilder
public abstract class SchemaBuilder<T extends SchemaBuilder<?,?>,K extends Keyword> extends Object
Entry point for schema dsl. Look at the doc for more info
-
-
Constructor Summary
Constructors Constructor Description SchemaBuilder(SchemaType type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Talias(String alias)TdefaultValue(Object defaultValue)TfromJson(JsonObject object)SchemaTypegetType()Tid(JsonPointer id)Tnullable()JsonObjecttoJson()Ttype(SchemaType type)Twith(K keyword)Twith(K... keywords)TwithKeyword(String key, Object value)
-
-
-
Constructor Detail
-
SchemaBuilder
public SchemaBuilder(SchemaType type)
-
-
Method Detail
-
id
public T id(JsonPointer id)
-
fromJson
public T fromJson(JsonObject object)
-
nullable
public T nullable()
-
type
public T type(SchemaType type)
-
getType
public SchemaType getType()
-
toJson
public JsonObject toJson()
-
-