Private
constructorOptional
description: stringPrivate
Optional
_descriptionPrivate
Optional
_mimePrivate
Optional
_requestStatic
Private
Optional
_defaultsAdd a content field to the request body object
RequestBodyBuilder instances for method chaining
The content object per OpenApiv3 spec
Add the schema object to the request body object. Allows for defining the type of media in place, or inheriting a global default.
RequestBodyBuilder 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 request body object as an array. Allows for defining the type of media in place, or inheriting a global default.
RequestBodyBuilder 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 request body object when using the build interface
The defaults to set - these are global to the RequestBodyBuilder class
Static
newStart building a new request body object
RequestBodyBuilder instances for method chaining
Optional
description: stringThe optional description of the request body object - only OpenApiv3 required field
Generated using TypeDoc
Short hand for build()
Returns
A deep copy of the built request body object