aspnetcore icon indicating copy to clipboard operation
aspnetcore copied to clipboard

Support new HTTP result types in OpenAPI schema generation

Open marcominerva opened this issue 5 months ago • 0 comments

Added support for FileStreamResult, FileContentHttpResult, and FileStreamHttpResult in OpenApiSchemaService. These types are now represented as binary string schemas in OpenAPI documentation.

Updated JsonTypeInfoExtensionsTests to include test cases for the new types, ensuring proper handling and naming in the schema.

Added new test cases in OpenApiSchemaServiceTests to verify OpenAPI response handling for the new HTTP result types, validating schema generation with appropriate content types.

These changes improve compatibility with new ASP.NET Core features and enhance the accuracy of API documentation.

Fixes #64561

marcominerva avatar Nov 28 '25 16:11 marcominerva