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
{{ message }}
Repository navigation
XML doc generation support should resovle inheritdoc in additional files #60466
area-minimalIncludes minimal APIs, endpoint filters, parameter binding, request delegate generator etcarea-mvcIncludes: MVC, Actions and Controllers, Localization, CORS, most templatesbugThis issue describes a behavior which is not expected - a bug.feature-openapi
The XML documentation comment support is currently able to handle resolving <inheritdoc /> references within the compilation assembly by reusing the logic that is used by Roslyn.
This same functionality isn't currently supported for documentation comments that are resolved directly from XML files. In those cases, we have no semantic model to go off of in order to determine the relationships between types. In those situations, we can come up with something rudimentary that tries to understand inheritance hierarchies based on the documentation ID.
Are there any possible workarounds? Swashbuckle is missing the same feature but someone was able to write a custom filter to support inheritdoc which works across assemblies
@asleire You can likely port the existing filter to an OpenApi transformer to achieve the same behavior in the built-in package.
One option I considered to make this slightly easier was stashing the XML comment discovered statically in the data model associated with the operation/schema/response so that users could get the raw XML from the data model instead of having to re-read the XML files.
I'm happy to review a PR for that change if you're interested in making an update to the XML source generator.
area-minimalIncludes minimal APIs, endpoint filters, parameter binding, request delegate generator etcarea-mvcIncludes: MVC, Actions and Controllers, Localization, CORS, most templatesbugThis issue describes a behavior which is not expected - a bug.feature-openapi
Activity
asleire commentedon Jul 28, 2025
Are there any possible workarounds? Swashbuckle is missing the same feature but someone was able to write a custom filter to support inheritdoc which works across assemblies
captainsafia commentedon Jul 28, 2025
@asleire You can likely port the existing filter to an OpenApi transformer to achieve the same behavior in the built-in package.
One option I considered to make this slightly easier was stashing the XML comment discovered statically in the data model associated with the operation/schema/response so that users could get the raw XML from the data model instead of having to re-read the XML files.
I'm happy to review a PR for that change if you're interested in making an update to the XML source generator.