Merge 001bf15bf8 into sapling-pr-archive-ehhuang

This commit is contained in:
ehhuang 2025-10-08 13:38:59 -07:00 committed by GitHub
commit 02890c22f3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -278,6 +278,11 @@ def get_endpoint_operations(
if param_name == "self" and param_type is inspect.Parameter.empty: if param_name == "self" and param_type is inspect.Parameter.empty:
continue 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 # check if all parameters have explicit type
if parameter.annotation is inspect.Parameter.empty: if parameter.annotation is inspect.Parameter.empty:
raise ValidationError( raise ValidationError(