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

+ [feature] supports the enum/in can use object to transform value #759

Closed
wants to merge 1 commit into from

Conversation

snowyu
Copy link

@snowyu snowyu commented Dec 12, 2014

@particlebanana
Copy link
Contributor

@snowyu can you refresh me on what this does? What is the purpose of the object notation?

@snowyu
Copy link
Author

snowyu commented Apr 7, 2015

This an unit test only. the real code is sailshq/anchor#67.
Last year I said the chriso (validator author) merged partly. so you have to add or enhance the interface( Anchor.match.type() to pass the additional rule information.

and the feature issue is https://github.com/balderdashy/waterline/issues/52.

@particlebanana
Copy link
Contributor

Changing the data based on a validation isn't really the goal of the validation system in Waterline. Custom validations or lifecycle callbacks could be used for this currently.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants