phoenixnap / springmvc-raml-plugin

Spring MVC - RAML Spec Synchroniser Plugin. A Maven plugin designed to Generate Server & Client code in Spring from a RAML API descriptor and conversely, a RAML API document from the SpringMVC Server implementation.
Apache License 2.0
136 stars 84 forks source link

RAML 1.0 not picking up dateType from generationConfig #240

Closed youac closed 6 years ago

youac commented 6 years ago

When setting dateType in generationConfig to use LocalDate, code is being generated with a java.util.Date

generationConfig:

<generationConfig>
     <dateType>org.joda.time.LocalDate</dateType>
</generationConfig>

In the RAML: dateOfBirth: type: date-only

Code generated: private Date dateOfBirth;

Expected code: private LocalDate dateOfBirth;

Could you please advise

stojsavljevic commented 6 years ago

Basically, #253 is duplicate of this one. Resolved with 1f90a82