Kind: Function
Source: atloria-monorepo/packages/ui-core/src/components/api-explorer/multipart.ts
Read the request body of an operation.
multipart/form-data OUTRANKS application/json when an operation offers both: the JSON
branch already works and the multipart one is the one that silently produced nothing, so the
reader is put in front of the controls that can actually satisfy the upload.
Signature
tsfunction readBodyShape(requestBody: unknown, schemas: Record<string, unknown>): BodyShape
Parameters
| Name | Type |
|---|---|
requestBody | unknown |
schemas | Record<string, unknown> |
Returns: BodyShape
Was this page helpful?