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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
use crate::*;
use indexmap::IndexMap;
use serde::{Deserialize, Serialize};
#[derive(Debug, Clone, Serialize, Deserialize, Default, PartialEq)]
#[serde(rename_all = "camelCase")]
pub struct Components {
#[serde(default, skip_serializing_if = "IndexMap::is_empty")]
pub security_schemes: IndexMap<String, ReferenceOr<SecurityScheme>>,
#[serde(default, skip_serializing_if = "IndexMap::is_empty")]
pub responses: IndexMap<String, ReferenceOr<Response>>,
#[serde(default, skip_serializing_if = "IndexMap::is_empty")]
pub parameters: IndexMap<String, ReferenceOr<Parameter>>,
#[serde(default, skip_serializing_if = "IndexMap::is_empty")]
pub examples: IndexMap<String, ReferenceOr<Example>>,
#[serde(default, skip_serializing_if = "IndexMap::is_empty")]
pub request_bodies: IndexMap<String, ReferenceOr<RequestBody>>,
#[serde(default, skip_serializing_if = "IndexMap::is_empty")]
pub headers: IndexMap<String, ReferenceOr<Header>>,
#[serde(default, skip_serializing_if = "IndexMap::is_empty")]
pub schemas: IndexMap<String, ReferenceOr<Schema>>,
#[serde(default, skip_serializing_if = "IndexMap::is_empty")]
pub links: IndexMap<String, ReferenceOr<Link>>,
#[serde(default, skip_serializing_if = "IndexMap::is_empty")]
pub callbacks: IndexMap<String, ReferenceOr<Callback>>,
#[serde(flatten)]
pub extensions: IndexMap<String, serde_json::Value>,
}