Annotation Type Parameter

    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      boolean allowEmptyValue
      When true, allows sending an empty value.
      boolean allowReserved
      Determines whether the parameter value should allow reserved characters, as defined by RFC3986.
      ArraySchema array
      The schema of the array that defines this parameter.
      Content[] content
      The representation of this parameter, for different media types.
      boolean deprecated
      Specifies that a parameter is deprecated and should be transitioned out of usage.
      String description
      Additional description data to provide on the purpose of the parameter
      String example
      Provides an example of the schema.
      ExampleObject[] examples
      An array of examples of the schema used to show the use of the associated schema.
      Explode explode
      When this is true, parameter values of type array or object generate separate parameters for each value of the array or key-value pair of the map.
      Extension[] extensions
      The list of optional extensions
      boolean hidden
      Allows this parameter to be marked as hidden
      ParameterIn in
      The location of the parameter.
      String name
      The name of the parameter.
      String ref
      A reference to a parameter defined in components parameter.
      boolean required
      Determines whether this parameter is mandatory.
      Schema schema
      The schema defining the type used for the parameter.
      ParameterStyle style
      Describes how the parameter value will be serialized depending on the type of the parameter value.
    • Element Detail

      • name

        String name
        The name of the parameter.
        Returns:
        the parameter's name
        Default:
        ""
      • in

        ParameterIn in
        The location of the parameter. Possible values are "query", "header", "path" or "cookie". Ignored when empty string.
        Returns:
        the parameter's location
        Default:
        io.swagger.v3.oas.annotations.enums.ParameterIn.DEFAULT
      • description

        String description
        Additional description data to provide on the purpose of the parameter
        Returns:
        the parameter's description
        Default:
        ""
      • required

        boolean required
        Determines whether this parameter is mandatory. If the parameter location is "path", this property is required and its value must be true. Otherwise, the property may be included and its default value is false.
        Returns:
        whether or not the parameter is required
        Default:
        false
      • deprecated

        boolean deprecated
        Specifies that a parameter is deprecated and should be transitioned out of usage.
        Returns:
        whether or not the parameter is deprecated
        Default:
        false
      • allowEmptyValue

        boolean allowEmptyValue
        When true, allows sending an empty value. If false, the parameter will be considered \"null\" if no value is present. This may create validation errors when the parameter is required.
        Returns:
        whether or not the parameter allows empty values
        Default:
        false
      • style

        ParameterStyle style
        Describes how the parameter value will be serialized depending on the type of the parameter value. Default values (based on value of in): for query - form; for path - simple; for header - simple; for cookie - form. Ignored if the properties content or array are specified.
        Returns:
        the style of the parameter
        Default:
        io.swagger.v3.oas.annotations.enums.ParameterStyle.DEFAULT
      • explode

        Explode explode
        When this is true, parameter values of type array or object generate separate parameters for each value of the array or key-value pair of the map. For other types of parameters this property has no effect. When style is form, the default value is true. For all other styles, the default value is false. Ignored if the properties content or array are specified.
        Returns:
        whether or not to expand individual array members
        Default:
        io.swagger.v3.oas.annotations.enums.Explode.DEFAULT
      • allowReserved

        boolean allowReserved
        Determines whether the parameter value should allow reserved characters, as defined by RFC3986. This property only applies to parameters with an in value of query. The default value is false. Ignored if the properties content or array are specified.
        Returns:
        whether or not the parameter allows reserved characters
        Default:
        false
      • schema

        Schema schema
        The schema defining the type used for the parameter. Ignored if the properties content or array are specified.
        Returns:
        the schema of the parameter
        Default:
        @io.swagger.v3.oas.annotations.media.Schema
      • array

        ArraySchema array
        The schema of the array that defines this parameter. Ignored if the property content is specified.
        Returns:
        the schema of the array
        Default:
        @io.swagger.v3.oas.annotations.media.ArraySchema
      • content

        Content[] content
        The representation of this parameter, for different media types.
        Returns:
        the content of the parameter
        Default:
        {}
      • hidden

        boolean hidden
        Allows this parameter to be marked as hidden
        Returns:
        whether or not this parameter is hidden
        Default:
        false
      • examples

        ExampleObject[] examples
        An array of examples of the schema used to show the use of the associated schema.
        Returns:
        array of examples of the parameter
        Default:
        {}
      • example

        String example
        Provides an example of the schema. When associated with a specific media type, the example string shall be parsed by the consumer to be treated as an object or an array. Ignored if the properties examples, content or array are specified.
        Returns:
        an example of the parameter
        Default:
        ""
      • extensions

        Extension[] extensions
        The list of optional extensions
        Returns:
        an optional array of extensions
        Default:
        {}
      • ref

        String ref
        A reference to a parameter defined in components parameter.
        Returns:
        the reference
        Since:
        2.0.3
        Default:
        ""