Skip to content

PROGX-663: Add validations to category standard format #1030

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion content/swagger/akeneo-web-api.json

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,21 @@ properties:
attribute_code:
type: string
description: The attribute code.
validations:
type: object
description: Category validations
x-validation-rules: Only applicable to root category
default: {}
properties:
max_categories_per_product:
type: string
description: Set maximum number of categories per product
only_leaves:
type: string
description: Restrict categorization to the lowest level
is_mandatory:
type: string
description: Set category as mandatory for every product
example:
{
"code": "winter_collection",
Expand Down Expand Up @@ -76,4 +91,9 @@ example:
"attribute_code": "an_image_attribute",
},
],
"validations": {
"max_categories_per_product": 42,
"only_leaves": false,
"is_mandatory": true
}
}