forked from loafle/openapi-generator-original
better npe in processUseAllOfRefAsParent (openapi normalizer) (#15224)
This commit is contained in:
parent
c5a8fafc3d
commit
9ad695d52c
@ -514,6 +514,10 @@ public class OpenAPINormalizer {
|
||||
return;
|
||||
}
|
||||
|
||||
if (schema.getAllOf() == null) {
|
||||
return;
|
||||
}
|
||||
|
||||
for (Object item : schema.getAllOf()) {
|
||||
if (!(item instanceof Schema)) {
|
||||
throw new RuntimeException("Error! allOf schema is not of the type Schema: " + item);
|
||||
|
Loading…
x
Reference in New Issue
Block a user