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

[Question] 如何使文档的字段类型和java类型不同 #1092

Open
bjhx2003 opened this issue Dec 11, 2023 · 3 comments
Open

[Question] 如何使文档的字段类型和java类型不同 #1092

bjhx2003 opened this issue Dec 11, 2023 · 3 comments
Labels
type: question&discussion Further information is requested

Comments

@bjhx2003
Copy link

在一些场景下,后端定义BigDecimal类型,但是序列化到前端为String,以保持精度问题。
这个序列化和反序列是框架处理的,需要在yapi中生成文档时按照string去生成,请问这个该怎么处理

@bjhx2003 bjhx2003 added the type: question&discussion Further information is requested label Dec 11, 2023
@tangcent
Copy link
Owner

试试配 json.rule.convert

@bjhx2003
Copy link
Author

试试配 json.rule.convert

可以了,再问下
如何同时支持swagger3的 @Schema(description = "xxx")注解,我看现在不支持

@tangcent
Copy link
Owner

看看这个swagger3
我自己不用swagger,所以对swagger的支持可能不全。如果不支持的话,你可以自行增加一些配置,当然你也可以提交PR到https://github.com/tangcent/easy-yapi/blob/master/third/swagger3.config

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: question&discussion Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants