Commit e4a0408
fix: clear policy exclusions to avoid JSON serialization errors
When retrieving a policy from the API and updating it, the exclusions
may contain null scope values that cause Gson serialization errors:
"Not a JSON Object: null" at StorageScope serialization.
This fix clears the exclusions array before updating the policy to
avoid the serialization issue while still allowing the tests to
modify enforcement actions and policy fields.
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>1 parent c2b37cf commit e4a0408
1 file changed
Lines changed: 2 additions & 0 deletions
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
| 115 | + | |
| 116 | + | |
115 | 117 | | |
116 | 118 | | |
117 | 119 | | |
| |||
0 commit comments