add example code generator
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
module.exports = {
|
||||
'generate:before': ({ asyncapi, templateParams = {} }) => {
|
||||
// Modify the AsyncAPI document before generation
|
||||
if (templateParams.version) {
|
||||
asyncapi._json.info.version = templateParams.version;
|
||||
}
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user