Skip to content

Commit 7a14b7f

Browse files
Add MapRequestPayload tips with built-in typed
1 parent 7c5c13f commit 7a14b7f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

controller.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -539,6 +539,10 @@ if you want to map a nested array of specific DTOs::
539539
) {}
540540
}
541541

542+
.. tip::
543+
544+
It's recommanded to use built-in types (like `int`, `bool`, `string`...) for mapping. Using custom types can expose your application implementation outside with errors during denormalization.
545+
542546
Managing the Session
543547
--------------------
544548

0 commit comments

Comments
 (0)