From f91787f5de23fc212e6ec35467b5e307ef4222ac Mon Sep 17 00:00:00 2001 From: Mahesh Sadupalli Date: Sat, 16 May 2026 21:33:27 +0200 Subject: [PATCH] fix: use pointer type for AddWatermark to allow disabling watermarks Change AddWatermark from bool to *bool in GenerateImagesConfig so that explicit false values are serialized instead of being dropped by omitempty. This allows users to disable watermarks via the API. Fixes #714 --- types.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types.go b/types.go index 451ea648..238bf69a 100644 --- a/types.go +++ b/types.go @@ -3616,7 +3616,7 @@ type GenerateImagesConfig struct { // only). OutputCompressionQuality *int32 `json:"outputCompressionQuality,omitempty"` // Optional. Whether to add a watermark to the generated images. - AddWatermark bool `json:"addWatermark,omitempty"` + AddWatermark *bool `json:"addWatermark,omitempty"` // Optional. User specified labels to track billing usage. Labels map[string]string `json:"labels,omitempty"` // Optional. The size of the largest dimension of the generated image.