IntelliTect / Coalesce

Quickly build amazing web apps
https://intellitect.github.io/Coalesce/
Apache License 2.0
64 stars 22 forks source link

refactor!: split generated DTOs into inputs and outputs #390

Closed ascott18 closed 5 months ago

ascott18 commented 5 months ago

Description

Breaking: Split generated DTOs into Parameter DTOs and Response DTOs.

This eliminates the properties that are present in input positions but are never actually mapped out of the DTO to the domain model. Doing so prevents ASP.NET Core's API Explorer from going crazy while traversing [FromForm] parameters, which produces things like this and can even go out of control and use dozens of gigabytes of memory:

image