Excluding endpoints from OpenAPI document when using controllers #57422
-
I've been trying out the controller support for generating OpenAPI documentation in .NET 9 preview 7 using After some digging I found that I can instead use the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
I've been using Sounds like maybe you're just hitting a bug - could you open a new issue with a Minimal Reproducible Example of the issue, then one of the engineers will be able to take a look into it. |
Beta Was this translation helpful? Give feedback.
Yep, I get that it's Controllers not Minimal APIs (which is what I'm using), but I would have thought that the OpenApi functionality would just be consuming the endpoint metadata in the same way and as they both use the same type, then they both should work.
Either way, I think this is a bug given that the Minimal APIs is using the same attribute to signify that it shouldn't be documented.