Skip to content

Validations should be revisited #447

@1602

Description

@1602
  • deprecate sync validations
  • callback with error only (reject promise) instead of collecting errors on instance
  • think of readable error messages instead of 'Validation error'
  • fail after first validation error, when saving
  • support validateAll method which will perform all validations and collect errors to replace previous functinality of instance.errors after .isValid()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions