Skip to content
This repository has been archived by the owner on Jul 8, 2020. It is now read-only.

Additional assertions + Better error messages #4

Merged
merged 10 commits into from Nov 15, 2018

Conversation

Blacksmoke16
Copy link
Owner

@Blacksmoke16 Blacksmoke16 commented Nov 15, 2018

New Assertions

  • RegexMatch
  • Url
  • Uuid
  • IP
  • Email
  • Valid (to validate child sub classes)

More explicit assertion annoations

@[Assert::NotNil]

Better default error messages

'name' has failed the is_blank_assertion now becomes 'name' should be blank
or
'age' has failed the greater_than_or_equal_assertion now becomes 'age' should be greater than or equal to 0

Error message place holders:

See docs/validations.md#error-messages for more info

RegexMatch assertion
Some cleanup
More specs
Expose assertion#field and Validator#assertions
Method to return fields that failed assertions
Update docs
All caps ExclusionPolicy enum values
Update docs
More url assertion test cases
Allow for placeholder tokens in messages
Remove interfaces
More doc polish
@Blacksmoke16 Blacksmoke16 merged commit 42878ed into master Nov 15, 2018
@Blacksmoke16 Blacksmoke16 deleted the additional-assertions branch November 15, 2018 16:26
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant