|
1
|
/** |
|
2
|
* @schema AdminCreateProductOption |
|
3
|
* type: object |
|
4
|
* description: The product option's details. |
|
5
|
* x-schemaName: AdminCreateProductOption |
|
6
|
* required: |
|
7
|
* - title |
|
8
|
* - values |
|
9
|
* properties: |
|
10
|
* title: |
|
11
|
* type: string |
|
12
|
* title: title |
|
13
|
* description: The product option's title. |
|
14
|
* values: |
|
15
|
* type: array |
|
16
|
* description: The product option's values. |
|
17
|
* items: |
|
18
|
* type: string |
|
19
|
* title: values |
|
20
|
* description: An option value. |
|
21
|
* example: Red |
|
22
|
* ranks: |
|
23
|
* type: object |
|
24
|
* description: The ranking of the option's values. The keys are the value names and the values are their respective ranks. |
|
25
|
* example: |
|
26
|
* Small: 1 |
|
27
|
* Medium: 2 |
|
28
|
* Large: 3 |
|
29
|
* is_exclusive: |
|
30
|
* type: boolean |
|
31
|
* title: is_exclusive |
|
32
|
* description: Whether the option is exclusive to the product. |
|
33
|
* |
|
34
|
*/ |
|
35
|
|