forked from loafle/openapi-generator-original
Fix issue in Configuration-body.mustache in objc client
This commit is contained in:
parent
29e8a8f573
commit
732a9eb64d
@ -104,13 +104,26 @@
|
|||||||
|
|
||||||
- (NSDictionary *) authSettings {
|
- (NSDictionary *) authSettings {
|
||||||
return @{
|
return @{
|
||||||
@"api_key": @{
|
{{#authMethods}}
|
||||||
|
{{#isApiKey}}
|
||||||
|
@"{{name}}":
|
||||||
|
@{
|
||||||
@"type": @"api_key",
|
@"type": @"api_key",
|
||||||
@"in": @"header",
|
@"in": {{#isKeyInHeader}}@"header"{{/isKeyInHeader}}{{#isKeyInQuery}}@"query"{{/isKeyInQuery}},
|
||||||
@"key": @"api_key",
|
@"key": @"{{keyParamName}}",
|
||||||
@"value": [self getApiKeyWithPrefix:@"api_key"]
|
@"value": [self getApiKeyWithPrefix:@"{{keyParamName}}"]
|
||||||
},
|
},
|
||||||
|
{{/isApiKey}}
|
||||||
|
{{#isBasic}}
|
||||||
|
@"{{name}}":
|
||||||
|
@{
|
||||||
|
@"type": @"basic",
|
||||||
|
@"in": @"header",
|
||||||
|
@"key": @"Authorization",
|
||||||
|
@"value": [self getBasicAuthToken]
|
||||||
|
},
|
||||||
|
{{/isBasic}}
|
||||||
|
{{/authMethods}}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -104,13 +104,13 @@
|
|||||||
|
|
||||||
- (NSDictionary *) authSettings {
|
- (NSDictionary *) authSettings {
|
||||||
return @{
|
return @{
|
||||||
@"api_key": @{
|
@"api_key":
|
||||||
|
@{
|
||||||
@"type": @"api_key",
|
@"type": @"api_key",
|
||||||
@"in": @"header",
|
@"in": @"header",
|
||||||
@"key": @"api_key",
|
@"key": @"api_key",
|
||||||
@"value": [self getApiKeyWithPrefix:@"api_key"]
|
@"value": [self getApiKeyWithPrefix:@"api_key"]
|
||||||
},
|
},
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user