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] Support Ember Changeset Validations #45

Merged
merged 2 commits into from
Mar 16, 2017

Conversation

offirgolan
Copy link
Collaborator

@offirgolan offirgolan commented Mar 14, 2017

API Changes

  • Validators will now always return either true or a ValidationError. If a specific message is returned, instead of returning a string, it will now be under the message property of the error object.

Validator Changes

  • Confirmation
    • allowBlank
  • Format
    • inverse
    • Remove deprecated emailOptionalTld
    • Auto include regex from type
  • Length
    • Default allowNone to true
    • useBetweenMessage (If min and max are set, use the between error message type
  • Number
    • allowNone (defaulted to true)
    • multipleOf

@offirgolan offirgolan changed the title [FEATURE] Add multipleOf to Number validator + between error message type [FEATURE] Support Ember Changeset Validations Mar 15, 2017
@offirgolan offirgolan merged commit d6d1743 into master Mar 16, 2017
@offirgolan offirgolan deleted the support-ember-changeset-validations branch March 16, 2017 00:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant