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
Parsing validation rules for Spring-style interface parameters.
Brief explanation of the feature.
Basic Example
Example usage:
@Pattern(regexp = "^[\\u4e00-\\u9fa5\\w\\d][\\u4e00-\\u9fa5\\w\\d_]{0,62}[\\u4e00-\\u9fa5\\w\\d]$",
message = "The name of the customized background image is invalid.")
@Range(min = 0, max = 1, message = "resolution must be in [0,1]")
privateintresolution;
If the proposal involves a new or changed API, include a basic code example. Omit this section if it's not applicable.
Motivation
After generating the interface documentation, there is no need to manually add or modify the validation rules for each parameter. If the rules for input parameters are updated, the documentation can be regenerated without manual intervention for the validation rules. In the interface documentation, it is clearly visible which validation rules apply to different interface input parameters.
The text was updated successfully, but these errors were encountered:
shalousun
changed the title
后续版本是否支持对接口请求参数的校验规则解析?
Will future versions support the parsing of validation rules for interface request parameters?
Jul 1, 2024
Summary
Parsing validation rules for Spring-style interface parameters.
Brief explanation of the feature.
Basic Example
Example usage:
If the proposal involves a new or changed API, include a basic code example. Omit this section if it's not applicable.
Motivation
After generating the interface documentation, there is no need to manually add or modify the validation rules for each parameter. If the rules for input parameters are updated, the documentation can be regenerated without manual intervention for the validation rules. In the interface documentation, it is clearly visible which validation rules apply to different interface input parameters.
The text was updated successfully, but these errors were encountered: