Skip to content

Commit 4affa19

Browse files
committed
refs #2126 - change safe-url-resolver package
1 parent 1bc2e79 commit 4affa19

File tree

10 files changed

+23
-23
lines changed

10 files changed

+23
-23
lines changed

modules/swagger-parser-safe-url-resolver/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,19 +23,19 @@ This behavior can also be customized with the allowlist and denylist in the cons
2323
Add the following to you `pom.xml` file under `dependencies`
2424
```xml
2525
<dependency>
26-
<groupId>io.swagger.parser.v3</groupId>
26+
<groupId>io.swagger</groupId>
2727
<artifactId>swagger-parser-safe-url-resolver</artifactId>
2828
// version of swagger-parser being used
29-
<version>2.1.14</version>
29+
<version>${swagger-parser-v1-version}</version>
3030
</dependency>
3131
```
3232

3333
## Example usage
3434

3535
```java
36-
import io.swagger.v3.parser.urlresolver.PermittedUrlsChecker;
37-
import io.swagger.v3.parser.urlresolver.exceptions.HostDeniedException;
38-
import io.swagger.v3.parser.urlresolver.models.ResolvedUrl;
36+
import io.swagger.parser.urlresolver.PermittedUrlsChecker;
37+
import io.swagger.parser.urlresolver.exceptions.HostDeniedException;
38+
import io.swagger.parser.urlresolver.models.ResolvedUrl;
3939

4040
import java.util.List;
4141

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
package io.swagger.v3.parser.urlresolver;
1+
package io.swagger.parser.urlresolver;
22

3-
import io.swagger.v3.parser.urlresolver.exceptions.HostDeniedException;
4-
import io.swagger.v3.parser.urlresolver.matchers.UrlPatternMatcher;
5-
import io.swagger.v3.parser.urlresolver.models.ResolvedUrl;
6-
import io.swagger.v3.parser.urlresolver.utils.NetUtils;
3+
import io.swagger.parser.urlresolver.exceptions.HostDeniedException;
4+
import io.swagger.parser.urlresolver.matchers.UrlPatternMatcher;
5+
import io.swagger.parser.urlresolver.models.ResolvedUrl;
6+
import io.swagger.parser.urlresolver.utils.NetUtils;
77

88
import java.net.InetAddress;
99
import java.net.MalformedURLException;
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package io.swagger.v3.parser.urlresolver.exceptions;
1+
package io.swagger.parser.urlresolver.exceptions;
22

33
public class HostDeniedException extends Exception {
44
public HostDeniedException(String message) {
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
package io.swagger.v3.parser.urlresolver.matchers;
1+
package io.swagger.parser.urlresolver.matchers;
22

3-
import io.swagger.v3.parser.urlresolver.utils.NetUtils;
3+
import io.swagger.parser.urlresolver.utils.NetUtils;
44

55
import java.net.IDN;
66
import java.net.MalformedURLException;
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package io.swagger.v3.parser.urlresolver.models;
1+
package io.swagger.parser.urlresolver.models;
22

33
public class ResolvedUrl {
44

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package io.swagger.v3.parser.urlresolver.utils;
1+
package io.swagger.parser.urlresolver.utils;
22

33
import java.net.Inet4Address;
44
import java.net.Inet6Address;
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
package io.swagger.v3.parser.urlresolver;
1+
package io.swagger.parser.urlresolver;
22

3-
import io.swagger.v3.parser.urlresolver.exceptions.HostDeniedException;
4-
import io.swagger.v3.parser.urlresolver.models.ResolvedUrl;
5-
import io.swagger.v3.parser.urlresolver.utils.NetUtils;
3+
import io.swagger.parser.urlresolver.exceptions.HostDeniedException;
4+
import io.swagger.parser.urlresolver.models.ResolvedUrl;
5+
import io.swagger.parser.urlresolver.utils.NetUtils;
66
import mockit.*;
77
import org.testng.Assert;
88
import org.testng.annotations.BeforeMethod;
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package io.swagger.v3.parser.urlresolver.matchers;
1+
package io.swagger.parser.urlresolver.matchers;
22

33
import org.testng.Assert;
44
import org.testng.annotations.Test;
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package io.swagger.v3.parser.urlresolver.utils;
1+
package io.swagger.parser.urlresolver.utils;
22

33
import org.testng.Assert;
44
import org.testng.annotations.Test;

modules/swagger-parser/src/main/java/io/swagger/parser/ResolverCache.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
import io.swagger.models.refs.RefFormat;
1515
import io.swagger.models.refs.RefType;
1616
import io.swagger.parser.util.*;
17-
import io.swagger.v3.parser.urlresolver.PermittedUrlsChecker;
18-
import io.swagger.v3.parser.urlresolver.exceptions.HostDeniedException;
17+
import io.swagger.parser.urlresolver.PermittedUrlsChecker;
18+
import io.swagger.parser.urlresolver.exceptions.HostDeniedException;
1919
import org.apache.commons.lang3.StringUtils;
2020

2121
import java.io.File;

0 commit comments

Comments
 (0)