Have namespaces always been ignored when creating api docs? #1097
Replies: 2 comments 7 replies
-
OpenAPI (formerly Swagger) never cared about namespaces because that is a .NET language concept which doesn't necessarily translate to other languages. If you have something like
The rules are as follows (in order):
OpenAPI and the Swagger UI do not support more than one level of grouping out-of-the-box. This is the closest you could ever get to it with the default tooling unless you change quite a number of things. If you group was This feature is documented in the wiki and was introduced in |
Beta Was this translation helpful? Give feedback.
-
Ok. I think I know what's going on here. I don't know how The I'm not sure what you are trying to achieve with I would encourage you to review the OpenAPI example project and, in particular, the ConfigureSwaggerOptions. |
Beta Was this translation helpful? Give feedback.
-
Hi. I put this here as I'm fairly sure it isn't a bug. We recently updated to .NET8 and also to AspNet-Api-Versioning. But now our docs don't build. I get an error telling me that a key, "Providers", has already been added to the dictionary. Tracking this down seems to lead me to the
[ApiExplorerSettings(GroupName = $"Providers_v2")]
and the GroupName. To distinguish between versions I added_v2
as a test and now my docs build correctly. In the previous version we didn't need to do this. But I came across this closed issue where it states namespaces are ignored; #1084So I was wondering if something had changed between versions?
Beta Was this translation helpful? Give feedback.
All reactions