Files
medusa-store/www/utils/generated/oas-output/schemas/AdminCreateShippingOptionRule.ts
Shahed Nasser 4b8d9cc735 oas: [3/n] improve oas schemas (#9042)
Improve oas schemas [3/n]
2024-09-07 06:16:00 +00:00

44 lines
1.1 KiB
TypeScript

/**
* @schema AdminCreateShippingOptionRule
* type: object
* description: The details of the shipping option rule.
* x-schemaName: AdminCreateShippingOptionRule
* required:
* - operator
* - attribute
* - value
* properties:
* operator:
* type: string
* description: The operator used to check whether a rule applies.
* enum:
* - gt
* - lt
* - eq
* - ne
* - in
* - lte
* - gte
* - nin
* attribute:
* type: string
* title: attribute
* description: The name of a property or table that the rule applies to.
* example: customer_group
* value:
* oneOf:
* - type: string
* title: value
* description: A value of the attribute that enables this rule.
* example: cusgroup_123
* - type: array
* description: Values of the attribute that enable this rule.
* items:
* type: string
* title: value
* description: A value of the attribute that enables this rule.
* example: cusgroup_123
*
*/