This is an automated email from the ASF dual-hosted git repository. lukaszlenart pushed a commit to branch docs/update-validations-annotation-ww-5579 in repository https://gitbox.apache.org/repos/asf/struts-site.git
commit 97817e48f7477ec7398788a392198e92d2d6b59d Author: Lukasz Lenart <[email protected]> AuthorDate: Fri Nov 21 10:48:44 2025 +0100 docs: add missing validators to @Validations annotation docs Add longRangeFields, shortRangeFields, and doubleRangeFields to the Parameters table and add doubleRangeFields example in the Examples section. Relates to WW-5579 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]> --- source/core-developers/validations-annotation.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/source/core-developers/validations-annotation.md b/source/core-developers/validations-annotation.md index c49091d59..37aca5a13 100644 --- a/source/core-developers/validations-annotation.md +++ b/source/core-developers/validations-annotation.md @@ -61,6 +61,21 @@ Used at METHOD level. <td class='confluenceTd'> Add list of IntRangeFieldValidators </td> </tr> <tr> + <td class='confluenceTd'> longRangeFields </td> + <td class='confluenceTd'> no </td> + <td class='confluenceTd'> Add list of LongRangeFieldValidators </td> + </tr> + <tr> + <td class='confluenceTd'> shortRangeFields </td> + <td class='confluenceTd'> no </td> + <td class='confluenceTd'> Add list of ShortRangeFieldValidators </td> + </tr> + <tr> + <td class='confluenceTd'> doubleRangeFields </td> + <td class='confluenceTd'> no </td> + <td class='confluenceTd'> Add list of DoubleRangeFieldValidators </td> + </tr> + <tr> <td class='confluenceTd'> requiredStrings </td> <td class='confluenceTd'> no </td> <td class='confluenceTd'> Add list of RequiredStringValidators </td> @@ -113,6 +128,8 @@ Used at METHOD level. { @LongRangeFieldValidator(type = ValidatorType.SIMPLE, fieldName = "intfield", min = "6", max = "10", message = "bar must be between ${min} and ${max}, current value is ${bar}.")}, shortRangeFields = { @ShortRangeFieldValidator(type = ValidatorType.SIMPLE, fieldName = "shortfield", min = "1", max = "128", message = "bar must be between ${min} and ${max}, current value is ${bar}.")}, + doubleRangeFields = + { @DoubleRangeFieldValidator(type = ValidatorType.SIMPLE, fieldName = "doublefield", minInclusive = "0.0", maxInclusive = "100.0", message = "bar must be between ${minInclusive} and ${maxInclusive}, current value is ${bar}.")}, dateRangeFields = {@DateRangeFieldValidator(type = ValidatorType.SIMPLE, fieldName = "datefield", min = "-1", max = "99", message = "bar must be between ${min} and ${max}, current value is ${bar}.")}, expressions = {
