Add min/max/length rules for buffers