title: Hide swagger bad response example model in net core 2.2
body: <p>I upgrade my netcore 2.1 project to 2.2 and i have a problem with my swagger page.</p>
  
  <p>Previously in swagger bad response it only show "Bad Request" without the model.</p>
  
  <p>But after i upgraded to net core 2.2 there is a model shown in the bad request example.The image is below.</p>
  
  <p>How do i hide it so that it just show the "Bad request". </p>
  
  <p>I already tested using CustomApiConvention but no success so far. </p>
  
  <pre><code>    [HttpGet("{id}")]
      [ProducesResponseType(StatusCodes.Status204NoContent)]
      [ProducesResponseType(StatusCodes.Status400BadRequest)]
      [ProducesResponseType(StatusCodes.Status404NotFound)]
      [ProducesDefaultResponseType]
      public async Task&lt;ActionResult&lt;Employee&gt;&gt; GetEmployee(int id)
      {
          var employee = await _context.Employee.FindAsync(id);
  
          if (employee == null)
          {
              return NotFound();
          }
  
          return employee;
      }
  </code></pre>
  
  <p>How do i hide it so that it just show the "Bad request"?</p>
  
  <p><a href="https://i.stack.imgur.com/AYpWs.png" rel="noreferrer"><img src="https://i.stack.imgur.com/AYpWs.png" alt="enter image description here"></a></p>