swagger-api / swagger-core

Examples and server integrations for generating the Swagger API Specification, which enables easy access to your REST API

Home Page:http://swagger.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Is there a way to prevent operationIds suffixes?

rodrigo-rufino opened this issue · comments

Im using the 'io.swagger.core.v3:swagger-jaxrs2:2.0.0' to generate the openapi.yaml in my Java project. I need this openapi.yaml to be compared to another openapi.yml to check if the specifications are up-to-date.

But it is currently adding suffixes to my operationIds. And, because it generates these suffixes in a somewhat random way (sometimes the same operationId gets the "_1" or "_2" suffix), it is preventing me from comparing these files.

Is there a way to prevent the swagger-jaxrs from adding these suffixes to my YAML file?