Skip to content

Commit b3005f6

Browse files
committed
use type
1 parent 174a616 commit b3005f6

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/main/groovy/com/github/hauner/openapi/spring/converter/schema/SchemaInfo.groovy

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ package com.github.hauner.openapi.spring.converter.schema
1818

1919
import com.github.hauner.openapi.spring.converter.mapping.MappingSchema
2020
import groovy.transform.stc.ClosureParams
21+
import io.swagger.v3.oas.models.media.ArraySchema
2122
import io.swagger.v3.oas.models.media.Schema
2223

2324
/**
@@ -96,8 +97,8 @@ class SchemaInfo implements MappingSchema {
9697
SchemaInfo buildForItem () {
9798
new SchemaInfo (
9899
path: path,
99-
name: schema.items.type,
100-
schema: schema.items,
100+
name: (schema as ArraySchema).items.type,
101+
schema: (schema as ArraySchema).items,
101102
resolver: resolver)
102103
}
103104

0 commit comments

Comments
 (0)