Description
When using swagger-codegen-maven-plugin:2.2.1, if both dateLibrary=java8 and modelNameSuffix=Resource options are specified, it will accidentally generate fields with type for example: OffsetDateTimeResource.
Swagger-codegen version
2.2.1
Command line used for generation
Maven config:
<plugin>
<groupId>io.swagger</groupId>
<artifactId>swagger-codegen-maven-plugin</artifactId>
<version>2.2.1</version>
<executions>
<execution>
<goals>
<goal>generate</goal>
</goals>
<configuration>
<inputSpec>http://petstore.swagger.io/v2/swagger.json</inputSpec>
<language>java</language>
<library>retrofit2</library>
<configOptions>
<dateLibrary>java8</dateLibrary>
</configOptions>
<modelNameSuffix>Resource</modelNameSuffix>
</configuration>
</execution>
</executions>
</plugin>
Steps to reproduce
Run mvn package.
Description
When using
swagger-codegen-maven-plugin:2.2.1, if bothdateLibrary=java8andmodelNameSuffix=Resourceoptions are specified, it will accidentally generate fields with type for example:OffsetDateTimeResource.Swagger-codegen version
2.2.1
Command line used for generation
Maven config:
Steps to reproduce
Run
mvn package.