File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 8
8
from openapi_codec .decode import _parse_document
9
9
10
10
11
- __version__ = '1.2.0 '
11
+ __version__ = '1.2.1 '
12
12
13
13
14
14
class OpenAPICodec (BaseCodec ):
Original file line number Diff line number Diff line change @@ -123,9 +123,13 @@ def _get_parameters(link, encoding):
123
123
else :
124
124
# Expand coreapi fields with location='form' into a single swagger
125
125
# parameter, with a schema containing multiple properties.
126
+ use_type = field .type or 'string'
127
+ if use_type == 'file' :
128
+ use_type = 'string'
129
+
126
130
schema_property = {
127
131
'description' : field .description ,
128
- 'type' : field . type or 'string' ,
132
+ 'type' : use_type ,
129
133
}
130
134
if field .type == 'array' :
131
135
schema_property ['items' ] = {'type' : 'string' }
You can’t perform that action at this time.
0 commit comments