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.Builder
Setter for anyOf.abstract Schema
build()
abstract Schema.Builder
Setter for default_.abstract Schema.Builder
description
(String description) Setter for description.Setter for enum_.abstract Schema.Builder
Setter for enum_.abstract Schema.Builder
Setter for example.abstract Schema.Builder
Setter for format.abstract Schema.Builder
Setter for items.items
(Schema.Builder itemsBuilder) Setter for items builder.abstract Schema.Builder
Setter for maximum.abstract Schema.Builder
Setter for maxItems.abstract Schema.Builder
Setter for maxLength.abstract Schema.Builder
maxProperties
(Long maxProperties) Setter for maxProperties.abstract Schema.Builder
Setter for minimum.abstract Schema.Builder
Setter for minItems.abstract Schema.Builder
Setter for minLength.abstract Schema.Builder
minProperties
(Long minProperties) Setter for minProperties.abstract Schema.Builder
nullable
(boolean nullable) Setter for nullable.abstract Schema.Builder
Setter for pattern.abstract Schema.Builder
properties
(Map<String, Schema> properties) Setter for properties.propertyOrdering
(String... propertyOrdering) Setter for propertyOrdering.abstract Schema.Builder
propertyOrdering
(List<String> propertyOrdering) Setter for propertyOrdering.Setter for required.abstract Schema.Builder
Setter for required.abstract Schema.Builder
Setter for title.abstract Schema.Builder
Setter 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
-