From 290223ef10a3be873f7774db3e8fdcd773bb310c Mon Sep 17 00:00:00 2001 From: Christian Beikov Date: Sun, 28 Apr 2024 14:59:01 +0200 Subject: [PATCH] Test and fix #750 by reusing ExternalRefProcessor --- .../java/io/swagger/parser/util/RefUtils.java | 41 +------------------ .../io/swagger/parser/util/RefUtilsTest.java | 12 ++++++ 2 files changed, 14 insertions(+), 39 deletions(-) diff --git a/modules/swagger-parser/src/main/java/io/swagger/parser/util/RefUtils.java b/modules/swagger-parser/src/main/java/io/swagger/parser/util/RefUtils.java index a3122f3c1e..ed53f3822d 100644 --- a/modules/swagger-parser/src/main/java/io/swagger/parser/util/RefUtils.java +++ b/modules/swagger-parser/src/main/java/io/swagger/parser/util/RefUtils.java @@ -2,6 +2,7 @@ import io.swagger.models.auth.AuthorizationValue; import io.swagger.models.refs.RefFormat; +import io.swagger.parser.processors.ExternalRefProcessor; import org.apache.commons.io.FileUtils; import org.apache.commons.io.IOUtils; import org.apache.commons.lang3.StringUtils; @@ -80,45 +81,7 @@ public static String readExternalUrlRef(String file, RefFormat refFormat, List