-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Description
Is there an existing issue for this?
- I have searched the existing issues
Describe the bug
XML documentation is not parsed into OpenAPI documents from endpoints which come from dependent libraries. This means the feature does not support APIs built from multiple modules well.
This should be supported given the endpoint definitions themselves from the class libraries are parsed into the document, just without their supporting XML documentation.
As an example one pattern might be that controllers are defined in separate libraries for easier separation of concerns, but deployed as one unit as one API executable (modular monolith).
Expected Behavior
XML documentation for any endpoint which is added to the generated OpenAPI document accompanies the endpoint docs whenever the endpoint is added to the document
Steps To Reproduce
https://github.com/ZTonks/XML_NET_OpenAPI_MWE
Run API project from Visual Studio (such that Scalar is opened via launchSettings) (this is the easiest way of seeing the results of the OpenAPI document)
Exceptions (if any)
XML documentation is added to the endpoints which are from consumed libraries
.NET Version
10.0.100
Anything else?
Visual Studio 2026 18.0.1
Host:
Version: 10.0.0
Architecture: x64
<PackageReference Include="Microsoft.AspNetCore.OpenApi" Version="10.0.0-preview.2.25161.17" />
Other RC versions of the package I tried also exhibit this behaviour