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

fix(camelcase-api-field): Allow camelcase for API result #10

Merged
merged 7 commits into from
Jul 25, 2024

Conversation

Lowaiz
Copy link
Member

@Lowaiz Lowaiz commented Jul 22, 2024

Fixes #9

Following v1.31.0 of https://github.com/dani-garcia/vaultwarden, all API fields were changed from Pascal Case to Camel case.

In order to be compatible with previous versions and this new one, I added an alias generator and a customized base model.

@Lowaiz Lowaiz requested review from ultrabug and Lujeni July 22, 2024 13:31
@Lujeni
Copy link
Member

Lujeni commented Jul 22, 2024

@Lowaiz Can we added few simple tests to validate a payload with camel and another with pascal case ?

@Lowaiz
Copy link
Member Author

Lowaiz commented Jul 22, 2024

Can we added few simple tests to validate a payload with camel and another with pascal case ?

OK

@Lowaiz
Copy link
Member Author

Lowaiz commented Jul 23, 2024

tests are in PR #11

@Lowaiz Lowaiz merged commit ba09f1d into main Jul 25, 2024
8 checks passed
@Lowaiz Lowaiz deleted the fix/camelcase-api branch July 25, 2024 12:25
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.

Pydantic validation error after upgrade of vaultwarden to v.2024.5.1
2 participants