Struct openapi_schema::v3::Parameter
source · pub struct Parameter {Show 14 fields
pub name: String,
pub in: String,
pub description: Option<String>,
pub required: Option<bool>,
pub deprecated: Option<bool>,
pub allow_empty_value: Option<bool>,
pub style: Option<String>,
pub explode: Option<bool>,
pub allow_reserved: Option<bool>,
pub schema: Option<RefOrObject<Schema>>,
pub example: Option<Value>,
pub examples: Option<BTreeMap<String, RefOrObject<Example>>>,
pub content: Option<BTreeMap<String, Media>>,
pub extensions: Extensions,
}Expand description
Parameter
Describes a single operation parameter. A unique parameter is defined by a combination of a name and location.
Fields§
§name: StringThe name of the parameter.
in: StringThe location of the parameter. Possible values are “query”, “header”, “path” or “cookie”.
description: Option<String>A brief description of the parameter.
required: Option<bool>Determines whether this parameter is mandatory.
deprecated: Option<bool>Specifies that a parameter is deprecated and SHOULD be transitioned out of usage.
allow_empty_value: Option<bool>Sets the ability to pass empty-valued parameters.
style: Option<String>Describes how the parameter value will be serialized depending on the type of the parameter value.
explode: Option<bool>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.
allow_reserved: Option<bool>Determines whether the parameter value SHOULD allow reserved characters
schema: Option<RefOrObject<Schema>>The schema defining the type used for the parameter.
example: Option<Value>Example of the parameter’s potential value.
examples: Option<BTreeMap<String, RefOrObject<Example>>>Examples of the parameter’s potential value.
content: Option<BTreeMap<String, Media>>A map containing the representations for the parameter.
extensions: Extensions