elements
elements copied to clipboard
Incorrect Request Sample for application/octet-stream Requests
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:
Expected Behavior
SwaggerUI:
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.