-
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
OAS 3.0 Form Data Try-It-Out object serialization #3788
Comments
I am also having a problem with form data in Try It Out. Using swagger-ui 3.4.2 Clicking the execute button using the default request body results in a Javascript error on the page. |
@banders this seems closely related, so I'll look into that as well. Sorry for the inconvenience! |
@shockey I'm still seeing the same problem I reported in the Nov 3 post. Using swagger-ui 3.6.0 "Try it Out" then "execute" results in a jvascript error. If you think this is unrelated to the original issue, I can write it up as new issue. |
@banders, I think you're having a slightly different problem (my original issue was a serialization inaccuracy, not a thrown error), but I'll take a look. If I can reproduce the problem, no need for a ticket. I'll circle back on this later today 😄 |
@shockey I appreciate it. Thanks! |
Demonstration API definition
Expected Behavior
I expect my request body value, shown below, to be serialized correctly.
Current Behavior
The
address
object is not properly serialized before the request is sent:Possible Solution
Non-primitive values should be serialized correctly, here: https://github.com/swagger-api/swagger-js/blob/2a3f113c1c219ec3756a73ffc35e366987ff6f5c/src/execute/oas3/build-request.js#L47
The text was updated successfully, but these errors were encountered: