Open ryou90 opened 6 months ago
I've detailed my thoughts on the DTO naming and why it is like it is in this discord: https://discord.com/channels/919193495116337154/1227621024481411223/1228558632363364412 - you might like to read that.
Thx for the link. I understand why a defined naming scheme is used for DTOs. But on the other hand, the developer should be able to define his own unique name. For Pydantic models there is also the possibility (__schema_name__). The fact is that the given naming scheme is absolutely impractical when generating Openapi clients.
Description
Hi, when creating the Openapi schema there is a different behavior for generating the schema names. When I create a route with a dataclass, the Openapi schema is generated with the dataclass name. However, if I use a DTO wrapper, a completely different name is generated.
Is there a way to specify the name for a DTO class individually?
URL to code causing the issue
No response
MCVE
Steps to reproduce
No response
Screenshots
No response
Logs
No response
Litestar Version
2.8.2
Platform