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

Added helper function to convert pydantic model to schema #119

Merged
merged 3 commits into from
Jan 21, 2025

Conversation

xshiki
Copy link
Contributor

@xshiki xshiki commented Jan 20, 2025

Simple helper function that checks for a pydantic model and converts it to the corresponding JSON schema.

@dokempf
Copy link
Member

dokempf commented Jan 21, 2025

You have to add pydantic as a dependency in pyproject.toml

@dokempf dokempf merged commit 7ee2236 into ssciwr:main Jan 21, 2025
9 checks passed
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