Skip to content

Commit 899f5e2

Browse files
committed
fix missing items with inferSchemaType set to 'false'
1 parent 9fee155 commit 899f5e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/swagger-parser-v3/src/main/java/io/swagger/v3/parser/util/OpenAPIDeserializer.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -2827,7 +2827,7 @@ at the moment path passed as string (basePath) from upper components can be both
28272827
schema.setType(type);
28282828
}
28292829
}
2830-
if ("array".equals(schema.getType()) && !(schema instanceof ArraySchema && ((ArraySchema) schema).getItems() != null)) {
2830+
if ("array".equals(schema.getType()) && schema.getItems() == null) {
28312831
result.missing(location, "items");
28322832
}
28332833
}

0 commit comments

Comments
 (0)