Skip to content

detectFastApiUpload

reference
1 min readUpdated

Kind: Function

Source: atloria-monorepo/libs/parser-core/src/openapi/multipart.ts

FastAPI: UploadFile, File(...) and Form(...) parameters.

A route with ANY File/Form parameter is multipart — FastAPI switches the whole body over — so the Form fields are emitted as text parts of the same body, not as query parameters.

Signature

ts
function detectFastApiUpload(signature: string): MultipartBody | undefined

Parameters

NameType
signaturestring

Returns: MultipartBody | undefined

Was this page helpful?

Download as PDF