title: Swashbuckle - treat string as enum in swagger documentation
body: <p>I'm using FluentValidation and I want to receive only my custom errors from fluent validators. That's why all my properties in requests classes are strings. However, I would also like to have better documentation for enum types. </p>
  
  <p>Here is my sample request:</p>
  
  <pre><code> public class AddNewPaymentRequest
   {
       [EnumDataType(typeof(PaymentStatus))]
       public string PaymentStatus { get; set; }
  
       public string Id { get; set; }
   }
  </code></pre>
  
  <p>And sample enum:</p>
  
  <pre><code> public enum PaymentStatus
   {
       Unknown,
       New,
       Pending,
       Completed
   }
  </code></pre>
  
  <p>And controller:</p>
  
  <pre><code>[HttpPost]
  public async Task&lt;ActionResult&gt; PostAsync([FromBody] AddNewPaymentRequest request)
  {
     ...
  }
  </code></pre>
  
  <p>I'd like to have this EnumDataType working as an information for Swagger to display enum description, instead of string destripction. I want Swagger to treat this string as an enum.</p>
  
  <p>Actual result:
  <a href="https://i.stack.imgur.com/Pnh7V.png" rel="nofollow noreferrer">click</a></p>
  
  <p>Expected result:
  <a href="https://i.stack.imgur.com/rc1qA.png" rel="nofollow noreferrer">click</a></p>
  
  <p>Is there any possibility to configure Swashbuckle in this way?</p>