Files
medusa-store/www/apps/api-reference/specs/admin/components/schemas/AdminRuleAttributeOption.yaml
github-actions[bot] 21badd069d chore(docs): Updated API Reference (v2) (#9437)
Automated changes by [create-pull-request](https://github.com/peter-evans/create-pull-request) GitHub action

Co-authored-by: Shahed Nasser <27354907+shahednasser@users.noreply.github.com>
2024-10-03 07:48:54 +00:00

30 lines
692 B
YAML

type: object
description: The details of a potential rule attribute.
x-schemaName: AdminRuleAttributeOption
required:
- id
- value
- label
- operators
properties:
id:
type: string
title: id
description: The rule attribute's ID, which is a rule's `attribute` it refers to.
example: customer_group
value:
type: string
title: value
description: The rule attribute's value.
example: customer.groups.id
label:
type: string
title: label
description: The rule attribute option's label.
example: Customer Group
operators:
type: array
description: The attribute's operators.
items:
$ref: ./BaseRuleOperatorOptions.yaml