@autorest/openapi-to-cadl
Version:
Autorest plugin to scaffold a Typespec definition from an OpenAPI document
11 lines • 491 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.getNamespace = void 0;
const options_1 = require("../options");
function getNamespace(program) {
let { namespace } = (0, options_1.getOptions)();
namespace = namespace !== null && namespace !== void 0 ? namespace : program.serviceInformation.name.replace(/ /g, "").replace(/-/g, "");
return `namespace ${namespace};`;
}
exports.getNamespace = getNamespace;
//# sourceMappingURL=namespace.js.map