logoalt Hacker News

jhoechtltoday at 8:12 PM1 replyview on HN

I think JSON Schema made the same fallacy as eg. OWL did: The assumption of an open world. 99% percent of the time you want to express "This message should look like this and everything else is wrong". Instead JSON-S went the way to make everything possible at the price of rendering the default unwieldy.


Replies

ether_at_cpantoday at 8:57 PM

There's a way to express that though: by adding `"unevaluatedProperties": false` underneath your properties list.