| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: whether or not this parameter allows empty valuesWhen true, allows sending an empty value. |
| public boolean | Returns: whether or not this parameter allows reserved charactersDetermines whether the parameter value SHOULD allow reserved characters, as defined by RFC3986. |
| public Content[] | Returns: the content of this parameterThe representation of this parameter, for different media types. |
| public boolean | Returns: whether or not this parameter is deprecatedSpecifies that a parameter is deprecated and SHOULD be transitioned out of usage. |
| public String | |
| public String | |
| public ExampleObject[] | |
| public Explode | Returns: whether or not to expand individual array membersWhen 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. |
| public Extension[] | Returns: array of extensionsList of extensions to be added to the |
| public ParameterIn | |
| public String | |
| public String | |
| public boolean | Returns: whether or not this parameter is requiredDetermines whether this parameter is mandatory. |
| public Schema | |
| public ParameterStyle | Returns: the style of this parameterDescribes how the parameter value will be serialized depending on the type of the parameter value. |
| allowEmptyValue | back to summary |
|---|---|
| public 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. Valid only for query parameters and allows sending a parameter with an empty value. If style is used, and if behavior is n/a (cannot be serialized), the value of allowEmptyValue SHALL be ignored.
| |
| allowReserved | back to summary |
|---|---|
| public 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. Ignored if the properties content or array are specified.
| |
| content | back to summary |
|---|---|
| public Content[] content() The representation of this parameter, for different media types.
| |
| deprecated | back to summary |
|---|---|
| public boolean deprecated() Specifies that a parameter is deprecated and SHOULD be transitioned out of usage.
| |
| description | back to summary |
|---|---|
| public String description() A brief description of the parameter. This could contain examples of use. CommonMark syntax MAY be used for rich text representation.
| |
| example | back to summary |
|---|---|
| public String example() Provides an example of the schema. The example SHOULD match the specified schema and encoding properties if present. Furthermore, if referencing a schema which contains an example, the example value SHALL override the example provided by the schema. To represent examples of media types that cannot naturally be represented in JSON or YAML, a string value can contain the example with escaping where necessary. 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.
| |
| examples | back to summary |
|---|---|
| public ExampleObject[] examples() Provides an array examples of the schema. Each example SHOULD contain a value in the correct format as specified in the parameter encoding. Furthermore, if referencing a schema which contains an example, the examples value SHALL override the example provided by 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 content or array are specified.
| |
| explode | back to summary |
|---|---|
| public 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.
| |
| extensions | back to summary |
|---|---|
| public Extension[] extensions() List of extensions to be added to the
| |
| in | back to summary |
|---|---|
| public ParameterIn in() The location of the parameter. It is a REQUIRED property unless this is only a reference to a parameter instance. Possible values are specified in ParameterIn enum. Ignored when empty string.
| |
| name | back to summary |
|---|---|
| public String name() The name of the parameter. Parameter names are case sensitive. It is a REQUIRED property unless this is only a reference to a parameter instance.
When the parameter is defined within If in is "path", the name field MUST correspond to the associated path segment from the path field in the Paths Object. See Path Templating for further information. If in is "header" and the name field is "Accept", "Content-Type" or "Authorization", the parameter definition SHALL be ignored.For all other cases, the name corresponds to the parameter name used by the in property.
| |
| ref | back to summary |
|---|---|
| public String ref() Reference value to a Parameter object.
This property provides a reference to an object defined elsewhere. This property may be used with
| |
| required | back to summary |
|---|---|
| public 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.
| |
| schema | back to summary |
|---|---|
| public Schema schema() The schema defining the type used for the parameter. Ignored if the properties content or array are specified.
| |
| style | back to summary |
|---|---|
| public 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.
| |