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

Pydantic v2 test #81

Merged
merged 9 commits into from
Jan 8, 2024
Merged

Pydantic v2 test #81

merged 9 commits into from
Jan 8, 2024

Conversation

bauerji
Copy link
Owner

@bauerji bauerji commented Jan 8, 2024

No description provided.

jkseppan and others added 9 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 <[email protected]>
Pydantic errors now include a versioned URL so every minor upgrade
changes the message. Introduce a utility function that matches
results recursively, matching with regular expressions where
specified.
Removed from recent versions of pytest-flask

Co-authored-by: yctomwang <[email protected]>
Copy link

sonarqubecloud bot commented Jan 8, 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 merged commit cd6fe36 into master Jan 8, 2024
25 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