You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a RESTful API written in Bun using Elysia. And I integrated @elysia-swagger. In one of my endpoints where I upload multiple files of the same fieldname and validate the body like below.
When I select application/form-data, while trying to upload files from Swagger UI, the exception is thrown. The error message is 😱 Could not render Parameters, see the console.
Error in console is SyntaxError: Unexpected token 'F', "Files" is not valid JSON
Thanks!
The text was updated successfully, but these errors were encountered:
Hello there,
I hope you are well.
I have a RESTful API written in Bun using Elysia. And I integrated @elysia-swagger. In one of my endpoints where I upload multiple files of the same fieldname and validate the body like below.
app.post("/", ({body}) => files, { body: { files: t.Files() } })
When I select application/form-data, while trying to upload files from Swagger UI, the exception is thrown. The error message is
😱 Could not render Parameters, see the console.
Error in console is
SyntaxError: Unexpected token 'F', "Files" is not valid JSON
Thanks!
The text was updated successfully, but these errors were encountered: