Skip to content

Commit a1c9b4e

Browse files
Fix Build-Docs lint: remove extra bullet indent in ConvertFrom-Yaml description, fix 'Id' to 'ID' in ConvertTo-Yaml example
1 parent 2c3d26d commit a1c9b4e

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

src/functions/public/ConvertFrom-Yaml.ps1

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@
88
`[ordered]` hashtable when `-AsHashtable` is specified.
99
1010
Supports a useful subset of YAML 1.2.2 (core schema):
11-
- Block-style mappings (key: value)
12-
- Block-style sequences (- item)
13-
- Nested structures
14-
- Scalars: strings, integers, floats, booleans (`true`/`false`), null (`null`/`~`/empty)
15-
- Single- and double-quoted strings (with `\n`, `\t`, `\r`, `\\`, `\"` in double quotes)
16-
- Document start (`---`) and end (`...`) markers are tolerated
17-
- Full-line comments (`#`) and inline comments after values
11+
- Block-style mappings (key: value)
12+
- Block-style sequences (- item)
13+
- Nested structures
14+
- Scalars: strings, integers, floats, booleans (`true`/`false`), null (`null`/`~`/empty)
15+
- Single- and double-quoted strings (with `\n`, `\t`, `\r`, `\\`, `\"` in double quotes)
16+
- Document start (`---`) and end (`...`) markers are tolerated
17+
- Full-line comments (`#`) and inline comments after values
1818
1919
Input must be a valid YAML string.
2020

src/functions/public/ConvertTo-Yaml.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
age: 30
3535
3636
.EXAMPLE
37-
Get-Process | Select-Object -First 3 Name, Id | ConvertTo-Yaml -AsArray
37+
Get-Process | Select-Object -First 3 Name, ID | ConvertTo-Yaml -AsArray
3838
3939
Serializes a list of objects as a YAML sequence.
4040

0 commit comments

Comments
 (0)