yaml-validator icon indicating copy to clipboard operation
yaml-validator copied to clipboard

Type boolean not supported

Open jsshapiro opened this issue 3 years ago • 1 comments

yaml-validator does not currently provide a way to indicate that a key should have a boolean value. This seems like something that could easily be added.

Note that the acceptable boolean values changed between YAML 1.1 and YAML 1.2 in a way that was not backwards compatible. I'm not sure whether js-yaml makes it possible to specify which version should be parsed, but if it does, I think it would be helpful to be able to specify that in the yaml-validator options structure.

jsshapiro avatar Mar 21 '21 01:03 jsshapiro

Would you be willing to try that in a PR?

paazmaya avatar Mar 24 '21 19:03 paazmaya