Skip to content

Response OpenApiOperation metadata with minimal api #59769

Open
@rmannibucau

Description

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

When you set as metadata using minimal api an OpenApiOperation, it is overwritten by the one created using reflection which is very bothering using trimming features and it looses data.

Expected Behavior

When set it is just read and potentially a toggle could enable to merge reflection and custom model but minimal expected behavior would be to respect user data.

Steps To Reproduce

No response

Exceptions (if any)

No response

.NET Version

9

Anything else?

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    Needs: Attention 👋This issue needs the attention of a contributor, typically because the OP has provided an update.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