7 ms·
The example schema has: > age:{int, min:20} Why would a data serialization format bother with data validation like the minimum value here?
by kabes 5y ago
The example schema has:
> age:{int, min:20}
Why would a data serialization format bother with data validation like the minimum value here?
- williamtwild 5y agofront and validation perhaps?
- kabes 5y agoShouldn't be a concern of a serialization library
- SV_BubbleTime 5y agoIt’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.