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 88from openapi_codec .decode import _parse_document
99
1010
11- __version__ = '1.2.0 '
11+ __version__ = '1.2.1 '
1212
1313
1414class OpenAPICodec (BaseCodec ):
Original file line number Diff line number Diff line change @@ -123,9 +123,13 @@ def _get_parameters(link, encoding):
123123 else :
124124 # Expand coreapi fields with location='form' into a single swagger
125125 # parameter, with a schema containing multiple properties.
126+ use_type = field .type or 'string'
127+ if use_type == 'file' :
128+ use_type = 'string'
129+
126130 schema_property = {
127131 'description' : field .description ,
128- 'type' : field . type or 'string' ,
132+ 'type' : use_type ,
129133 }
130134 if field .type == 'array' :
131135 schema_property ['items' ] = {'type' : 'string' }
You can’t perform that action at this time.
0 commit comments