Skip to content

Validation request not work with multipart/form-data in Imposter #647

@bao-huynh-mesoneer

Description

@bao-huynh-mesoneer

When using Imposter Mock to simulate API interactions, I encounter an issue where validation requests fail when handling requests with the multipart/form-data content type. Multipart/form-data is commonly used for file uploads or when submitting forms with mixed data types, and it requires a different parsing mechanism compared to simpler request formats like application/JSON.

My Configuration
image

My Spec
image

Got error
image

I used OpenAPI Spec Version 3.0.0 and got the error "A request body is required, but none was found." I can confirm that I sent enough data; however, I still have that issue.
Thank all.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions