3 ms·
> ... allow you to specify that an input string/blob should be smaller than 10MB and refuse to deserialize it if it is longer ... why ? are there no cases whe
by signa11 3y ago
> ... allow you to specify that an input string/blob should be smaller than 10MB and refuse to deserialize it if it is longer ...
why ? are there no cases where serializing even larger file is valid ?
- afiori 3y agosure, a lot of cases, I suspect that S3 upload limits are different from imgur.
- signa11 3y agoand feel free to do that in _your_ application. don’t shackle others with the limitations of your domain. mechanism vs policy and all that.
- afiori 3y agoI believe I have already justified why it might be useful at the protocol/schema level in ways that cannot be replicated at the application level: to eagerly fail on expensive (eg memory) deserialization.