Skip to content

Allow body schema when type is multipart #116

@ildukm

Description

@ildukm

assert(/json|form/.test(spec.validate.type), text);

It throws error when I use type: 'multipart' with body schema.

Should it be allowed to parse multipart/form like below?

form.append('name', 'name');
form.append('image', image); // jpeg image

axios.post(url, form, { headers: { 'Content-type': 'multipart/form-data' });

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions