Repository navigation
Fix XML documentation descriptions missing for constructed generic types - #10806
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
The tests do not exercise the new constructed-generic-method normalization branch; add MakeGenericMethod cases while retaining the existing definition cases to cover documentation lookup for constructed generic methods.
1 open issue
What changed in this PR
Fixes runtime XML documentation lookup for constructed generic types in Hot Chocolate, addressing #10803 so descriptions appear in generated GraphQL schemas.
Changes:
- Resolves constructed types and members to their generic definitions and formats generic method parameter signatures.
- Adds documentation fixtures and regression tests for provider lookups and schema descriptions.
- Updates PostgreSQL and Apollo Federation snapshots with restored descriptions.
| File | Description |
|---|---|
src/HotChocolate/Data/test/Data.PostgreSQL.Tests/__snapshots__/IntegrationTests.CreateSchema.graphql |
Records restored connection and edge descriptions. |
src/HotChocolate/Core/test/Types.Tests/Types/ObjectTypeTests.cs |
Verifies constructed generic descriptions in a schema. |
src/HotChocolate/Core/test/Types.Tests/Types/Descriptors/Conventions/XmlDocumentationProviderTests.cs |
Tests generic type, member, and parameter documentation lookup. |
src/HotChocolate/Core/test/Types.Tests.Documentation/Envelope.cs |
Adds documented generic fixtures. |
src/HotChocolate/Core/src/Types/Types/Descriptors/Conventions/XmlDocumentationProvider.cs |
Normalizes generic members and builds XML documentation identifiers. |
src/HotChocolate/ApolloFederation/test/ApolloFederation.ImplementationFirst/__snapshots__/PageConnectionFederationTests.PageConnection_Field_With_Explicit_Shareable_PageCursor_Builds_Schema.graphql |
Records the restored edge description with explicit cursor sharing. |
src/HotChocolate/ApolloFederation/test/ApolloFederation.ImplementationFirst/__snapshots__/PageConnectionFederationTests.PageConnection_Field_With_ApolloFederation_Builds_Schema.graphql |
Records the restored federated edge description. |
src/HotChocolate/ApolloFederation/test/ApolloFederation.ImplementationFirst/__snapshots__/PageConnectionCompositeSchemaTests.PageConnection_Field_With_CompositeSourceSchema_Builds_Schema.graphql |
Records the restored composite-schema edge description. |
Review effort: Balanced
Contributor
Patch coverage80.0% of changed lines covered (80/100)
Uncovered changed lines (JSON){
"sha": "64556633dbf48d343d7060c2510429b818487993",
"files": [
{ "path": "src/HotChocolate/Core/src/Types/Types/Descriptors/Conventions/XmlDocumentationProvider.cs", "ranges": [[567, 574], [576, 577], [579, 580], [586, 589], [613, 616]] }
]
}Project coverage: 59.4% (321353/540615 lines) |
This was referenced Nov 10, 2026
chore(deps): Bump HotChocolate.Subscriptions.InMemory from 16.7.3 to 16.7.5
Kuestenlogik/Bowire#1025
Merged
This was referenced Nov 19, 2026
fix(deps): Bump Basic.Reference.Assemblies.Net100 and 32 others
AdCodicem/AdCodicem.ValueObjects#262
Closed
This was referenced Nov 26, 2026
fix(deps): Bump Basic.Reference.Assemblies.Net100 and 43 others
AdCodicem/AdCodicem.ValueObjects#274
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Fixes #10803