/**
* Get form
* @return form
*/
@ApiModelProperty(value = "")
@Valid
public AlertForm getForm() {
return form;
}
或
/**
* Get data
* @return data
*/
@ApiModelProperty(value = "")
public Object getData() {
return data;
}
知道如何摆脱它吗?我正在使用插件版本 5.0.0。配置如下:
<plugin>
<groupId>org.openapitools</groupId>
<artifactId>openapi-generator-maven-plugin</artifactId>
<version>${openapitools.version}</version>
<executions>
<execution>
<id>client-api</id>
<goals>
<goal>generate</goal>
</goals>
<configuration>
<inputSpec>${project.basedir}/api/client-api.yaml</inputSpec>
<generatorName>spring</generatorName>
<apiPackage>com.org</apiPackage>
<modelPackage>com.org.model</modelPackage>
<supportingFilesToGenerate>ApiUtil.java</supportingFilesToGenerate>
<configOptions>
<hideGenerationTimestamp>true</hideGenerationTimestamp>
<delegatePattern>true</delegatePattern>
<dateLibrary>java8-localdatetime</dateLibrary>
<useBeanValidation>true</useBeanValidation>
</configOptions>
<ignoreFileOverride>
${project.basedir}/src/main/resources/.openapi-generator-ignore
</ignoreFileOverride>
</configuration>
</execution>
</executions>
</plugin>
我找不到任何有用的信息,而且我对打开 api 生成还很陌生,所以我很感激任何线索。