diff --git a/openapi-cli/src/test/resources/expected_gen/petstore_catch_all_path_client.bal b/openapi-cli/src/test/resources/expected_gen/petstore_catch_all_path_client.bal index 7367bd17f..9111a7ccf 100644 --- a/openapi-cli/src/test/resources/expected_gen/petstore_catch_all_path_client.bal +++ b/openapi-cli/src/test/resources/expected_gen/petstore_catch_all_path_client.bal @@ -38,7 +38,7 @@ public isolated client class Client { if config.auth is ApiKeysConfig { self.apiKeyConfig = (config.auth).cloneReadOnly(); } else { - config.auth = config.auth; + httpClientConfig.auth = config.auth; self.apiKeyConfig = (); } http:Client httpEp = check new (serviceUrl, httpClientConfig); diff --git a/openapi-cli/src/test/resources/expected_gen/petstore_client_swagger.bal b/openapi-cli/src/test/resources/expected_gen/petstore_client_swagger.bal index 758c64281..94a4dd4bb 100644 --- a/openapi-cli/src/test/resources/expected_gen/petstore_client_swagger.bal +++ b/openapi-cli/src/test/resources/expected_gen/petstore_client_swagger.bal @@ -39,7 +39,7 @@ public isolated client class Client { if config.auth is ApiKeysConfig { self.apiKeyConfig = (config.auth).cloneReadOnly(); } else { - config.auth = config.auth; + httpClientConfig.auth = config.auth; self.apiKeyConfig = (); } http:Client httpEp = check new (serviceUrl, httpClientConfig); diff --git a/openapi-cli/src/test/resources/generators/client/ballerina/combination_of_apikey_and_http_oauth.bal b/openapi-cli/src/test/resources/generators/client/ballerina/combination_of_apikey_and_http_oauth.bal index 01f653ddf..254cbf75e 100644 --- a/openapi-cli/src/test/resources/generators/client/ballerina/combination_of_apikey_and_http_oauth.bal +++ b/openapi-cli/src/test/resources/generators/client/ballerina/combination_of_apikey_and_http_oauth.bal @@ -34,7 +34,7 @@ public isolated client class Client { if config.auth is ApiKeysConfig { self.apiKeyConfig = (config.auth).cloneReadOnly(); } else { - config.auth = config.auth; + httpClientConfig.auth = config.auth; self.apiKeyConfig = (); } http:Client httpEp = check new (serviceUrl, httpClientConfig);