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

Swagger中的定义的tags导入后会丢失 #19

Open
HessianZ opened this issue Sep 4, 2020 · 0 comments
Open

Swagger中的定义的tags导入后会丢失 #19

HessianZ opened this issue Sep 4, 2020 · 0 comments
Labels
bug Something isn't working

Comments

@HessianZ
Copy link

HessianZ commented Sep 4, 2020

Bug 描述
Swagger中的定义的tags导入后会丢失

重现步骤

  1. 在代码中用@Api(tags ="标签")对类进行注解
  2. 导出swagger json文件
  3. 通过NEI中的“新建接口-导入swagger文件”进行导入
  4. bug 重现

期望结果
导入的接口包含代码中定义的swagger tags

涉及文件
public/src/lib/NEI_import/src/NEISwagger.ts
public/src/lib/NEI_import/src/NEIInterfaceBean.ts

问题原因
NEI_Import的代码中�给把标签赋值给了NEIInterfaceBean.tags属性,但是在NEI中标签属性是tag,没有s,故导致丢失标签数据。

@HessianZ HessianZ added the bug Something isn't working label Sep 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant