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

Columns validations #8

Open
ele828 opened this issue Oct 31, 2016 · 0 comments
Open

Columns validations #8

ele828 opened this issue Oct 31, 2016 · 0 comments

Comments

@ele828
Copy link
Member

ele828 commented Oct 31, 2016

Support column validations, code looks like:

@Entity()
class E {
    @Column
    @Length(1, 10)
    name: string;

    @Column
    @IsDate()
    regDate: Date;
}

References to this project,
https://github.com/pleerock/class-validator

We should think about the way we implement it, should we just use the Sequelize embedded validator or using 3rd party one.

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

No branches or pull requests

1 participant