mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-10-08 21:04:39 +00:00
test
# What does this PR do? ## Test Plan
This commit is contained in:
parent
96886afaca
commit
001bf15bf8
12 changed files with 69 additions and 1 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