Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
pub
yapi
Commits
8636dec5
Commit
8636dec5
authored
Jul 24, 2020
by
wangzk
Browse files
fix(swaggerjson中formData格式example属性在yapi页面不显示)
parent
2ca9b34e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
exts/yapi-plugin-import-swagger/run.js
exts/yapi-plugin-import-swagger/run.js
+3
-0
No files found.
exts/yapi-plugin-import-swagger/run.js
View file @
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
'
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment