Skip to content

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

@Kevin-Ethiqais

Description

@Kevin-Ethiqais

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions