Skip to content

Commit

Permalink
Revert "Issue swagger-api#2117. Fix issue with assigning empty model …
Browse files Browse the repository at this point in the history
…name when title empty for inline schema"

This reverts commit 698b337.
  • Loading branch information
ludovicianul committed Aug 12, 2024
1 parent 698b337 commit a755280
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import java.util.List;
import java.util.Map;

import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

Expand Down Expand Up @@ -417,7 +416,7 @@ private static String normalize(String pathPart)
}

private String resolveModelName(String title, String key) {
if (StringUtils.isBlank(title)) {
if (title == null) {
return uniqueName(key);
} else {
return uniqueName(title);
Expand Down

0 comments on commit a755280

Please sign in to comment.