Skip to content

What is the point of DTOs? #2908

Answered by peterschutt
Xemnas0 asked this question in Q&A
Discussion options

You must be logged in to vote

Short answer: you don't need them and there is no requirement for you to use them.

Longer answer is that DTOs can save a lot of repetition by removing the need to define explicit request and response schemas.

why would I need another layer on top of that?

You wouldn't - they are an alternative to defining explicit request and response schemas.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Xemnas0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants