mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-03 09:53:45 +00:00
add 204s
This commit is contained in:
parent
e3e8272bbe
commit
277bec9c9a
7 changed files with 112 additions and 210 deletions
|
|
@ -62,6 +62,7 @@ def generate_openapi_spec(output_dir: str) -> dict[str, Any]:
|
|||
|
||||
# Clean descriptions in schema definitions by removing docstring metadata
|
||||
openapi_schema = schema_transforms._clean_schema_descriptions(openapi_schema)
|
||||
openapi_schema = schema_transforms._normalize_empty_responses(openapi_schema)
|
||||
|
||||
# Remove query parameters from POST/PUT/PATCH endpoints that have a request body
|
||||
# FastAPI sometimes infers parameters as query params even when they should be in the request body
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue