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

파이프 사용시 transform=true 로 설정해야 dto 오버라이딩 가능 #2

Open
seongjihye1994 opened this issue Nov 18, 2022 · 0 comments

Comments

@seongjihye1994
Copy link
Collaborator

seongjihye1994 commented Nov 18, 2022

클라이언트에서 데이터 받아서 dto 에 담을 때 클라이언트에서 넘겨준 데이터 이외에 dto 에 있는 다른 필드는 디폴트 값 설정하려고 했는데 안됐음 -> validationPipe 사용하고 있었고 옵션에 transform=true 로 설정 안해줘서 오버라이딩 안돼서 dto 디폴트 값 설정 안됐음

https://stackoverflow.com/questions/55478828/is-it-possible-to-set-default-values-for-a-dto

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