Skip to content

[Bug]: No proper documentation for A2A request in Swagger UI for A2AFastAPIApplication #274

@inesmcm26

Description

@inesmcm26

What happened?

The way A2AFastAPIApplication sets up its A2A request route causes FastAPI’s Swagger UI to be less usable. Because the route is defined to receive a generic Request object, there's no model defined for the request body. As a result, FastAPI doesn’t generate any documentation for the request body, and there's no way to provide or test a request body in the Swagger UI at all.

This makes it impossible to use Swagger UI to test the endpoint directly, since you can’t input the necessary data.

Current behavior:

Image

Expected behavior after fix:

Image

Relevant log output

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions