1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
use super::*;

/// ## The OpenApi [response object](https://swagger.io/specification/#response-object)
#[derive(
    Debug, PartialEq, Serialize, Deserialize, Clone, Getters, Sparsable, OApiCheck, OApiExt,
)]
#[getset(get = "pub")]
#[serde(rename_all = "camelCase")]
pub struct OApiResponse {
    /// A description of the response
    description: String,
    /// Defined headers of the response
    #[serde(default)]
    headers: HashMap<String, OApiHeader>,
    /// A map of media type for the responses
    #[serde(default)]
    content: HashMap<String, OApiMediaType>,
    /// Links for the responses
    #[serde(default)]
    links: HashMap<String, OApiLink>,
    /// Extensions, if any
    #[serde(flatten)]
    #[getset(get)]
    _extension: HashMap<String, Value>,
}