minLength and maxLength were not added to the generated JSON schema

minLength and maxLength attributes are now correctly generated in the schema.