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
[Optional] Sponsorship to speed up the bug fix or feature request (example)
Description
The python generator does not send the body in POST requests that require data encoded as application/x-www-form-urlencoded. Also, data serialized for application/x-www-form-urlencoded should not be prefixed with a question mark '?'.
openapi-generator version
6.2.1-SNAPSHOT (built from master)
OpenAPI declaration file content or url
The petstore.yaml specification used for tests in this repo can be used to reproduce this issue.
Generation Details
The normal tests in this repo can reproduce this issue:
./bin/generate-samples.sh ./bin/configs/python*
Steps to reproduce
I found this issue when using the /v5/oauth/token endpoint documented in https://github.com/pinterest/api-description but I'm pretty sure that doing a POST to the petstore /pet/{petId} endpoint using a client generated for python would also reproduce this bug.
Related issues/PRs
I don't understand issue #2411 completely, but it might be fixed when this issue is fixed.
… data (#13723)
* fix for issue #13722: send body for application/x-www-form-urlencoded data
* fix python test_application_x_www_form_urlencoded_serialization
* x-www-form-urlencoded data needs to be percent encoded
* add verification endpoint test for x-www-form-urlencoded data
Co-authored-by: David Chaiken <[email protected]>
Description
The python generator does not send the body in POST requests that require data encoded as application/x-www-form-urlencoded. Also, data serialized for application/x-www-form-urlencoded should not be prefixed with a question mark '?'.
openapi-generator version
6.2.1-SNAPSHOT (built from master)
OpenAPI declaration file content or url
The petstore.yaml specification used for tests in this repo can be used to reproduce this issue.
Generation Details
The normal tests in this repo can reproduce this issue:
Steps to reproduce
I found this issue when using the /v5/oauth/token endpoint documented in https://github.com/pinterest/api-description but I'm pretty sure that doing a POST to the petstore /pet/{petId} endpoint using a client generated for python would also reproduce this bug.
Related issues/PRs
I don't understand issue #2411 completely, but it might be fixed when this issue is fixed.
Suggest a fix
I'll submit a pull request with this patch...
The text was updated successfully, but these errors were encountered: