~/talk

From Pydantic v1 to v2 A Deep Dive Migration for Real Production Systems

Talkat PythonAsia 2026 · on Saturday, 2026-03-21· at 14:45· Pardo Hall (Secondary Hall)· [python, developer-experience]
links:none on file
slides:none on file

Explains a three-repo migration from Pydantic v1 to v2 with concrete steps: Pydantic now splits into pydantic (pure Python) and pydantic_core (Rust), migration options are using bump-pydantic (beta), a phased import alias strategy, or an all‑at‑once disruptive update; run pip show/pip check, upgrade FastAPI first, recreate the venv, and test CI packages together. Highlights breaking changes: Optional[str]=None must be explicit Optional with default, model.dict → model.model_dump, error payloads and locations change, decimals serialize as strings, root_validator → model_validator with mode before/after, and validators become field validators using Annotated.

AI-written summary · about

  1. 0:00Pydantic v1 to v2 intro
  2. 2:13Why v1 needed overhaul
  3. 4:00Architecture changes in v2
  4. 6:07Migration strategies
  5. 8:35Migration checklist
  6. 11:45Breaking changes in v2
  7. 15:00Validation errors handling
  8. 17:30Validator syntax updates
  9. 19:40CI/CD pipeline tips
  10. 20:44Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.