Skip to content

Conversation

@deankarn
Copy link
Contributor

@deankarn deankarn commented Sep 3, 2015

Additions

  • Add alias logic. now can add an alias to validations using function RegisterAliasValidation. i.e. "iscolor" is alias for "hexcolor|rgb|rgba|hsl|hsla"

Changes

  • dereference BakedInValidators, no need to pass in anymore, should use registration function to add more.
  • add tag validation to ensure it does not overwrite core tags necessary to library operation and invalid characters.
  • core changes of how and where caching is implemented.

joeybloggs and others added 25 commits August 29, 2015 23:07
- Unexport Alias Map in order to preserve any custom user aliases that
  may conflict with new aliases added to the library itself....need to
  copy them for each new validator.
- update error to report alias tag as the error tag and add actualTag to
  know what it would have actually been.
* makes it safer as options passed in by reference, in the future, will
  not be manipulatable externally.
* made error pool per validator instance to reduce contention is
  multiple validators are in play.
Added checking for nil receiver on Validator methods
* change for one validator instance method and message
Update Validator instance check
@deankarn deankarn self-assigned this Sep 3, 2015
@deankarn deankarn added this to the v8 milestone Sep 3, 2015
deankarn pushed a commit that referenced this pull request Sep 3, 2015
@deankarn deankarn merged commit 40bd6a0 into go-playground:v8-development Sep 3, 2015
fairyhunter13 added a commit to fairyhunter13/validator that referenced this pull request Jul 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants