ShiWei commited on
Commit
b2e733d
·
1 Parent(s): 73c6a92

set body's description as well

Browse files
Files changed (1) hide show
  1. src/fastmcp/utilities/openapi.py +2 -1
src/fastmcp/utilities/openapi.py CHANGED
@@ -942,7 +942,8 @@ def _combine_schemas(route: HTTPRoute) -> dict[str, Any]:
942
  # For now, just use the first content type's schema
943
  content_type = next(iter(route.request_body.content_schema))
944
  body_schema = _replace_ref_with_defs(
945
- route.request_body.content_schema[content_type].copy()
 
946
  )
947
  body_props = body_schema.get("properties", {})
948
 
 
942
  # For now, just use the first content type's schema
943
  content_type = next(iter(route.request_body.content_schema))
944
  body_schema = _replace_ref_with_defs(
945
+ route.request_body.content_schema[content_type].copy(),
946
+ route.request_body.description,
947
  )
948
  body_props = body_schema.get("properties", {})
949