[I] HttpOperationBody
A single payload value, whether declared with @body or inferred from properties.
Extends
Section titled “Extends”Properties
Section titled “Properties”| Property | Modifier | Type | Description | Inherited from |
|---|---|---|---|---|
bodyKind | readonly | "single" | Selects a single structured or scalar payload rather than multipart or file contents. | - |
containsMetadataAnnotations | readonly | boolean | If the body contains metadata annotations to ignore. For example @header. | HttpBody.containsMetadataAnnotations |
contentTypeProperty? | readonly | ModelProperty | Property used to set the content type if exists | HttpOperationBodyBase.contentTypeProperty |
contentTypes | readonly | string[] | Content types. | HttpOperationBodyBase.contentTypes |
isExplicit | readonly | boolean | If the body was explicitly set with @body. | HttpBody.isExplicit |
property? | readonly | ModelProperty | The payload property that defined this body, if any. | HttpOperationBodyBase.property |
type | readonly | Type | Payload type, which may be a derived model containing only the properties assigned to an implicit body rather than the original request or response model. | HttpBody.type |