Skip to content

Commit e1dd73b

Browse files
committed
fix(generator): set type array correctly
1 parent 6cfc230 commit e1dd73b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/serverless-openapi/src/lib/generator.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -393,6 +393,7 @@ export class Generator {
393393
'application/json': {
394394
schema: {
395395
items: {
396+
type: 'array',
396397
$ref: '#/components/schemas/' + name,
397398
},
398399
},
@@ -407,6 +408,7 @@ export class Generator {
407408
'application/json': {
408409
schema: {
409410
items: schemaJSON.schema.items,
411+
type: 'array',
410412
},
411413
},
412414
};

0 commit comments

Comments
 (0)