Merge pull request #196 from erkin97/fix-omitempty

Fix omitempty struct tag on Product.Description
This commit is contained in:
Alex Pliutau 2021-04-10 17:41:09 +02:00 committed by GitHub
commit 36281c1526
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -11,7 +11,7 @@ type (
Product struct { Product struct {
ID string `json:"id,omitempty"` ID string `json:"id,omitempty"`
Name string `json:"name"` Name string `json:"name"`
Description string `json:"description",omitempty` Description string `json:"description,omitempty"`
Category ProductCategory `json:"category,omitempty"` Category ProductCategory `json:"category,omitempty"`
Type ProductType `json:"type"` Type ProductType `json:"type"`
ImageUrl string `json:"image_url,omitempty"` ImageUrl string `json:"image_url,omitempty"`