mirror of
https://github.com/PrefectHQ/fastmcp.git
synced 2026-08-22 13:34:17 +02:00
set body's description as well
This commit is contained in:
parent
82a987b900
commit
cb6499922e
1 changed files with 2 additions and 1 deletions
|
|
@ -942,7 +942,8 @@ def _combine_schemas(route: HTTPRoute) -> dict[str, Any]:
|
|||
# For now, just use the first content type's schema
|
||||
content_type = next(iter(route.request_body.content_schema))
|
||||
body_schema = _replace_ref_with_defs(
|
||||
route.request_body.content_schema[content_type].copy()
|
||||
route.request_body.content_schema[content_type].copy(),
|
||||
route.request_body.description,
|
||||
)
|
||||
body_props = body_schema.get("properties", {})
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue