【发布时间】:2021-12-30 08:29:27
【问题描述】:
我正在使用 Open-API 使用 yaml 文件生成 java 类。当我跑步时
mvn 全新安装
我收到此错误:
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
我怎样才能逃避这个验证?
【问题讨论】:
-
它在错误消息中说:“该选项可以通过 validateSpec (Maven/Gradle) 或 --skip-validate-spec (CLI) 禁用。”你试过这个吗?
-
@Helen 我无法在 pom 文件中找到此选项。不知道在哪里添加它