Pattern

DTO Mapping for Nested Models

dto-mapping-nested-models

A recurring model/DTO mismatch where nested ORM objects are serialized as full objects, but the API contract expects derived primitives, leading to manual mapping via DTO separation or explicit validator transformations.