Turns out the country code for Norway, "no", is interpreted as boolean false when unquoted in yaml.
Turns out the country code for Norway, "no", is interpreted as boolean false when unquoted in yaml.
https://github.com/adrienverge/yamllint
It can be configured to require strict string quoting.
https://yamllint.readthedocs.io/en/stable/rules.html#module-...
And to explicitly restrict bools to only `true` and `false`.
https://yamllint.readthedocs.io/en/stable/rules.html#module-...
Trying to get to almost jsonschema level without the complexity of specification and reuse with the actual code
Sorry, but YAML is a disaster and YAML Lint and JSON Schema are weak attempts to improve it.
I'd be happy if YAML evolved to a true schema support, use of brackets or some other tip so white space wouldn't be meaningful, and silly things removed like three hundred ways to define Boolean values.
Edit: I suppose you mean that the config format should be "user friendly". I guess it should, but I have personally had far fewer problems with YAML than with TOML.
I wrote it to read true/false, but then there were some test cases that failed. Turns out, the schema also allows yes/no and 1/0 as synonyms.
Suggesting that you were using a function as a map and "prototype" as the key seems even more made up.
If you use a template you have to put "" for strings.
That sounds like there are no human-writable formats.
> If your human-readable format requires special cases for certain keywords but treats others as strings, it's not human-readable.
That I can 100% support; sometimes needing to quote strings is a recipe for disaster.
I'm not sure why it sounds that way. There are formats where types are explicit, either by stating them or by their delimiters or by their contents.