the max and min length is added for all strings so we don't have empty strings in DB, if something is not required and is not in JSON the validator won't check the length, but if you add a param to JSON and put empty string there it will throw an error