News for hackers. Stuff that matters.
Re:Why are we templating YAML? by tomrod on Thursday February 07, 2019 @07:36PM (#19110161)
Oh hey, a Python dictionary that throws an error. Just kidding -- faced a JSON parsing issue today and this made me smile.

It's a step up from XML though.

Re:Why are we templating YAML? by pjmlp on Friday February 08, 2019 @01:04AM (#19111934)
For me lack of validation and comments are many steps down, not up.
Re:Why are we templating YAML? by zamadatix on Saturday February 09, 2019 @06:59AM (#19121878)
Lack of validation?
Re:Why are we templating YAML? by pjmlp on Saturday February 09, 2019 @12:42PM (#19123531)
JSON files don't have validation support like XML schema does.
Re:Why are we templating YAML? by mdaniel on Saturday February 09, 2019 @04:08PM (#19124642)
Maybe not built in like DTD, closer to XML Schema in its laid-on-top manner, but I would argue that JSON Schema is fairly good, and on its way to becoming an IETF standard: http://json-schema.org/ and https://tools.ietf.org/html/draft-handrews-json-schema-01 (et al)

The lack of obvious namespace management is suboptimal, but so far I thankfully haven't encountered a situation where it was a show-stopper.

IntelliJ and related tools also allow associating a json schema with a YAML file, which I have found infinitely handy

Re:Why are we templating YAML? by atombender on Monday February 11, 2019 @05:18PM (#19138937)
JSON Schema is actually pretty great.