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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (schema.getAllOf() == null) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
for (Object item : schema.getAllOf()) {
|
for (Object item : schema.getAllOf()) {
|
||||||
if (!(item instanceof Schema)) {
|
if (!(item instanceof Schema)) {
|
||||||
throw new RuntimeException("Error! allOf schema is not of the type Schema: " + item);
|
throw new RuntimeException("Error! allOf schema is not of the type Schema: " + item);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user