News for hackers. Stuff that matters.
Re:Show HN: JSONSchema to TypeScript compiler by skrebbel on Wednesday April 26, 2017 @02:45AM (#14200966)
Yes! Fantastic. Typescript interfaces are a great way to specify JSON schemas, much friendlier than eg JSON Schema and the likes.

Now that TypeScript is gaining traction it might be a great moment to start documenting your REST payloads with it instead of eg JSON Schema or just some JSON example blobs. It's very readable even for non TypeScript programmers.

Re:Show HN: JSONSchema to TypeScript compiler by elcapitan on Wednesday April 26, 2017 @09:14AM (#14202638)
You can use OpenAPI/swagger to do that, which contains a subset of Json Schema, you have the option to use Yaml instead of json notation and have it language-independent and with the option to generate client and server code for multiple languages.