Skip to content

[BUG] API Document generation does not parse request parameters for RPC types (Dubbo/SOFA/TARS/gRPC) #6338

@eye-gu

Description

@eye-gu

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

The API document generation in ApiDocRegistrarImpl.getDocument() uses OpenApiUtils.generateDocumentParameters() for all RPC types without distinction. This method only supports parsing Spring Web annotations (@RequestParam, @RequestPart, path variables) for HTTP-style parameters. For non-HTTP RPC types (Dubbo, SOFA, TARS, gRPC), it fails to extract any meaningful request parameter information, since these RPC types do not use Spring Web annotations.

As a result, the generated API document for RPC types contains responseType (response details) but has empty/missing request parameter details — the document only has response, no request.

Expected Behavior

No response

Steps To Reproduce

No response

Environment

ShenYu version(s):

Debug logs

No response

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions