add example code generator

This commit is contained in:
marys committed 2026-06-03 10:36:11 +02:00
1 parent b4ad1d2fd7
commit 03b5f3c2ea
17 files changed
+308 -56

No files matched your search

+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;
}
}
};