Commit 09c72c5
committed
fix(SwaggerGen): include endpoints with unmatching GroupName in OpenAPI document
When an endpoint's GroupName does not match any registered document,
treat it as ungrouped and include it in all documents. This fixes the
issue where endpoints with WithGroupName() configured would not appear
in the OpenAPI document when no corresponding document was registered.
Before: GroupName set but not matching docName → endpoint excluded
After: GroupName set but not matching any registered doc → included1 parent d22870e commit 09c72c5
File tree
1 file changed
+4
-1
lines changed- src/Swashbuckle.AspNetCore.SwaggerGen/SwaggerGenerator
1 file changed
+4
-1
lines changedLines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
84 | | - | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
85 | 88 | | |
86 | 89 | | |
87 | 90 | | |
| |||
0 commit comments