Struct openapi_schema::v2::Items  
source · pub struct Items {Show 18 fields
    pub type: ItemsType,
    pub format: Option<String>,
    pub items: Option<Box<Items>>,
    pub collection_format: Option<String>,
    pub default: Option<Value>,
    pub maximum: Option<Number>,
    pub exclusive_maximum: Option<bool>,
    pub minimum: Option<Number>,
    pub exclusive_minimum: Option<bool>,
    pub max_length: Option<Number>,
    pub min_length: Option<Number>,
    pub pattern: Option<String>,
    pub max_items: Option<Number>,
    pub min_items: Option<Number>,
    pub unique_items: Option<bool>,
    pub enum: Option<Vec<Value>>,
    pub multiple_of: Option<Number>,
    pub extensions: Extensions,
}Expand description
Items Object
A limited subset of JSON-Schema’s items object. It is used by parameter definitions that are not located in “body”.
Fields§
§type: ItemsTypeThe internal type of the array. The value MUST be one of “string”, “number”, “integer”, “boolean”, or “array”. Files and models are not allowed.
format: Option<String>The extending format for the previously mentioned type. See Data Type Formats for further details.
items: Option<Box<Items>>Required if type is “array”. Describes the type of items in the array.
collection_format: Option<String>Determines the format of the array if type array is used.
default: Option<Value>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.)
maximum: Option<Number>§exclusive_maximum: Option<bool>§minimum: Option<Number>§exclusive_minimum: Option<bool>§max_length: Option<Number>§min_length: Option<Number>§pattern: Option<String>§max_items: Option<Number>§min_items: Option<Number>§unique_items: Option<bool>§enum: Option<Vec<Value>>§multiple_of: Option<Number>§extensions: Extensions