Skip to content

Commit b373e43

Browse files
committed
Fixed SWGApiClient.m's run-type type checking to allow NSArrays to be passed (for Swagger-generated methods that rely on List parameters in the HTTP body)
1 parent 0d40a53 commit b373e43

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/resources/objc/SWGApiClient.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ -(NSNumber*) dictionary:(NSString*) path
280280
}
281281

282282
if(body != nil) {
283-
if([body isKindOfClass:[NSDictionary class]]){
283+
if([body isKindOfClass:[NSDictionary class]] || [body isKindOfClass:[NSArray class]]){
284284
[request setValue:requestContentType forHTTPHeaderField:@"Content-Type"];
285285
}
286286
else if ([body isKindOfClass:[SWGFile class]]) {}

0 commit comments

Comments
 (0)