Commit c2f87d5
authored
refactor(core): delegate TaskRowDto.to_dict to model_dump(mode="json") (#1105)
The hand-written to_dict mapped all 20 fields one by one, duplicating
exactly what Pydantic's model_dump(mode="json") already produces: enums to
their .value, datetimes/date keys to ISO strings, primitives untouched.
Verified byte-for-byte equal (keys and values) on a fully populated row, and
the exporter/presenter suites (105 tests) that consume it still pass.
Net -27 LOC, no behavior change.1 parent 81cdaca commit c2f87d5
1 file changed
Lines changed: 1 addition & 28 deletions
Lines changed: 1 addition & 28 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
127 | 127 | | |
128 | 128 | | |
129 | 129 | | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
| 130 | + | |
158 | 131 | | |
159 | 132 | | |
160 | 133 | | |
| |||
0 commit comments