Only references the first list correctly - OpenAPI definition #60972
Labels
area-minimal
Includes minimal APIs, endpoint filters, parameter binding, request delegate generator etc
feature-openapi
Needs: Author Feedback
The author of this issue needs to respond in order for us to continue investigating this issue.
Needs: Repro
Indicates that the team needs a repro project to continue the investigation on this issue
Status: No Recent Activity
Is there an existing issue for this?
Describe the bug
Describe the bug
If I have a DTO with multiple lists of the same type, then only the first list is referenced correctly
OpenApi File To Reproduce
Create a type, use it in multiple lists on the same object
Expected behavior
All lists should have the type.
Screenshots/Code Snippets

Additional context
Add any other context about the problem here.
Expected Behavior
Should create the same reference for all properties with the same list
Steps To Reproduce
Create multiple properties of list of the same type T, then see that the reference is only correct for the first list
in openapi/v1.json
Exceptions (if any)
No response
.NET Version
dotnet 9
Anything else?
Used scalar to visualize the issue
The text was updated successfully, but these errors were encountered: