[9.0-preview.4] Remove x-aspnetcore-id from OpenAPI responses
martincostello opened this issue · comments
Is there an existing issue for this?
- I have searched the existing issues
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:
"x-aspnetcore-id": "486b77e5-5389-4ee8-aa30-e251b631a16d"
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