9 lines
242 B
JavaScript
9 lines
242 B
JavaScript
module.exports = {
|
|
'generate:before': ({ asyncapi, templateParams = {} }) => {
|
|
// Modify the AsyncAPI document before generation
|
|
if (templateParams.version) {
|
|
asyncapi._json.info.version = templateParams.version;
|
|
}
|
|
}
|
|
};
|