-
Notifications
You must be signed in to change notification settings - Fork 9.8k
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
RDG does not support route handlers that return an anonymous type #47244
Comments
Thanks for contacting us. We're moving this issue to the |
I'm taking a look at getting this working by taking advantage of the interceptors prototype that is in https://github.com/dotnet/aspnetcore/tree/safia/interceptors-prototype. The first onion to peel is that at the moment, we don't have access to a speakable type name for the anonymous types in two locations.
Interceptors solve the first problem but we still have the second issue to contend with. |
Update: we realized that even if we get this working from RDG's perspective, the JSON generator still lacks support for anonymous types so we're likely to deadend here. Moving this issue to Low/never since we can't take any action immediately. We already emit a diagnostic so we are good there. |
We've moved this issue to the Backlog milestone. This means that it is not going to be worked on for the coming release. We will reassess the backlog following the current release and consider this item at that time. To learn more about our issue management process and to have better expectation regarding different types of issues you can read our Triage Process. |
Given the code:
The RDG will generate code that fails to comply because of the anonymous type is unspeakable.
The text was updated successfully, but these errors were encountered: