We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 02eb8c0 commit da9ab86Copy full SHA for da9ab86
openapi-processor-core/src/main/kotlin/io/openapiprocessor/core/converter/SchemaInfo.kt
@@ -255,13 +255,18 @@ class SchemaInfo(
255
* @return a new {@link SchemaInfo}
256
*/
257
fun buildForItem(): SchemaInfo {
258
+ val name = if (schema?.getItem()?.getRef() != null) {
259
+ getRefName(schema.getItem())
260
+ } else {
261
+ schema?.getItem()?.getType()
262
+ }
263
+
264
return SchemaInfo(
265
path = path,
- name = schema?.getItem()?.getRef() ?: schema?.getItem()?.getType()!!,
266
+ name = name!!,
267
schema = schema?.getItem(),
268
resolver = resolver
269
)
-
270
}
271
272
override fun isPrimitive(): Boolean {
0 commit comments