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

响应泛型对象时,Yapi不显示泛型属性 #8

Closed
luochaocao opened this issue Sep 14, 2021 · 2 comments
Closed

响应泛型对象时,Yapi不显示泛型属性 #8

luochaocao opened this issue Sep 14, 2021 · 2 comments

Comments

@luochaocao
Copy link

响应泛型对象:
public class ResultModel implements Serializable {
private int code;
private String text;
private T data;
}

Yapi显示:
code | integer | 非必须 |   | http状态码 |  
data | object | 非必须 |   | data | 备注: data
text | string | 非必须 |   | 描述

问题如下:
data泛型是个VO,yapi上不显示VO以下属性,请问这个怎么解决?

@NoBugBoy
Copy link
Owner

建议使用Object 但是这确实是个问题 我解决一下

@NoBugBoy
Copy link
Owner

1.0.8会解决这个问题,不支持多泛型 单个泛型是可以的

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

No branches or pull requests

2 participants