Commit 24b9154
models: Add
- Introduced `_bool_to_on_off` function to convert boolean values to "on"/"off".
- Applied the new `BeforeValidator` to `preserve_line_breaks`, `word_style`,
and `word_coordinates` fields to handle boolean inputs properly.
- Ensured consistency in serialization and validation of relevant model fields.
Assisted-by: Codex_bool_to_on_off converter for boolean fields1 parent 39d9836 commit 24b9154
1 file changed
Lines changed: 15 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
123 | 129 | | |
124 | 130 | | |
125 | 131 | | |
| |||
364 | 370 | | |
365 | 371 | | |
366 | 372 | | |
367 | | - | |
368 | | - | |
369 | | - | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
370 | 382 | | |
371 | 383 | | |
372 | 384 | | |
| |||
0 commit comments