Re:Why the fuck are we templating YAML? (2019)
by jsight on Tuesday January 23, 2024 @11:32AM
(#39105604)
That makes a lot of sense, though I'd guess that a lot of yaml-ops types wouldn't want to have to write schemas.
Re:Why the fuck are we templating YAML? (2019)
by lucideer on Wednesday January 24, 2024 @06:24AM
(#39116051)
StrictYAML is a great initiative. On the other side of the fence I also love JSON5, for opposite reasons - it's essentially "UnstrictJSON".
JSON5 has achieved a reasonably high level of adoption (though I think it's plateaued & I don't see it ever becoming the standard way people do JSON). Would be great to at least see StrictYAML hit a similar level of adoption though - the network effect is so hard to overcome.
This is why I created StrictYAML. A lot of the pain of changing YAML goes away if you strictly type it with a schema but you keep the readability.
Counterintuitively that also includes most indentation errors - it's much easier to zero in on the problem if the error was "expecting status code or content on line 334, got response", for instance.