Skip to content

Commit 71e9ba8

Browse files
committed
Replace serde with stdlib dataclasses, bump to 2.0.0
The serde library is unmaintained. Replace it with Python stdlib dataclasses and a custom Model base class that provides the same from_dict()/to_dict() API with identical behavior: - Optional fields omitted from to_dict() when None - Extra/unknown fields silently ignored - ValidationError on missing required fields Also adds Python 3.14 to CI matrix and removes serde-specific mypy overrides.
1 parent 0cf8ccd commit 71e9ba8

6 files changed

Lines changed: 432 additions & 300 deletions

File tree

.github/workflows/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ jobs:
66
strategy:
77
fail-fast: false
88
matrix:
9-
python-version: ["3.11", "3.12", "3.13"]
9+
python-version: ["3.11", "3.12", "3.13", "3.14"]
1010
os: ["ubuntu-latest", "macos-latest", "windows-latest"]
1111
runs-on: ${{ matrix.os }}
1212
steps:

l9format/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
ServiceCredentials,
3434
Software,
3535
SoftwareModule,
36+
ValidationError,
3637
)
3738

3839
__all__ = [
@@ -66,4 +67,5 @@
6667
"ServiceCredentials",
6768
"Software",
6869
"SoftwareModule",
70+
"ValidationError",
6971
]

0 commit comments

Comments
 (0)