File tree 2 files changed +21
-1
lines changed
resources/categories/definitions
2 files changed +21
-1
lines changed Load Diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change @@ -47,6 +47,21 @@ properties:
47
47
attribute_code :
48
48
type : string
49
49
description : The attribute code.
50
+ validations :
51
+ type : object
52
+ description : Category validations
53
+ x-validation-rules : Only applicable to root category
54
+ default : {}
55
+ properties :
56
+ max_categories_per_product :
57
+ type : string
58
+ description : Set maximum number of categories per product
59
+ only_leaves :
60
+ type : string
61
+ description : Restrict categorization to the lowest level
62
+ is_mandatory :
63
+ type : string
64
+ description : Set category as mandatory for every product
50
65
example :
51
66
{
52
67
" code " : " winter_collection" ,
@@ -76,4 +91,9 @@ example:
76
91
" attribute_code " : " an_image_attribute" ,
77
92
},
78
93
],
94
+ " validations " : {
95
+ " max_categories_per_product " : 42,
96
+ " only_leaves " : false,
97
+ " is_mandatory " : true
98
+ }
79
99
}
You can’t perform that action at this time.
0 commit comments