Home RequestBody Class
RequestBody Class
Cancel

RequestBody Class

Namespace: Json.Schema.Api.OpenApi

Inheritance: RequestBody 🡒 object

Implemented interfaces:

  • IRefTargetContainer

Models a request body.

Properties

NameTypeSummary
ContentDictionary<string, MediaType>Gets the content collection.
DescriptionstringGets or sets the description.
ExtensionDataExtensionDataGets or set extension data.
Requiredbool?Gets or sets whether the request body is required.
UnknownDataUnknownDataGets or sets properties which are not recognized by OpenAPI.

Constructors

RequestBody(Dictionary<string, MediaType> content)

Declaration

1
public RequestBody(Dictionary<string, MediaType> content)
ParameterTypeDescription
contentDictionary<string, MediaType> 
Contents