Skip to content

Commit af23625

Browse files
committed
adding stringlist limitation
1 parent a1227a0 commit af23625

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

docs/pipelines/process/includes/parameter-data-types.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ ai-usage: ai-assisted
1414
| Data type | Notes |
1515
|-----------|-------|
1616
| `string` | string
17-
| `stringList` | a list of items, multiple can be selected
17+
| `stringList` | a list of items, multiple can be selected. Not available in templates
1818
| `number` | may be restricted to `values:`, otherwise any number-like string is accepted
1919
| `boolean` | `true` or `false`
2020
| `object` | any YAML structure
@@ -27,7 +27,10 @@ ai-usage: ai-assisted
2727
| `stage` | a single stage
2828
| `stageList` | sequence of stages
2929

30-
The step, stepList, job, jobList, deployment, deploymentList, stage, stringList, and stageList data types all use standard YAML schema format. This example includes string, number, boolean, object, step, and stepList.
30+
The `step`, `stepList`, `job`, `jobList`, `deployment`, `deploymentList`, `stage`, `stringList`, and `stageList` data types all use standard YAML schema format. This example includes `string`, `number`, `boolean`, `object`, `step`, and `stepList`.
31+
32+
> [!NOTE]
33+
> The `stringList` data type isn't available in templates. Use the `object` data type in templates instead.
3134
3235
```yaml
3336
parameters:

docs/pipelines/process/template-expressions.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -317,6 +317,10 @@ jobs:
317317

318318
You can also use `stringList` to define and interate over parameters that contain a list of items.
319319

320+
> [!NOTE]
321+
> The `stringList` data type isn't available in templates. Use the `object` data type in templates instead.
322+
323+
320324
```yaml
321325
parameters:
322326
- name: regions

0 commit comments

Comments
 (0)