mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-07-06 07:31:01 +00:00
update samples
This commit is contained in:
parent
d40cbf9dbd
commit
92d60b684a
@ -34,4 +34,7 @@ CONFIG OPTIONS for dart-jaguar
|
|||||||
supportDart2
|
supportDart2
|
||||||
support dart2 (Default: true)
|
support dart2 (Default: true)
|
||||||
|
|
||||||
|
nullableFields
|
||||||
|
Is the null fields should be in the JSON payload
|
||||||
|
|
||||||
Back to the [generators list](README.md)
|
Back to the [generators list](README.md)
|
||||||
|
@ -291,7 +291,7 @@ export class PetService {
|
|||||||
let headers = this.defaultHeaders;
|
let headers = this.defaultHeaders;
|
||||||
|
|
||||||
// authentication (api_key) required
|
// authentication (api_key) required
|
||||||
if (this.configuration.apiKeys["api_key"]) {
|
if (this.configuration.apiKeys && this.configuration.apiKeys["api_key"]) {
|
||||||
headers = headers.set('api_key', this.configuration.apiKeys["api_key"]);
|
headers = headers.set('api_key', this.configuration.apiKeys["api_key"]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -110,7 +110,7 @@ export class StoreService {
|
|||||||
let headers = this.defaultHeaders;
|
let headers = this.defaultHeaders;
|
||||||
|
|
||||||
// authentication (api_key) required
|
// authentication (api_key) required
|
||||||
if (this.configuration.apiKeys["api_key"]) {
|
if (this.configuration.apiKeys && this.configuration.apiKeys["api_key"]) {
|
||||||
headers = headers.set('api_key', this.configuration.apiKeys["api_key"]);
|
headers = headers.set('api_key', this.configuration.apiKeys["api_key"]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -291,7 +291,7 @@ export class PetService {
|
|||||||
let headers = this.defaultHeaders;
|
let headers = this.defaultHeaders;
|
||||||
|
|
||||||
// authentication (api_key) required
|
// authentication (api_key) required
|
||||||
if (this.configuration.apiKeys["api_key"]) {
|
if (this.configuration.apiKeys && this.configuration.apiKeys["api_key"]) {
|
||||||
headers = headers.set('api_key', this.configuration.apiKeys["api_key"]);
|
headers = headers.set('api_key', this.configuration.apiKeys["api_key"]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -110,7 +110,7 @@ export class StoreService {
|
|||||||
let headers = this.defaultHeaders;
|
let headers = this.defaultHeaders;
|
||||||
|
|
||||||
// authentication (api_key) required
|
// authentication (api_key) required
|
||||||
if (this.configuration.apiKeys["api_key"]) {
|
if (this.configuration.apiKeys && this.configuration.apiKeys["api_key"]) {
|
||||||
headers = headers.set('api_key', this.configuration.apiKeys["api_key"]);
|
headers = headers.set('api_key', this.configuration.apiKeys["api_key"]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -293,7 +293,7 @@ export class PetService {
|
|||||||
let headers = this.defaultHeaders;
|
let headers = this.defaultHeaders;
|
||||||
|
|
||||||
// authentication (api_key) required
|
// authentication (api_key) required
|
||||||
if (this.configuration.apiKeys["api_key"]) {
|
if (this.configuration.apiKeys && this.configuration.apiKeys["api_key"]) {
|
||||||
headers = headers.set('api_key', this.configuration.apiKeys["api_key"]);
|
headers = headers.set('api_key', this.configuration.apiKeys["api_key"]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -112,7 +112,7 @@ export class StoreService {
|
|||||||
let headers = this.defaultHeaders;
|
let headers = this.defaultHeaders;
|
||||||
|
|
||||||
// authentication (api_key) required
|
// authentication (api_key) required
|
||||||
if (this.configuration.apiKeys["api_key"]) {
|
if (this.configuration.apiKeys && this.configuration.apiKeys["api_key"]) {
|
||||||
headers = headers.set('api_key', this.configuration.apiKeys["api_key"]);
|
headers = headers.set('api_key', this.configuration.apiKeys["api_key"]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -293,7 +293,7 @@ export class PetService {
|
|||||||
let headers = this.defaultHeaders;
|
let headers = this.defaultHeaders;
|
||||||
|
|
||||||
// authentication (api_key) required
|
// authentication (api_key) required
|
||||||
if (this.configuration.apiKeys["api_key"]) {
|
if (this.configuration.apiKeys && this.configuration.apiKeys["api_key"]) {
|
||||||
headers = headers.set('api_key', this.configuration.apiKeys["api_key"]);
|
headers = headers.set('api_key', this.configuration.apiKeys["api_key"]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -112,7 +112,7 @@ export class StoreService {
|
|||||||
let headers = this.defaultHeaders;
|
let headers = this.defaultHeaders;
|
||||||
|
|
||||||
// authentication (api_key) required
|
// authentication (api_key) required
|
||||||
if (this.configuration.apiKeys["api_key"]) {
|
if (this.configuration.apiKeys && this.configuration.apiKeys["api_key"]) {
|
||||||
headers = headers.set('api_key', this.configuration.apiKeys["api_key"]);
|
headers = headers.set('api_key', this.configuration.apiKeys["api_key"]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user