Commit 9443812
committed
fix: respect clearWhenEmpty semantics for boolean fields
When clearWhenEmpty is 'omit' and a boolean field is set to false (the
default value), remove the key from the config blob instead of storing
it. This mirrors the string field behavior where clearing to empty
removes the key, and prevents the config from growing monotonically
once a switch is toggled.1 parent f6731f0 commit 9443812
1 file changed
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
112 | | - | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
113 | 117 | | |
114 | 118 | | |
115 | 119 | | |
| |||
0 commit comments