Skip to content

Commit

Permalink
Merge pull request #30 from Avanis-GmbH/omitempty
Browse files Browse the repository at this point in the history
Omit unchangeable field
  • Loading branch information
Valentin-Kaiser authored May 1, 2024
2 parents a0f7092 + 99b9ee8 commit dacf7c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion model/product.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import "time"
type Product struct {
Active bool `json:"active"`
AutoIncrement float64 `json:"autoIncrement,omitempty"`
Available bool `json:"available"`
Available bool `json:"available,omitempty"` // not changeable
AvailableStock float64 `json:"availableStock,omitempty"`
CanonicalProduct *Product `json:"canonicalProduct,omitempty"`
CanonicalProductId string `json:"canonicalProductId,omitempty"`
Expand Down

0 comments on commit dacf7c3

Please sign in to comment.