-
Notifications
You must be signed in to change notification settings - Fork 159
Open
Description
Lines 307 to 308 in da52a68
| "true" => Yaml::Boolean(true), | |
| "false" => Yaml::Boolean(false), |
I am actually really struggling to understand the YAML 1.2 spec here, but I think it's saying that a parser can be in one of two modes: JSON schema tag resolution, or core schema tag resolution (with core seemingly being recommended as a default).
https://yaml.org/spec/1.2.2/#1022-tag-resolution
From my reading:
- In the JSON schema tag resolution,
Trueindeed should be interpreted as"True"; but - in the core schema tag resolution,
Trueshould be interpreted astrue.
In any case, my colleagues used to YAML 1.1 were taken by surprise when True wasn't working for them. I am not sure what the right answer is here, but I suspect these boolean literals should still be treated as valid booleans.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels