Skip to content

Missing clientId in application.yml causing an error #293

@VaishnaviNandakumar

Description

@VaishnaviNandakumar

Describe the bug

When I first tried to clone and run the template I was stuck at the following issue.
Caused by: java.lang.IllegalArgumentException: Could not resolve placeholder 'mqtt.broker.clientId' in value "${mqtt.broker.clientId}"
This is caused due to a missing property in the application.yml file.
I wanted to know if there was a specific reason for excluding it. If there isn't, I would like to pick this issue up and contribute.

How to Reproduce

  • asyncapi generate fromTemplate asyncapi.yaml @asyncapi/java-spring-template -o spring-output-test
  • Run application

Expected behavior

Spring boot application will not start.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingreleased

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions