Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix swagger example value #41

Merged
merged 1 commit into from
Sep 19, 2019
Merged

fix swagger example value #41

merged 1 commit into from
Sep 19, 2019

Conversation

yiptsangkin
Copy link

apidoc body的example value使用的是结构体的字段名,如UserName,但是实际开发过程中,会存在大家使用json注释的情况,即user_name,目前body里面的example value即使加了json注释也仍然是使用结构体的字段名,实际调试起来还要对example value进行修改,非常不方便,所以这里需要增加一个判断条件,如果存在json注释的话,property的key改为json的值

…释的情况,即user_name,目前body里面的example value即使加了json注释也仍然是使用结构体的字段名,实际调试起来还要对example value进行修改,非常不方便,所以这里需要增加一个判断条件,如果存在json注释的话,property的key改为json的值
@andeya andeya merged commit 436c768 into andeya:master Sep 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants