HV-2245 Add @StartsWith constraint - #2093
Open
koentsje wants to merge 7 commits into
Open
Conversation
- Add the initial implementation of constraint StartsWith Signed-off-by: Koen Aers <koen.aers@gmail.com>
- Add StartsWithValidator for CharSequence validation - Add StartsWithValidatorTest covering null, matching/non-matching prefix, empty prefix, case sensitivity, ignoreCase and OR semantics for multiple values Signed-off-by: Koen Aers <koen.aers@gmail.com>
- Register StartsWith in BuiltinConstraint and ConstraintHelper - Add validation message to ValidationMessages.properties - Update MessagePropertiesTest and PredefinedScopeAllConstraintsTest - Add StartsWithConstrainedTest covering direct field, ignoreCase and multiple values Signed-off-by: Koen Aers <koen.aers@gmail.com>
- Add StartsWithDef class Signed-off-by: Koen Aers <koen.aers@gmail.com>
- Add @testForissue(jiraKey = HV-2245) to StartsWithValidatorTest and StartsWithConstrainedTest - Add testProgrammaticDefinition test for StartsWithDef in StartsWithValidatorTest Signed-off-by: Koen Aers <koen.aers@gmail.com>
- Add STARTS_WITH constant to TypeNames - Register StartsWith for CharSequence in AP ConstraintHelper - Add ModelWithStartsWithConstraints test model - Add startsWithConstraints test to ConstraintValidationProcessorIT Signed-off-by: Koen Aers <koen.aers@gmail.com>
- Add @startsWith entry to the reference guide in chapter 2 Signed-off-by: Koen Aers <koen.aers@gmail.com>
|
Documentation PreviewDocumentation preview artifact not found for commit db4723a. View workflow run for details. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Add a new @startsWith constraint that validates whether a character sequence starts with one or more specified prefixes (OR semantics), with an optional ignoreCase flag for case-insensitive matching.
Part of the "Extended set of constraints" epic (HV-2228).
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on licensing, please check here.