title: springfox - swagger 2 - How to set type of global parameter
body: <p>i'm using swagger 2.5.0 with spring boot to generate a api doc.
  I have configured a global header parameter like this:</p>
  
  <pre><code>myDocket.globalOperationParameters(return Arrays.asList(
          new ParameterBuilder()
              .name("version")
              .description("Version of the api. Starting with 1.")
              .modelRef(new ModelRef("integer"))
              .parameterType("path")
              .defaultValue("1")
              .required(true)
              .build()))
  </code></pre>
  
  <p>The problem is, that it generate this apidoc.json:</p>
  
  <blockquote>
    <p>...."parameters":[{"name":"version","in":"path","description":"Version of
    the api. Starting with
    1.","required":true,"type":"ref","default":"1"}],.....</p>
  </blockquote>
  
  <p>The problem is the <strong>"type":"ref"</strong> . Swagger editor says that this is invalid.</p>
  
  <p>How can i get swagger to generate <strong>"type":"string"</strong> ???</p>