[BUG] Description

Author: kadamarCreated Sep 28, 2026Updated Sep 28, 2026
LabelsIssue: Bug
Description

FIX_DUPLICATED_OPERATIONID not work if path is ref

openapi-generator version

openapi-generator-maven-plugin: 7.25.0

OpenAPI
yaml
paths:
  /branches/availability:
    put:
      operationId: changeBranchesАvailability
  /system/branches/availability:
    $ref: '#/paths/~1branches~1availability'
Generation Details
xml
                        <execution>
                            <id>openapi-generation</id>
                            <phase>generate-sources</phase>
                            <goals>
                                <goal>generate</goal>
                            </goals>
                            <configuration>
                                <generatorName>openapi-yaml</generatorName>
                                <openapiNormalizer>
                                    FIX_DUPLICATED_OPERATIONID=true
                                </openapiNormalizer>
                            </configuration>
                        </execution>
Suggest a fix

Now after build complete operationId changed, but new operationId have same suffix as duplicated

yaml
paths:
  /branches/availability:
    put:
      operationId: changeBranchesАvailability_0
  /system/branches/availability:
    put:
      operationId: changeBranchesАvailability_0

but the second operationId should be changeBranchesАvailability_1

Source: OpenAPITools/openapi-generator