Skip to content

build: bump pydantic 1.10.7 -> 1.10.24 (stay on V1)#245

Merged
d0choa merged 1 commit into
masterfrom
security/bump-pydantic
Jun 19, 2026
Merged

build: bump pydantic 1.10.7 -> 1.10.24 (stay on V1)#245
d0choa merged 1 commit into
masterfrom
security/bump-pydantic

Conversation

@d0choa

@d0choa d0choa commented Jun 19, 2026

Copy link
Copy Markdown
Contributor

Summary

Bumps pydantic off the old 1.10.7 pin onto the latest 1.10.x release, addressing an outdated-component finding (CWE-1104) from a recent security audit of this repo.

  • pyproject.toml: pydantic==1.10.7pydantic==1.10.24
  • uv.lock: regenerated (only pydantic changes version; the rest of the diff is re-lock reformatting)

Stays on the Pydantic V1 line on purpose. This repo's schemas/*.json are JSON Schema draft-07, and CI validates them as such. Pydantic V1 emits draft-07; V2 emits draft 2020-12, which would change the output dialect and break the validation contract. A V2 migration is therefore a deliberate, separate decision. Bonus: 1.10.7 predated Python 3.12 support (which CI runs on); 1.10.24 adds it.

Verification

  • uv sync resolves on Python 3.12 with no conflicts; a parsed lock diff confirms only pydantic changes (1.10.7 → 1.10.24).
  • All modules under pydantic_models/ import cleanly under 1.10.24.
  • All schemas/*.json pass draft-07 validation via check-jsonschema (the CI check) → ok -- validation done.
  • No schema files regenerated; schemas/*.json are unchanged.

Upgrade pydantic to the latest 1.10.x release to move off the old
1.10.7 pin (CWE-1104, unmaintained component). Remains on the
Pydantic V1 line on purpose: V1 emits JSON Schema draft-07, matching
the checked-in schemas/*.json and the draft-07 CI validation contract.
1.10.24 also adds Python 3.12 support, which CI runs on.

- pyproject.toml: pydantic==1.10.7 -> pydantic==1.10.24
- uv.lock: regenerated via uv lock

No schema files regenerated; schemas/*.json unchanged.
@d0choa d0choa merged commit f6fbbb3 into master Jun 19, 2026
2 checks passed
@d0choa d0choa deleted the security/bump-pydantic branch June 19, 2026 14:11
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