Class Components
 The Components Object holds a set of reusable objects that can be referenced from other parts of the API specification.
 This promotes reusability and reduces duplication by allowing common schemas, responses, parameters, and other objects
 to be defined once and referenced multiple times using the 
OpenAPI Specification:
The Components Object is composed of the following fields:
- schemas (map of- SchemaInfo) - Reusable schema definitions
- responses (map of- Response) - Reusable response definitions
- parameters (map of- Parameter) - Reusable parameter definitions
- examples (map of- Example) - Reusable example definitions
- requestBodies (map of- RequestBodyInfo) - Reusable request body definitions
- headers (map of- HeaderInfo) - Reusable header definitions
- securitySchemes (map of- SecuritySchemeInfo) - Reusable security scheme definitions
- links (map of- Link) - Reusable link definitions
- callbacks (map of- Callback) - Reusable callback definitions
Example:
   
See Also:
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptioncopy()Creates a copy of this object.<T> TGeneric property getter.Returns the callbacks map.Returns the examples map.Returns the headers map.getLinks()Returns the links map.Returns the parameters map.Returns the request bodies map.Returns the responses map.Returns the schemas map.Returns the security schemes map.keySet()Returns all the keys on this element.Generic property setter.setCallbacks(Map<String, Callback> value) Sets the callbacks map.setExamples(Map<String, Example> value) Sets the examples map.setHeaders(Map<String, HeaderInfo> value) Sets the headers map.Sets the links map.setParameters(Map<String, Parameter> value) Sets the parameters map.setRequestBodies(Map<String, RequestBodyInfo> value) Sets the request bodies map.setResponses(Map<String, Response> value) Sets the responses map.setSchemas(Map<String, SchemaInfo> value) Sets the schemas map.Sets the security schemes map.strict()Sets strict mode on this bean.Sets strict mode on this bean.
- 
Constructor Details- 
Componentspublic Components()Default constructor.
- 
ComponentsCopy constructor.- Parameters:
- copyFrom- The object to copy.
 
 
- 
- 
Method Details- 
getSchemasReturns the schemas map.- Returns:
- The schemas map.
 
- 
setSchemasSets the schemas map.- Parameters:
- value- The new value for this property.
- Returns:
- This object.
 
- 
getResponsesReturns the responses map.- Returns:
- The responses map.
 
- 
setResponsesSets the responses map.- Parameters:
- value- The new value for this property.
- Returns:
- This object.
 
- 
getParametersReturns the parameters map.- Returns:
- The parameters map.
 
- 
setParametersSets the parameters map.- Parameters:
- value- The new value for this property.
- Returns:
- This object.
 
- 
getExamplesReturns the examples map.- Returns:
- The examples map.
 
- 
setExamplesSets the examples map.- Parameters:
- value- The new value for this property.
- Returns:
- This object.
 
- 
getRequestBodiesReturns the request bodies map.- Returns:
- The request bodies map.
 
- 
setRequestBodiesSets the request bodies map.- Parameters:
- value- The new value for this property.
- Returns:
- This object.
 
- 
getHeadersReturns the headers map.- Returns:
- The headers map.
 
- 
setHeadersSets the headers map.- Parameters:
- value- The new value for this property.
- Returns:
- This object.
 
- 
getSecuritySchemesReturns the security schemes map.- Returns:
- The security schemes map.
 
- 
setSecuritySchemesSets the security schemes map.- Parameters:
- value- The new value for this property.
- Returns:
- This object.
 
- 
getLinksReturns the links map.- Returns:
- The links map.
 
- 
setLinksSets the links map.- Parameters:
- value- The new value for this property.
- Returns:
- This object.
 
- 
getCallbacksReturns the callbacks map.- Returns:
- The callbacks map.
 
- 
setCallbacksSets the callbacks map.- Parameters:
- value- The new value for this property.
- Returns:
- This object.
 
- 
copyCreates a copy of this object.- Returns:
- A copy of this object.
 
- 
getDescription copied from class:OpenApiElementGeneric property getter.Can be used to retrieve non-standard Swagger fields such as "$ref" .- Overrides:
- getin class- OpenApiElement
- Type Parameters:
- T- The datatype to cast the value to.
- Parameters:
- property- The property name to retrieve.
- type- The datatype to cast the value to.
- Returns:
- The property value, or null if the property does not exist or is not set.
 
- 
setDescription copied from class:OpenApiElementGeneric property setter.Can be used to set non-standard Swagger fields such as "$ref" .- Overrides:
- setin class- OpenApiElement
- Parameters:
- property- The property name to set. Must not be- null .
- value- The new value for the property.
- Returns:
- This object
 
- 
keySetDescription copied from class:OpenApiElementReturns all the keys on this element.- Overrides:
- keySetin class- OpenApiElement
- Returns:
- All the keys on this element.
   
 Nevernull .
 
- 
strictDescription copied from class:OpenApiElementSets strict mode on this bean.- Overrides:
- strictin class- OpenApiElement
- Returns:
- This object
 
- 
strictDescription copied from class:OpenApiElementSets strict mode on this bean.- Overrides:
- strictin class- OpenApiElement
- Parameters:
- value- The new value for this property.
 Non-boolean values will be converted to boolean using- Boolean..- valueOf (value.toString())
 Can be- null (interpreted as- false ).
- Returns:
- This object
 
 
-