Skip to content

readBodyShape

reference
1 min readUpdated

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

ts
function readBodyShape(requestBody: unknown, schemas: Record<string, unknown>): BodyShape

Parameters

NameType
requestBodyunknown
schemasRecord<string, unknown>

Returns: BodyShape

Was this page helpful?

Download as PDF