Skip to content

Commit 113bb58

Browse files
committed
array $ref item schema info should have a non null name
1 parent 0ad630e commit 113bb58

File tree

1 file changed

+1
-1
lines changed
  • openapi-processor-core/src/main/groovy/com/github/hauner/openapi/core/converter

1 file changed

+1
-1
lines changed

openapi-processor-core/src/main/groovy/com/github/hauner/openapi/core/converter/SchemaInfo.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ class SchemaInfo implements MappingSchema {
112112
SchemaInfo buildForItem () {
113113
new SchemaInfo (
114114
path: path,
115-
name: schema.item.type,
115+
name: schema.item.ref ?: schema.item.type,
116116
schema: schema.item,
117117
resolver: resolver)
118118
}

0 commit comments

Comments
 (0)