Skip to content

Incorrect mapping of FileContentHttpResult and FileContentHttpResult in OpenAPI #64561

@marcominerva

Description

@marcominerva

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

This is the same issue as #63172, which also affects the response types FileStreamResult, FileContentHttpResult and FileStreamHttpResult.

Expected Behavior

OpenAPI should generate the correct schema:

"schema": {
    "type": "string",
    "format": "binary"
  }

Also for FileStreamResult, FileContentHttpResult and FileStreamHttpResult response types.

.NET Version

10.0.100

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