From 883b559e1a9a2454d34b3ef1715f9557859f2a92 Mon Sep 17 00:00:00 2001 From: diPhantxm Date: Sat, 17 Feb 2024 03:21:23 +0300 Subject: [PATCH] add category_dependent field to result of Categories Attributes --- ozon/categories.go | 6 ++++++ ozon/categories_test.go | 1 + 2 files changed, 7 insertions(+) diff --git a/ozon/categories.go b/ozon/categories.go index 2c0baa4..b933b8e 100644 --- a/ozon/categories.go +++ b/ozon/categories.go @@ -81,6 +81,12 @@ type GetCategoryAttributesResponse struct { } type GetCategoryAttributesResult struct { + // Indication that the dictionary attribute values depend on the category: + // + // true — the attribute has its own set of values for each category. + // false — the attribute has the same set of values for all categories + CategoryDependent bool `json:"category_dependent"` + // Characteristic description Description string `json:"description"` diff --git a/ozon/categories_test.go b/ozon/categories_test.go index 6a0f87d..72f688c 100644 --- a/ozon/categories_test.go +++ b/ozon/categories_test.go @@ -88,6 +88,7 @@ func TestGetCategoryAttributes(t *testing.T) { `{ "result": [ { + "category_dependent": true, "description": "string", "dictionary_id": 0, "group_id": 0,