-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
system.text.json ignores [JsonConverter(..)] on [FromQuery] in ASP.NET #38939
Comments
Duplicate of #33112. |
but the "interface" works with POST requests, is it part of the unexpected behavior? |
@jamalabo1, can you share a small project that highlights the issue? This would include the implementation of the custom converter. |
@jamalabo1 - I couldn't repro any errors on .NET Core 3.1 or .NET 5.0 here given the issue description and the provided code samples. Please take a look at my repro to see if it correctly captures the scenario you have - https://dotnetfiddle.net/rm05JE. I'm going to move this issue to future since it is not actionable as currently reported. We can triage again if needed. If your issue is not solved, please provide a simple console/ASP.NET Core project that shows a repro so that we can determine if there's a problem with System.Text.Json or with ASP.NET Core. |
This issue has been automatically marked Please refer to our contribution guidelines for tips on what information might be required. |
This issue will now be closed since it had been marked |
Custom converter:
Controller
when the request is
GET
it ignores the custom converter, (throws an error (cannot deserialize) and does not reach the code (debugged))when the controller is this it works
The text was updated successfully, but these errors were encountered: