我正在使用 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
我怎樣才能保持這個驗證?
uj5u.com熱心網友回復:
試試這個:
在你的 POM.xml -> Plugin -> Find openAPI generation plugin -> configuration -> configOptions ->
<validateSpec>false</validateSpec>
這應該很有希望!:)
轉載請註明出處,本文鏈接:https://www.uj5u.com/caozuo/398192.html
