mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-10-09 05:08:37 +00:00
Merge 001bf15bf8
into sapling-pr-archive-ehhuang
This commit is contained in:
commit
02890c22f3
1 changed files with 5 additions and 0 deletions
|
@ -278,6 +278,11 @@ def get_endpoint_operations(
|
|||
if param_name == "self" and param_type is inspect.Parameter.empty:
|
||||
continue
|
||||
|
||||
# skip **kwargs parameters - they should not appear in OpenAPI spec
|
||||
# these are used for forwarding arbitrary extra parameters to underlying APIs
|
||||
if parameter.kind == inspect.Parameter.VAR_KEYWORD:
|
||||
continue
|
||||
|
||||
# check if all parameters have explicit type
|
||||
if parameter.annotation is inspect.Parameter.empty:
|
||||
raise ValidationError(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue