I'm trying to use a class as a type coming from an external package. However while typescript resolves well the path, the package nestjs swagger is not able to do it :
const openapi = require("@nestjs/swagger");
const swagger_1 = require("@nestjs/swagger");
tslib_1.__decorate([
(0, common_1.Post)(),
openapi.ApiResponse({ status: 201, type: require("../../../../../../schema/api-partner/src/x-body.schema").XXX }),
tslib_1.__param(0, (0, common_1.Query)()),
tslib_1.__metadata("design:type", Function),
tslib_1.__metadata("design:paramtypes", [schema_api_partner_1.XXX]),
I don't know where to start to look at. I'm expecting the import to be
openapi.ApiResponse({ status: 201, type: [schema_api_partner_1.XXX] })
Is it an issue related to the package ?