Update documentation for lists of maps
This commit is contained in:
parent
92237bfa68
commit
c30e0cdccf
17
README.md
17
README.md
@ -81,9 +81,20 @@ FOO
|
|||||||
* Boolean values: `true`, `false`
|
* Boolean values: `true`, `false`
|
||||||
|
|
||||||
* Arrays can be made by wrapping it in `[]`. Example:
|
* Arrays can be made by wrapping it in `[]`. Example:
|
||||||
`["foo", "bar", 42]`. Arrays can contain primitives
|
`["foo", "bar", 42]`. Arrays can contain primitives,
|
||||||
and other arrays, but cannot contain objects. Objects must
|
other arrays, and objects. As an alternative, lists
|
||||||
use the block syntax shown below.
|
of objects can be created with repeated blocks, using
|
||||||
|
this structure:
|
||||||
|
|
||||||
|
```hcl
|
||||||
|
service {
|
||||||
|
key = "value"
|
||||||
|
}
|
||||||
|
|
||||||
|
service {
|
||||||
|
key = "value"
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
Objects and nested objects are created using the structure shown below:
|
Objects and nested objects are created using the structure shown below:
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user