Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[RFC] Stateless Validators (Again) #153

Draft
wants to merge 4 commits into
base: 2.26.x
Choose a base branch
from

Commits on Sep 20, 2022

  1. Initial revision of concrete validation result

    By using a value object to represent the validation result, error message iteration and translation can be extracted from all the validators.
    
    Signed-off-by: George Steel <[email protected]>
    gsteel committed Sep 20, 2022
    Configuration menu
    Copy the full SHA
    cb36681 View commit details
    Browse the repository at this point in the history
  2. Example refactor of StringLength to return a validation result

    Signed-off-by: George Steel <[email protected]>
    gsteel committed Sep 20, 2022
    Configuration menu
    Copy the full SHA
    62f7efc View commit details
    Browse the repository at this point in the history

Commits on Sep 21, 2022

  1. Modify ValidatorInterface removing message retrieval

    Signed-off-by: George Steel <[email protected]>
    gsteel committed Sep 21, 2022
    Configuration menu
    Copy the full SHA
    f20aeb0 View commit details
    Browse the repository at this point in the history
  2. Split success and failure cases into separate values

    Signed-off-by: George Steel <[email protected]>
    gsteel committed Sep 21, 2022
    Configuration menu
    Copy the full SHA
    36b691c View commit details
    Browse the repository at this point in the history