/** * Please match the config key to the directory under services. * This is required for the transform to work */ const customGenerator = require('./scripts/swagger-custom-generator.js') module.exports = { pm: { output: 'src/services/pm/index.tsx', file: 'src/services/pm/swagger.json', transformer: 'scripts/swagger-transform.js', customImport: `import { getConfig } from "../config";`, customProps: { base: `{getConfig("pm/api/v1")}` } } }