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

Release 0.5.0 #7

Open
daniel-samson opened this issue Dec 24, 2024 · 0 comments
Open

Release 0.5.0 #7

daniel-samson opened this issue Dec 24, 2024 · 0 comments
Assignees
Labels
documentation This is issue is either documentation or relates to the documentation minor release this issue documents a change for a minor release planning this issue documents plans for the future

Comments

@daniel-samson
Copy link
Owner

daniel-samson commented Dec 24, 2024

Branch: epic/0.5.x

Release 0.5.0 should extend Release 0.4.0 #5 and add:

New Rules

different:field

The field under validation must have a different value than field.

alpha

The field under validation must be entirely Unicode alphabetic characters contained in \p{L} and \p{M}.

To restrict this validation rule to characters in the ASCII range (a-z and A-Z), you may provide the ascii option to the validation rule:

{
   'username':  'alpha:ascii',
}

alpha_dash

The field under validation must be entirely Unicode alpha-numeric characters contained in \p{L}, \p{M}, \p{N}, as well as ASCII dashes (-) and ASCII underscores (_).

To restrict this validation rule to characters in the ASCII range (a-z and A-Z), you may provide the ascii option to the validation rule:

{
   'username':  'alpha:ascii',
}

alpha_num

The field under validation must be entirely Unicode alpha-numeric characters contained in \p{L}, \p{M}, and \p{N}.

To restrict this validation rule to characters in the ASCII range (a-z and A-Z), you may provide the ascii option to the validation rule:

{
   'username':  'alpha:ascii',
}

prohibited

The field under validation must be missing or empty. A field is "empty" if it meets one of the following criteria:

  • The value is null.
  • The value is an empty string.
  • The value is an empty array or empty Countable object.

prohibited_if:anotherfield,value,...

The field under validation must be missing or empty if the anotherfield field is equal to any value. A field is "empty" if it meets one of the following criteria:

  • The value is null.
  • The value is an empty string.
  • The value is an empty array or empty Countable object.

prohibited_unless:anotherfield,value,...

The field under validation must be missing or empty unless the anotherfield field is equal to any value. A field is "empty" if it meets one of the following criteria:

  • The value is null.
  • The value is an empty string.
  • The value is an empty array or empty Countable object.
  • The value is an uploaded file with an empty path.

prohibits:anotherfield,...

If the field under validation is not missing or empty, all fields in anotherfield must be missing or empty. A field is "empty" if it meets one of the following criteria:

  • The value is null.
  • The value is an empty string.
  • The value is an empty array or empty Countable object.

regex:pattern

The field under validation must match the given regular expression.

@daniel-samson daniel-samson added the documentation This is issue is either documentation or relates to the documentation label Dec 24, 2024
@daniel-samson daniel-samson self-assigned this Dec 24, 2024
@daniel-samson daniel-samson added planning this issue documents plans for the future minor release this issue documents a change for a minor release labels Jan 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation This is issue is either documentation or relates to the documentation minor release this issue documents a change for a minor release planning this issue documents plans for the future
Projects
None yet
Development

No branches or pull requests

1 participant