You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Incorrect OpenAPI document generation with recursive object that contains a list #60012
In a .NET 9.0.1 Minimal API project with Microsoft.AspNetCore.OpenApi, I have the following endpoint, returning a recursive object that also contains a list:
Similar to the above, I've included a test for this in the branch associated with the backport. For now, closing this one as a dupe of the referenced issue.
Activity
nanny07 commentedon Jan 24, 2025
I found out that if you invert the position of the two properties, putting the "Tags" first and then "Parent", it all works as expected
mikekistler commentedon Jan 25, 2025
This looks like it might be a dup of #59976
marcominerva commentedon Feb 12, 2025
The issue still happens with .NET 9.0.2
captainsafia commentedon Mar 5, 2025
Thanks for filing this issue, @marcominerva!
You've already dupped it to #60381 where I've left a comment but figured I'd make a reference to that comment here.
#60381 (comment)
Similar to the above, I've included a test for this in the branch associated with the backport. For now, closing this one as a dupe of the referenced issue.