Hacker News new | ask | show | jobs
by kabes 1704 days ago
The example schema has:

  > age:{int, min:20}

Why would a data serialization format bother with data validation like the minimum value here?
1 comments

front and validation perhaps?
Shouldn't be a concern of a serialization library
It’s part of the schema part, not the serialization part right? I don’t disagree you parse then validate, but in a schema that defines type of data, it’s not unreasonable to put limits on values.