You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
RestApiTool.from_parsed_operation_str drops required flags on parameters #8065
Describe the bug
A RestApiTool restored with RestApiTool.from_parsed_operation_str(...) marks every parameter as optional. ApiParameter._serialize (openapi_tool/common/common.py) builds its dict by hand and leaves out required, so after a JSON round-trip every parameter falls back to required=False. The restored function declaration then has an empty required list, and RestApiTool.call's default-filling for required parameters no longer applies.
Activity
fix: preserve required flag in RestApiTool serialization