Skip to content

Commit

Permalink
[dart] fix use of isBasic condition
Browse files Browse the repository at this point in the history
  • Loading branch information
tiffmaelite committed May 16, 2023
1 parent 016507c commit 13efa49
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,12 @@ Class | Method | HTTP request | Description
- **API key parameter name**: {{{keyParamName}}}
- **Location**: {{#isKeyInQuery}}URL query string{{/isKeyInQuery}}{{#isKeyInHeader}}HTTP header{{/isKeyInHeader}}
{{/isApiKey}}
{{#isBasic}}- **Type**: HTTP basic authentication
{{/isBasic}}
{{#isBasicBasic}}- **Type**: HTTP basic authentication
{{/isBasicBasic}}
{{#isBasicBearer}}- **Type**: HTTP Bearer Token authentication{{#bearerFormat}} ({{{.}}}){{/bearerFormat}}
{{/isBasicBearer}}
{{#isHttpSignature}}- **Type**: HTTP signature authentication
{{/isHttpSignature}}
{{#isOAuth}}- **Type**: OAuth
- **Flow**: {{{flow}}}
- **Authorization URL**: {{{authorizationUrl}}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ Method | HTTP request | Description
import 'package:{{pubName}}/api.dart';
{{#hasAuthMethods}}
{{#authMethods}}
{{#isBasic}}
{{#isBasicBasic}}
// TODO Configure HTTP basic authorization: {{{name}}}
//defaultApiClient.getAuthentication<HttpBasicAuth>('{{{name}}}').username = 'YOUR_USERNAME'
//defaultApiClient.getAuthentication<HttpBasicAuth>('{{{name}}}').password = 'YOUR_PASSWORD';
{{/isBasic}}
{{/isBasicBasic}}
{{#isApiKey}}
// TODO Configure API key authorization: {{{name}}}
//defaultApiClient.getAuthentication<ApiKeyAuth>('{{{name}}}').apiKey = 'YOUR_API_KEY';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,9 @@ Class | Method | HTTP request | Description
{{#isBasicBearer}}
- **Type**: HTTP Bearer authentication
{{/isBasicBearer}}
{{#isHttpSignature}}
- **Type**: HTTP signature authentication
{{/isHttpSignature}}
{{/isBasic}}
{{#isOAuth}}- **Type**: OAuth
- **Flow**: {{{flow}}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -191,11 +191,11 @@ Authentication schemes defined for the API:

### bearer_test

- **Type**: HTTP basic authentication
- **Type**: HTTP Bearer Token authentication (JWT)

### http_signature_test

- **Type**: HTTP basic authentication
- **Type**: HTTP signature authentication


## Author
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,6 @@ test http signature authentication
### Example
```dart
import 'package:openapi/api.dart';
// TODO Configure HTTP basic authorization: http_signature_test
//defaultApiClient.getAuthentication<HttpBasicAuth>('http_signature_test').username = 'YOUR_USERNAME'
//defaultApiClient.getAuthentication<HttpBasicAuth>('http_signature_test').password = 'YOUR_PASSWORD';
final api = Openapi().getFakeApi();
final Pet pet = ; // Pet | Pet object that needs to be added to the store
Expand Down Expand Up @@ -635,9 +632,6 @@ Fake endpoint to test group parameters (optional)
### Example
```dart
import 'package:openapi/api.dart';
// TODO Configure HTTP basic authorization: bearer_test
//defaultApiClient.getAuthentication<HttpBasicAuth>('bearer_test').username = 'YOUR_USERNAME'
//defaultApiClient.getAuthentication<HttpBasicAuth>('bearer_test').password = 'YOUR_PASSWORD';
final api = Openapi().getFakeApi();
final int requiredStringGroup = 56; // int | Required String in group parameters
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -190,11 +190,11 @@ Authentication schemes defined for the API:

### bearer_test

- **Type**: HTTP basic authentication
- **Type**: HTTP Bearer Token authentication (JWT)

### http_signature_test

- **Type**: HTTP basic authentication
- **Type**: HTTP signature authentication


## Author
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,6 @@ test http signature authentication
### Example
```dart
import 'package:openapi/api.dart';
// TODO Configure HTTP basic authorization: http_signature_test
//defaultApiClient.getAuthentication<HttpBasicAuth>('http_signature_test').username = 'YOUR_USERNAME'
//defaultApiClient.getAuthentication<HttpBasicAuth>('http_signature_test').password = 'YOUR_PASSWORD';
final api = Openapi().getFakeApi();
final Pet pet = ; // Pet | Pet object that needs to be added to the store
Expand Down Expand Up @@ -635,9 +632,6 @@ Fake endpoint to test group parameters (optional)
### Example
```dart
import 'package:openapi/api.dart';
// TODO Configure HTTP basic authorization: bearer_test
//defaultApiClient.getAuthentication<HttpBasicAuth>('bearer_test').username = 'YOUR_USERNAME'
//defaultApiClient.getAuthentication<HttpBasicAuth>('bearer_test').password = 'YOUR_PASSWORD';
final api = Openapi().getFakeApi();
final int requiredStringGroup = 56; // int | Required String in group parameters
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@ Authentication schemes defined for the API:

### http_signature_test

- **Type**: HTTP signature authentication


## Author
Expand Down

0 comments on commit 13efa49

Please sign in to comment.