a2aproject/a2a-python

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

inesmcm26 opened this issue · 0 comments

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