-
Notifications
You must be signed in to change notification settings - Fork 251
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
apidoc body的example value使用的是结构体的字段名,如UserName,但是实际开发过程中,会存在大家使用json注…
…释的情况,即user_name,目前body里面的example value即使加了json注释也仍然是使用结构体的字段名,实际调试起来还要对example value进行修改,非常不方便,所以这里需要增加一个判断条件,如果存在json注释的话,property的key改为json的值
- Loading branch information
nearyip
authored and
nearyip
committed
Sep 2, 2019
1 parent
fbd11bf
commit f57ebdc
Showing
2 changed files
with
7 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,3 +35,4 @@ samples/demo/demo | |
|
||
ext/services | ||
.DS_Store | ||
.idea |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters