Skip to content
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

Only references the first list correctly - OpenAPI definition #60972

Closed
1 task done
NWessel opened this issue Mar 17, 2025 · 1 comment
Closed
1 task done

Only references the first list correctly - OpenAPI definition #60972

NWessel opened this issue Mar 17, 2025 · 1 comment
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

Comments

@NWessel
Copy link

NWessel commented Mar 17, 2025

Is there an existing issue for this?

  • I have searched the existing issues

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
Image

Image

Image

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

@dotnet-issue-labeler dotnet-issue-labeler bot added the area-blazor Includes: Blazor, Razor Components label Mar 17, 2025
@martincostello martincostello added feature-openapi area-minimal Includes minimal APIs, endpoint filters, parameter binding, request delegate generator etc Needs: Repro Indicates that the team needs a repro project to continue the investigation on this issue and removed area-blazor Includes: Blazor, Razor Components labels Mar 17, 2025
Copy link
Contributor

Thank you for filing this issue. In order for us to investigate this issue, please provide a minimal repro project that illustrates the problem without unnecessary code. Please share with us in a public GitHub repo because we cannot open ZIP attachments, and don't include any confidential content.

@dotnet-policy-service dotnet-policy-service bot added Needs: Author Feedback The author of this issue needs to respond in order for us to continue investigating this issue. Status: No Recent Activity labels Mar 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

No branches or pull requests

2 participants