Skip to content

Microsoft.AspNetCore.OpenApi request problem in version 10+ #64767

@furaquejohn11

Description

@furaquejohn11

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

So i often used vertical slice architecture in all of my project and then I noticed that if there are the same request in the same namespace, even though they are under the different class, it only shows all identical copies to all endpoints. I tried changing my Scalar version but same thing happened. When i make post request it is okay so i tried downgrading to openapi 9.0 and everything now works. So i speculated that the openapi documentation on showing model has a bug in version 10+.

Expected Behavior

With version 9, it is okay

Image Image

but when i go to version 10, every request model is now identical. all request are now using the request model from my test endpoint. (test endpoint is the last endpoint i added)

Image Image

i tried to make a post and yes it still follows the same handler logic so I think it is on the documentation side

Image

for my code heres the snippet

Image Image

Steps To Reproduce

No response

Exceptions (if any)

No response

.NET Version

10.0.101

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-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