domaindrivendev / Swashbuckle.AspNetCore

Swagger tools for documenting API's built on ASP.NET Core
MIT License
5.25k stars 1.31k forks source link

Generated OpenApi JSON removes numbers in tag of controller #2562

Open dmanassa opened 1 year ago

dmanassa commented 1 year ago

Swashbuckle version: 6.4.0 Dotnet version: 6.x

Issue Happened after I updated from Swashbuckle v5.0.0 to v6.4.0.

Generated OpenApi JSON removes numbers in tag of controller, but only if they are placed at the end of the string.

image

Steps to reproduce

1) Create Controller class named "HelloWorld123"

public class HelloWorld123 { public HelloWorld123(IMyService myService) { } }

2) Generate OpenApi specification

Result: "123" is removed from "HelloWorld123".

image

Expected behavior

The generated OpenAPI JSON should still have the numbers "123" in the Controller name.

jobdk commented 6 months ago

Hi, are there any news about this as I'm currently facing the same problem.

martincostello commented 6 months ago

No updates - I haven't had the time to look into this.

If you have the bandwidth to do so if you're affected by this issue and would like a fix, any help you can provide would be appreciated.

github-actions[bot] commented 4 months ago

This issue is stale because it has been open for 60 days with no activity. It will be automatically closed in 14 days if no further updates are made.