javaopenapispring-annotationsopenapi-generator

OpenAPI Generator 7.9.0 generates methods with _0 as suffix. How to work around that issue?


Why does OpenAPI Generator generate some of the methods with _<Number>, even though operation IDs in my spec are unique? Is there any workaround (by using properties) in OpenAPI 7.9.0? There is an issue opened for that, but I am not sure if it was fixed and in which version it was fixed. Does it mean I should bump to another version?


Solution

  • According to the issue comments, it is a bug in the generator. It happens when you have more than one tag per operationId.

    If I am reading the issue history for OpenAPITools / openapi-generator correctly, a pull request that fixes that issue was merged in Nov 2024, and is part of version 7.10.0.