Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> otherwise your schema has no teeth

I don't disagree, but FWIW, this is common deliberate choice.

E.g. Protobufs work exactly the same way. Except unlike JSONSchema, there's no way to disable it.

The reasoning is to permit future extensibility.



For JSON itself, ignoring extra fields it makes sense. For validating my own output, it does not.

And validating someone else's output seems counterproductive?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: