asyncapi / asyncapi/generator

Pass debug flag into template (Nunjuck and filters)

Open
#369 12 comments 0 reactions 0 assignees View on GitHub
enhancement keep-open
Dominant language
JavaScript
Stars
1.1k
Forks
397
Avg merge
1d 7h
Merged PRs (30d)
25

Description

#### Reason/Context
In the #363 debug flag was extended to provide more information, this is nice feature which could be pleasant in templates.
Pass debug flag in the way that it will be available in Nunjuck and so in filters.

#### Description
Maybe it's make sense to reserve parameter like `generator-debug` which will be `true` if you run generator with `--debug`. Not just `debug` because parameter with such name could be useful for template itself.

Contributor guide

Open the contributing guide

Research direction

The issue names the generator's --debug entry point, Nunjuck template context, and filters, but no files or tests. Trace how --debug reaches template rendering and filter context, then verify the chosen exposed parameter is available in both templates and filters.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
32/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.