-
Notifications
You must be signed in to change notification settings - Fork 9k
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
Javascript error while executing file upload request #7907
Comments
Im getting similar one TypeError: Ut.isPlainObject is not a function , any updates? |
I have the same issue, for almost 3 weeks now. I also posted it on the community support forum. I noticed this issue is only with POST method. GET works. |
I have the same issue just using the petstore example and executing the POST for a pet, I did not change any values, just executed the request as is.
|
I have the same issue just using the petstore example and executing the POST for a pet, I did not change any values, just executed the request as is. open https://editor.swagger.io/ in your browser (I am using firefox, but other browsers had the same issue) TypeError: (0 , zt.isPlainObject) is not a function |
Hello everybody, After further analysis, it looks like this errors happens when SwaggerUI is build as part of SwaggerEditor. SwaggerUI build fragments are built using webpack@5, SwaggerEditor build fragments are built using webpack@4. It seems that if we build SwaggerUI as part of SwaggerEditor using current webpack configs this error and others are present. Cause: we bundle SwaggerUI with webpack@5 into Update 24.4.2022: looks like best course of action here will be build true ESM bundle in SwaggerUI and consume it here in SwaggerEditor. I've tested that this setup work. Resources: |
Create #7937 to expose true Final PR that provides remediation for this issue: swagger-api/swagger-editor#2985 Summary: SwaggerUI now exposes true EMS build fragment that SwaggerEditor is using. This provides remediation for error reported in this issue and other that might be manifesting. |
Released as https:/swagger-api/swagger-editor/releases/tag/v4.2.1 and successfully deployed to https://editor.swagger.io/ |
Q&A
Content & configuration
https://editor.swagger.io
Example Swagger/OpenAPI definition:
Describe the bug you're encountering
To reproduce...
Steps to reproduce the behavior:
Expected behavior
Request is sent
Screenshots
The text was updated successfully, but these errors were encountered: