4 ms·
This takes JSON schema from a fairly lightweight, flexible definition to one of the most rigid. As much as I have a hairs time with dynamic languages, I can’t g
by joeblubaugh 4y ago
This takes JSON schema from a fairly lightweight, flexible definition to one of the most rigid. As much as I have a hairs time with dynamic languages, I can’t get with this. Feels contrary to the spirit of the JS ecosystem in the first place.
Makes CUE a much more attractive way to directly validate JSON - you can declare with struct a are open or closed as part of the definition.
- IshKebab 4y agoMy issue with Cue is that there's no actual way to use it as a schema. At least I couldn't find a way to have one cue document link to another cue document so that e.g. IDEs can use the information. Also the only language Cue supports is Go at the moment which makes it a bit of a non starter IMO. It does have a quite elegant design, but I'm not sure it really solves enough to be worth the hassle, especially given that it doesn't attempt to solve the "make config less tedious using functions" problem.