Is your feature request related to a problem? Please describe.
在我的Controller中,有两个方法,一个是register,一个是sendRegisterEmail,为了不创建过多的DTO,他们都使用同一个DTO,并在DTO中设置了字段分组,在使用@Validation注解的时候我就只需要加上组名即可共享这个DTO
但是我观察到,knife4j不会识别某个接口上的分组对应需要的参数信息,而是把整个DTO含有NotBlank注解的字段都设置成必须传入,这不符合预期
Describe the solution you'd like
让knife4j识别接口参数的@Validation信息,按照分组决定DTO中哪些字段必须传入
Describe alternatives you've considered
Additional context


Is your feature request related to a problem? Please describe.
在我的Controller中,有两个方法,一个是register,一个是sendRegisterEmail,为了不创建过多的DTO,他们都使用同一个DTO,并在DTO中设置了字段分组,在使用@Validation注解的时候我就只需要加上组名即可共享这个DTO
但是我观察到,knife4j不会识别某个接口上的分组对应需要的参数信息,而是把整个DTO含有NotBlank注解的字段都设置成必须传入,这不符合预期
Describe the solution you'd like
让knife4j识别接口参数的@Validation信息,按照分组决定DTO中哪些字段必须传入
Describe alternatives you've considered
Additional context
