Skip to content

Commit

Permalink
Only needed for client implementation.
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon Pilkington committed Sep 1, 2023
1 parent 9f8dbb6 commit bfe37f4
Showing 1 changed file with 10 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -613,9 +613,11 @@ extension ModelClientDelegate {
httpClientConfiguration: HttpClientConfiguration,
codeGenerator: ServiceModelCodeGenerator<ModelType, TargetSupportType>,
entityType: ClientEntityType) {
fileBuilder.appendLine("""
public let clientName = "\(baseName)Client"
""")
if entityType.isClientImplementation {
fileBuilder.appendLine("""
public let clientName = "\(baseName)Client"
""")
}

if entityType.isClientImplementation || entityType.isGenerator {
fileBuilder.appendLine("""
Expand Down Expand Up @@ -716,9 +718,11 @@ extension ModelClientDelegate {
codeGenerator: ServiceModelCodeGenerator<ModelType, TargetSupportType>,
targetsAPIGateway: Bool,
entityType: ClientEntityType) {
fileBuilder.appendLine("""
public let clientName = "\(baseName)Client"
""")
if entityType.isClientImplementation {
fileBuilder.appendLine("""
public let clientName = "\(baseName)Client"
""")
}

if entityType.isClientImplementation || entityType.isGenerator {
fileBuilder.appendLine("""
Expand Down

0 comments on commit bfe37f4

Please sign in to comment.