nuxt-open-fetch icon indicating copy to clipboard operation
nuxt-open-fetch copied to clipboard

issue with RequestBody type helper on "multipart/form-data"

Open Kevin-Ethiqais opened this issue 1 month ago • 0 comments

Environment

Reproduction

documents_create: {
    parameters: {
        query?: never;
        header?: never;
        path?: never;
        cookie?: never;
    };
    requestBody: {
        content: {
            "multipart/form-data": components["schemas"]["DocumentUploadRequest"];
        };
    };
    responses: {
        201: {
            content: {
                "application/json": components["schemas"]["DocumentUpload"];
            };
        };
    };
};

Describe the bug

The type helper to get an request body is based on content: { 'application/json': infer U } so if I use something else than 'application/json' it always return undefined.

Additional context

No response

Logs


Kevin-Ethiqais avatar Oct 29 '25 16:10 Kevin-Ethiqais