Skip to content

Keep empty values when deserializing application/x-www-form-urlencoded #1020

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

Merged
merged 1 commit into from
Aug 18, 2025

Conversation

andersk
Copy link
Contributor

@andersk andersk commented Aug 14, 2025

In order to correctly deserialize the application/x-www-form-urlencoded body name= into {"name": ""} rather than {}, we need to use the keep_blank_values=True parameter of urllib.parse.parse_qsl.

Copy link

codecov bot commented Aug 14, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.57%. Comparing base (ca6044e) to head (46a5dce).
⚠️ Report is 58 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1020      +/-   ##
==========================================
- Coverage   90.62%   90.57%   -0.06%     
==========================================
  Files         150      150              
  Lines        4374     4381       +7     
  Branches      532      534       +2     
==========================================
+ Hits         3964     3968       +4     
- Misses        318      320       +2     
- Partials       92       93       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Collaborator

@p1c2u p1c2u left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🙏

@p1c2u p1c2u merged commit bcd720b into python-openapi:master Aug 18, 2025
8 of 9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants