-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue on validation when exposing a multipart/form-data API #347
Comments
Hi @marco-basso I'm not entirely sure this is an issue with the library; it seems an issue with Also consider that node 8 is not supported, you need at least node 12 |
Sorry, I inserted the wrong version on my issue, the actual node version is v16.17.0. I do not know if it is an issue with My current workaround is to avoid to specify the |
Regardless of being a The only setup that is done of the libraries related to the openapi specification are:
I'd try to update the library and understand whether this is a bug with @fastify/swagger or ajv and if there is a fix available we could update the libraries :) |
The feauture or bug you are proposing
Issue on validating a
multipart/form-data
requestThe description of the bug or the rationale of your proposal
The schema definition of a
mutlipart/form-data
part requires the following body structure:Calling the endpoint with a binary file uploaded through the
part
field does return a validation error which states: 'body.part must be string`The expected result for your bug
I expect that this validation error should not happen
Your environment
node: 8.15.0
custom-plugin-lib: 4.3.2
os: 20.04.5 LTS (Focal Fossa), Ubuntu
The text was updated successfully, but these errors were encountered: