Add YAMLParser.Feature.PARSE_BOOLEAN_LIKE_WORDS_AS_STRINGS
to allow parsing "boolean" words as strings instead of booleans
#388
Milestone
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
YAMLParser.Feature
calledPARSE_TRUTHY_WORDS_AS_STRINGS
(open for suggestion on names)Note that
false
andtrue
will still be parsed as booleans.Let me know what you think! I'll be happy to help out with a PR here.
Related issue: #129
The text was updated successfully, but these errors were encountered: