Skip to content

Commit a51b3cf

Browse files
committed
Merge pull request #72 from swagger-api/issue-50
added type check
2 parents 2aaac12 + b8c8bf3 commit a51b3cf

File tree

2 files changed

+1
-30
lines changed

2 files changed

+1
-30
lines changed

pom.xml

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,6 @@
4545
<plugin>
4646
<artifactId>maven-failsafe-plugin</artifactId>
4747
<version>2.19</version>
48-
<executions>
49-
<execution>
50-
<goals>
51-
<goal>integration-test</goal>
52-
<goal>verify</goal>
53-
</goals>
54-
</execution>
55-
</executions>
5648
</plugin>
5749
<plugin>
5850
<groupId>org.eclipse.jetty</groupId>
@@ -69,26 +61,6 @@
6961
<port>${jetty.http.port}</port>
7062
</httpConnector>
7163
</configuration>
72-
<executions>
73-
<execution>
74-
<id>start-jetty</id>
75-
<phase>pre-integration-test</phase>
76-
<goals>
77-
<goal>run</goal>
78-
</goals>
79-
<configuration>
80-
<scanIntervalSeconds>0</scanIntervalSeconds>
81-
<daemon>true</daemon>
82-
</configuration>
83-
</execution>
84-
<execution>
85-
<id>stop-jetty</id>
86-
<phase>post-integration-test</phase>
87-
<goals>
88-
<goal>stop</goal>
89-
</goals>
90-
</execution>
91-
</executions>
9264
</plugin>
9365
</plugins>
9466
</build>

src/main/java/io/swagger/validator/models/SchemaValidationError.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,9 @@ public SchemaValidationError(JsonNode node) {
6161
}
6262

6363
prop = node.get("required");
64-
if (prop != null) {
64+
if (prop != null && prop.isArray()) {
6565
ArrayNode an = (ArrayNode) prop;
6666
}
67-
6867
}
6968

7069
public String getLevel() {

0 commit comments

Comments
 (0)