Skip to content

Commit

Permalink
Fixed error in ApiConfig.init for templates.
Browse files Browse the repository at this point in the history
  • Loading branch information
pme123 committed Dec 31, 2024
1 parent 8ac86b5 commit 31bdebc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions 03-api/src/main/scala/camundala/api/ApiConfig.scala
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ case class ApiConfig(
.map(_.group)
.distinct

lazy val init: Unit = projectsConfig.init(tempGitDir)

def withTenantId(tenantId: String): ApiConfig =
copy(tenantId = Some(tenantId))

Expand Down
2 changes: 1 addition & 1 deletion 03-api/src/main/scala/camundala/api/ApiCreator.scala
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ trait ApiCreator extends PostmanApiCreator, TapirApiCreator, App:

def document(apis: CApi*): Unit =
val apiDoc = ApiDoc(apis.toList)
apiConfig.projectsConfig.init // pulls all dependencies.
apiConfig.init // pulls all dependencies.
ModelerTemplGenerator(version, apiConfig.modelerTemplateConfig, Some(projectName)).generate(
collectApis(apiDoc)
)
Expand Down

0 comments on commit 31bdebc

Please sign in to comment.