News for hackers. Stuff that matters.
Re:Show HN: Verify JSON using minimal schema by xg15 on Thursday April 16, 2020 @06:35AM (#22887979)
> Json schema does scale down pretty well (indeed as the link above shows the simplest possible Json schema is just "{}")

I've not used JSON Schema so far, but I think showing the simplest possible definition does not tell much about how complex or easy to use a language is.

E.g., it's easy to write C code for a working program that does nothing or just prints "Hello World". The resulting code is very simple and can be written without much experience in C.

However that doesn't make C a simple language - and indeed writing programs in C that perform useful tasks is a lot more complex and requires more knowledge about the language.

In the same way, it's nice that Json Schema has a compact syntax for the "do nothing" schema, but I think a comparison between practically used examples would be better.

(Also the "do nothing" schema would have to compare against not doing schema validation at all - and compared to that, even the two brackets are still pretty costly)

There are no comments on this comment yet.