Documentation says there is no compile-time check for ProducesResponseType validation in Controllers, which is incorrect #35010
Labels
aspnet-core/svc
fundamentals/subsvc
Source - Docs.ms
Docs Customer feedback via GitHub Issue
⌚ Not Triaged
Description
The docs say:
This is incorrect. The "Use web API analyzers" page does allow you to enable analyzers to enable (some form of) compile-time checks:
https://learn.microsoft.com/en-us/aspnet/core/web-api/advanced/analyzers?view=aspnetcore-10.0#analyzers-for-web-api-conventions
I believe that these pages need to be linked.
Page URL
https://learn.microsoft.com/en-us/aspnet/core/fundamentals/openapi/include-metadata?view=aspnetcore-10.0&tabs=minimal-apis
Content source URL
https://github.com/dotnet/AspNetCore.Docs/blob/main/aspnetcore/fundamentals/openapi/include-metadata.md
Document ID
cbc730ec-642f-480d-4a41-044c6c6ef7d3
Platform Id
4bbf4c77-ca40-25d5-0673-fab1102c2291
Article author
@captainsafia
Metadata
Related Issues
The text was updated successfully, but these errors were encountered: