Class-validator: 1.0 Roadmap

Created on 17 Mar 2018  路  3Comments  路  Source: typestack/class-validator

There are quite a few things we should fix/implement before releasing 1.0, some of these will be a breaking change.

Note: this issue will be updated as progress is made towards these goals.

  • [ ] Features

    • [x] adding ValidationError.toString() (#26)

    • [ ] experimenting to see if we can add support for class method validation (#115)

    • [ ] rethink how groups are handled

    • [ ] experimenting to see if we can add support for dynaimc constraints (#76)

    • [ ] add validation modes (fail on first error) (#148)

    • [ ] support i18n for error message (#169)

    • [ ] rething the structure of the error object for easier usage

    • [ ] add some low level decorator for runtime logic, GreaterThan and GreaterOrEquals decorator or a more generic one what expects a property key and a compareFn function.

  • [ ] Schema based validation

    • [ ] fix current bugs

    • [ ] add test coverage

    • [ ] make every validator available

    • [ ] add option to generate JSON schema from class metadata

    • [ ] add support of registering validation schema for target class

    • [ ] add support of registering custom validations without using decorators

  • [ ] Documentation

    • [ ] split up docs into sections

    • [ ] add a documentation site

    • [ ] add documentation for usage with pure JS

    • [ ] add documentation for usage with babel + decorators

    • [ ] add documentation about using error output with Angular's Reactive Forms module (#69)

    • [ ] add better docs about custom decorators and validation classes

  • [ ] Project setup refactor

    • [x] split up files, better code oraganziation

    • [ ] add Prettier for code formatting

    • [ ] add husky for auto formatting and running tests before commits

  • [ ] Test setup refactor

    • [x] move to Jest (batteries included and out-of-box TS support)

    • [ ] split test files and move them next to the components they test


Please do not comment things like "+1" or "Me too", but feel free to add your voice.

feature

All 3 comments

Awesome. Waiting for rethink how groups are handled MUAHAHAHA :D Love u guys.

about (#69)
this is how i do it.

It is not encouraging that in two years, only one checkbox has been checked on this list and the project is still on version 0.11.0 (released 15 months ago).

Was this page helpful?
0 / 5 - 0 ratings