Width and height can be 0 so do not omitempty

This commit is contained in:
Nicole Hedley
2017-10-19 12:52:51 -04:00
parent 4abcf75771
commit c349c04bbb
+2 -2
View File
@@ -22,7 +22,7 @@ type Banner struct {
// Width of the impression in pixels.
// If neither wmin nor wmax are specified, this value is an exact
// width requirement. Otherwise it is a preferred width.
W uint64 `json:"w,omitempty"`
W uint64 `json:"w"`
// Attribute:
// h
@@ -32,7 +32,7 @@ type Banner struct {
// Height of the impression in pixels.
// If neither hmin nor hmax are specified, this value is an exact
// height requirement. Otherwise it is a preferred height.
H uint64 `json:"h,omitempty"`
H uint64 `json:"h"`
// Attribute:
// format