You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Additionally, the document description format is not very user-friendly. It is suggested to optimize it to: "Field annotation
Note: Min xx, Max xx". Support for internationalization would be even better.
+1
而且文档描述格式也不太友好,建议优化成:“字段注释<br>注:最小xx,最大xx”。如果能做国际化支持更好。
shalousun
changed the title
smart-doc 3.0.1版本无法识别JSR303 @Length和@Size 注解中的min属性,以及@Min和@Max注解
Smart-doc does not fully recognize JSR validation information.
Mar 6, 2024
Your Environment(您的使用环境)
Expected Behavior(您期望的结果)
Current Behavior(当前结果)
字段注解:
@Length(min = 3, max = 512)
private String name0;
@notblank
@SiZe(min = 3, max = 256)
private String name1;
@notblank
@min(3)
@max(50)
private String name2;
产生文档描述:
name0: Validate[max: 512; ]
name1: Validate[max: 256; ]
name2: 无描述
Possible Solution(bug解决建议)
Steps to Reproduce (Bug产生步骤,请尽量提供用例代码)
Context(Bug影响描述)
Smart-doc version 3.0.1 fails to recognize the 'min' attribute in JSR303 @Length and @SiZe annotations, as well as the @min and @max annotations.
smart-doc 3.0.1版本无法识别JSR303 @Length和@SiZe 注解中的min属性,以及@min和@max注解
The text was updated successfully, but these errors were encountered: