-
-
Notifications
You must be signed in to change notification settings - Fork 382
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug.
The AsyncAPI Generator does not validate template parameter types. When an invalid value is provided for a template parameter (e.g., a non-boolean value for a boolean parameter), the generator silently accepts it and proceeds with generation without any error or warning.
Expected behavior
When a template parameter is provided with an invalid type (for example, a non-boolean value for a boolean parameter like singleFile), the AsyncAPI Generator should fail and display a clear, descriptive validation error instead of proceeding with generation.
Screenshots
How to Reproduce
- I first ran the AsyncAPI Generator with an invalid template parameter value:
asyncapi generate fromTemplate asyncapi.yaml @asyncapi/html-template -o output -p singleFile=abc
- I observed that the generator started and completed successfully without showing any error or warning.
- I checked the generated output and confirmed that the invalid parameter value was silently ignored.
🖥️ Device Information [optional]
- Operating System (OS):Windows(WSL)
- Browser:N/A
- Browser Version:N/A
👀 Have you checked for similar open issues?
- I checked and didn't find similar issue
🏢 Have you read the Contributing Guidelines?
- I have read the Contributing Guidelines
Are you willing to work on this issue ?
Yes I am willing to submit a PR!
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working