Skip to content

Conversation

@lapinek
Copy link
Contributor

@lapinek lapinek commented Jan 2, 2026

Issue:

  • ExtraInfo class instance submitted as the extra_info parameter is not serialized and results in: "TypeError: Object of type ExtraInfo is not JSON serializable"

This fix will:

  • Serialize BaseModel instances.
  • Exclude None values (automatically populated for defined model properties and rejected by the API)

This will allow users to pass as extra_info parameter:

  • ExtraInfo instance (as hinted)
  • Dictionary

@lapinek lapinek requested a review from a team as a code owner January 2, 2026 21:35
@lapinek lapinek requested review from kenany and removed request for a team and kenany January 2, 2026 21:35
Issue:
- ExtraInfo class instance submitted as the extra_info parameter is not serialized and
results in: "TypeError: Object of type ExtraInfo is not JSON serializable"

This fix will:
- Serialize BaseModel instances.
- Exclude None values (automatically populated for defined model properties and rejected
by the API)

This will allow users to pass as extra_info parameter:
- ExtraInfo instance (as hinted)
- Dictionary
@lapinek lapinek force-pushed the kl/fix-model-serialization branch from 196c2fd to c614988 Compare January 2, 2026 22:09
@lapinek lapinek requested a review from kenany January 2, 2026 22:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants