Skip to content

Conversation

@wuyuemushi
Copy link

Summary

Adds dictionary parameter support to create_model and create_models methods, enabling direct use of dictionary data alongside Pydantic models.

Why This Change?

  • Increased Flexibility: Developers can now pass raw dictionaries directly without Pydantic model instantiation
  • Consistency: Matches parameter patterns already used in bulk_create_models() and update_model() methods
  • Backward Compatible: All existing Pydantic model usage continues to work unchanged

@wu-clan
Copy link
Member

wu-clan commented Dec 11, 2025

Reasons not to accept this type:#51 (comment)

This feature implementation is very different from bulk_create_models() and update_model() and adds more error rates.

The schema specification is still preferred, and I would consider adding it if you really need it.

@wu-clan
Copy link
Member

wu-clan commented Dec 11, 2025

We need to add docs and test cases for this.

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