title: Swagger 415 Unsupported media type: application/json instead of text/plain in POST request
body: <p>I have two REST-GUI's to test my REST-application.
  One is created with swagger, and the other is Advanced REST Client which runs in Chrome.</p>
  
  <p>I do a post to a service, the Swagger fails with error 415, and the Advanced Rest Client succeeds.</p>
  
  <p>The difference between the two is the Content-Type in the request header. The OK-version has Content-Type: text/plain
  The Error version has: Content-Type: application/json</p>
  
  <p>For the rest, both are quite the same. I cut off the payload, but they are also exact the same in both cases.</p>
  
  <p>I don't know how to change Content-Type in Swagger, if it is possible and if it is needed.</p>
  
  <p>Below is information which you could need to help me in this issue. If you need more info, please need.</p>
  
  <p>Thanks very much for any help.</p>
  
  <p>Best regards.</p>
  
  <p>The information look like:</p>
  
  <hr>
  
  <p><strong>OK: Advanced REST Client</strong></p>
  
  <pre><code>Remote Address:127.0.0.1:8080
  Request URL:http://localhost:8080/oak-kernel-2.0/oak/archetype
  Request Method:POST
  Status Code:200 OK
  
  POST /oak-kernel-2.0/oak/archetype HTTP/1.1
  Host: localhost:8080
  Connection: keep-alive
  Content-Length: 10642
  Origin: chrome-extension://hgmloofddffdnphfgcellkdfbfbjeloo
  User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 ....
  Content-Type: text/plain
  Accept: */*
  Accept-Encoding: gzip, deflate
  Accept-Language: en-US,en;q=0.8,nl;q=0.6
  Cookie: _ga=GA1.1.1597438054.1422608427
  </code></pre>
  
  <p>Payload (fragment):</p>
  
  <pre><code>{"archetype": "archetype (adl_version\u003d1.4)\n\top........
  </code></pre>
  
  <p>Response:</p>
  
  <pre><code>Accept-Ranges:bytes
  Content-Length:87
  Content-Type:application/json;charset=UTF-8
  Date:Fri, 30 Jan 2015 20:59:49 GMT
  Server:Restlet-Framework/2.2.3
  Vary:Accept-Charset, Accept-Encoding, Accept-Language, Accept
  </code></pre>
  
  <hr>
  
  <p><strong>ERROR: Swagger</strong></p>
  
  <pre><code>Remote Address:127.0.0.1:8080
  Request URL:http://localhost:8080/oak-kernel-2.0/oak/archetype
  Request Method:POST
  Status Code:415 Unsupported Media Type
  
  POST /oak-kernel-2.0/oak/archetype HTTP/1.1
  Host: localhost:8080
  Connection: keep-alive
  Content-Length: 10642
  Accept: application/json
  Origin: http://localhost:8080
  User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 ....
  Content-Type: application/json
  Referer: http://localhost:8080/swagger/
  Accept-Encoding: gzip, deflate
  Accept-Language: en-US,en;q=0.8,nl;q=0.6
  Cookie: _ga=GA1.1.1597438054.1422608427
  </code></pre>
  
  <p>Payload (fragment):</p>
  
  <pre><code>{"archetype": "archetype (adl_version\u003d1.4)\n\top........
  </code></pre>
  
  <p>Response</p>
  
  <pre><code>Accept-Ranges:bytes
  Content-Length:554
  Content-Type:text/html;charset=UTF-8
  Date:Fri, 30 Jan 2015 21:28:12 GMT
  Server:Restlet-Framework/2.2.3
  </code></pre>