File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -115,14 +115,15 @@ def _get_parameters(link, encoding):
115
115
'required' : field .required ,
116
116
'in' : 'formData' ,
117
117
'description' : field .description ,
118
- 'type' : 'string'
118
+ 'type' : field . type or 'string'
119
119
}
120
120
parameters .append (parameter )
121
121
else :
122
122
# Expand coreapi fields with location='form' into a single swagger
123
123
# parameter, with a schema containing multiple properties.
124
124
schema_property = {
125
- 'description' : field .description
125
+ 'description' : field .description ,
126
+ 'type' : field .type or 'string'
126
127
}
127
128
properties [field .name ] = schema_property
128
129
if field .required :
@@ -147,7 +148,7 @@ def _get_parameters(link, encoding):
147
148
'required' : field .required ,
148
149
'in' : location ,
149
150
'description' : field .description ,
150
- 'type' : 'string'
151
+ 'type' : field . type or 'string'
151
152
}
152
153
parameters .append (parameter )
153
154
You can’t perform that action at this time.
0 commit comments