swagger-api / swagger-core

Examples and server integrations for generating the Swagger API Specification, which enables easy access to your REST API
http://swagger.io
Apache License 2.0
7.36k stars 2.17k forks source link

Is there a way to prevent operationIds suffixes? #4642

Open rodrigo-rufino opened 3 months ago

rodrigo-rufino commented 3 months ago

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?