Skip to content

Commit 96380bb

Browse files
committed
rebuilt
1 parent abe4980 commit 96380bb

File tree

6 files changed

+18
-13
lines changed

6 files changed

+18
-13
lines changed

samples/client/petstore/objc/SwaggerClient.podspec

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ Pod::Spec.new do |s|
2121

2222
s.framework = 'SystemConfiguration'
2323

24-
s.homepage = ""
25-
s.license = ""
26-
s.source = { :git => ".git", :tag => "#{s.version}" }
27-
s.author = { "" => "" }
24+
s.homepage = "https://github.com/swagger-api/swagger-codegen"
25+
s.license = "MIT"
26+
s.source = { :git => "https://github.com/swagger-api/swagger-codegen.git", :tag => "#{s.version}" }
27+
s.author = { "Swagger" => "[email protected]" }
2828

2929
s.source_files = 'SwaggerClient/**/*'
3030
s.public_header_files = 'SwaggerClient/**/*.h'

samples/client/petstore/objc/SwaggerClient/SWGApiClient.m

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -311,9 +311,10 @@ - (id) deserialize:(id) data class:(NSString *) class {
311311
range:NSMakeRange(0, [class length])];
312312

313313
if (match) {
314+
NSArray *dataArray = data;
314315
innerType = [class substringWithRange:[match rangeAtIndex:1]];
315316

316-
resultArray = [NSMutableArray arrayWithCapacity:[data count]];
317+
resultArray = [NSMutableArray arrayWithCapacity:[dataArray count]];
317318
[data enumerateObjectsUsingBlock:^(id obj, NSUInteger idx, BOOL *stop) {
318319
[resultArray addObject:[self deserialize:obj class:innerType]];
319320
}
@@ -332,9 +333,10 @@ - (id) deserialize:(id) data class:(NSString *) class {
332333
range:NSMakeRange(0, [class length])];
333334

334335
if (match) {
336+
NSArray *dataArray = data;
335337
innerType = [class substringWithRange:[match rangeAtIndex:1]];
336338

337-
resultArray = [NSMutableArray arrayWithCapacity:[data count]];
339+
resultArray = [NSMutableArray arrayWithCapacity:[dataArray count]];
338340
[data enumerateObjectsUsingBlock:^(id obj, NSUInteger idx, BOOL *stop) {
339341
[resultArray addObject:[self deserialize:obj class:innerType]];
340342
}];
@@ -352,9 +354,10 @@ - (id) deserialize:(id) data class:(NSString *) class {
352354
range:NSMakeRange(0, [class length])];
353355

354356
if (match) {
357+
NSDictionary *dataDict = data;
355358
NSString *valueType = [class substringWithRange:[match rangeAtIndex:2]];
356359

357-
resultDict = [NSMutableDictionary dictionaryWithCapacity:[data count]];
360+
resultDict = [NSMutableDictionary dictionaryWithCapacity:[dataDict count]];
358361
[data enumerateKeysAndObjectsUsingBlock:^(id key, id obj, BOOL *stop) {
359362
[resultDict setValue:[self deserialize:obj class:valueType] forKey:key];
360363
}];
@@ -728,7 +731,8 @@ - (id) sanitizeForSerialization:(id) object {
728731
return [object ISO8601String];
729732
}
730733
else if ([object isKindOfClass:[NSArray class]]) {
731-
NSMutableArray *sanitizedObjs = [NSMutableArray arrayWithCapacity:[object count]];
734+
NSArray *objectArray = object;
735+
NSMutableArray *sanitizedObjs = [NSMutableArray arrayWithCapacity:[objectArray count]];
732736
[object enumerateObjectsUsingBlock:^(id obj, NSUInteger idx, BOOL *stop) {
733737
if (obj) {
734738
[sanitizedObjs addObject:[self sanitizeForSerialization:obj]];
@@ -737,7 +741,8 @@ - (id) sanitizeForSerialization:(id) object {
737741
return sanitizedObjs;
738742
}
739743
else if ([object isKindOfClass:[NSDictionary class]]) {
740-
NSMutableDictionary *sanitizedObjs = [NSMutableDictionary dictionaryWithCapacity:[object count]];
744+
NSDictionary *objectDict = object;
745+
NSMutableDictionary *sanitizedObjs = [NSMutableDictionary dictionaryWithCapacity:[objectDict count]];
741746
[object enumerateKeysAndObjectsUsingBlock:^(id key, id obj, BOOL *stop) {
742747
if (obj) {
743748
[sanitizedObjs setValue:[self sanitizeForSerialization:obj] forKey:key];

samples/client/petstore/objc/SwaggerClient/SWGPet.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
* Do not edit the class manually.
88
*/
99

10-
#import "SWGCategory.h"
1110
#import "SWGTag.h"
11+
#import "SWGCategory.h"
1212

1313

1414
@protocol SWGPet

samples/client/petstore/objc/SwaggerClient/SWGPetApi.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,7 @@ -(NSNumber*) getPetByIdWithCompletionBlock: (NSNumber*) petId
450450
NSString *requestContentType = [SWGApiClient selectHeaderContentType:@[]];
451451

452452
// Authentication setting
453-
NSArray *authSettings = @[@"petstore_auth", @"api_key"];
453+
NSArray *authSettings = @[@"api_key", @"petstore_auth"];
454454

455455
id bodyParam = nil;
456456
NSMutableDictionary *formParams = [[NSMutableDictionary alloc] init];

samples/client/petstore/objc/SwaggerClient/SWGUserApi.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@
9999
/// Get user by user name
100100
///
101101
///
102-
/// @param username The name that needs to be fetched. Use user1 for testing.
102+
/// @param username The name that needs to be fetched. Use user1 for testing.
103103
///
104104
///
105105
/// @return SWGUser*

samples/client/petstore/objc/SwaggerClient/SWGUserApi.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,7 @@ -(NSNumber*) logoutUserWithCompletionBlock:
470470
///
471471
/// Get user by user name
472472
///
473-
/// @param username The name that needs to be fetched. Use user1 for testing.
473+
/// @param username The name that needs to be fetched. Use user1 for testing.
474474
///
475475
/// @returns SWGUser*
476476
///

0 commit comments

Comments
 (0)