Skip to content

Commit d647733

Browse files
committed
Regenerate Petstore source code.
1 parent 5493205 commit d647733

8 files changed

Lines changed: 2 additions & 18 deletions

File tree

samples/openapi3/client/petstore/dart2/petstore_client_lib/lib/auth/api_key_auth.dart

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,7 @@ class ApiKeyAuth implements Authentication {
2121

2222
@override
2323
void applyToParams(List<QueryParam> queryParams, Map<String, String> headerParams) {
24-
apiKeyPrefix = apiKeyPrefix.trim();
25-
26-
final paramValue = (apiKeyPrefix.isEmpty ? apiKey : '$apiKeyPrefix $apiKey').trim();
24+
final paramValue = apiKeyPrefix.isEmpty ? apiKey : '$apiKeyPrefix $apiKey';
2725

2826
if (paramValue.isNotEmpty) {
2927
if (location == 'query') {

samples/openapi3/client/petstore/dart2/petstore_client_lib/lib/auth/http_basic_auth.dart

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,6 @@ class HttpBasicAuth implements Authentication {
1818

1919
@override
2020
void applyToParams(List<QueryParam> queryParams, Map<String, String> headerParams) {
21-
username = username.trim();
22-
password = password.trim();
23-
2421
if (username.isNotEmpty && password.isNotEmpty) {
2522
final credentials = '$username:$password';
2623
headerParams['Authorization'] = 'Basic ${base64.encode(utf8.encode(credentials))}';

samples/openapi3/client/petstore/dart2/petstore_client_lib/lib/auth/http_bearer_auth.dart

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,6 @@ class HttpBearerAuth implements Authentication {
4242
return;
4343
}
4444

45-
accessToken = accessToken.trim();
46-
4745
if (accessToken.isNotEmpty) {
4846
headerParams['Authorization'] = 'Bearer $accessToken';
4947
}

samples/openapi3/client/petstore/dart2/petstore_client_lib/lib/auth/oauth.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ class OAuth implements Authentication {
1717

1818
@override
1919
void applyToParams(List<QueryParam> queryParams, Map<String, String> headerParams) {
20-
accessToken = accessToken.trim();
2120
if (accessToken.isNotEmpty) {
2221
headerParams['Authorization'] = 'Bearer $accessToken';
2322
}

samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/lib/auth/api_key_auth.dart

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,7 @@ class ApiKeyAuth implements Authentication {
2121

2222
@override
2323
void applyToParams(List<QueryParam> queryParams, Map<String, String> headerParams) {
24-
apiKeyPrefix = apiKeyPrefix.trim();
25-
26-
final paramValue = (apiKeyPrefix.isEmpty ? apiKey : '$apiKeyPrefix $apiKey').trim();
24+
final paramValue = apiKeyPrefix.isEmpty ? apiKey : '$apiKeyPrefix $apiKey';
2725

2826
if (paramValue.isNotEmpty) {
2927
if (location == 'query') {

samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/lib/auth/http_basic_auth.dart

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,6 @@ class HttpBasicAuth implements Authentication {
1818

1919
@override
2020
void applyToParams(List<QueryParam> queryParams, Map<String, String> headerParams) {
21-
username = username.trim();
22-
password = password.trim();
23-
2421
if (username.isNotEmpty && password.isNotEmpty) {
2522
final credentials = '$username:$password';
2623
headerParams['Authorization'] = 'Basic ${base64.encode(utf8.encode(credentials))}';

samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/lib/auth/http_bearer_auth.dart

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,6 @@ class HttpBearerAuth implements Authentication {
4242
return;
4343
}
4444

45-
accessToken = accessToken.trim();
46-
4745
if (accessToken.isNotEmpty) {
4846
headerParams['Authorization'] = 'Bearer $accessToken';
4947
}

samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/lib/auth/oauth.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ class OAuth implements Authentication {
1717

1818
@override
1919
void applyToParams(List<QueryParam> queryParams, Map<String, String> headerParams) {
20-
accessToken = accessToken.trim();
2120
if (accessToken.isNotEmpty) {
2221
headerParams['Authorization'] = 'Bearer $accessToken';
2322
}

0 commit comments

Comments
 (0)