Skip to content

fix: Handle octet-stream content media type as binary format#1418

Open
gudjonragnar wants to merge 1 commit intoopenapi-generators:mainfrom
gudjonragnar:main
Open

fix: Handle octet-stream content media type as binary format#1418
gudjonragnar wants to merge 1 commit intoopenapi-generators:mainfrom
gudjonragnar:main

Conversation

@gudjonragnar
Copy link
Copy Markdown

Fastapi fixed their spec generator to output contentMediaType: application/octet-stream instead of format: binary.
This results in a changed behaviour for the generated client when it comes to file uploads going from taking a File object to taking a string.
This patch should fix that.

@gudjonragnar
Copy link
Copy Markdown
Author

Not sure if this is the correct implementation since I am not very familiar with the code base, so very much open to changing it.

@gudjonragnar gudjonragnar changed the title Handle octet-stream content media type as binary format fix: Handle octet-stream content media type as binary format Apr 7, 2026
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.

1 participant