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

Migrate class-based config to ConfigDict #807

Merged
merged 4 commits into from
Dec 20, 2024

Conversation

devmount
Copy link
Collaborator

@devmount devmount commented Dec 20, 2024

Description of the Change

Migrating our current class-based model config to ConfigDict. Also use json_schema_extra. Also use .model_dump() instead of .dict().

Benefits

No more deprecation warnings. Hopefully.

Applicable Issues

Closes #783

@devmount devmount self-assigned this Dec 20, 2024
Copy link
Member

@MelissaAutumn MelissaAutumn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

backend/src/appointment/database/schemas.py Show resolved Hide resolved
@devmount devmount merged commit 88eec97 into main Dec 20, 2024
4 checks passed
@devmount devmount deleted the bugs/783-migrate-to-configdict branch December 20, 2024 20:50
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.

Resolve pytest warnings
2 participants