Re:JSON-LD and Why I Hate the Semantic Web
by moonforeshot on Sunday June 04, 2017 @03:19AM
(#14480262)
...or FB can create a 'sdk-code-generation' like they did with Thrift, along with typescript generation.
Also, your idea is possible with current Typescript 2.3's language-server specs :)
But, this is quite separate from 'generic-machine understandable' data - which is what json-ld is all about.
The other idea I had is that it may help with transforming payloads from their serialized format into a static type system like TypeScript. It could be nice to have a system that can see an incoming response, validate the type using JSON-LD, and construct an instance of that object with it. It can be done without JSON-LD, but it may be useful.