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

5.3.2 endpoints now have a capital letter #330

Closed
krjaction50 opened this issue Nov 8, 2022 · 5 comments
Closed

5.3.2 endpoints now have a capital letter #330

krjaction50 opened this issue Nov 8, 2022 · 5 comments
Assignees
Labels
enhancement New feature or request implemented requested feature has been implemented

Comments

@krjaction50
Copy link

Just upgraded from 5.2.1 to 5.3.2 and now all my endpoints names in swagger have a capital letter on them. I changed no code. Is there something I have to set to get the endpoint names back to matching the endpoint definition?

        Get("/addresses/{enterpriseId}");

Name shows as Addresses in Swagger. Name used to be addresses.

@dj-nitehawk
Copy link
Member

only the swagger groups/tags are capitalized right?
not the individual operations right?

@krjaction50
Copy link
Author

Correct

@dj-nitehawk
Copy link
Member

somebody request them to be capitalized. that's why the default behavior was changed. guess I'll have to add a setting in the next version to let the user choose.

@dj-nitehawk dj-nitehawk self-assigned this Nov 8, 2022
@dj-nitehawk dj-nitehawk added the enhancement New feature or request label Nov 8, 2022
@krjaction50
Copy link
Author

Yes, it's against our internal standards for some reason.

Thanks

@dj-nitehawk
Copy link
Member

with v5.3.2.12-beta you can choose the tag naming strategy like so:

builder.Services
.AddSwaggerDoc(s =>
{
s.DocumentName = "Initial Release";
s.Title = "Web API";
s.Version = "v0.0";
},
serializerSettings: x => x.PropertyNamingPolicy = null,
tagCase: TagCase.TitleCase)

@dj-nitehawk dj-nitehawk added the implemented requested feature has been implemented label Nov 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request implemented requested feature has been implemented
Development

No branches or pull requests

2 participants