Skip to content

Commit

Permalink
Fix extended client path (#135)
Browse files Browse the repository at this point in the history
  • Loading branch information
cjbooms authored May 19, 2022
1 parent b22bca6 commit c0b5fac
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import com.cjbooms.fabrikt.model.SimpleFile
import com.cjbooms.fabrikt.model.SourceApi
import com.cjbooms.fabrikt.util.KaizenParserExtensions.routeToPaths
import com.fasterxml.jackson.databind.ObjectMapper
import com.github.javaparser.utils.CodeGenerationUtils
import com.reprezen.kaizen.oasparser.model3.Operation
import com.squareup.kotlinpoet.AnnotationSpec
import com.squareup.kotlinpoet.CodeBlock
Expand Down Expand Up @@ -129,7 +130,9 @@ class OkHttpEnhancedClientGenerator(
}

fun generateLibrary(options: Set<ClientCodeGenOptionType>): Collection<GeneratedFile> {
val clientDir = srcPath.resolve("client")
val clientDir = srcPath
.resolve(CodeGenerationUtils.packageToPath(packages.base))
.resolve("client")
return listOfNotNull(
applyTemplateIfOptionIsEnabled(options, ClientCodeGenOptionType.RESILIENCE4J) {
HandlebarsTemplates.applyTemplate(
Expand Down

0 comments on commit c0b5fac

Please sign in to comment.