bsm / openrtb

OpenRTB protocol defintions for Go
Other
288 stars 121 forks source link

GDPR wrong omitempty #121

Open SlavaVV opened 7 months ago

SlavaVV commented 7 months ago

GDPR int `json:"gdpr,omitempty" // Flag that indicates whether or not the request is subject to GDPR regulations 0 = No, 1 = Yes, omission indicates Unknown

But marshaller converts {gdpr: 0} into "{}" string. Thus should be: GDPR int `json:"gdpr"