mirror of
https://github.com/valitydev/openapi-generator.git
synced 2024-11-07 02:55:19 +00:00
added null check for item refs
This commit is contained in:
parent
6df5008310
commit
9227d7b046
@ -135,10 +135,12 @@ object CoreUtils {
|
||||
model._2.properties.foreach(prop => {
|
||||
val subObject = prop._2
|
||||
if (containers.contains(subObject.getType)) {
|
||||
if (subObject.items.ref != null)
|
||||
subNames += subObject.items.ref
|
||||
else
|
||||
subNames += subObject.items.getType
|
||||
if (subObject.items != null) {
|
||||
if (subObject.items.ref != null)
|
||||
subNames += subObject.items.ref
|
||||
else
|
||||
subNames += subObject.items.getType
|
||||
}
|
||||
} else subNames += subObject.getType
|
||||
})
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user