Skip to content

Commit 05b032a

Browse files
omit refId in incapsula_site_v3 when marshaling to JSON if the field has no value (#575)
* clarify site versioning * remove global field and use it as string * Allow deletion of the last domain for v1 sites that have migrated to the v3 resource. * Allow deletion of the last domain for v1 sites that have migrated to the v3 resource. * Allow deletion of the last domain for v1 sites that have migrated to the v3 resource. (cherry picked from commit 976b940) * Allow deletion of the last domain for v1 sites that have migrated to the v3 resource. (cherry picked from commit 5e35300) * omit refId when marshaling to JSON if the field has no value.
1 parent 3db2787 commit 05b032a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

incapsula/client_site_v3.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ type SiteV3Request struct {
2020
Cname string `json:"cname,omitempty"`
2121
Name string `json:"name,omitempty"`
2222
SiteType string `json:"type,omitempty"`
23-
RefId string `json:"refId"`
23+
RefId string `json:"refId,omitempty"`
2424
Active bool `json:"active"`
2525
}
2626

0 commit comments

Comments
 (0)