Jetbrains uses this in their IDEs <a href="https://www.jetbrains.com/help/idea/json.html#ws_json_schema_store_enable_auto_download" rel="nofollow">https://www.jetbrains.com/help/idea/json.html#ws_json_schema...</a><p>It's how it autocompletes JSON / YAML files automatically
I love structured repositories of knowledge and documentation like this because it opens a lot of doors for automating some broader software engineering talent.<p>This could be a really cool opportunity to programatically find common subsets of fields/operations that are sent together in many APIs and see if there's a way to build libraries and tooling across a bunch of languages to handle operations on those fields.
Anybody else get bummed out that many times that we create a lightweight thing to compensate for something overcooked (like XML) the new thing eventually ends up overcooked in much the same way?
Here's how to use them in VSCode <a href="https://code.visualstudio.com/docs/languages/json#_json-schemas-and-settings" rel="nofollow">https://code.visualstudio.com/docs/languages/json#_json-sche...</a>
In a similar vein, apis.guru has a f<i></i>*ton of OpenAPI definitions (550) <a href="https://apis.guru/openapi-directory/" rel="nofollow">https://apis.guru/openapi-directory/</a> (I am not affiliated, just a fan)
I just swapped from doing JSON schema to using TypeScript Interfaces for schema I'm working on. <a href="https://github.com/ellisgl/keyboard-schema" rel="nofollow">https://github.com/ellisgl/keyboard-schema</a>
Now just someone has to build a converter (like pandoc) for these formats and yaml and dhall and xml and ini and gron/greppabblejson/mozilla format and we finally can use any format we want<p>and two other questions:<p>* is there a comparable site for xml?<p>* is there a python module for each format? :D
Are there any tools which can parse a JSON document and its schema definition to construct a queryable graph? The ability to see and traverse relationships in particularly complex JSON documents (like an OpenAPI definition) could come in handy.
For those that enjoy a bit of historical perspective, it is interesting to note that similar schema repositories existed also for XML (for both DTD and XML Schema). They were, however, all behind paywalls or registration forms.<p>It is impressive to see how much and how quickly the world has switched to "open-first" when it comes to schemas, documentation and software in general.<p>Examples:<p>* BizTalk (by Microsoft) <a href="https://web.archive.org/web/20000301195519/http://www.biztalk.org/Library/library.asp" rel="nofollow">https://web.archive.org/web/20000301195519/http://www.biztal...</a><p>* <a href="https://web.archive.org/web/20000511095737/http://www.openapplications.org/xml/loadform.htm" rel="nofollow">https://web.archive.org/web/20000511095737/http://www.openap...</a><p>Bonus: A review of XML schema repositories: <a href="https://www.xmltwig.org/article/bw/bw_04-schema_repositories.html" rel="nofollow">https://www.xmltwig.org/article/bw/bw_04-schema_repositories...</a>
Has someone made a version of this but as a type definition for Typescript? I'd find that interesting and wouldn't mind contributing to a Github repo.