Shouldn't the min be 1 instead of 0 unless of course an empty string is a valid repo type.