Skip to content

Commit

Permalink
fix missing items with inferSchemaType set to 'false'
Browse files Browse the repository at this point in the history
  • Loading branch information
frantuma committed Oct 21, 2022
1 parent 9fee155 commit 899f5e2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2827,7 +2827,7 @@ at the moment path passed as string (basePath) from upper components can be both
schema.setType(type);
}
}
if ("array".equals(schema.getType()) && !(schema instanceof ArraySchema && ((ArraySchema) schema).getItems() != null)) {
if ("array".equals(schema.getType()) && schema.getItems() == null) {
result.missing(location, "items");
}
}
Expand Down

0 comments on commit 899f5e2

Please sign in to comment.