-
Notifications
You must be signed in to change notification settings - Fork 216
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[JAC-CLOUD]: Improved Deserialization
CHANGES: - Manually assign fields from datasource based on dataclass fields - Value error will be raised - if field is required but not existing from db - if field has different type from db - default will get populated if field has default/factory and not existing from db - excess fields will be included but no type checking OLD: - Uses __init__ generated by dataclass
- Loading branch information
Showing
1 changed file
with
33 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters