We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 29e1a3b + e2b342d commit b555efcCopy full SHA for b555efc
python/composio/utils/openapi.py
@@ -87,7 +87,10 @@ def function_signature_from_jsonschema(
87
elif "type" in p_schema:
88
p_type = _type_to_parameter(schema=p_schema)
89
else:
90
- raise InvalidSchemaError(f"Invalid property object {p_name}: {p_schema!r}")
+ # Handle cases where no type is specified (e.g., Pydantic's Any type)
91
+ # This typically happens when using typing.Any in Pydantic models,
92
+ # which intentionally omits the 'type' field in JSON schema
93
+ p_type = t.Any
94
95
p_val = p_schema.get("default", None)
96
if p_name in required or p_schema.get("required", False) or skip_default:
0 commit comments