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

Switch to pydantic #51

Open
sergei-maertens opened this issue Sep 6, 2022 · 1 comment
Open

Switch to pydantic #51

sergei-maertens opened this issue Sep 6, 2022 · 1 comment
Assignees

Comments

@sergei-maertens
Copy link
Member

Currently our API models are build on top of dataclasses, but pydantic has much more functionality and is better tested while serving the same purpose.

We probably still need to:

  • Derive UUID from URL
  • Convert camel case into snake_case before passing it to the model factories
@sergei-maertens sergei-maertens self-assigned this Sep 6, 2022
@CharString
Copy link

Case juggling comes built in in pydantic: https://pydantic-docs.helpmanual.io/usage/model_config/#alias-generator

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

No branches or pull requests

2 participants