elements icon indicating copy to clipboard operation
elements copied to clipboard

Incorrect Request Sample for application/octet-stream Requests

Open lukasikp opened this issue 1 year ago • 0 comments

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.

lukasikp avatar Nov 27 '24 08:11 lukasikp