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

Some DTO's have conflicts between ts types and class-validator decarators #180

Open
CllDMR opened this issue Feb 16, 2023 · 0 comments
Open

Comments

@CllDMR
Copy link
Collaborator

CllDMR commented Feb 16, 2023

Projedeki bazı DTO'lardaki bazı property'lerde class-validator'dan gelen '@IsOptional()' kullanılmış. Ancak bu property'ler için typescript'deki 'optional' type'ı kullanılmamış.

Örnek olarak buradaki email property'si

Bunun gibi olan durumları belirleyip, buralara typescript'deki optional ('?') eklenmeli.

Tabi burada typescript ve mongodb tarafında conflict ile karşılaşılabileceğini göz önünde tutmak sağlıklı olacaktır.

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