Skip to content

Only references the first list correctly - OpenAPI definition #60972

Closed
@NWessel

Description

@NWessel

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs: Author FeedbackThe author of this issue needs to respond in order for us to continue investigating this issue.Needs: ReproIndicates that the team needs a repro project to continue the investigation on this issueStatus: No Recent Activityarea-minimalIncludes minimal APIs, endpoint filters, parameter binding, request delegate generator etcfeature-openapi

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions