|
3 | 3 | Cases for lists of `int`, `string`, and `object`. |
4 | 4 |
|
5 | 5 | ## Parameters |
6 | | - |
7 | 6 | ### Integer lists |
8 | 7 |
|
9 | | -| Name | Description | Type | Value | |
10 | | -| ------------------------- | ------------------------------------------------- | -------- | ------ | |
11 | | -| `intList` | A required list of integers, empty. | `[]int` | `null` | |
12 | | -| `intListSingle` | A list of integers with one value. | `[]int` | `null` | |
13 | | -| `intListMultiple` | A list of integers with one value. | `[]int` | `null` | |
14 | | -| `intListNullable` | A nullable list of integers, empty. | `[]*int` | `null` | |
15 | | -| `intListNullableSingle` | A nullable list of integers with one value. | `[]*int` | `null` | |
16 | | -| `intListNullableMultiple` | A nullable list of integers with multiple values. | `[]*int` | `null` | |
| 8 | +| Name | Description | Type | Value | |
| 9 | +| ------------------------- | ------------------------------------------------- | -------- | ------------ | |
| 10 | +| `intList` | A required list of integers, empty. | `[]int` | `[]` | |
| 11 | +| `intListSingle` | A list of integers with one value. | `[]int` | `[80]` | |
| 12 | +| `intListMultiple` | A list of integers with multiple values. | `[]int` | `[80, 8080]` | |
| 13 | +| `intListNullable` | A nullable list of integers, empty. | `[]*int` | `[]` | |
| 14 | +| `intListNullableSingle` | A nullable list of integers with one value. | `[]*int` | `[80]` | |
| 15 | +| `intListNullableMultiple` | A nullable list of integers with multiple values. | `[]*int` | `[80, 8080]` | |
| 16 | + |
17 | 17 |
|
18 | 18 | ### String lists |
19 | 19 |
|
20 | | -| Name | Description | Type | Value | |
21 | | -| ---------------------------- | ------------------------------------------------ | ----------- | ------ | |
22 | | -| `stringList` | A required list of strings, empty. | `[]string` | `null` | |
23 | | -| `stringListSingle` | A required list of strings with one value. | `[]string` | `null` | |
24 | | -| `stringListMultiple` | A required list of strings with multiple values. | `[]string` | `null` | |
25 | | -| `stringListNullable` | A nullable list of strings, empty. | `[]*string` | `null` | |
26 | | -| `stringListNullableSingle` | A nullable list of strings with one value. | `[]*string` | `null` | |
27 | | -| `stringListNullableMultiple` | A nullable list of strings with multiple values. | `[]*string` | `null` | |
| 20 | +| Name | Description | Type | Value | |
| 21 | +| ----------------------------- | ------------------------------------------------ | ----------- | ---------------- | |
| 22 | +| `stringList` | A required list of strings, empty. | `[]string` | `[]` | |
| 23 | +| `stringListSingle` | A required list of strings with one value. | `[]string` | `[user1]` | |
| 24 | +| `stringListMultiple` | A required list of strings with multiple values. | `[]string` | `[user1, user2]` | |
| 25 | +| `stringListNullable` | A nullable list of strings, empty. | `*[]string` | `null` | |
| 26 | +| `stringListNullableSingle` | A nullable list of strings with one value. | `*[]string` | `[user1]` | |
| 27 | +| `stringListNullableMultiple` | A nullable list of strings with multiple values. | `*[]string` | `[user1, user2]` | |
| 28 | +| `stringListNullable2` | A nullable list of strings, empty. | `[]*string` | `[]` | |
| 29 | +| `stringListNullableSingle2` | A nullable list of strings with one value. | `[]*string` | `[user1]` | |
| 30 | +| `stringListNullableMultiple2` | A nullable list of strings with multiple values. | `[]*string` | `[user1, user2]` | |
| 31 | + |
| 32 | + |
| 33 | +### Object lists |
| 34 | + |
| 35 | +| Name | Description | Type | Value | |
| 36 | +| ------------------------ | -------------------------------------------- | ---------------- | -------------------------------------------------- | |
| 37 | +| `objectList` | List of nested objects | `[]nestedObject` | `[]` | |
| 38 | +| `objectList[0].name` | String field | `string` | `example` | |
| 39 | +| `objectList[0].foo` | Object field with custom declared type | `object` | `{}` | |
| 40 | +| `objectList[0].foo.fizz` | Nested int field | `int` | `10` | |
| 41 | +| `objectList[0].foo.buzz` | Nested quantity field, nullable | `*string` | `1GiB` | |
| 42 | +| `objectList[0].bar` | Another object field of custom declared type | `object` | `{}` | |
| 43 | +| `objectList[0].bar.fizz` | Nested int field | `int` | `20` | |
| 44 | +| `objectList[0].bar.buzz` | Nested quantity field, nullable | `*string` | `2GiB` | |
| 45 | +| `objectList[1].name` | String field | `string` | `example 2 - not expected to appear in the README` | |
| 46 | +| `objectList[1].foo` | Object field with custom declared type | `object` | `{}` | |
| 47 | +| `objectList[1].foo.fizz` | Nested int field | `int` | `10` | |
| 48 | +| `objectList[1].foo.buzz` | Nested quantity field, nullable | `*string` | `1GiB` | |
| 49 | +| `objectList[1].bar` | Another object field of custom declared type | `object` | `{}` | |
| 50 | +| `objectList[1].bar.fizz` | Nested int field | `int` | `20` | |
| 51 | +| `objectList[1].bar.buzz` | Nested quantity field, nullable | `*string` | `2GiB` | |
| 52 | + |
| 53 | + |
0 commit comments