Skip to content

Commit 6b03b52

Browse files
author
springdoc
committed
fixes #206
1 parent 65d3eff commit 6b03b52

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

springdoc-openapi-common/src/main/java/org/springdoc/core/OperationBuilder.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,8 @@ private boolean existOperationId(String operationId, OpenAPI openAPI) {
207207
if (openAPI.getPaths() == null || openAPI.getPaths().isEmpty()) {
208208
return false;
209209
}
210-
for (PathItem path : openAPI.getPaths().values()) {
210+
for (Iterator<PathItem> iterator = openAPI.getPaths().values().iterator(); iterator.hasNext();) {
211+
PathItem path = iterator.next();
211212
Set<String> pathOperationIds = extractOperationIdFromPathItem(path);
212213
if (pathOperationIds.contains(operationId)) {
213214
return true;

0 commit comments

Comments
 (0)