News for hackers. Stuff that matters.
Re:The Last JSON Spec by skrebbel on Friday December 15, 2017 @12:45PM (#15933537)
No we don't. Typescript is _great_ for this.

  type Book = {
    title: string;
    author: Author;
    isbn?: string;
  }

  //etc
It's easier to read and write by humans than JSON-Schema, a large amount of programmers are already familiar with the syntax, and it's pretty self-explanatory to most programmers who are not.

Sure, it doesn't have constraints like "maximum string length" and "must start with a capital" etc, but I'd wager that those don't really belong in a schema language anyway. The structure and the types is what matters. Once you got that covered, doing some validation on the content of the values is easy. And you can use a Real Programming Language for it, instead of something half assed.

Re:The Last JSON Spec by styfle on Friday December 15, 2017 @06:20PM (#15936135)
> doing some validation on the content of the values is easy

How can you validate a JSON string to see if it matches a TypeScript declaration?