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
Right now YAMLParser._matchYAMLBoolean provides no flexibility to avoid words that are considered booleans to be parsed as strings instead, which is actually sometimes the desired behaviour and a good candidate for a feature flag in my opinion. I therefore propose the following
Introduce a new YAMLParser.Feature called PARSE_TRUTHY_WORDS_AS_STRINGS (open for suggestion on names)
When enabling this flag, the following words (converted to lowercase) will be parsed as strings instead of booleans:
yes
no
on
off
y
n
Note that false and true will still be parsed as booleans.
Let me know what you think! I'll be happy to help out with a PR here.