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

Test pydantic v2 #79

Closed
wants to merge 7 commits into from
Closed

Test pydantic v2 #79

wants to merge 7 commits into from

Conversation

bauerji
Copy link
Owner

@bauerji bauerji commented Jan 7, 2024

No description provided.

jkseppan and others added 7 commits August 3, 2023 20:37
.dict() is now .model_dump(), etc

__root__ is now root and you have to subclass RootModel
Pydantic now treats Optional[int] as a required parameter that may be
int or None. You have to provide a default value to make it an optional
parameter.
Pydantic no longer has an .is_complex() method. But the meaning of the
code seems to have been to detect lists so that queries like

    a=1&a=2&a=3

can be unflattened to

    a=['1', '2', '3']

when a is List[str]. This implementation should work for both List[...]
and Optional[List[...]] but requires a small dependency on older versions
of Python.
for the form-based example functions.

Co-authored-by: Aaron Deadman <adeadman@users.noreply.github.com>
Copy link

sonarcloud bot commented Jan 7, 2024

Quality Gate Passed Quality Gate passed

Kudos, no new issues were introduced!

0 New issues
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@bauerji bauerji closed this Jan 7, 2024
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