Class HttpPartSchema.Builder
- Enclosing class:
HttpPartSchema
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondefault field._enum field.enum field.additionalProperties field.additionalProperties field.aev()
Synonym forallowEmptyValue()
.Synonym forallowEmptyValue(Boolean)
.Synonym forallowEmptyValue(String)
.allowEmptyValue field.allowEmptyValue
(Boolean value) allowEmptyValue field.allowEmptyValue
(String value) allowEmptyValue field.ap
(HttpPartSchema value) Shortcut foradditionalProperties(value) ap
(HttpPartSchema.Builder value) Shortcut foradditionalProperties(value) apply
(Annotation a) Apply the specified annotation to this schema.build()
Instantiates a newHttpPartSchema
object based on the configuration of this builder.Synonym forcollectionFormat(String)
.cf
(HttpPartCollectionFormat value) Synonym forcollectionFormat(HttpPartCollectionFormat)
.cfCsv()
Shortcut forcollectionFormat(HttpPartCollectionFormat.CSV) .cfMulti()
Shortcut forcollectionFormat(HttpPartCollectionFormat.MULTI) .cfNone()
Shortcut forcollectionFormat(HttpPartCollectionFormat.NO_COLLECTION_FORMAT) .cfPipes()
Shortcut forcollectionFormat(HttpPartCollectionFormat.PIPES) .cfSsv()
Shortcut forcollectionFormat(HttpPartCollectionFormat.SSV) .cfTsv()
Shortcut forcollectionFormat(HttpPartCollectionFormat.TSV) .cfUon()
Shortcut forcollectionFormat(HttpPartCollectionFormat.UONC) .code
(int value) httpStatusCode key.codes
(int[] value) httpStatusCode key.collectionFormat
(String value) collectionFormat field.collectionFormat field.Synonym for_default(String)
.Synonym for_enum(String...)
.Synonym for_enum(Set)
.emax()
Synonym forexclusiveMaximum()
.Synonym forexclusiveMaximum(Boolean)
.Synonym forexclusiveMaximum(String)
.emin()
Synonym forexclusiveMinimum()
.Synonym forexclusiveMinimum(Boolean)
.Synonym forexclusiveMinimum(String)
.exclusiveMaximum field.exclusiveMaximum
(Boolean value) exclusiveMaximum field.exclusiveMaximum
(String value) exclusiveMaximum field.exclusiveMinimum field.exclusiveMinimum
(Boolean value) exclusiveMinimum field.exclusiveMinimum
(String value) exclusiveMinimum field.Synonym forformat(String)
.f
(HttpPartFormat value) Synonym forformat(HttpPartFormat)
.fBinary()
Shortcut forformat(HttpPartFormat.BINARY) .Shortcut forformat(HttpPartFormat.BINARY_SPACED) .fByte()
Shortcut forformat(HttpPartFormat.BYTE) .fDate()
Shortcut forformat(HttpPartFormat.DATE) .Shortcut forformat(HttpPartFormat.DATE_TIME) .fDouble()
Shortcut forformat(HttpPartFormat.DOUBLE) .fFloat()
Shortcut forformat(HttpPartFormat.FLOAT) .fInt32()
Shortcut forformat(HttpPartFormat.INT32) .fInt64()
Shortcut forformat(HttpPartFormat.INT64) .fNone()
Shortcut forformat(HttpPartFormat.NO_FORMAT) .format field.format
(HttpPartFormat value) format field.Shortcut forformat(HttpPartFormat.PASSWORD) .fUon()
Shortcut forformat(HttpPartFormat.UON) .i
(HttpPartSchema value) Synonym foritems(HttpPartSchema)
.i
(HttpPartSchema.Builder value) Synonym foritems(HttpPartSchema.Builder)
.items
(HttpPartSchema value) items field.items
(HttpPartSchema.Builder value) items field.Synonym formaximum(Number)
.Synonym formaxItems(Long)
.Synonym formaxItems(String)
.maximum field.maxItems field.maxItems field.Synonym formaxLength(Long)
.Synonym formaxLength(String)
.maxLength field.maxLength field.Synonym formaxProperties(Long)
.Synonym formaxProperties(String)
.maxProperties
(Long value) mapProperties field.maxProperties
(String value) mapProperties field.Synonym forminimum(Number)
.Synonym forminItems(Long)
.Synonym forminItems(String)
.minimum field.minItems field.minItems field.Synonym forminLength(Long)
.Synonym forminLength(String)
.minLength field.minLength field.Synonym forminProperties(Long)
.Synonym forminProperties(String)
.minProperties
(Long value) minProperties field.minProperties
(String value) minProperties field.Synonym formultipleOf(Number)
.multipleOf
(Number value) multipleOf field.Synonym forname(String)
.name field.Disables Swagger schema usage validation checking.noValidate
(Boolean value) Disables Swagger schema usage validation checking.Synonym forpattern(String)
.p
(String key, HttpPartSchema value) Shortcut forproperty(key, value) .p
(String key, HttpPartSchema.Builder value) Shortcut forproperty(key, value) .parser
(Class<? extends HttpPartParser> value) Identifies the part parser to use for parsing this part.pattern field.property
(String key, HttpPartSchema value) properties field.property
(String key, HttpPartSchema.Builder value) properties field.r()
Synonym forrequired()
.Synonym forrequired(Boolean)
.Synonym forrequired(String)
.required()
required field.required field.required field.serializer
(Class<? extends HttpPartSerializer> value) Identifies the part serializer to use for serializing this part.sie()
Synonym forskipIfEmpty()
.Synonym forskipIfEmpty(Boolean)
.Synonym forskipIfEmpty(String)
.Identifies whether an item should be skipped if it's empty.skipIfEmpty
(Boolean value) skipIfEmpty field.skipIfEmpty
(String value) skipIfEmpty field.Synonym fortype(String)
.t
(HttpPartDataType value) Synonym fortype(HttpPartDataType)
.tArray()
Shortcut fortype(HttpPartDataType.ARRAY) .tBoolean()
Shortcut fortype(HttpPartDataType.BOOLEAN) .tFile()
Shortcut fortype(HttpPartDataType.FILE) .tInteger()
Shortcut fortype(HttpPartDataType.INTEGER) .tNone()
Shortcut fortype(HttpPartDataType.NO_TYPE) .tNumber()
Shortcut fortype(HttpPartDataType.NUMBER) .tObject()
Shortcut fortype(HttpPartDataType.OBJECT) .tString()
Shortcut fortype(HttpPartDataType.STRING) .type field.type
(HttpPartDataType value) type field.ui()
Synonym foruniqueItems()
.Synonym foruniqueItems(Boolean)
.Synonym foruniqueItems(String)
.uniqueItems field.uniqueItems
(Boolean value) uniqueItems field.uniqueItems
(String value) uniqueItems field.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Instantiates a newHttpPartSchema
object based on the configuration of this builder.This method can be called multiple times to produce new schema objects.
- Returns:
- A new
HttpPartSchema
object.
Nevernull .
-
apply
Apply the specified annotation to this schema.- Parameters:
a
- The annotation to apply.- Returns:
- This object.
-
name
- Parameters:
value
- The new value for this property.- Returns:
- This object.
-
n
Synonym forname(String)
.- Parameters:
value
- The new value for this property.- Returns:
- This object.
-
codes
- Parameters:
value
- The new value for this property.
Ignored ifnull or an empty array.- Returns:
- This object.
-
code
- Parameters:
value
- The new value for this property.
Ignored if value is0 .- Returns:
- This object.
-
required
required field.Determines whether the parameter is mandatory.
Applicable to the following Swagger schema objects:
- Parameters:
value
- The new value for this property.
Ignored if value isnull .- Returns:
- This object.
-
r
Synonym forrequired(Boolean)
.- Parameters:
value
- The new value for this property.- Returns:
- This object.
-
required
required field.Determines whether the parameter is mandatory.
Same as
required(Boolean)
but takes in a boolean value as a string.- Parameters:
value
- The new value for this property.
Ignored if value isnull or empty.- Returns:
- This object.
-
r
Synonym forrequired(String)
.- Parameters:
value
- The new value for this property.- Returns:
- This object.
-
required
required field.Shortcut for calling
required(
.true );- Returns:
- This object.
-
r
Synonym forrequired()
.- Returns:
- This object.
-
type
type field.The type of the parameter.
If the type is not specified, it will be auto-detected based on the parameter class type.
Applicable to the following Swagger schema objects:
-
"string"
Parameter must be a string or a POJO convertible from a string. -
"number"
Parameter must be a number primitive or number object.
If parameter isObject , creates either aFloat orDouble depending on the size of the number. -
"integer"
Parameter must be a integer/long primitive or integer/long object.
If parameter isObject , creates either aShort ,Integer , orLong depending on the size of the number. -
"boolean"
Parameter must be a boolean primitive or object. -
"array"
Parameter must be an array or collection.
Elements must be strings or POJOs convertible from strings.
If parameter isObject , creates anJsonList
. -
"object"
Parameter must be a map or bean.
If parameter isObject , creates anJsonMap
.
Note that this is an extension of the OpenAPI schema as Juneau allows for arbitrarily-complex POJOs to be serialized as HTTP parts. -
"file"
This type is currently not supported.
See Also:
- Parameters:
value
- The new value for this property.
Ignored if value isnull or empty.- Returns:
- This object.
-
-
t
Synonym fortype(String)
.- Parameters:
value
- The new value for this property.- Returns:
- This object.
-
tString
Shortcut fortype(HttpPartDataType.STRING) .- Returns:
- This object.
-
tNumber
Shortcut fortype(HttpPartDataType.NUMBER) .- Returns:
- This object.
-
tInteger
Shortcut fortype(HttpPartDataType.INTEGER) .- Returns:
- This object.
-
tBoolean
Shortcut fortype(HttpPartDataType.BOOLEAN) .- Returns:
- This object.
-
tArray
Shortcut fortype(HttpPartDataType.ARRAY) .- Returns:
- This object.
-
tObject
Shortcut fortype(HttpPartDataType.OBJECT) .- Returns:
- This object.
-
tFile
Shortcut fortype(HttpPartDataType.FILE) .- Returns:
- This object.
-
tNone
Shortcut fortype(HttpPartDataType.NO_TYPE) .- Returns:
- This object.
-
type
type field.The type of the parameter.
If the type is not specified, it will be auto-detected based on the parameter class type.
Applicable to the following Swagger schema objects:
HttpPartDataType
-
STRING
Parameter must be a string or a POJO convertible from a string. -
NUMBER
Parameter must be a number primitive or number object.
If parameter isObject , creates either aFloat orDouble depending on the size of the number. -
INTEGER
Parameter must be a integer/long primitive or integer/long object.
If parameter isObject , creates either aShort ,Integer , orLong depending on the size of the number. -
BOOLEAN
Parameter must be a boolean primitive or object. -
ARRAY
Parameter must be an array or collection.
Elements must be strings or POJOs convertible from strings.
If parameter isObject , creates anJsonList
. -
OBJECT
Parameter must be a map or bean.
If parameter isObject , creates anJsonMap
.
Note that this is an extension of the OpenAPI schema as Juneau allows for arbitrarily-complex POJOs to be serialized as HTTP parts. -
FILE
This type is currently not supported.
-
See Also:
- Parameters:
value
- The new value for this property.- Returns:
- This object.
-
t
Synonym fortype(HttpPartDataType)
.- Parameters:
value
- The new value for this property.- Returns:
- This object.
-
format
format field.The extending format for the previously mentioned parameter type.
Applicable to the following Swagger schema objects:
-
"int32" - Signed 32 bits.
Only valid with type"integer" . -
"int64" - Signed 64 bits.
Only valid with type"integer" . -
"float" - 32-bit floating point number.
Only valid with type"number" . -
"double" - 64-bit floating point number.
Only valid with type"number" . -
"byte" - BASE-64 encoded characters.
Only valid with type"string" .
Parameters of type POJO convertible from string are converted after the string has been decoded. -
"binary" - Hexadecimal encoded octets (e.g."00FF" ).
Only valid with type"string" .
Parameters of type POJO convertible from string are converted after the string has been decoded. -
"binary-spaced" - Hexadecimal encoded octets, spaced (e.g."00 FF" ).
Only valid with type"string" .
Parameters of type POJO convertible from string are converted after the string has been decoded. -
"date" - An RFC3339 full-date.
Only valid with type"string" . -
"date-time" - An RFC3339 date-time.
Only valid with type"string" . -
"password" - Used to hint UIs the input needs to be obscured.
This format does not affect the serialization or parsing of the parameter. -
"uon" - UON notation (e.g."(foo=bar,baz=@(qux,123))" ).
Only valid with type"object" .
If not specified, then the input is interpreted as plain-text and is converted to a POJO directly.
See Also:
- Parameters:
value
- The new value for this property.
Ignored if value isnull or an empty string.- Returns:
- This object.
-
-
f
Synonym forformat(String)
.- Parameters:
value
- The new value for this property.- Returns:
- This object.
-
format
format field.The extending format for the previously mentioned parameter type.
Applicable to the following Swagger schema objects:
-
INT32
- Signed 32 bits.
Only valid with type"integer" . -
INT64
- Signed 64 bits.
Only valid with type"integer" . -
FLOAT
- 32-bit floating point number.
Only valid with type"number" . -
DOUBLE
- 64-bit floating point number.
Only valid with type"number" . -
BYTE
- BASE-64 encoded characters.
Only valid with type"string" .
Parameters of type POJO convertible from string are converted after the string has been decoded. -
BINARY
- Hexadecimal encoded octets (e.g."00FF" ).
Only valid with type"string" .
Parameters of type POJO convertible from string are converted after the string has been decoded. -
BINARY_SPACED
- Hexadecimal encoded octets, spaced (e.g."00 FF" ).
Only valid with type"string" .
Parameters of type POJO convertible from string are converted after the string has been decoded. -
DATE
- An RFC3339 full-date.
Only valid with type"string" . -
DATE_TIME
- An RFC3339 date-time.
Only valid with type"string" . -
PASSWORD
- Used to hint UIs the input needs to be obscured.
This format does not affect the serialization or parsing of the parameter. -
UON
- UON notation (e.g."(foo=bar,baz=@(qux,123))" ).
Only valid with type"object" .
If not specified, then the input is interpreted as plain-text and is converted to a POJO directly.
HttpPartFormat
See Also:
- Parameters:
value
- The new value for this property.- Returns:
- This object.
-
-
f
Synonym forformat(HttpPartFormat)
.- Parameters:
value
- The new value for this property.- Returns:
- This object.
-
fInt32
Shortcut forformat(HttpPartFormat.INT32) .- Returns:
- This object.
-
fInt64
Shortcut forformat(HttpPartFormat.INT64) .- Returns:
- This object.
-
fFloat
Shortcut forformat(HttpPartFormat.FLOAT) .- Returns:
- This object.
-
fDouble
Shortcut forformat(HttpPartFormat.DOUBLE) .- Returns:
- This object.
-
fByte
Shortcut forformat(HttpPartFormat.BYTE) .- Returns:
- This object.
-
fBinary
Shortcut forformat(HttpPartFormat.BINARY) .- Returns:
- This object.
-
fBinarySpaced
Shortcut forformat(HttpPartFormat.BINARY_SPACED) .- Returns:
- This object.
-
fDate
Shortcut forformat(HttpPartFormat.DATE) .- Returns:
- This object.
-
fDateTime
Shortcut forformat(HttpPartFormat.DATE_TIME) .- Returns:
- This object.
-
fPassword
Shortcut forformat(HttpPartFormat.PASSWORD) .- Returns:
- This object.
-
fUon
Shortcut forformat(HttpPartFormat.UON) .- Returns:
- This object.
-
fNone
Shortcut forformat(HttpPartFormat.NO_FORMAT) .- Returns:
- This object.
-
allowEmptyValue
allowEmptyValue field.Sets the ability to pass empty-valued parameters.
This is valid only for either query or formData parameters and allows you to send a parameter with a name only or an empty value.
The default value isfalse .Applicable to the following Swagger schema objects:
- Parameters:
value
- The new value for this property.
Ignored if value isnull .- Returns:
- This object.
-
aev
Synonym forallowEmptyValue(Boolean)
.- Parameters:
value
- The new value for this property.- Returns:
- This object.
-
allowEmptyValue
allowEmptyValue field.Same as
allowEmptyValue(Boolean)
but takes in a string boolean value.- Parameters:
value
- The new value for this property.
Ignored if value isnull or empty.- Returns:
- This object.
-
aev
Synonym forallowEmptyValue(String)
.- Parameters:
value
- The new value for this property.- Returns:
- This object.
-
allowEmptyValue
allowEmptyValue field.Shortcut for calling
allowEmptyValue(
.true );- Returns:
- This object.
-
aev
Synonym forallowEmptyValue()
.- Returns:
- This object.
-
items
items field.Describes the type of items in the array.
Required if
type is"array" .
Can only be used iftype is"array" .Applicable to the following Swagger schema objects:
- Parameters:
value
- The new value for this property.
Ignored if value isnull or empty.- Returns:
- This object.
-
i
Synonym foritems(HttpPartSchema.Builder)
.- Parameters:
value
- The new value for this property.- Returns:
- This object.
-
items
items field.Describes the type of items in the array.
Required if
type is"array" .
Can only be used iftype is"array" .Applicable to the following Swagger schema objects:
- Parameters:
value
- The new value for this property.
Ignored if value isnull or empty.- Returns:
- This object.
-
i
Synonym foritems(HttpPartSchema)
.- Parameters:
value
- The new value for this property.- Returns:
- This object.
-
collectionFormat
collectionFormat field.Determines the format of the array if
type "array" is used.
Can only be used iftype is"array" .Applicable to the following Swagger schema objects:
Note that for collections/arrays parameters with POJO element types, the input is broken into a string array before being converted into POJO elements.
-
"csv" (default) - Comma-separated values (e.g."foo,bar" ). -
"ssv" - Space-separated values (e.g."foo bar" ). -
"tsv" - Tab-separated values (e.g."foo\tbar" ). -
"pipes - Pipe-separated values (e.g."foo|bar" ). -
"multi" - Corresponds to multiple parameter instances instead of multiple values for a single instance (e.g."foo=bar&foo=baz" ). -
"uon" - UON notation (e.g."@(foo,bar)" ).
- Parameters:
value
- The new value for this property.
Ignored if value isnull or empty.- Returns:
- This object.
-
-
cf
Synonym forcollectionFormat(String)
.- Parameters:
value
- The new value for this property.- Returns:
- This object.
-
collectionFormat
collectionFormat field.Determines the format of the array if
type "array" is used.
Can only be used iftype is"array" .Applicable to the following Swagger schema objects:
Note that for collections/arrays parameters with POJO element types, the input is broken into a string array before being converted into POJO elements.
-
CSV
(default) - Comma-separated values (e.g."foo,bar" ). -
SSV
- Space-separated values (e.g."foo bar" ). -
TSV
- Tab-separated values (e.g."foo\tbar" ). -
PIPES
- Pipe-separated values (e.g."foo|bar" ). -
MULTI
- Corresponds to multiple parameter instances instead of multiple values for a single instance (e.g."foo=bar&foo=baz" ). -
UONC
- UON collection notation (e.g."@(foo,bar)" ).
HttpPartCollectionFormat
- Parameters:
value
- The new value for this property.- Returns:
- This object.
-
-
cf
Synonym forcollectionFormat(HttpPartCollectionFormat)
.- Parameters:
value
- The new value for this property.- Returns:
- This object.
-
cfCsv
Shortcut forcollectionFormat(HttpPartCollectionFormat.CSV) .- Returns:
- This object.
-
cfSsv
Shortcut forcollectionFormat(HttpPartCollectionFormat.SSV) .- Returns:
- This object.
-
cfTsv
Shortcut forcollectionFormat(HttpPartCollectionFormat.TSV) .- Returns:
- This object.
-
cfPipes
Shortcut forcollectionFormat(HttpPartCollectionFormat.PIPES) .- Returns:
- This object.
-
cfMulti
Shortcut forcollectionFormat(HttpPartCollectionFormat.MULTI) .- Returns:
- This object.
-
cfUon
Shortcut forcollectionFormat(HttpPartCollectionFormat.UONC) .- Returns:
- This object.
-
cfNone
Shortcut forcollectionFormat(HttpPartCollectionFormat.NO_COLLECTION_FORMAT) .- Returns:
- This object.
-
_default
default field.Declares the value of the parameter that the server will use if none is provided, for example a "count" to control the number of results per page might default to 100 if not supplied by the client in the request.
(Note: "default" has no meaning for required parameters.)Applicable to the following Swagger schema objects:
- Parameters:
value
- The new value for this property.
Ignored if value isnull .- Returns:
- This object.
-
df
Synonym for_default(String)
.- Parameters:
value
- The new value for this property.- Returns:
- This object.
-
maximum
maximum field.Defines the maximum value for a parameter of numeric types.
Only allowed for the following types:
"integer" ,"number" .Applicable to the following Swagger schema objects:
- Parameters:
value
- The new value for this property.
Ignored if value isnull .- Returns:
- This object.
-
max
Synonym formaximum(Number)
.- Parameters:
value
- The new value for this property.- Returns:
- This object.
-
exclusiveMaximum
exclusiveMaximum field.Defines whether the maximum is matched exclusively.
Only allowed for the following types:
"integer" ,"number" .
Iftrue , must be accompanied withmaximum .Applicable to the following Swagger schema objects:
- Parameters:
value
- The new value for this property.
Ignored if value isnull .- Returns:
- This object.
-
emax
Synonym forexclusiveMaximum(Boolean)
.- Parameters:
value
- The new value for this property.- Returns:
- This object.
-
exclusiveMaximum
exclusiveMaximum field.Same as
exclusiveMaximum(Boolean)
but takes in a string boolean value.- Parameters:
value
- The new value for this property.
Ignored if value isnull or empty.- Returns:
- This object.
-
emax
Synonym forexclusiveMaximum(String)
.- Parameters:
value
- The new value for this property.- Returns:
- This object.
-
exclusiveMaximum
exclusiveMaximum field.Shortcut for calling
exclusiveMaximum(
.true );- Returns:
- This object.
-
emax
Synonym forexclusiveMaximum()
.- Returns:
- This object.
-
minimum
minimum field.Defines the minimum value for a parameter of numeric types.
Only allowed for the following types:
"integer" ,"number" .Applicable to the following Swagger schema objects:
- Parameters:
value
- The new value for this property.
Ignored if value isnull .- Returns:
- This object.
-
min
Synonym forminimum(Number)
.- Parameters:
value
- The new value for this property.- Returns:
- This object.
-
exclusiveMinimum
exclusiveMinimum field.Defines whether the minimum is matched exclusively.
Only allowed for the following types:
"integer" ,"number" .
Iftrue , must be accompanied withminimum .Applicable to the following Swagger schema objects:
- Parameters:
value
- The new value for this property.
Ignored if value isnull .- Returns:
- This object.
-
emin
Synonym forexclusiveMinimum(Boolean)
.- Parameters:
value
- The new value for this property.- Returns:
- This object.
-
exclusiveMinimum
exclusiveMinimum field.Same as
exclusiveMinimum(Boolean)
but takes in a string boolean value.- Parameters:
value
- The new value for this property.
Ignored if value isnull or empty.- Returns:
- This object.
-
emin
Synonym forexclusiveMinimum(String)
.- Parameters:
value
- The new value for this property.- Returns:
- This object.
-
exclusiveMinimum
exclusiveMinimum field.Shortcut for calling
exclusiveMinimum(
.true );- Returns:
- This object.
-
emin
Synonym forexclusiveMinimum()
.- Returns:
- This object.
-
maxLength
maxLength field.A string instance is valid against this keyword if its length is less than, or equal to, the value of this keyword.
The length of a string instance is defined as the number of its characters as defined by RFC 4627.Only allowed for the following types:
"string" .Applicable to the following Swagger schema objects:
- Parameters:
value
- The new value for this property.
Ignored if value isnull or-1 .- Returns:
- This object.
-
maxl
Synonym formaxLength(Long)
.- Parameters:
value
- The new value for this property.- Returns:
- This object.
-
maxLength
maxLength field.Same as
maxLength(Long)
but takes in a string number.- Parameters:
value
- The new value for this property.
Ignored if value isnull or empty.- Returns:
- This object.
-
maxl
Synonym formaxLength(String)
.- Parameters:
value
- The new value for this property.- Returns:
- This object.
-
minLength
minLength field.A string instance is valid against this keyword if its length is greater than, or equal to, the value of this keyword.
The length of a string instance is defined as the number of its characters as defined by RFC 4627.Only allowed for the following types:
"string" .Applicable to the following Swagger schema objects:
- Parameters:
value
- The new value for this property.
Ignored if value isnull or-1 .- Returns:
- This object.
-
minl
Synonym forminLength(Long)
.- Parameters:
value
- The new value for this property.- Returns:
- This object.
-
minLength
minLength field.Same as
minLength(Long)
but takes in a string number.- Parameters:
value
- The new value for this property.
Ignored if value isnull or empty.- Returns:
- This object.
-
minl
Synonym forminLength(String)
.- Parameters:
value
- The new value for this property.- Returns:
- This object.
-
pattern
pattern field.A string input is valid if it matches the specified regular expression pattern.
Only allowed for the following types:
"string" .Applicable to the following Swagger schema objects:
- Parameters:
value
- The new value for this property.
Ignored if value isnull or empty.- Returns:
- This object.
-
p
Synonym forpattern(String)
.- Parameters:
value
- The new value for this property.- Returns:
- This object.
-
maxItems
maxItems field.An array or collection is valid if its size is less than, or equal to, the value of this keyword.
Only allowed for the following types:
"array" .Applicable to the following Swagger schema objects:
- Parameters:
value
- The new value for this property.
Ignored if value isnull or-1 .- Returns:
- This object.
-
maxi
Synonym formaxItems(Long)
.- Parameters:
value
- The new value for this property.- Returns:
- This object.
-
maxItems
maxItems field.Same as
maxItems(Long)
but takes in a string number.- Parameters:
value
- The new value for this property.
Ignored if value isnull or empty.- Returns:
- This object.
-
maxi
Synonym formaxItems(String)
.- Parameters:
value
- The new value for this property.- Returns:
- This object.
-
minItems
minItems field.An array or collection is valid if its size is greater than, or equal to, the value of this keyword.
Only allowed for the following types:
"array" .Applicable to the following Swagger schema objects:
- Parameters:
value
- The new value for this property.
Ignored if value isnull or-1 .- Returns:
- This object.
-
mini
Synonym forminItems(Long)
.- Parameters:
value
- The new value for this property.- Returns:
- This object.
-
minItems
minItems field.Same as
minItems(Long)
but takes in a string number.- Parameters:
value
- The new value for this property.
Ignored if value isnull or empty.- Returns:
- This object.
-
mini
Synonym forminItems(String)
.- Parameters:
value
- The new value for this property.- Returns:
- This object.
-
uniqueItems
uniqueItems field.If
true , the input validates successfully if all of its elements are unique.
If the parameter type is a subclass ofSet
, this validation is skipped (since a set can only contain unique items anyway).
Otherwise, the collection or array is checked for duplicate items.Only allowed for the following types:
"array" .Applicable to the following Swagger schema objects:
- Parameters:
value
- The new value for this property.
Ignored if value isnull .- Returns:
- This object.
-
ui
Synonym foruniqueItems(Boolean)
.- Parameters:
value
- The new value for this property.- Returns:
- This object.
-
uniqueItems
uniqueItems field.Same as
uniqueItems(Boolean)
but takes in a string boolean.- Parameters:
value
- The new value for this property.
Ignored if value isnull or empty..- Returns:
- This object.
-
ui
Synonym foruniqueItems(String)
.- Parameters:
value
- The new value for this property.- Returns:
- This object.
-
uniqueItems
uniqueItems field.Shortcut for calling
uniqueItems(
.true );- Returns:
- This object.
-
ui
Synonym foruniqueItems()
.- Returns:
- This object.
-
skipIfEmpty
skipIfEmpty field.Identifies whether an item should be skipped during serialization if it's empty.
- Parameters:
value
- The new value for this property.
Ignored if value isnull .- Returns:
- This object.
-
sie
Synonym forskipIfEmpty(Boolean)
.- Parameters:
value
- The new value for this property.- Returns:
- This object.
-
skipIfEmpty
skipIfEmpty field.Same as
skipIfEmpty(Boolean)
but takes in a string boolean.- Parameters:
value
- The new value for this property.
Ignored if value isnull or empty.- Returns:
- This object.
-
sie
Synonym forskipIfEmpty(String)
.- Parameters:
value
- The new value for this property.- Returns:
- This object.
-
skipIfEmpty
Identifies whether an item should be skipped if it's empty.Shortcut for calling
skipIfEmpty(
.true );- Returns:
- This object.
-
sie
Synonym forskipIfEmpty()
.- Returns:
- This object.
-
_enum
enum field.If specified, the input validates successfully if it is equal to one of the elements in this array.
Applicable to the following Swagger schema objects:
- Parameters:
value
- The new value for this property.
Ignored if value isnull or an empty set.- Returns:
- This object.
-
e
Synonym for_enum(Set)
.- Parameters:
value
- The new value for this property.- Returns:
- This object.
-
_enum
_enum field.Same as
_enum(Set)
but takes in a var-args array.- Parameters:
values
- The new values for this property.
Ignored if value is empty.- Returns:
- This object.
-
e
Synonym for_enum(String...)
.- Parameters:
values
- The new values for this property.- Returns:
- This object.
-
multipleOf
multipleOf field.A numeric instance is valid if the result of the division of the instance by this keyword's value is an integer.
Only allowed for the following types:
"integer" ,"number" .Applicable to the following Swagger schema objects:
- Parameters:
value
- The new value for this property.
Ignored if value isnull .- Returns:
- This object.
-
mo
Synonym formultipleOf(Number)
.- Parameters:
value
- The new value for this property.- Returns:
- This object.
-
maxProperties
- Parameters:
value
- The new value for this property.
Ignored if value isnull or-1 .- Returns:
- This object.
-
maxp
Synonym formaxProperties(Long)
.- Parameters:
value
- The new value for this property.- Returns:
- This object.
-
maxProperties
mapProperties field.Same as
maxProperties(Long)
but takes in a string number.- Parameters:
value
- The new value for this property.
Ignored if value isnull or empty.- Returns:
- This object.
-
maxp
Synonym formaxProperties(String)
.- Parameters:
value
- The new value for this property.- Returns:
- This object.
-
minProperties
- Parameters:
value
- The new value for this property.
Ignored if value isnull .- Returns:
- This object.
-
minp
Synonym forminProperties(Long)
.- Parameters:
value
- The new value for this property.- Returns:
- This object.
-
minProperties
minProperties field.Same as
minProperties(Long)
but takes in a string boolean.- Parameters:
value
- The new value for this property.
Ignored if value isnull or empty.- Returns:
- This object.
-
minp
Synonym forminProperties(String)
.- Parameters:
value
- The new value for this property.- Returns:
- This object.
-
property
- Parameters:
key
- The property name.value
- The new value for this property.
Ignored if value isnull .- Returns:
- This object.
-
property
- Parameters:
key
- The property name.value
- The new value for this property.
Ignored if value isnull .- Returns:
- This object.
-
p
- Parameters:
key
- The property name.value
- The new value for this property.
Ignored if value isnull .- Returns:
- This object.
-
p
- Parameters:
key
- The property name.value
- The new value for this property.
Ignored if value isnull .- Returns:
- This object.
-
additionalProperties
- Parameters:
value
- The new value for this property.
Ignored if value isnull or empty.- Returns:
- This object.
-
additionalProperties
- Parameters:
value
- The new value for this property.
Ignored if value isnull or empty.- Returns:
- This object.
-
ap
- Parameters:
value
- The new value for this property.
Ignored if value isnull or empty.- Returns:
- This object.
-
ap
- Parameters:
value
- The new value for this property.
Ignored if value isnull or empty.- Returns:
- This object.
-
serializer
Identifies the part serializer to use for serializing this part.- Parameters:
value
- The new value for this property.
Ignored if value isnull orHttpPartSerializer.Void
.- Returns:
- This object.
-
parser
Identifies the part parser to use for parsing this part.- Parameters:
value
- The new value for this property.
Ignored if value isnull orHttpPartParser.Void
.- Returns:
- This object.
-
noValidate
Disables Swagger schema usage validation checking.- Parameters:
value
- Specifytrue to preventContextRuntimeException
from being thrown if invalid Swagger usage was detected.- Returns:
- This object.
-
noValidate
Disables Swagger schema usage validation checking.Shortcut for calling
noValidate(
.true );- Returns:
- This object.
-