Skip to content

Commit 24be5ec

Browse files
committed
Update dependencies
1 parent 8d9087e commit 24be5ec

File tree

2 files changed

+10
-14
lines changed

2 files changed

+10
-14
lines changed

pom.xml

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -36,32 +36,25 @@
3636
<maven.compiler.source>1.8</maven.compiler.source>
3737
<maven.compiler.target>1.8</maven.compiler.target>
3838
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
39-
<junit.version>5.3.1</junit.version>
39+
<junit.version>5.6.1</junit.version>
4040
</properties>
4141

4242
<dependencies>
4343
<dependency>
4444
<groupId>io.swagger</groupId>
4545
<artifactId>swagger-core</artifactId>
46-
<version>1.5.21</version>
46+
<version>1.6.0</version>
4747
</dependency>
4848

4949
<dependency>
5050
<groupId>com.github.java-json-tools</groupId>
5151
<artifactId>json-schema-validator</artifactId>
52-
<version>2.2.10</version>
52+
<version>2.2.13</version>
5353
</dependency>
5454

5555
<dependency>
5656
<groupId>org.junit.jupiter</groupId>
57-
<artifactId>junit-jupiter-api</artifactId>
58-
<version>${junit.version}</version>
59-
<scope>test</scope>
60-
</dependency>
61-
62-
<dependency>
63-
<groupId>org.junit.jupiter</groupId>
64-
<artifactId>junit-jupiter-engine</artifactId>
57+
<artifactId>junit-jupiter</artifactId>
6558
<version>${junit.version}</version>
6659
<scope>test</scope>
6760
</dependency>
@@ -78,7 +71,7 @@
7871
<plugins>
7972
<plugin>
8073
<artifactId>maven-surefire-plugin</artifactId>
81-
<version>2.22.1</version>
74+
<version>2.22.2</version>
8275
</plugin>
8376
<plugin>
8477
<groupId>org.sonatype.plugins</groupId>
@@ -102,7 +95,7 @@
10295
<plugin>
10396
<groupId>org.apache.maven.plugins</groupId>
10497
<artifactId>maven-source-plugin</artifactId>
105-
<version>3.0.1</version>
98+
<version>3.2.1</version>
10699
<executions>
107100
<execution>
108101
<id>attach-sources</id>
@@ -115,7 +108,7 @@
115108
<plugin>
116109
<groupId>org.apache.maven.plugins</groupId>
117110
<artifactId>maven-javadoc-plugin</artifactId>
118-
<version>3.0.1</version>
111+
<version>3.2.0</version>
119112
<executions>
120113
<execution>
121114
<id>attach-javadocs</id>

src/main/java/com/github/bjansen/ssv/SwaggerValidator.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,9 @@ public static SwaggerValidator forYamlSchema(Reader swaggerSpec) throws IOExcept
7777
* @throws IOException if the payload is not a valid JSON object
7878
*/
7979
public ProcessingReport validate(String jsonPayload, String definitionPointer) throws ProcessingException, IOException {
80+
if (jsonPayload == null || jsonPayload.equals("")) {
81+
throw new IOException("Payload is empty");
82+
}
8083
return validate(jsonPayload, definitionPointer, Json.mapper());
8184
}
8285

0 commit comments

Comments
 (0)