Commit 5ea8c65
Improve deepobject unmarshalling to support nullable.Nullable and encode.TextUnmarshaler (#45)
* Add deepobject tests for more complex types
Specifically, types that there are special edge-cases for
* Add deepobject support for test unmarshalers
* Make deepobject support nullable values
* Strip nullable support, fix TextUnmarshaler placement
Remove nullable.Nullable deep object support (moved to separate repo).
Move TextUnmarshaler check into case reflect.Struct after the legacy
Date/time.Time handlers, so it catches types like uuid.UUID without
intercepting time.Time date-only fallback parsing. Add early returns
to the Date and time.Time blocks which previously fell through.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: James Waters <jcw@netcraft.com>
Co-authored-by: Marcin Romaszewicz <marcinr@gmail.com>
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 00e51fe commit 5ea8c65
2 files changed
+19
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| |||
55 | 56 | | |
56 | 57 | | |
57 | 58 | | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
58 | 67 | | |
59 | | - | |
| 68 | + | |
60 | 69 | | |
61 | 70 | | |
62 | 71 | | |
| |||
268 | 277 | | |
269 | 278 | | |
270 | 279 | | |
| 280 | + | |
271 | 281 | | |
272 | 282 | | |
273 | 283 | | |
| |||
288 | 298 | | |
289 | 299 | | |
290 | 300 | | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
291 | 308 | | |
292 | 309 | | |
293 | 310 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
| 66 | + | |
66 | 67 | | |
67 | 68 | | |
68 | 69 | | |
| |||
0 commit comments