minLength and maxLength were not added to the generated JSON schema. Fixed.