Private
constructorPrivate
Optional
_mimePrivate
Readonly
_responseStatic
Private
Optional
_defaultsAdd a content field to the Response object
ResponseBuilder instances for method chaining
The content object per OpenApiv3 spec
Add a header field to the Response object
ResponseBuilder instances for method chaining
The header object per OpenApiv3 spec
Add a links field to the Response object
ResponseBuilder instances for method chaining
The links object per OpenApiv3 spec
Add the schema object to the response object. Allows for defining the type of media in place, or inheriting a global default.
ResponseBuilder instances for method chaining
A error if there is no default MIME and a mimeType wasn't included locally
The MediaType object per OpenApiv3 spec
Optional
mimeType: stringThe string of a valid MIME type
Add the schema object to the response object as an array. Allows for defining the type of media in place, or inheriting a global default.
ResponseBuilder instances for method chaining
A error if there is no default MIME and a mimeType wasn't included locally
The MediaType object per OpenApiv3 spec
Optional
mimeType: stringThe string of a valid MIME type
Static
defaultsSets defaults for the response object when using the build interface
The defaults to set - these are global to the ResponseBuilder class
Static
newStart building a new Response object
ResponseBuilder instances for method chaining
The description of the response object - only OpenApiv3 required field
Generated using TypeDoc
Shorthand for build() method
Returns
A deep copy of the built response object