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, deserialize_with = "crate::util::deserialize_extensions")]
pub extensions: IndexMap<String, serde_json::Value>,
}