[dart] fix use of isBasic condition (#15523)

This commit is contained in:
Tiffany Marrel
2023-05-22 10:07:37 +02:00
committed by GitHub
parent ad5cc827f0
commit 216e2c45ff
8 changed files with 16 additions and 20 deletions

View File

@@ -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}}}

View File

@@ -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';

View File

@@ -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}}}

View File

@@ -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

View File

@@ -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
@@ -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

View File

@@ -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

View File

@@ -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
@@ -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

View File

@@ -188,6 +188,7 @@ Authentication schemes defined for the API:
### http_signature_test
- **Type**: HTTP signature authentication
## Author