Open
Description
Description
I have upgraded from beta2 to beta3 and the java spring code generated from the api yaml file contains the import:
springfox.documentation.annotations.ApiIgnore
but the compiler fails on this import.
openapi-generator version
beta3, was working in beta2
OpenAPI declaration file content or url
paths:
/endpoint:
post:
summary: Whatever
tags:
- endpoint
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/Whatever'
responses:
"201":
content:
application/json:
schema:
$ref: '#/components/schemas/Something'
"400":
$ref: '#/components/responses/BadRequest'
"404":
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
"500":
$ref: '#/components/responses/InternalServerError'
Command line used for generation
mvn clean generate-sources
<plugin>
<groupId>org.openapitools</groupId>
<artifactId>openapi-generator-maven-plugin</artifactId>
<version>${version.plugin.openapi.generator}</version>
<configuration>
<generateModels>true</generateModels>
<generateApi>true</generateApi>
<generateSupportingFiles>true</generateSupportingFiles>
<generateAliasAsModel>true</generateAliasAsModel>
<generatorName>spring</generatorName>
<generateApiDocumentation>true</generateApiDocumentation>
<generateModelDocumentation>true</generateModelDocumentation>
<generateApiTests>true</generateApiTests>
<configOptions>
<interfaceOnly>true</interfaceOnly>
<serializableModel>true</serializableModel>
<dateLibrary>java8</dateLibrary>
<library>spring-boot</library>
<ensureUniqueParams>false</ensureUniqueParams>
<useBeanValidation>true</useBeanValidation>
</configOptions>
<!-- enable configHelp to see all the available configOptions -->
</configuration>
<executions>
<execution>
<id>generate-model</id>
<goals>
<goal>generate</goal>
</goals>
<configuration>
<modelPackage>whatever.api.model</modelPackage>
<apiPackage>whatever.api.model</apiPackage>
<invokerPackage>whatever.api.model</invokerPackage>
<inputSpec>${project.build.resources[0].directory}/api/whatever.yaml</inputSpec>
</configuration>
</execution>
</executions>
</plugin>
Metadata
Metadata
Assignees
Labels
No labels