Feature Request #1501 add maxlength by field with length-spec

Signed-off-by: Chirayu Chiripal <chirayu.chiripal@gmail.com>