Make fields optional in method params (#62)

This commit is contained in:
Kirill
2024-01-25 15:41:30 +03:00
committed by GitHub
parent a3c9d93adc
commit 965c83ba85
19 changed files with 55 additions and 55 deletions

View File

@@ -67,7 +67,7 @@ type GetCategoryAttributesParams struct {
DescriptionCategoryId int64 `json:"description_category_id"`
// Response language
Language Language `json:"language"`
Language Language `json:"language,omitempty"`
// Product type identifier
TypeId int64 `json:"type_id"`
@@ -158,7 +158,7 @@ type GetAttributeDictionaryParams struct {
DescriptionCategoryId int64 `json:"description_category_id"`
// Response language
Language Language `json:"language"`
Language Language `json:"language,omitempty"`
// Identifier of the directory to start the response with.
// If `last_value_id` is 10, the response will contain directories starting from the 11th
@@ -168,7 +168,7 @@ type GetAttributeDictionaryParams struct {
//
// - maximum—5000,
// - minimum—1.
Limit int64 `json:"limit"`
Limit int64 `json:"limit,omitempty"`
// Product type identifier
TypeId int64 `json:"type_id"`