Skip to content

Commit ace033e

Browse files
committed
Fix build issue
1 parent 1cdd0c5 commit ace033e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/generator/src/generate-schema.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ export function getTypeFromSchema(
151151

152152
// Handle array
153153
if (actualType === 'array') {
154-
const items = schemaObj.items
154+
const items = 'items' in schemaObj ? schemaObj.items : undefined
155155
if (items) {
156156
const itemType = getTypeFromSchema(items, document, options)
157157
return {

0 commit comments

Comments
 (0)