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

class-validator? #38

Open
NickBolles opened this issue Oct 22, 2019 · 2 comments
Open

class-validator? #38

NickBolles opened this issue Oct 22, 2019 · 2 comments

Comments

@NickBolles
Copy link

The example in the readme has class-validator included in it.

import { prop } from "@typegoose/typegoose";
import { IsString } from "class-validator";

export class Cat {
  @IsString()
  @prop({ required: true })
  name: string;
}

Does nestjs-typegoose have integration with class-validator? from my searching it appears that the answer is no. If there isn't integration, it probably shouldnt be in the initial readme, cuz it confused me for a bit. An example with class-validator would be cool though, and might be something that could be integrated into typegoose core.

@hasezoey
Copy link
Contributor

hasezoey commented Nov 3, 2019

just for reference: typegoose/typegoose#108

@Ricka7x
Copy link

Ricka7x commented Jun 21, 2022

is class-validator still not compatible?

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

3 participants