Skip to content

see in XML comment causes invalid schema description #4070

Closed
@tobias-tengler

Description

Using see also seems to have some strange behaviour if it references a method (possibly a bug, or just an unhandled situation?).

If I have a mutation:

public async Task<TestMutationPayload> TestMutation(TestMutationInput input)
{
    ...

With the input object defined as:

/// <summary>
/// Input object for <see cref="TestMutations.TestMutation"/>.
/// </summary>
public class TestMutationInput
{
    ...

Then this appears in the SDL as:

"""
Input object for TestMutationInput).
"""
input TestMutationInput {
  ...

The comment always seems to reference the object type of the last parameter to the mutation, followed by an ending bracket.

Ideally this would instead be output as:

"""
Input object for TestMutation.
"""
input TestMutationInput {
  ...

Originally posted by @cjzzz in #3730 (comment)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions