1
0
mirror of synced 2025-12-25 02:09:19 -05:00

11059 multi-instance, versioned docs (#58095)

Co-authored-by: devin-ai-integration[bot] <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
Ian Alton
2025-04-23 16:58:09 -07:00
committed by GitHub
parent af0ced7f62
commit 01cd16654e
1209 changed files with 40125 additions and 8066 deletions

View File

@@ -0,0 +1,50 @@
# Parameters
Parameters can be passed down from a parent component to its subcomponents using the $parameters key.
This can be used to avoid repetitions.
Schema:
```yaml
"$parameters":
type: object
additionalProperties: true
```
Example:
```yaml
outer:
$parameters:
MyKey: MyValue
inner:
k2: v2
```
This the example above, if both outer and inner are types with a "MyKey" field, both of them will evaluate to "MyValue".
These parameters can be overwritten by subcomponents as a form of specialization:
```yaml
outer:
$parameters:
MyKey: MyValue
inner:
$parameters:
MyKey: YourValue
k2: v2
```
In this example, "outer.MyKey" will evaluate to "MyValue", and "inner.MyKey" will evaluate to "YourValue".
The value can also be used for string interpolation:
```yaml
outer:
$parameters:
MyKey: MyValue
inner:
k2: "MyKey is {{ parameters['MyKey'] }}"
```
In this example, outer.inner.k2 will evaluate to "MyKey is MyValue"