Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat: Handle serialization of lists of Pydantic model #25

Merged
merged 2 commits into from
Jul 19, 2024

Conversation

hxjo
Copy link
Owner

@hxjo hxjo commented Jul 19, 2024

  • Handle prop types which are list by recursively calling _deep_transform_callable when a prop is of type list

This allows, for example, a user to pass a list of Pydantic's BaseModels to inertia.render and they are encoded as expected

@hxjo hxjo merged commit ae17f38 into main Jul 19, 2024
8 checks passed
@hxjo hxjo deleted the feat/improve-pydantic-models-serialization branch July 19, 2024 15:04
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.

1 participant