You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'll need some additional information. "It doesn't work" doesn't provide much context. What is your setup? Is there a repro?
The OpenAPI Minimal API example should show everything you need to get things started with Minimal APIs and OpenAPI.
I should also point out that .NET 9 is not yet officially supported because it is not released. A TFM mapping is only guaranteed to work with an exact match (e.g. net8.0 → .NET 8). This is because of a runtime major version bump. Even if things compile, there can be runtime behavioral differences. I've seen it happen. As an army of one, it's difficult to chase pre-releases. It's rare for me to release a version for a pre-release version of .NET. It isn't as trivial as some might think. Nevertheless, the official release is nearing and I intend to get something aligned to that ASAP.
If the provided example is insufficient, I should point out Microsoft's eShop application for Aspire uses Minimal APIs, OpenAPI, and API Versioning. I collaborated with them on adding it. They appear to have it working without issue. You might want to review that setup (see: here)
Is there an existing issue for this?
Describe the bug
Is there a way to make this work for Minimal API Endpoints in .NET 9?
Routes not showing up in generated spec.
I’m switching from NSwag.
Expected Behavior
Routes showing up in Open API spec.
Steps To Reproduce
No response
Exceptions (if any)
No response
.NET Version
9.0.0-RC
Anything else?
No response
The text was updated successfully, but these errors were encountered: