title: Issue with using swagger in webapplication
body: <p>I am using swagger in my web application and when I deploy the application, I am getting the below error in the logs </p>
  
  <blockquote>
    <p>Type 'com/fasterxml/jackson/dataformat/yaml/YAMLFactory' (current
    frame, stack[0]) is not assignable to
    'com/fasterxml/jackson/core/JsonFactory'</p>
  </blockquote>
  
  <p>My pom.xml have the below dependencies</p>
  
  <pre><code>&lt;!-- swagger --&gt;
  &lt;dependency&gt;
      &lt;groupId&gt;io.swagger&lt;/groupId&gt;
      &lt;artifactId&gt;swagger-jersey-jaxrs&lt;/artifactId&gt;
      &lt;version&gt;${swagger.version}&lt;/version&gt;
  &lt;/dependency&gt;
  &lt;dependency&gt;
      &lt;groupId&gt;io.swagger&lt;/groupId&gt;
      &lt;artifactId&gt;swagger-annotations&lt;/artifactId&gt;
      &lt;version&gt;${swagger.version}&lt;/version&gt;
  &lt;/dependency&gt;
  &lt;dependency&gt;
      &lt;groupId&gt;io.swagger&lt;/groupId&gt;
      &lt;artifactId&gt;swagger-core&lt;/artifactId&gt;
      &lt;version&gt;${swagger.version}&lt;/version&gt;
  &lt;/dependency&gt;
  &lt;dependency&gt;
      &lt;groupId&gt;io.swagger&lt;/groupId&gt;
      &lt;artifactId&gt;swagger-jaxrs&lt;/artifactId&gt;
      &lt;version&gt;${swagger.version}&lt;/version&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>please help me</p>