Your IP : 216.73.216.43


Current Path : /home/deltalab/PMS/logistic-backend/node_modules/@nestjs/swagger/dist/plugin/
Upload File :
Current File : //home/deltalab/PMS/logistic-backend/node_modules/@nestjs/swagger/dist/plugin/merge-options.js

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.mergePluginOptions = void 0;
const shared_utils_1 = require("@nestjs/common/utils/shared.utils");
const defaultOptions = {
    dtoFileNameSuffix: ['.dto.ts', '.entity.ts'],
    controllerFileNameSuffix: ['.controller.ts'],
    classValidatorShim: true,
    dtoKeyOfComment: 'description',
    controllerKeyOfComment: 'description',
    introspectComments: false
};
const mergePluginOptions = (options = {}) => {
    if ((0, shared_utils_1.isString)(options.dtoFileNameSuffix)) {
        options.dtoFileNameSuffix = [options.dtoFileNameSuffix];
    }
    if ((0, shared_utils_1.isString)(options.controllerFileNameSuffix)) {
        options.controllerFileNameSuffix = [options.controllerFileNameSuffix];
    }
    return Object.assign(Object.assign({}, defaultOptions), options);
};
exports.mergePluginOptions = mergePluginOptions;