title: Why have the rust rocket response text/plain media type response?
body: <p>I am using rust rocket <code>rocket = { version = &quot;=0.5.0-rc.2&quot;, features = [&quot;json&quot;] }</code> as the http server, this is the code looks like:</p>
  <pre><code>/// # template list query
  ///
  /// return template list
  #[openapi(tag = &quot;Template&quot;)]
  #[get(&quot;/v1/list?&lt;query..&gt;&quot;)]
  pub fn list(query: TemplateRequest) -&gt; Result&lt;Json&lt;ApiResponse&lt;Vec&lt;TemplateResponse&gt;&gt;&gt;, String&gt; {
      let contents = get_template_list(query.template_type, query.name);
      let boxed_response = box_type_rest_response(contents);
      return Ok(Json::from(boxed_response));
  }
  </code></pre>
  <p>This code works fine, but when I check the response in the swagger, it shows two types of response, one is <code>text/plain</code>, the other is <code>application/json</code>. Why have the swagger two types of media type? Seems like the <code>application/json</code> media type is what I want, how to disable the <code>text/plain</code> media type?</p>