[9.0-preview.4] Remove x-aspnetcore-id from OpenAPI responses #55832
Labels
area-web-frameworks
*DEPRECATED* This label is deprecated in favor of the area-mvc and area-minimal labels
feature-openapi
Milestone
Is there an existing issue for this?
Is your feature request related to a problem? Please describe the problem.
Playing around with the new OpenAPI support in .NET 9 preview 4, I notice that all the operations have something like the following on all the operations:
This appears to be an internal implementation detail related to caching that doesn't need to be rendered in the JSON document. The values also don't appear to be deterministic and change with process restarts, which would cause the values to vary over time and within a web farm making stable comparison of the generated document for changes difficult.
It also leaks an implementation detail (that the server uses ASP.NET Core) that a user may not want to be broadcast if the document is internet-facing.
Describe the solution you'd like
The value used for caching is stored in a location that does not get serialized to the document.
Additional context
No response
The text was updated successfully, but these errors were encountered: