[Rust Server] Support octet stream body param (#2725)

Add support for having a required octet stream as a body parameter.
This commit is contained in:
Richard Whitehouse
2019-05-07 11:45:07 +01:00
committed by William Cheng
parent 16f94e7e62
commit 31734c2717
22 changed files with 560 additions and 156 deletions

View File

@@ -65,8 +65,24 @@ paths:
description: OK
400:
description: Bad Request
/required_octet_stream:
put:
requestBody:
content:
application/octet-stream:
schema:
format: byte
type: string
required: true
responses:
200:
description: OK
components:
schemas:
UuidObject:
description: Test a model containing a UUID
format: uuid
type: string
xml_array:
items:
$ref: '#/components/schemas/xml_inner'