add example code generator

This commit is contained in:
marys
2026-06-03 10:36:11 +02:00
parent b4ad1d2fd7
commit 03b5f3c2ea
17 changed files with 308 additions and 56 deletions
+8
View File
@@ -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;
}
}
};