mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-03 09:53:45 +00:00
chore: re-add deprecated routes to the combined spec
Matches https://github.com/llamastack/llama-stack/pull/4156 Signed-off-by: Sébastien Han <seb@redhat.com>
This commit is contained in:
parent
2a257dbdea
commit
bb34f7a4d4
6 changed files with 676 additions and 20 deletions
|
|
@ -276,7 +276,7 @@ def _filter_deprecated_schema(openapi_schema: dict[str, Any]) -> dict[str, Any]:
|
|||
def _filter_combined_schema(openapi_schema: dict[str, Any]) -> dict[str, Any]:
|
||||
"""
|
||||
Filter OpenAPI schema to include both stable (v1) and experimental (v1alpha, v1beta) APIs.
|
||||
Excludes deprecated endpoints. This is used for the combined "stainless" spec.
|
||||
Includes deprecated endpoints. This is used for the combined "stainless" spec.
|
||||
"""
|
||||
filtered_schema = openapi_schema.copy()
|
||||
|
||||
|
|
@ -299,10 +299,6 @@ def _filter_combined_schema(openapi_schema: dict[str, Any]) -> dict[str, Any]:
|
|||
if not isinstance(operation, dict):
|
||||
continue
|
||||
|
||||
# Skip deprecated operations
|
||||
if operation.get("deprecated", False):
|
||||
continue
|
||||
|
||||
filtered_path_item[method] = operation
|
||||
|
||||
# Only include path if it has at least one operation after filtering
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue