diff --git a/gradle/javaProject.gradle b/gradle/javaProject.gradle index a22492c3b..7d89a86b1 100644 --- a/gradle/javaProject.gradle +++ b/gradle/javaProject.gradle @@ -51,6 +51,7 @@ dependencies { implementation "io.swagger.core.v3:swagger-core:${swaggerCoreVersion}" implementation "io.swagger.core.v3:swagger-models:${swaggerCoreVersion}" implementation "io.swagger.parser.v3:swagger-parser:${swaggerParserVersion}" + implementation "io.swagger.parser.v3:swagger-parser-safe-url-resolver:${swaggerParserVersion}" implementation "javax.ws.rs:javax.ws.rs-api:2.1.1" implementation "org.ballerinalang:ballerina-lang:${ballerinaLangVersion}" implementation "org.ballerinalang:ballerina-parser:${ballerinaLangVersion}" diff --git a/openapi-bal-service/build.gradle b/openapi-bal-service/build.gradle index cdf56ab85..10e9d125f 100644 --- a/openapi-bal-service/build.gradle +++ b/openapi-bal-service/build.gradle @@ -38,6 +38,7 @@ dependencies { exclude group: "javax.validation", module: "validation-api" } implementation "io.swagger.core.v3:swagger-models" + implementation "io.swagger.parser.v3:swagger-parser-safe-url-resolver:${swaggerParserVersion}" implementation "javax.ws.rs:javax.ws.rs-api" implementation "com.github.jknack:handlebars" implementation "info.picocli:picocli" @@ -116,6 +117,7 @@ shadowJar { include(dependency('com.github.jknack:handlebars')) include(dependency('org.antlr:antlr4:4.5')) include(dependency('io.swagger.parser.v3:swagger-parser')) + include(dependency('io.swagger.parser.v3:swagger-parser-safe-url-resolver')) include(dependency('com.atlassian.commonmark:commonmark')) include(dependency('com.atlassian.commonmark:commonmark-ext-gfm-tables')) exclude('META-INF/*.SF') diff --git a/openapi-build-extension/build.gradle b/openapi-build-extension/build.gradle index db2d81061..37522094a 100644 --- a/openapi-build-extension/build.gradle +++ b/openapi-build-extension/build.gradle @@ -32,6 +32,7 @@ configurations { dependencies { implementation "io.swagger.core.v3:swagger-models" + implementation "io.swagger.parser.v3:swagger-parser-safe-url-resolver:${swaggerParserVersion}" implementation ("io.swagger.parser.v3:swagger-parser:${swaggerParserVersion}") { exclude group: "io.swagger", module: "swagger-compat-spec-parser" exclude group: "org.slf4j", module: "slf4j-ext" diff --git a/openapi-cli/build.gradle b/openapi-cli/build.gradle index 9f5a9d20f..e1ae9d9c6 100644 --- a/openapi-cli/build.gradle +++ b/openapi-cli/build.gradle @@ -38,6 +38,7 @@ dependencies { exclude group: "javax.validation", module: "validation-api" } implementation "io.swagger.core.v3:swagger-models" + implementation "io.swagger.parser.v3:swagger-parser-safe-url-resolver:${swaggerParserVersion}" implementation "javax.ws.rs:javax.ws.rs-api" implementation "com.github.jknack:handlebars" implementation "info.picocli:picocli" @@ -116,6 +117,7 @@ shadowJar { include(dependency('com.github.jknack:handlebars')) include(dependency('org.antlr:antlr4:4.5')) include(dependency('io.swagger.parser.v3:swagger-parser')) + include(dependency('io.swagger.parser.v3:swagger-parser-safe-url-resolver')) include(dependency('com.atlassian.commonmark:commonmark')) include(dependency('com.atlassian.commonmark:commonmark-ext-gfm-tables')) exclude('META-INF/*.SF') diff --git a/openapi-client-idl-plugin/build.gradle b/openapi-client-idl-plugin/build.gradle index bbca3ccd4..a2dc81837 100644 --- a/openapi-client-idl-plugin/build.gradle +++ b/openapi-client-idl-plugin/build.gradle @@ -40,6 +40,7 @@ dependencies { exclude group: "javax.validation", module: "validation-api" } implementation "io.swagger.core.v3:swagger-models" + implementation "io.swagger.parser.v3:swagger-parser-safe-url-resolver:${swaggerParserVersion}" implementation "javax.ws.rs:javax.ws.rs-api" implementation "com.github.jknack:handlebars" implementation "info.picocli:picocli" @@ -116,6 +117,7 @@ shadowJar { include(dependency('com.github.jknack:handlebars')) include(dependency('org.antlr:antlr4:4.5')) include(dependency('io.swagger.parser.v3:swagger-parser')) + include(dependency('io.swagger.parser.v3:swagger-parser-safe-url-resolver')) include(dependency('com.atlassian.commonmark:commonmark')) include(dependency('com.atlassian.commonmark:commonmark-ext-gfm-tables')) exclude('META-INF/*.SF') diff --git a/openapi-core/build.gradle b/openapi-core/build.gradle index c3961fd5f..62811178e 100644 --- a/openapi-core/build.gradle +++ b/openapi-core/build.gradle @@ -38,6 +38,7 @@ dependencies { exclude group: "javax.validation", module: "validation-api" } implementation "io.swagger.core.v3:swagger-models" + implementation "io.swagger.parser.v3:swagger-parser-safe-url-resolver:${swaggerParserVersion}" implementation "javax.ws.rs:javax.ws.rs-api" implementation "com.github.jknack:handlebars" implementation "info.picocli:picocli" @@ -115,7 +116,8 @@ shadowJar { dependencies { include(dependency('com.github.jknack:handlebars')) include(dependency('org.antlr:antlr4:4.5')) - include(dependency('io.swagger.parser.v3:swagger-parser:2.1.15')) + include(dependency('io.swagger.parser.v3:swagger-parser')) + include(dependency('io.swagger.parser.v3:swagger-parser-safe-url-resolver')) include(dependency('com.atlassian.commonmark:commonmark')) include(dependency('com.atlassian.commonmark:commonmark-ext-gfm-tables')) exclude('META-INF/*.SF') diff --git a/openapi-ls-extension/build.gradle b/openapi-ls-extension/build.gradle index ead1a09fd..550ed2f04 100644 --- a/openapi-ls-extension/build.gradle +++ b/openapi-ls-extension/build.gradle @@ -39,6 +39,7 @@ dependencies { exclude group: "javax.validation", module: "validation-api" } implementation "io.swagger.core.v3:swagger-models" + implementation "io.swagger.parser.v3:swagger-parser-safe-url-resolver:${swaggerParserVersion}" implementation "javax.ws.rs:javax.ws.rs-api" implementation "com.github.jknack:handlebars" implementation "info.picocli:picocli" @@ -118,6 +119,7 @@ shadowJar { include(dependency('com.github.jknack:handlebars')) include(dependency('org.antlr:antlr4:4.5')) include(dependency('io.swagger.parser.v3:swagger-parser')) + include(dependency('io.swagger.parser.v3:swagger-parser-safe-url-resolver')) include(dependency('com.atlassian.commonmark:commonmark')) include(dependency('com.atlassian.commonmark:commonmark-ext-gfm-tables')) exclude('META-INF/*.SF') diff --git a/openapi-validator/build.gradle b/openapi-validator/build.gradle index cbeaa02c7..124a7f79d 100644 --- a/openapi-validator/build.gradle +++ b/openapi-validator/build.gradle @@ -33,6 +33,7 @@ configurations { dependencies { implementation "io.swagger.core.v3:swagger-models" + implementation "io.swagger.parser.v3:swagger-parser-safe-url-resolver:${swaggerParserVersion}" implementation ("io.swagger.parser.v3:swagger-parser:${swaggerParserVersion}") { exclude group: "io.swagger", module: "swagger-compat-spec-parser" exclude group: "org.slf4j", module: "slf4j-ext" @@ -126,6 +127,7 @@ shadowJar { include(dependency('io.swagger.parser.v3:swagger-parser')) include(dependency('io.swagger.parser.v3:swagger-parser-core')) include(dependency('io.swagger.parser.v3:swagger-parser-v3')) + include(dependency('io.swagger.parser.v3:swagger-parser-safe-url-resolver')) exclude('META-INF/*.SF') exclude('META-INF/*.DSA') exclude('META-INF/*.RSA')