-
-
Notifications
You must be signed in to change notification settings - Fork 539
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
Json.NET attributes should be ignored when using System.Text.Json #1174
Comments
Seems like a duplicate of RicoSuter/NSwag#2243, part B. System.Text.Json is not officially supported by NSwag |
I see this support is getting more and more important, but meanwhile System.Text.Json still does not expose metadata... |
Here we have a related PR: RicoSuter/NSwag#2655 |
Moved to NJS. |
With NSwag v13.5.0 and a PropertyNamingPolicy which is not null (in asp.net core it is set to CamelCase by default) it should already work as expected. |
My Api is using System.Text.Json, however I'm still referencing Json.NET. If I expose a model, that is using a the Json.NET attribute, the Swagger models are generated incorrectly:
generates the Swagger model
however the API response will be
The text was updated successfully, but these errors were encountered: