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 integration #1952

Merged
merged 2 commits into from
Jul 14, 2023
Merged

Conversation

Goldziher
Copy link
Contributor

Pull Request Checklist

  • New code has 100% test coverage
  • (If applicable) The prose documentation has been updated to reflect the changes introduced by this PR
  • (If applicable) The reference documentation has been updated to reflect the changes introduced by this PR

Description

Close Issue(s)

@Goldziher Goldziher requested a review from a team as a code owner July 14, 2023 17:08
@Goldziher Goldziher force-pushed the pydantic-v2-integration branch 2 times, most recently from 27774ee to dab01ce Compare July 14, 2023 17:24
Linting fixes.

Update tests/unit/test_kwargs/test_path_params.py

fix signature namespace issue

support min_length and max_length

support min_length and max_length

handle constraints on union types

fix error message tests

chore(signature-model): remove pydantic and attrs signature models

chore(signature model): fix python 3.8 compat

feat: msgspec signature model.

Linting fixes.

Update tests/unit/test_kwargs/test_path_params.py

fix signature namespace issue

support min_length and max_length

support min_length and max_length

handle constraints on union types

fix error message tests

chore(signature-model): remove pydantic and attrs signature models

feat: msgspec signature model.

Linting fixes.

Update tests/unit/test_kwargs/test_path_params.py

fix signature namespace issue

support min_length and max_length

support min_length and max_length

handle constraints on union types

fix error message tests

feat(signature-model): add pydantic v2 support
@Goldziher Goldziher merged commit 94973c3 into msgspec-signature-model Jul 14, 2023
@Goldziher Goldziher deleted the pydantic-v2-integration branch July 14, 2023 19:45
Goldziher added a commit that referenced this pull request Jul 14, 2023
* feat(internal): add pydantic v2 support

Linting fixes.

Update tests/unit/test_kwargs/test_path_params.py

fix signature namespace issue

support min_length and max_length

support min_length and max_length

handle constraints on union types

fix error message tests

chore(signature-model): remove pydantic and attrs signature models

chore(signature model): fix python 3.8 compat

feat: msgspec signature model.

Linting fixes.

Update tests/unit/test_kwargs/test_path_params.py

fix signature namespace issue

support min_length and max_length

support min_length and max_length

handle constraints on union types

fix error message tests

chore(signature-model): remove pydantic and attrs signature models

feat: msgspec signature model.

Linting fixes.

Update tests/unit/test_kwargs/test_path_params.py

fix signature namespace issue

support min_length and max_length

support min_length and max_length

handle constraints on union types

fix error message tests

feat(signature-model): add pydantic v2 support

* feat(internal): handle pydantic errors

---------

Co-authored-by: Peter Schutt <peter.github@proton.me>
Goldziher added a commit that referenced this pull request Jul 14, 2023
* feat(internal): add pydantic v2 support

Linting fixes.

Update tests/unit/test_kwargs/test_path_params.py

fix signature namespace issue

support min_length and max_length

support min_length and max_length

handle constraints on union types

fix error message tests

chore(signature-model): remove pydantic and attrs signature models

chore(signature model): fix python 3.8 compat

feat: msgspec signature model.

Linting fixes.

Update tests/unit/test_kwargs/test_path_params.py

fix signature namespace issue

support min_length and max_length

support min_length and max_length

handle constraints on union types

fix error message tests

chore(signature-model): remove pydantic and attrs signature models

feat: msgspec signature model.

Linting fixes.

Update tests/unit/test_kwargs/test_path_params.py

fix signature namespace issue

support min_length and max_length

support min_length and max_length

handle constraints on union types

fix error message tests

feat(signature-model): add pydantic v2 support

* feat(internal): handle pydantic errors

---------

Co-authored-by: Peter Schutt <peter.github@proton.me>
Goldziher added a commit that referenced this pull request Jul 15, 2023
…e pydantic v2 (#1956)

* feat(internal): add msgspec signature model.

Linting fixes.

Update tests/unit/test_kwargs/test_path_params.py

fix signature namespace issue

support min_length and max_length

support min_length and max_length

handle constraints on union types

fix error message tests

chore(signature-model): remove pydantic and attrs signature models

chore(signature model): fix python 3.8 compat

* Pydantic v2 integration (#1952)

* feat(internal): add pydantic v2 support

Linting fixes.

Update tests/unit/test_kwargs/test_path_params.py

fix signature namespace issue

support min_length and max_length

support min_length and max_length

handle constraints on union types

fix error message tests

chore(signature-model): remove pydantic and attrs signature models

chore(signature model): fix python 3.8 compat

feat: msgspec signature model.

Linting fixes.

Update tests/unit/test_kwargs/test_path_params.py

fix signature namespace issue

support min_length and max_length

support min_length and max_length

handle constraints on union types

fix error message tests

chore(signature-model): remove pydantic and attrs signature models

feat: msgspec signature model.

Linting fixes.

Update tests/unit/test_kwargs/test_path_params.py

fix signature namespace issue

support min_length and max_length

support min_length and max_length

handle constraints on union types

fix error message tests

feat(signature-model): add pydantic v2 support

* feat(internal): handle pydantic errors

---------

Co-authored-by: Peter Schutt <peter.github@proton.me>

* feat(internal): handle multiple messages for msgspec

* chore(infra): fix ci issues

* chore(docs): fix warning

* chore(tests): fixed coverage issues

---------

Co-authored-by: Peter Schutt <peter.github@proton.me>
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