Earlier 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.
JSON Schema Store
21–30 of 150 posts
Re: JSON Schema Store
#22Does 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
#23Took me an embarrassingly long time to figure out you could scroll that list
Same,I like how clean it looks but it needs some visual indicator that it scrolls.
Re: JSON Schema Store
#24JSON Resume uses a defined schema. (listed on schemastore.org) It has made writing resumes with co pilot super powerful.
Re: JSON Schema Store
#25Re: JSON Schema Store
#26Does 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”.
You could use this[0] package but you would need to download the schema first into a folder say "schemas" and then add a build step as a script in your package.json '"compile-schemas": "json2ts -i schemas -o types"' to export to a "type" folder [0] json-schema-to-typescript
Re: JSON Schema Store
#27Earlier quoted context omitted.
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 YAML 1.2 that gives the string "no".
Re: JSON Schema Store
#28Re: JSON Schema Store
#29Re: JSON Schema Store
#30JSON is the version of XML we deserve.
Which is why JSON’s simplicity is such a win for our industry. Because it’s always easy to handle. Sure you can build it pretty terrible, but you’re not going to do this: and then later do x which I’m not convinced you didn’t do in XML because you’re chaotic evil. And you’re not going to run into an issue where some Adobe Lifecycle schema doesn’t work with .Net because of reasons I never really found out because why wouldn’t an XML schema work in .Net? Anyway, I’m sure the intentions behind XML were quite brilliant but in my anecdotal experience it just doesn’t work for the Thursday afternoon programmer mindset and JSON does.