title: How can I tell Swashbuckle that the body content is required?
body: <p>I have a WebAPI controller that accepts binary packages and stores them somewhere. As these packages can become quite large, I don't want to load them into memory by adding a byte array parameter but rather pass along a stream.</p>
  
  <p>I found a way to do that <a href="https://stackoverflow.com/a/15366125/869250">in this answer</a>:</p>
  
  <pre><code>[HttpPost]
  [Route("Store/{projectId}")]
  public async Task Store(string projectId)
  {
      using (var stream = await this.Request.Content.ReadAsStreamAsync())
      {
          await this.packageManager.StorePackageAsync(projectId, stream);
      }
  }
  </code></pre>
  
  <p>This works, I can send files to the controller using Postman. However, I now want to generate swagger documentation with Swashbuckle and of course, the required body content is not mentioned there.</p>
  
  <p>Is there a way to get a stream of the request's content so that Swashbuckle knows about it? Or is there an attribute I can use to tell it about the required content?</p>