title: Is is possible to change the contents of the Example Value section generated by NSwag?
body: <p>We are using NSwag to generate swagger pages for our API. We have a fictitious asp.net core 2.2 controller and the generated swagger pages looks like this:
  <a href="https://i.stack.imgur.com/hBkox.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/hBkox.png" alt="enter image description here"></a></p>
  
  <p>Is it possible to change the contents of the Example Value (highlighted in yellow)? We would like to display an actual sample value for the testParameter instead of just "string". Is there a data annotation we can use, or some other overriding mechanism available to override this behaviour?</p>
  
  <p>The version of NSwag we are using is NSwag.AspNetCore 13.0.2.</p>
  
  <p>The class that defines the model is:</p>
  
  <pre><code>public class TestQuery : IRequest&lt;TestResponse&gt;
  {
      [DefaultValue("test1")]
      [JsonProperty("testParameter")]
      public string TestParameter { get; set; }
  }
  </code></pre>
  
  <p>We are using MediatR hence the IRequest.</p>
  
  <p>Here's the controller class:</p>
  
  <pre><code>[Authorize, Route("api/route/test")]
  [ApiController]
  public class TestController : ControllerBase
  {
      private readonly IMediator _mediator;
  
      /// &lt;summary&gt;
      /// TestController constructor
      /// &lt;/summary&gt;
      /// &lt;param name="mediator"&gt;Dependency Injected mediator reference&lt;/param&gt;
      public TestController(IMediator mediator)
      {
          _mediator = mediator;
      }
  
      /// &lt;summary&gt;
      /// Async method which retrieves a test response for a given testParameter string
      /// &lt;/summary&gt;
      /// &lt;remarks&gt;
      ///
      ///        Sample testParameters:   "test1", "test2", "test3"
      ///
      ///        Sample Request:
      ///             {
      ///                 "testParameter": "test1"
      ///             }
      ///
      /// &lt;/remarks&gt;
      /// &lt;param name="GetTestResponseQuery"&gt;Get test response request model&lt;/param&gt;
      /// &lt;returns&gt;A test response&lt;/returns&gt;
      [HttpPost]
      public async Task&lt;ApiResponse&lt;TestResponse&gt;&gt; GetTestResponse([FromBody]TestQuery testQuery)
      {
          if (!ModelState.IsValid)
          {
              throw new Exception($"State for model TestQuery is not valid for service {testQuery.TestParameter}");
          }
          else
          {
              var result = await _mediator.Send(testQuery).ConfigureAwait(false);
              return new ApiResponse&lt;TestResponse&gt;(result);
          }
      }
  }
  </code></pre>
  
  <p>Thank you kindly,
  Yves Rochon</p>