ut-tools
Version:
Build and Release management automation package.
13 lines • 543 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.getCopyOfSchema = exports.latestVersion = void 0;
const tslib_1 = require("tslib");
const specs_1 = (0, tslib_1.__importDefault)(require("@asyncapi/specs"));
const specs = specs_1.default.schemas;
const versions = Object.keys(specs);
exports.latestVersion = versions[versions.length - 1];
function getCopyOfSchema(version) {
return JSON.parse(JSON.stringify(specs[version]));
}
exports.getCopyOfSchema = getCopyOfSchema;
//# sourceMappingURL=specs.js.map