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

[Fix] - Handle filestream json data in multipart/form-data requests #65

Merged
merged 1 commit into from
Jan 12, 2024

Conversation

cgearing
Copy link
Contributor

This PR fixes an issue we have seen with some OpenAPI client generators where for a multipart/form-data payload, they are sending a binary object with a content-type attached. This PR handles this where we find it in the files section of the request, adding these to the body to be validated by Pydantic.

@cgearing cgearing force-pushed the fix/handle-binary-json-payloads-in-multipart-form branch from 76b3c7a to 7be8a75 Compare January 12, 2024 14:13
@cgearing cgearing force-pushed the fix/handle-binary-json-payloads-in-multipart-form branch from 7be8a75 to 7ab5ad8 Compare January 12, 2024 14:15
Copy link
Contributor

@robyoung robyoung left a comment

Choose a reason for hiding this comment

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

wow nice

@cgearing cgearing merged commit 0d5830d into main Jan 12, 2024
4 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