Home > Back-end >  Openapi operationid is repeated
Openapi operationid is repeated

Time:12-31

I'm using Open-API to generate java class using yaml file. when i run

mvn clean install

i'm getting this error :

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

How can i skeep this validation ?

CodePudding user response:

Try this:

Within your POM.xml -> Plugin -> Find openAPI generation plug-in -> configuration -> configOptions ->

<validateSpec>false</validateSpec>

This should work hopefully ! :)

  • Related