Unverified Commit 4a6fdd3b authored by sean1025's avatar sean1025 Committed by GitHub

Merge pull request #1879 from laowon/fix-exampleInSwaggerJson-lost

fix(swaggerjson中formData格式example属性在yapi页面不显示)
parents 2ca9b34e 8636dec5
......@@ -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