Commit 93feb49
fix: Only include actorStandby when at least one field is provided
Update the `get_actor_representation` function to conditionally include
the `actorStandby` object only when at least one of its fields is not None.
This prevents sending empty or null-only actorStandby objects to the API.
According to the API changes, actorStandby is optional and should only be
included when needed, with isEnabled being the only required field within
the object when present.
Related JS client issue: apify/apify-client-js#832
Closes #595
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>1 parent e0dad8b commit 93feb49
1 file changed
+20
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
| 65 | + | |
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| |||
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
88 | | - | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
89 | 104 | | |
90 | 105 | | |
91 | 106 | | |
92 | 107 | | |
93 | 108 | | |
94 | 109 | | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
99 | 113 | | |
100 | 114 | | |
101 | 115 | | |
| |||
0 commit comments