diff --git a/internal/definitions/firewall/destination_nat.go b/internal/definitions/firewall/destination_nat.go index dc2f09b..54cae2e 100644 --- a/internal/definitions/firewall/destination_nat.go +++ b/internal/definitions/firewall/destination_nat.go @@ -2,6 +2,6 @@ package firewall type DestinationNATRule struct { Rule - Address string `json:"address,omitempty"` - Service string `json:"service,omitempty"` + Address *string `json:"address,omitempty"` + Service *string `json:"service,omitempty"` } diff --git a/internal/definitions/firewall/source_nat.go b/internal/definitions/firewall/source_nat.go index 49b06b0..239835a 100644 --- a/internal/definitions/firewall/source_nat.go +++ b/internal/definitions/firewall/source_nat.go @@ -5,8 +5,8 @@ import "encoding/json" type SourceNATRule struct { Rule Type SnatType `json:"type" validate:"min=0,max=1"` - Address string `json:"address,omitempty"` - Service string `json:"service,omitempty"` + Address *string `json:"address,omitempty"` + Service *string `json:"service,omitempty"` } type SnatType int