Pattern
DTO Mapping for Nested Lists
dto-mapping-nested-list
A recurring schema-shape mismatch where shared ORM/DB models cause automatic serialization of nested objects instead of the API’s simpler field types, leading to explicit DTO separation or validators that map object attributes into primitives.