Class Schema.Builder
- Enclosing class:
- Schema
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSetter for anyOf.anyOf(Schema.Builder... anyOfBuilders) Setter for anyOf builder.abstract Schema.BuilderSetter for anyOf.abstract Schemabuild()abstract Schema.BuilderSetter for default_.abstract Schema.Builderdescription(String description) Setter for description.Setter for enum_.abstract Schema.BuilderSetter for enum_.abstract Schema.BuilderSetter for example.abstract Schema.BuilderSetter for format.abstract Schema.BuilderSetter for items.items(Schema.Builder itemsBuilder) Setter for items builder.abstract Schema.BuilderSetter for maximum.abstract Schema.BuilderSetter for maxItems.abstract Schema.BuilderSetter for maxLength.abstract Schema.BuildermaxProperties(Long maxProperties) Setter for maxProperties.abstract Schema.BuilderSetter for minimum.abstract Schema.BuilderSetter for minItems.abstract Schema.BuilderSetter for minLength.abstract Schema.BuilderminProperties(Long minProperties) Setter for minProperties.abstract Schema.Buildernullable(boolean nullable) Setter for nullable.abstract Schema.BuilderSetter for pattern.abstract Schema.Builderproperties(Map<String, Schema> properties) Setter for properties.propertyOrdering(String... propertyOrdering) Setter for propertyOrdering.abstract Schema.BuilderpropertyOrdering(List<String> propertyOrdering) Setter for propertyOrdering.Setter for required.abstract Schema.BuilderSetter for required.abstract Schema.BuilderSetter for title.abstract Schema.BuilderSetter for type.type(Type.Known knownType) Setter for type given a known enum.Setter for type given a string.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
anyOf
Setter for anyOf.anyOf: Optional. The value should be validated against any (one or more) of the subschemas in the list.
-
anyOf
Setter for anyOf.anyOf: Optional. The value should be validated against any (one or more) of the subschemas in the list.
-
anyOf
Setter for anyOf builder.anyOf: Optional. The value should be validated against any (one or more) of the subschemas in the list.
-
default_
Setter for default_.default_: Optional. Default value of the data.
-
description
Setter for description.description: Optional. The description of the data.
-
enum_
Setter for enum_.enum_: Optional. Possible values of the element of primitive type with enum format. Examples: 1. We can define direction as : {type:STRING, format:enum, enum:["EAST", NORTH", "SOUTH", "WEST"]} 2. We can define apartment number as : {type:INTEGER, format:enum, enum:["101", "201", "301"]}
-
enum_
Setter for enum_.enum_: Optional. Possible values of the element of primitive type with enum format. Examples: 1. We can define direction as : {type:STRING, format:enum, enum:["EAST", NORTH", "SOUTH", "WEST"]} 2. We can define apartment number as : {type:INTEGER, format:enum, enum:["101", "201", "301"]}
-
example
Setter for example.example: Optional. Example of the object. Will only populated when the object is the root.
-
format
Setter for format.format: Optional. The format of the data. Supported formats: for NUMBER type: "float", "double" for INTEGER type: "int32", "int64" for STRING type: "email", "byte", etc
-
items
Setter for items.items: Optional. SCHEMA FIELDS FOR TYPE ARRAY Schema of the elements of Type.ARRAY.
-
items
Setter for items builder.items: Optional. SCHEMA FIELDS FOR TYPE ARRAY Schema of the elements of Type.ARRAY.
-
maxItems
Setter for maxItems.maxItems: Optional. Maximum number of the elements for Type.ARRAY.
-
maxLength
Setter for maxLength.maxLength: Optional. Maximum length of the Type.STRING
-
maxProperties
Setter for maxProperties.maxProperties: Optional. Maximum number of the properties for Type.OBJECT.
-
maximum
Setter for maximum.maximum: Optional. Maximum value of the Type.INTEGER and Type.NUMBER
-
minItems
Setter for minItems.minItems: Optional. Minimum number of the elements for Type.ARRAY.
-
minLength
Setter for minLength.minLength: Optional. SCHEMA FIELDS FOR TYPE STRING Minimum length of the Type.STRING
-
minProperties
Setter for minProperties.minProperties: Optional. Minimum number of the properties for Type.OBJECT.
-
minimum
Setter for minimum.minimum: Optional. SCHEMA FIELDS FOR TYPE INTEGER and NUMBER Minimum value of the Type.INTEGER and Type.NUMBER
-
nullable
Setter for nullable.nullable: Optional. Indicates if the value may be null.
-
pattern
Setter for pattern.pattern: Optional. Pattern of the Type.STRING to restrict a string to a regular expression.
-
properties
Setter for properties.properties: Optional. SCHEMA FIELDS FOR TYPE OBJECT Properties of Type.OBJECT.
-
propertyOrdering
Setter for propertyOrdering.propertyOrdering: Optional. The order of the properties. Not a standard field in open api spec. Only used to support the order of the properties.
-
propertyOrdering
Setter for propertyOrdering.propertyOrdering: Optional. The order of the properties. Not a standard field in open api spec. Only used to support the order of the properties.
-
required
Setter for required.required: Optional. Required properties of Type.OBJECT.
-
required
Setter for required.required: Optional. Required properties of Type.OBJECT.
-
title
Setter for title.title: Optional. The title of the Schema.
-
type
Setter for type.type: Optional. The type of the data.
-
type
Setter for type given a known enum.type: Optional. The type of the data.
-
type
Setter for type given a string.type: Optional. The type of the data.
-
build
-