Class HttpPartSchema.Builder

java.lang.Object
org.apache.juneau.httppart.HttpPartSchema.Builder
Enclosing class:
HttpPartSchema

public static class HttpPartSchema.Builder extends Object
Builder class.
  • Constructor Details

  • Method Details

    • build

      Instantiates a new HttpPartSchema 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.
      Never null.
    • apply

      Apply the specified annotation to this schema.
      Parameters:
      a - The annotation to apply.
      Returns:
      This object.
    • name

      name field.

      Applicable to the following Swagger schema objects:

      Parameters:
      value - The new value for this property.
      Returns:
      This object.
    • n

      Synonym for name(String).
      Parameters:
      value - The new value for this property.
      Returns:
      This object.
    • codes

      public HttpPartSchema.Builder codes(int[] value)
      httpStatusCode key.

      Applicable to the following Swagger schema objects:

      Parameters:
      value - The new value for this property.
      Ignored if null or an empty array.
      Returns:
      This object.
    • code

      public HttpPartSchema.Builder code(int value)
      httpStatusCode key.

      Applicable to the following Swagger schema objects:

      Parameters:
      value - The new value for this property.
      Ignored if value is 0.
      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 is null.
      Returns:
      This object.
    • r

      Synonym for required(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 is null or empty.
      Returns:
      This object.
    • r

      Synonym for required(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 for required().
      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 is Object, creates either a Float or Double depending on the size of the number.
      • "integer"
        Parameter must be a integer/long primitive or integer/long object.
        If parameter is Object, creates either a Short, Integer, or Long 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 is Object, creates an JsonList.
      • "object"
        Parameter must be a map or bean.
        If parameter is Object, creates an JsonMap.
        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 is null or empty.
      Returns:
      This object.
    • t

      Synonym for type(String).
      Parameters:
      value - The new value for this property.
      Returns:
      This object.
    • tString

      Shortcut for type(HttpPartDataType.STRING).
      Returns:
      This object.
    • tNumber

      Shortcut for type(HttpPartDataType.NUMBER).
      Returns:
      This object.
    • tInteger

      Shortcut for type(HttpPartDataType.INTEGER).
      Returns:
      This object.
    • tBoolean

      Shortcut for type(HttpPartDataType.BOOLEAN).
      Returns:
      This object.
    • tArray

      Shortcut for type(HttpPartDataType.ARRAY).
      Returns:
      This object.
    • tObject

      Shortcut for type(HttpPartDataType.OBJECT).
      Returns:
      This object.
    • tFile

      Shortcut for type(HttpPartDataType.FILE).
      Returns:
      This object.
    • tNone

      Shortcut for type(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 is Object, creates either a Float or Double depending on the size of the number.
        • INTEGER
          Parameter must be a integer/long primitive or integer/long object.
          If parameter is Object, creates either a Short, Integer, or Long 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 is Object, creates an JsonList.
        • OBJECT
          Parameter must be a map or bean.
          If parameter is Object, creates an JsonMap.
          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

      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 is null or an empty string.
      Returns:
      This object.
    • f

      Synonym for format(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:

          HttpPartFormat
          • 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.
      Returns:
      This object.
    • f

      Parameters:
      value - The new value for this property.
      Returns:
      This object.
    • fInt32

      Shortcut for format(HttpPartFormat.INT32).
      Returns:
      This object.
    • fInt64

      Shortcut for format(HttpPartFormat.INT64).
      Returns:
      This object.
    • fFloat

      Shortcut for format(HttpPartFormat.FLOAT).
      Returns:
      This object.
    • fDouble

      Shortcut for format(HttpPartFormat.DOUBLE).
      Returns:
      This object.
    • fByte

      Shortcut for format(HttpPartFormat.BYTE).
      Returns:
      This object.
    • fBinary

      Shortcut for format(HttpPartFormat.BINARY).
      Returns:
      This object.
    • fBinarySpaced

      Shortcut for format(HttpPartFormat.BINARY_SPACED).
      Returns:
      This object.
    • fDate

      Shortcut for format(HttpPartFormat.DATE).
      Returns:
      This object.
    • fDateTime

      Shortcut for format(HttpPartFormat.DATE_TIME).
      Returns:
      This object.
    • fPassword

      Shortcut for format(HttpPartFormat.PASSWORD).
      Returns:
      This object.
    • fUon

      Shortcut for format(HttpPartFormat.UON).
      Returns:
      This object.
    • fNone

      Shortcut for format(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 is false.

      Applicable to the following Swagger schema objects:

      Parameters:
      value - The new value for this property.
      Ignored if value is null.
      Returns:
      This object.
    • aev

      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 is null or empty.
      Returns:
      This object.
    • aev

      Parameters:
      value - The new value for this property.
      Returns:
      This object.
    • allowEmptyValue

      allowEmptyValue field.

      Shortcut for calling allowEmptyValue(true);.

      Returns:
      This object.
    • aev

      Synonym for allowEmptyValue().
      Returns:
      This object.
    • items

      items field.

      Describes the type of items in the array.

      Required if type is "array".
      Can only be used if type is "array".

      Applicable to the following Swagger schema objects:

      Parameters:
      value - The new value for this property.
      Ignored if value is null or empty.
      Returns:
      This object.
    • i

      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 if type is "array".

      Applicable to the following Swagger schema objects:

      Parameters:
      value - The new value for this property.
      Ignored if value is null or empty.
      Returns:
      This object.
    • i

      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 if type 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 is null or empty.
      Returns:
      This object.
    • cf

      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 if type 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.

          HttpPartCollectionFormat
          • 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)").
      Parameters:
      value - The new value for this property.
      Returns:
      This object.
    • cf

      Parameters:
      value - The new value for this property.
      Returns:
      This object.
    • cfCsv

      Shortcut for collectionFormat(HttpPartCollectionFormat.CSV).
      Returns:
      This object.
    • cfSsv

      Shortcut for collectionFormat(HttpPartCollectionFormat.SSV).
      Returns:
      This object.
    • cfTsv

      Shortcut for collectionFormat(HttpPartCollectionFormat.TSV).
      Returns:
      This object.
    • cfPipes

      Shortcut for collectionFormat(HttpPartCollectionFormat.PIPES).
      Returns:
      This object.
    • cfMulti

      Shortcut for collectionFormat(HttpPartCollectionFormat.MULTI).
      Returns:
      This object.
    • cfUon

      Shortcut for collectionFormat(HttpPartCollectionFormat.UONC).
      Returns:
      This object.
    • cfNone

      Shortcut for collectionFormat(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 is null.
      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 is null.
      Returns:
      This object.
    • max

      Synonym for maximum(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".
      If true, must be accompanied with maximum.

      Applicable to the following Swagger schema objects:

      Parameters:
      value - The new value for this property.
      Ignored if value is null.
      Returns:
      This object.
    • emax

      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 is null or empty.
      Returns:
      This object.
    • emax

      Parameters:
      value - The new value for this property.
      Returns:
      This object.
    • exclusiveMaximum

      exclusiveMaximum field.

      Shortcut for calling exclusiveMaximum(true);.

      Returns:
      This object.
    • emax

      Synonym for exclusiveMaximum().
      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 is null.
      Returns:
      This object.
    • min

      Synonym for minimum(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".
      If true, must be accompanied with minimum.

      Applicable to the following Swagger schema objects:

      Parameters:
      value - The new value for this property.
      Ignored if value is null.
      Returns:
      This object.
    • emin

      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 is null or empty.
      Returns:
      This object.
    • emin

      Parameters:
      value - The new value for this property.
      Returns:
      This object.
    • exclusiveMinimum

      exclusiveMinimum field.

      Shortcut for calling exclusiveMinimum(true);.

      Returns:
      This object.
    • emin

      Synonym for exclusiveMinimum().
      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 is null or -1.
      Returns:
      This object.
    • maxl

      Synonym for maxLength(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 is null or empty.
      Returns:
      This object.
    • maxl

      Synonym for maxLength(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 is null or -1.
      Returns:
      This object.
    • minl

      Synonym for minLength(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 is null or empty.
      Returns:
      This object.
    • minl

      Synonym for minLength(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 is null or empty.
      Returns:
      This object.
    • p

      Synonym for pattern(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 is null or -1.
      Returns:
      This object.
    • maxi

      Synonym for maxItems(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 is null or empty.
      Returns:
      This object.
    • maxi

      Synonym for maxItems(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 is null or -1.
      Returns:
      This object.
    • mini

      Synonym for minItems(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 is null or empty.
      Returns:
      This object.
    • mini

      Synonym for minItems(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 of Set, 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 is null.
      Returns:
      This object.
    • ui

      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 is null or empty..
      Returns:
      This object.
    • ui

      Synonym for uniqueItems(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 for uniqueItems().
      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 is null.
      Returns:
      This object.
    • sie

      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 is null or empty.
      Returns:
      This object.
    • sie

      Synonym for skipIfEmpty(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 for skipIfEmpty().
      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 is null or an empty set.
      Returns:
      This object.
    • e

      Synonym for _enum(Set).
      Parameters:
      value - The new value for this property.
      Returns:
      This object.
    • _enum

      public HttpPartSchema.Builder _enum(String... values)
      _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

      public HttpPartSchema.Builder e(String... values)
      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 is null.
      Returns:
      This object.
    • mo

      Synonym for multipleOf(Number).
      Parameters:
      value - The new value for this property.
      Returns:
      This object.
    • maxProperties

      mapProperties field.

      Applicable to the following Swagger schema objects:

      Parameters:
      value - The new value for this property.
      Ignored if value is null or -1.
      Returns:
      This object.
    • maxp

      Synonym for maxProperties(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 is null or empty.
      Returns:
      This object.
    • maxp

      Parameters:
      value - The new value for this property.
      Returns:
      This object.
    • minProperties

      minProperties field.

      Applicable to the following Swagger schema objects:

      Parameters:
      value - The new value for this property.
      Ignored if value is null.
      Returns:
      This object.
    • minp

      Synonym for minProperties(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 is null or empty.
      Returns:
      This object.
    • minp

      Parameters:
      value - The new value for this property.
      Returns:
      This object.
    • property

      properties field.

      Applicable to the following Swagger schema objects:

      Parameters:
      key - The property name.
      value - The new value for this property.
      Ignored if value is null.
      Returns:
      This object.
    • property

      properties field.

      Applicable to the following Swagger schema objects:

      Parameters:
      key - The property name.
      value - The new value for this property.
      Ignored if value is null.
      Returns:
      This object.
    • p

      Shortcut for property(key, value).

      Applicable to the following Swagger schema objects:

      Parameters:
      key - The property name.
      value - The new value for this property.
      Ignored if value is null.
      Returns:
      This object.
    • p

      Shortcut for property(key, value).

      Applicable to the following Swagger schema objects:

      Parameters:
      key - The property name.
      value - The new value for this property.
      Ignored if value is null.
      Returns:
      This object.
    • additionalProperties

      additionalProperties field.

      Applicable to the following Swagger schema objects:

      Parameters:
      value - The new value for this property.
      Ignored if value is null or empty.
      Returns:
      This object.
    • additionalProperties

      additionalProperties field.

      Applicable to the following Swagger schema objects:

      Parameters:
      value - The new value for this property.
      Ignored if value is null or empty.
      Returns:
      This object.
    • ap

      Shortcut for additionalProperties(value)

      Applicable to the following Swagger schema objects:

      Parameters:
      value - The new value for this property.
      Ignored if value is null or empty.
      Returns:
      This object.
    • ap

      Shortcut for additionalProperties(value)

      Applicable to the following Swagger schema objects:

      Parameters:
      value - The new value for this property.
      Ignored if value is null 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 is null or HttpPartSerializer.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 is null or HttpPartParser.Void.
      Returns:
      This object.
    • noValidate

      Disables Swagger schema usage validation checking.
      Parameters:
      value - Specify true to prevent ContextRuntimeException 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.