Commit 62614ab
authored
[external api] Set a default empty array for VpcFirewallRuleUpdate (#8175)
In our attempt to make the Go SDK generator less hacky
oxidecomputer/oxide.go#283, we had the
unexpected side effect of breaking our `VpcFirewallRuleUpdateParams`
struct
https://github.com/oxidecomputer/oxide.go/pull/283/files#diff-841a2b1b5f072b633551cac9c34c9732a722b415e297a1530b92d5988962062eR6810-R6811
due to Go's fun way of handling empty values. Using this API no longer
allows us to delete the entirety of the firewall rules.
This commit sets an empty array as the default for `rules` following the
pattern that other APIs use.
https://github.com/oxidecomputer/omicron/blob/main/nexus/types/src/external_api/params.rs#L1163-L1177
cc @sudomateo1 parent c179ea6 commit 62614ab
2 files changed
+3
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1789 | 1789 | | |
1790 | 1790 | | |
1791 | 1791 | | |
| 1792 | + | |
1792 | 1793 | | |
1793 | 1794 | | |
1794 | 1795 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25265 | 25265 | | |
25266 | 25266 | | |
25267 | 25267 | | |
| 25268 | + | |
25268 | 25269 | | |
25269 | 25270 | | |
25270 | 25271 | | |
25271 | 25272 | | |
25272 | 25273 | | |
25273 | 25274 | | |
25274 | | - | |
25275 | | - | |
25276 | | - | |
25277 | | - | |
| 25275 | + | |
25278 | 25276 | | |
25279 | 25277 | | |
25280 | 25278 | | |
| |||
0 commit comments