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

@IsOptional decorator not ignoring in case property is missing #107

Closed
adnan-kamili opened this issue Jul 19, 2017 · 1 comment
Closed

Comments

@adnan-kamili
Copy link
Contributor

If property is explicitly set to null or "" then only @IsOptional() works. But if the property is missing undefined validations are applied, why is not undefined also treated in a similar manner. I need to ignore validations on few properties in the class if they are not present, how can I do that?

@NoNameProvided
Copy link
Member

Duplicate of #101, there is also a pending PR for this at #102

@NoNameProvided NoNameProvided marked this as a duplicate of #101 Jul 19, 2017
@typestack typestack locked and limited conversation to collaborators Jul 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

2 participants