title: Swagger bitwise enum flags handling
body: <p>I have an enum like;</p>
  <pre><code>[Flags]
  public enum MeteoType : ushort
  {
      Wind = 1 &lt;&lt; 0,
      Pressure = 1 &lt;&lt; 1,
      Temperature = 1 &lt;&lt; 2,
      Waves = 1 &lt;&lt; 4,
      Currents = 1 &lt;&lt; 9,
      Swell = 1 &lt;&lt; 13,
      WindWave = 1 &lt;&lt; 14,
  }
  </code></pre>
  <p>and I have a model;</p>
  <pre><code>public class Params
  {
      public List&lt;MeteoType&gt; Meteo { get; set; } = new List&lt;MeteoType&gt;()
      {
          MeteoType.Wind
      };
      ....
  }
  </code></pre>
  <p>In my controller method, I ask for this model from query as such;</p>
  <pre><code>public async Task&lt;IActionResult&gt; Get(int z, int x, int y, [FromQuery] Params parameters)
  </code></pre>
  <p>Which gives me this view in swagger:</p>
  <p><a href="https://i.stack.imgur.com/Q4WMb.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Q4WMb.png" alt="enter image description here" /></a></p>
  <p>I'm using List because it's a flag and I want to be able to choose multiple elements. The problem starts here. When I choose multiple elements the link is created like:</p>
  <p>https://localhost:44311?Meteo=1&amp;Meteo=2&amp;Meteo=4&amp;...</p>
  <p>rather than</p>
  <p>https://localhost:44311?Meteo=7&amp;...</p>
  <p>How can I make it so that link is generated by sum of enum values, rather than all of them one by one?</p>