Skip to content
This repository was archived by the owner on Mar 16, 2025. It is now read-only.

Commit 2991d2e

Browse files
committed
array $ref item schema info should have a non null name
1 parent 3bd99cb commit 2991d2e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)