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

Antonyjin upgrade pydantic version #293

Draft
wants to merge 7 commits into
base: master
Choose a base branch
from

Commits on Oct 21, 2024

  1. Fix: Project do not use the good version of aleph message and sdk

    Aleph-message and sdk now uses pydantic v2 but no released yet
    Using the github link atm and wait for the release.
    Antonyjin committed Oct 21, 2024
    Configuration menu
    Copy the full SHA
    d8e4d75 View commit details
    Browse the repository at this point in the history
  2. Fix: Replacing deprecated function after pydantic migration

    When upgrading the pydantic version, some function are / will become
    deprecated. replacing them in those files.
    Antonyjin committed Oct 21, 2024
    Configuration menu
    Copy the full SHA
    2a3d58a View commit details
    Browse the repository at this point in the history
  3. feat: Adding custom encoding for JSON serialization

    Added `default=extended_json_encoder` to `json.dumps()` to handle serialization
    of non-native JSON types, such as dates and other complex objects.
    
    Replacing function that are / will be deprecated in pydantic v2 and v3
    Antonyjin committed Oct 21, 2024
    Configuration menu
    Copy the full SHA
    c6e013f View commit details
    Browse the repository at this point in the history

Commits on Oct 25, 2024

  1. Fix: Conflit between pydantic and fastapi version

    Pydantic>=2 is not compatible with fastapi<0.100.0
    Antonyjin committed Oct 25, 2024
    Configuration menu
    Copy the full SHA
    a1ed649 View commit details
    Browse the repository at this point in the history
  2. Fix: Lint test did not pass and conflict between dependencies

    Conflit between pydantic and yamlfix
    black did not pass
    Antonyjin committed Oct 25, 2024
    Configuration menu
    Copy the full SHA
    16a807e View commit details
    Browse the repository at this point in the history

Commits on Nov 5, 2024

  1. Configuration menu
    Copy the full SHA
    624438b View commit details
    Browse the repository at this point in the history
  2. fix: Pydantic 2 being more strict about type validation

    With Pydantic v2, strict type validation is enforced. The type field is expected
    to have the exact value "POST" as a literal.
    Antonyjin committed Nov 5, 2024
    Configuration menu
    Copy the full SHA
    c5788ec View commit details
    Browse the repository at this point in the history