diff --git a/src/generateSpec.ts b/src/generateSpec.ts index 3ef1463..4ada516 100644 --- a/src/generateSpec.ts +++ b/src/generateSpec.ts @@ -346,6 +346,9 @@ function getParamSchema( return { items, type: 'array' } } if (explicitType) { + if (explicitType.name === 'integer') { + return { type: 'integer' } + } return { $ref: '#/components/schemas/' + explicitType.name } } if (typeof type === 'function') {