Y
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
williamtwild
1704 days ago
front and validation perhaps?
link
kabes
1704 days ago
Shouldn't be a concern of a serialization library
link
SV_BubbleTime
1704 days ago
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.
link