Commit 8319c01
committed
Release python 1.0.2: sentinel-based update() so callers can clear nullable fields
links.update() and bundles.update() previously used None as both the
default and the explicit-null signal for label, expires_at, description,
and icon. A caller omitting label produced the same wire payload as one
passing label=None, so fields could not be cleared without always
sending them.
Optional nullable params now default to an UNSET sentinel; only keys
explicitly provided by the caller appear in the request body. Passing
None sends the field as JSON null, clearing it on the server. Sync and
async resources updated; regression tests added for both clients.1 parent fec0c16 commit 8319c01
2 files changed
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
5 | 9 | | |
6 | 10 | | |
7 | 11 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
0 commit comments