spec to make quantity accept only integers