Skip to content

Commit

Permalink
Merge pull request #49 from jjideenschmiede/development
Browse files Browse the repository at this point in the history
fix: Remove omitempty from types.
  • Loading branch information
gowizzard authored Mar 6, 2024
2 parents 83ba779 + 893eada commit 8faa246
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions product_variants.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ type ProductVariantBody struct {
type ProductVariantBodyVariant struct {
Id int `json:"id,omitempty"`
Title string `json:"title,omitempty"`
Price string `json:"price,omitempty"`
Price string `json:"price"`
Sku string `json:"sku,omitempty"`
CompareAtPrice string `json:"compare_at_price,omitempty"`
CompareAtPrice string `json:"compare_at_price"`
FulfillmentService string `json:"fulfillment_service,omitempty"`
InventoryManagement string `json:"inventory_management,omitempty"`
Option1 string `json:"option1,omitempty"`
Expand Down Expand Up @@ -107,7 +107,7 @@ type ProductVariantPriceBody struct {
type ProductVariantPriceBodyVariant struct {
Id int `json:"id"`
Price string `json:"price"`
CompareAtPrice string `json:"compare_at_price,omitempty"`
CompareAtPrice string `json:"compare_at_price"`
}

// ProductVariantMetafieldsReturn is to decode the json data
Expand Down

0 comments on commit 8faa246

Please sign in to comment.