Java 8 LocalDate displaying in swagger
<p>I have a DTO which contains field of Java 8 LocalDate type. With Jackson annotations it's possible to set format to <code>ISO.DATE</code> and everything works good. But Swagger (I have version 2.+) see the <code>LocalDate.class</code> as object</p>

<pre><code>LocalDate {
month (integer, optional),
year (integer, optional)
}
</code></pre>

<p>(That's true but...) I want to dipsay this as string with format as it works with <code>util.Date</code>.
How can I solve it?</p>