Do not bail on response when request body is formData

This commit is contained in:
Cristi Vîjdea
2018-09-10 00:02:23 +03:00
parent b109d4c847
commit 41b1ca4483
4 changed files with 35 additions and 3 deletions
+30
View File
@@ -189,6 +189,8 @@ paths:
responses:
'200':
description: ''
schema:
$ref: '#/definitions/Article'
consumes:
- multipart/form-data
tags:
@@ -225,6 +227,8 @@ paths:
responses:
'201':
description: ''
schema:
$ref: '#/definitions/ImageUpload'
consumes:
- multipart/form-data
tags:
@@ -887,6 +891,32 @@ definitions:
type: string
format: uuid
readOnly: true
ImageUpload:
required:
- image_styles
type: object
properties:
what_am_i_doing:
description: test
type: string
pattern: ^69$
default: '69'
minLength: 1
image_styles:
description: Parameter with Items
type: array
items:
type: string
enum:
- wide
- tall
- thumb
- social
upload:
description: image serializer help_text
type: string
readOnly: true
format: uri
Identity:
title: Identity
type: object