Commit bd94c5d
fix: Only include actor_standby when at least one field is provided
Update the `get_actor_representation` function to conditionally include
the `actor_standby` object only when at least one of its fields is not None.
This prevents sending empty or null-only actor_standby objects to the API.
According to the API changes, actor_standby is optional and should only be
included when needed, with is_enabled 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 bd94c5d
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