Skip to content

fix(fetch): accept float values for data - #3209

Merged
Pavel Feldman (pavelfeldman) merged 1 commit into
microsoft:mainfrom
kwy404:fix-fetch-float-data
Oct 6, 2026
Merged

Pavel Feldman (pavelfeldman) merged 1 commit into
microsoft:mainfrom
kwy404:fix-fetch-float-data

Conversation

@kwy404

Copy link
Copy Markdown
Contributor

Summary

  • APIRequestContext.fetch() accepted int and bool values for data but raised Unsupported 'data' type: <class 'float'> for floats, while Playwright for JS accepts any number. Floats are now JSON serialized like the other scalar types.
  • Added a float case to test_should_serialize_request_data.

@kwy404

Copy link
Copy Markdown
Contributor Author

@microsoft-github-policy-service agree

@pavelfeldman

Copy link
Copy Markdown
Member

Copilot resolve the merge conflicts in this pull request

@pavelfeldman
Pavel Feldman (pavelfeldman) merged commit b92f282 into microsoft:main Oct 6, 2026
29 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.

3 participants