Skip to content

Commit d6d915a

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

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -392,8 +392,8 @@ export class Generator {
392392
responses[code]['content'] = {
393393
'application/json': {
394394
schema: {
395+
type: 'array',
395396
items: {
396-
type: 'array',
397397
$ref: '#/components/schemas/' + name,
398398
},
399399
},
@@ -407,8 +407,8 @@ export class Generator {
407407
responses[code]['content'] = {
408408
'application/json': {
409409
schema: {
410-
items: schemaJSON.schema.items,
411410
type: 'array',
411+
items: schemaJSON.schema.items,
412412
},
413413
},
414414
};

0 commit comments

Comments
 (0)