Closed mebibou closed 2 years ago
Oh, i do also wait for the solutuion to this problem.
I think that this is the known problem solved in swagger-api/swagger-ui issue #4600 . To transfer this solution to this package here, the dependeny 'swagger-ui-dist' should be updated to v3.26.0 (the latest release).
@BePo65 thanks, npm install swagger-ui-dist@latest
will work for now until a new release with update dist is available
Is this solved? Cause I'm using latest version"swagger-ui-express": "^4.1.6"
and it still does not parse files correctly.
Should I add swagger-ui-dist@latest
while waiting?
EDIT -
I just checked in 4.1.6
package, and it's not released yet with "swagger-ui-dist": "^3.26.0"
, it's still on "swagger-ui-dist": "^3.18.1"
.
Please use npm install --save swagger-ui-dist@latest
When installing swagger-ui-express it will pull in the latest version of swagger-ui-dist.
This problem still persists, with the following packages
{ "swagger-jsdoc": "^6.0.8", "swagger-ui-express": "^4.1.6" }
I am using swagger-jsdoc to define my swagger paths and on one particular endpoint I need to do file upload. The swagger doc looks like this:
When I hit "Try It Out" in swagger UI, I have a warning in the console
Could not find component: JsonSchema_string_binary
and the UI does not show an input to choose files: