https://github.com/niieani/validation-prototype
aurelia-validation prototype
https://github.com/niieani/validation-prototype
Last synced: 3 months ago
JSON representation
aurelia-validation prototype
- Host: GitHub
- URL: https://github.com/niieani/validation-prototype
- Owner: niieani
- License: mit
- Created: 2016-08-24T10:59:54.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2023-12-15T17:27:53.000Z (almost 2 years ago)
- Last Synced: 2025-07-11T13:43:41.621Z (3 months ago)
- Language: JavaScript
- Size: 4.67 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# Enhancements
* First class TypeScript support
* Asynchronous validation
* Entity validation
* Multiple controllers per view.
* Drop validate.js
* Errors that aren't specific to a particular property/element
* Conditional validation
* Make it easier to define custom rules
* Make it easier to customize error messages / I18N
* Keyed message resources
* Use binding engine to render message templates
* Improve renderer API to make animation scenarios and "success" scenarios possible# Under Consideration
* Enable specifying rules for nested properties: `ValidationRules.ensure('foo.bar.baz').required();`
* Validation sequencing: add an option or change the standard behavior such that rules specific to a particular property are validated sequentially. The first validation error cancels the remaining validation work for the property. Side-effect: properties would never have more than one error. Benefit: expensive rules could be validated only when everything else is valid.# Known Issues
* `& validate` does not work with two-way custom attributes because it's unable to locate the associated DOM element.
* Rule property decorators missing. `@required`, etc# Demos
* Fluent API:
ensure, displayName
Rules: required, satisfies, min/max-length/items, email, matches
Message customization: withMessage, withMessageKey
when,
* Replacing default messages# Building
```shell
npm run build
```