-
-
Notifications
You must be signed in to change notification settings - Fork 238
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Java-spring templates have undefined members #42
Comments
Hi @RobertDiebels thank you for reporting this, I'll take a look ASAP |
@rmelian Happy to help. I can confirm that the expected output is generated if the handle-bars if-statement for the private members in MqttConfig is removed. As for the AqmpConfig partial, changing the if-statment condition to check for I altered the partials in my local installation of the generator to verify. |
do you want to submit a PR? |
@rmelian I'll submit a PR in an hour or 2-3 if that's ok. |
Done. |
hi @RobertDiebels can you share the asyncapi definition you are using |
fix(undefined-vars): [ISSUE-42] - Resolves issue #42.
I just approved your PR @RobertDiebels great work |
Both the MqttConfig and AmqpConfig partial template files will currently result in a compiler error when a spec contains a
topic
object with apublish
property.In the MqttConfig template the setDefaultTopic function will be called with an undefined variable. Since the template only creates the corresponding private members if the topic is of type subscribe.
The same applies to the AmqpConfig template file where the setExchangeName function will be called with an undefined variable. Since the template only creates the corresponding private members if the topic is of type subscribe.
The text was updated successfully, but these errors were encountered: