Skip to content
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

[rest] allow files to accept a tuple with duplicate field names #34021

Merged
merged 9 commits into from
Jan 29, 2024

Conversation

iscai-msft
Copy link
Contributor

Currently, we collapse the inputted files into a dictionary after we apply our serialization onto it. That means if we have multiple inputs with the same field name, i.e. HttpRequest(files=[("file", filebytesOne), ("file", filebytesTwo)], we only pass files={"file": filebytesTwo} to the transport and the service.

In this PR, if users input a tuple to files, we will maintain the tuple format. We're doing this so we don't completely move away from the request body's content being dictionary, as .content is a public property

@azure-sdk
Copy link
Collaborator

API change check

API changes are not detected in this pull request.

@iscai-msft
Copy link
Contributor Author

storage failure is unrelated, being resolved here: #34052. Force merging

@iscai-msft
Copy link
Contributor Author

/check-enforcer override

@iscai-msft iscai-msft merged commit 9a67986 into Azure:main Jan 29, 2024
218 of 225 checks passed
@iscai-msft iscai-msft deleted the multipartSameFileName branch January 29, 2024 21:32
sofiar-msft pushed a commit to sofiar-msft/azure-sdk-for-python that referenced this pull request Feb 16, 2024
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.

5 participants