Commit e00b2d8
committed
fix(dropbox): correct shared_link_already_exists JSON path
The prior fix read data.error.shared_link_already_exists.metadata, which
is wrong per Stone's own JSON serialization rules: a union member whose
payload is a struct (SharedLinkMetadata) flattens that struct's fields
alongside ".tag" rather than nesting under a wrapper key. The real shape
is data.error.shared_link_already_exists directly (with an extra ".tag"
field mixed in) - there is no nested .metadata key, so the existing-link
fast path never fired before this fix.
Also marks list_shared_links' expires output optional, matching every
other optional field in this PR and the SharedLinkMetadata spec.1 parent c526eed commit e00b2d8
2 files changed
Lines changed: 4 additions & 2 deletions
File tree
- apps/sim/tools/dropbox
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
93 | | - | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
94 | 96 | | |
95 | 97 | | |
96 | 98 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
107 | | - | |
| 107 | + | |
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
| |||
0 commit comments