You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+14Lines changed: 14 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,6 +5,7 @@
5
5
## Prerequisites
6
6
7
7
This uses the following external resources:
8
+
8
9
- The [PSModule framework](https://github.com/PSModule) for building, testing and publishing the module.
9
10
10
11
## Installation
@@ -25,6 +26,19 @@ The module provides two cmdlets that mirror PowerShell's built-in `ConvertFrom-J
25
26
|`ConvertFrom-Yaml`|`ConvertFrom-Yml`| Parse a YAML string into an object. |
26
27
|`ConvertTo-Yaml`|`ConvertTo-Yml`| Serialize an object into a YAML string. |
27
28
29
+
### YAML specification
30
+
31
+
The module aligns with [**YAML 1.2.2**](https://yaml.org/spec/1.2.2/) (October 2021) — the latest revision of the YAML specification — and follows the [**core schema**](https://yaml.org/spec/1.2.2/#103-core-schema) for scalar resolution.
32
+
33
+
Practical implications of the core schema:
34
+
35
+
-`true` and `false` (lowercase only) parse as `[bool]`. `True`, `TRUE`, `yes`, `no`, `on`, `off`, etc. are plain strings.
36
+
-`null`, `~`, and an empty value parse as `$null`. `Null`, `NULL` are plain strings.
37
+
- Integers and floats parse to their native types using invariant culture.
38
+
- Anything else is a string. Quoted strings (`'...'`, `"..."`) always preserve the string type.
39
+
40
+
The supported YAML subset covers block-style mappings, block-style sequences, nested structures, single- and double-quoted scalars (with `\n`, `\t`, `\r`, `\\`, `\"` escapes in double quotes), and full-line / inline `#` comments. Flow style (`[a, b]`, `{a: 1}`), block scalars (`|`, `>`), anchors, aliases, tags, multi-document streams, and `!!timestamp` are not yet supported.
0 commit comments