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

Incorrect Request Sample for application/octet-stream Requests #2744

Open
lukasikp opened this issue Nov 27, 2024 · 0 comments
Open

Incorrect Request Sample for application/octet-stream Requests #2744

lukasikp opened this issue Nov 27, 2024 · 0 comments

Comments

@lukasikp
Copy link
Contributor

Request samples do not send binary data

openapi: 3.0 and openapi: 3.1.0 :

      requestBody:
        required: true
        content:
          application/octet-stream:
            schema:
              type: string
              format: binary

Current Behavior

Elements:
image

Expected Behavior

SwaggerUI:
image

Possible Solution(s)

The library httpsnippet does not support sending raw binary data. An alternative solution could be to send the file as a binary string or a base64-encoded string.

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

2 participants