JSON is the version of XML we deserve.
I wish it had comments. And for that reason, I prefer yaml.
JSON Schema Store
11–20 of 150 posts
Re: JSON Schema Store
#12Re: JSON Schema Store
#13Does anyone know of a typescript translation for each of those validation models? Or maybe even a way to discover related statically typed definitions based on the validation rules? It would be really nice to not define parts of a data model that provide little to no business value - but where you can easily “stub your toe”.
[0] json-schema-to-typescript
Re: JSON Schema Store
#14Earlier quoted context omitted.
I wish it had comments. And for that reason, I prefer yaml.
I prefer JSON's strictness. A Boolean cannot be confused for a string. In yaml: country: no Now your country is Boolean(false) Now, I still prefer yaml overall. Also, I hate that GitHub actions don't support anchors.
In fact: there exists a specification called JSON5 which does include comments.
But I agree that it would've been nice if it had comments before it achieved a critical mass of adoption.
Re: JSON Schema Store
#15Some previous discussion: https://news.ycombinator.com/item?id=23988269
Re: JSON Schema Store
#16Does anyone know of a typescript translation for each of those validation models? Or maybe even a way to discover related statically typed definitions based on the validation rules? It would be really nice to not define parts of a data model that provide little to no business value - but where you can easily “stub your toe”.
Re: JSON Schema Store
#17Re: JSON Schema Store
#18Re: JSON Schema Store
#19Re: JSON Schema Store
#20Earlier quoted context omitted.
I wish it had comments. And for that reason, I prefer yaml.
I prefer JSON's strictness. A Boolean cannot be confused for a string. In yaml: country: no Now your country is Boolean(false) Now, I still prefer yaml overall. Also, I hate that GitHub actions don't support anchors.