title: How to ignore class properties in Swagger
body: <p>My question is actually simple, is there a way how to ignore property in classes which are already defined by some library or framework (for example, <code>org.springframework.core.io.Resource</code>)? I can anotate fields by <code>@JsonIgnore</code> in my own classes but si there a way how to do the same in case I can't change theclass itself?</p>
  
  <p>I want this because I am returning <code>ResponseEntity&lt;Resource&gt;</code>and Swagger-UI shows me all nested fields of Resource like</p>
  
  <pre><code>"url": {
     "authority": "string",
     "content": {},
     "defaultPort": 0,
     "file": "string",
     "host": "string",
     ....
  }
  </code></pre>
  
  <p>I am using Springfox with Spring MVC (no Spring Boot), both of them newest versions. Also I don't annotate any fields right now, I leave all the work to Swagger. </p>