forked from go-yaml/yaml
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Encode strings with YAML 1.1 boolean values with quotes
To allow better compatibility with YAML 1.1 parsers, when outputting a string that is equal to one of the YAML 1.1 boolean values ("yes", "no", "on", "off", etc), enclose the string in quotes. The string will then parse correctly by either YAML 1.1 or YAML 1.2 parsers. This change does not affect decoding: Bare `yes` and `no` will still be decoded as strings. See: go-yaml#214
- Loading branch information
1 parent
a6ecf24
commit 20d531d
Showing
2 changed files
with
57 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters