Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
wants to merge 4 commits into from

Conversation

ascott18
Copy link
Collaborator

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

@ascott18 ascott18 closed this May 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant