Commit 8636dec5 authored by wangzk's avatar wangzk
Browse files

fix(swaggerjson中formData格式example属性在yapi页面不显示)

parent 2ca9b34e
......@@ -240,6 +240,9 @@ const compareVersions = require('compare-versions');
break;
case 'formData':
defaultParam.type = param.type === 'file' ? 'file' : 'text';
if (param.example) {
defaultParam.example = param.example;
}
api.req_body_form.push(defaultParam);
break;
case 'header':
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment