openapi operationid重复
Openapi operationid is repeated
我正在使用 Open-API 通过 yaml 文件生成 java class。当我 运行
mvn clean install
我遇到了这个错误:
unexpected error in Open-API generation
org.openapitools.codegen.SpecValidationException: There were issues with the specification. The option can be disabled via validateSpec (Maven/Gradle) or --skip-validate-spec (CLI).
| Error count: 3, Warning count: 6
Errors:
-attribute paths.'/path/{id}'(delete).operationId is repeated
-attribute paths.'/path/name'(get).operationId is repeated
我怎样才能保持这个验证?
试试这个:
在你的 POM.xml -> 插件 -> 查找 openAPI 生成插件 -> 配置 -> configOptions ->
<validateSpec>false</validateSpec>
这应该很有用! :)
我正在使用 Open-API 通过 yaml 文件生成 java class。当我 运行
mvn clean install
我遇到了这个错误:
unexpected error in Open-API generation
org.openapitools.codegen.SpecValidationException: There were issues with the specification. The option can be disabled via validateSpec (Maven/Gradle) or --skip-validate-spec (CLI).
| Error count: 3, Warning count: 6
Errors:
-attribute paths.'/path/{id}'(delete).operationId is repeated
-attribute paths.'/path/name'(get).operationId is repeated
我怎样才能保持这个验证?
试试这个:
在你的 POM.xml -> 插件 -> 查找 openAPI 生成插件 -> 配置 -> configOptions ->
<validateSpec>false</validateSpec>
这应该很有用! :)