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

Investigate why NSwag defaults to PascalCase instead of camelCase in .NET 8 #188

Open
william-liebenberg opened this issue Oct 23, 2023 · 0 comments

Comments

@william-liebenberg
Copy link
Contributor

william-liebenberg commented Oct 23, 2023

Noticed that the generated specification.json file now uses PascalCase instead of camelCase.

From a quick check, using out of the box swagger (swashbuckle) we get camelCase.

When adding NSwag.AspNetCore (net8 preview 14), we get PascalCase by default.

Also, controlling the serializer is difficult and unclear how/where to modify serialization settings.

image

Figure: Swagger output (camelCase)

image

Figure: OpenApi output (PascalCase)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

No branches or pull requests

1 participant