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

Update Handling of File and Bytes for consistency across Single Part and MultiPart bodies #6168

Open
markcowl opened this issue Feb 26, 2025 · 0 comments

Comments

@markcowl
Copy link
Contributor

markcowl commented Feb 26, 2025

  • Add @mediaTypeHint decorator that specifies the default content-type for scalar types when no content-type is present
  • Apply @mediaTypeHint("Application/octet-stream") to bytes scalar and similar hints ('text/plain') to other scalars as appropriate
  • Simplify HttpOperation logic to use the mediaTypeHint instead of special processing for bytes
  • Treat Http.File the same in multipart and single part bodies
    • contentType is populated from the message or message part content-type header
    • filename is populated from the content-disposition header
    • treatment of content depends on content-type header
    • Http.File in the context of an enclosing object is treated as a json object
  • Document requirements for emitters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant