OpenApi custom polymorphic type names #58332
Labels
area-minimal
Includes minimal APIs, endpoint filters, parameter binding, request delegate generator etc
area-mvc
Includes: MVC, Actions and Controllers, Localization, CORS, most templates
feature-openapi
Milestone
Is there an existing issue for this?
Is your feature request related to a problem? Please describe the problem.
We're looking into migrating from Swashbuckle to Microsoft.AspNetCore.OpenApi. There are many benefits but polymorphic type naming is a larger issue for us as it makes generated type names hard to read. In our case we use the base type name as a suffix, e.g.
Generates a type called:
JobTemplateFooJobTemplate
.Describe the solution you'd like
Any way to customize the generated schema name. In Swashbuckle we could configure a delegate that took a Type and returned a String.
Additional context
#57982 and #58213 also mention this particular issue.
The text was updated successfully, but these errors were encountered: