Pattern
DTO Mapping For Nested Types
dto-mapping-nested-types
A recurring shape where response fields require a different type than the database model, so serialization/validation leaks nested objects and breaks the expected schema, and the fix is explicit DTO mapping or field-level transformation.