Skip to content
This repository was archived by the owner on Sep 3, 2025. It is now read-only.

Conversation

@mvilanova
Copy link
Contributor

@mvilanova mvilanova commented May 6, 2025

This PR upgrades the Dispatch application’s codebase to use Pydantic v2, replacing deprecated error wrapper patterns and validators with the new style. Key changes include:

  • Removing ErrorWrapper and adjusting ValidationError usage across multiple services.
  • Replacing legacy validator decorators with field_validator and updating type hints to use the union operator.
  • Updating docstrings and inline comments for clarity.

@mvilanova mvilanova requested review from Copilot and wssheldon May 6, 2025 01:55
@mvilanova mvilanova self-assigned this May 6, 2025
@mvilanova mvilanova added the enhancement New feature or request label May 6, 2025

This comment was marked as resolved.

mvilanova and others added 15 commits May 5, 2025 19:18
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Signed-off-by: Marc Vilanova <39573146+mvilanova@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Signed-off-by: Marc Vilanova <39573146+mvilanova@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Signed-off-by: Marc Vilanova <39573146+mvilanova@users.noreply.github.com>
@mvilanova mvilanova force-pushed the chore/pydantic-2.0 branch from 235a565 to a035854 Compare May 6, 2025 02:20
@mvilanova mvilanova changed the title techdebt(pydantic): upgrades to v2 debt(pydantic): upgrades to v2 May 6, 2025
@mvilanova mvilanova requested review from aaronherman and whitdog47 May 7, 2025 23:24
@mvilanova mvilanova merged commit 5940842 into main May 7, 2025
8 of 9 checks passed
@mvilanova mvilanova deleted the chore/pydantic-2.0 branch May 7, 2025 23:38
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants