UNPKG

@asyncapi/html-template

Version:

HTML template for the AsyncAPI generator.

10 lines (9 loc) 284 B
/** * Changes the version of the specification by the `version` parameter. */ module.exports = { 'generate:before': ({ asyncapi, templateParams = {} }) => { const version = templateParams.version || asyncapi.info().version(); asyncapi._json.info.version = version; } };