Spaces:
Running
Running
Jeremiah Lowin commited on
Commit ·
365b235
1
Parent(s): 8ebc58d
Update openapi.py
Browse files
src/fastmcp/utilities/openapi.py
CHANGED
|
@@ -1010,14 +1010,14 @@ def format_description_with_responses(
|
|
| 1010 |
Args:
|
| 1011 |
base_description (str): The initial description to be formatted.
|
| 1012 |
responses (dict[str, Any]): A dictionary of response information, keyed by status code.
|
| 1013 |
-
parameters (list[openapi.ParameterInfo] | None, optional): A list of parameter information,
|
| 1014 |
-
including path and query parameters. Each parameter includes details such as name,
|
| 1015 |
location, whether it is required, and a description.
|
| 1016 |
-
request_body (openapi.RequestBodyInfo | None, optional): Information about the request body,
|
| 1017 |
including its description, whether it is required, and its content schema.
|
| 1018 |
|
| 1019 |
Returns:
|
| 1020 |
-
str: The formatted description string with additional details about responses, parameters,
|
| 1021 |
and the request body.
|
| 1022 |
"""
|
| 1023 |
desc_parts = [base_description]
|
|
|
|
| 1010 |
Args:
|
| 1011 |
base_description (str): The initial description to be formatted.
|
| 1012 |
responses (dict[str, Any]): A dictionary of response information, keyed by status code.
|
| 1013 |
+
parameters (list[openapi.ParameterInfo] | None, optional): A list of parameter information,
|
| 1014 |
+
including path and query parameters. Each parameter includes details such as name,
|
| 1015 |
location, whether it is required, and a description.
|
| 1016 |
+
request_body (openapi.RequestBodyInfo | None, optional): Information about the request body,
|
| 1017 |
including its description, whether it is required, and its content schema.
|
| 1018 |
|
| 1019 |
Returns:
|
| 1020 |
+
str: The formatted description string with additional details about responses, parameters,
|
| 1021 |
and the request body.
|
| 1022 |
"""
|
| 1023 |
desc_parts = [base_description]
|