title: Swagger Error Expected type string but found type integer
body: <p>I started working recently on swagger to generate documentation for our RESTful apis. I use the yamlbeans-1.09.jar to convert my Java DTOs to a yaml file.
  Everything works fine and the yaml is even validated properly on the <a href="http://www.yamllint.com/" rel="nofollow">http://www.yamllint.com/</a> but still while testing it with the Swagger interface, it gives an error <strong><em>"Expected type string but found type integer"</em></strong>  and <strong><em>"No enum match for: 2"</em></strong> wherever I mention the swagger : 2.0 in the file.</p>
  
  <p>My sample yml file is:</p>
  
  <pre><code>basePath: /employment
  host: api.xxxx.com
  schemes: 
      - https
  swagger: 2.0
  info: 
      title: API Doc
      description: Description for the info goes here
      version: 1.0.0
  </code></pre>
  
  <p>It always tends to give an error just a line number before the swagger version. Any help will be appreciated.</p>
  
  <p><strong>Edit:</strong> I have defined the swagger version as string in the java code and written as described below:</p>
  
  <pre><code>HashMap&lt;String, Object&gt; rootElementsForYml = new HashMap&lt;String, Object&gt;();
  rootElementsForYml.put(SWAGGER, "2.0");
  rootElementsForYml.put(HOST, "api.xxxx.com");
  rootElementsForYml.put(BASEPATH, basePath);
  rootElementsForYml.put(SCHEMES, new String[]{"https"});
  </code></pre>
  
  <p>But still it gives no result and the same error.</p>