# multipartRequestBody

**Kind:** Function

**Source:** [`atloria-monorepo/libs/parser-core/src/openapi/multipart.ts`](https://github.com/sherkety/atloria/blob/main/atloria-monorepo/libs/parser-core/src/openapi/multipart.ts#L83)

The OpenAPI `requestBody` for a multipart handler.

`formSchema` is the JSON schema the DTO resolver produced for the same handler's `@Body()`
(or equivalent). A handler that takes BOTH a file and a DTO does not take two bodies — the
DTO's fields are text parts of the SAME multipart body — so they are folded in beside the
file parts rather than published as a competing `application/json` content type. A top-level
`$ref` is followed one hop through `components` so a registered DTO still contributes its
fields (an un-dereferenced `$ref` would silently contribute none).

## Signature

```ts
function multipartRequestBody(body: MultipartBody, formSchema: Record<string, unknown>, components: Record<string, unknown>): Record<string, unknown>
```

## Parameters

| Name | Type |
|---|---|
| `body` | `MultipartBody` |
| `formSchema` | `Record<string, unknown>` |
| `components` | `Record<string, unknown>` |

**Returns:** `Record<string, unknown>`
