mirror of
https://github.com/valitydev/openapi-generator.git
synced 2024-11-08 03:18:53 +00:00
regenerated
This commit is contained in:
parent
a168c4bf06
commit
0525d66b86
@ -9,7 +9,7 @@
|
||||
|
||||
+ (BOOL)propertyIsOptional:(NSString *)propertyName
|
||||
{
|
||||
NSArray *optionalProperties = @[@"category", @"tags", @"status", @"photoUrls", @"_id"];
|
||||
NSArray *optionalProperties = @[@"_id", @"category", @"tags", @"status"];
|
||||
|
||||
if ([optionalProperties containsObject:propertyName]) {
|
||||
return YES;
|
||||
|
@ -6,6 +6,9 @@
|
||||
#import "SWGFile.h"
|
||||
|
||||
|
||||
@interface SWGPetApi ()
|
||||
@property (readwrite, nonatomic, strong) NSMutableDictionary *defaultHeaders;
|
||||
@end
|
||||
|
||||
@implementation SWGPetApi
|
||||
static NSString * basePath = @"http://petstore.swagger.io/v2";
|
||||
@ -33,18 +36,19 @@ static NSString * basePath = @"http://petstore.swagger.io/v2";
|
||||
}
|
||||
|
||||
-(void) addHeader:(NSString*)value forKey:(NSString*)key {
|
||||
[[self apiClient] setHeaderValue:value forKey:key];
|
||||
[self.defaultHeaders setValue:value forKey:key];
|
||||
}
|
||||
|
||||
-(id) init {
|
||||
self = [super init];
|
||||
self.defaultHeaders = [NSMutableDictionary dictionary];
|
||||
[self apiClient];
|
||||
return self;
|
||||
}
|
||||
|
||||
-(void) setHeaderValue:(NSString*) value
|
||||
forKey:(NSString*)key {
|
||||
[[self apiClient] setHeaderValue:value forKey:key];
|
||||
[self.defaultHeaders setValue:value forKey:key];
|
||||
}
|
||||
|
||||
-(unsigned long) requestQueueSize {
|
||||
@ -73,7 +77,8 @@ static NSString * basePath = @"http://petstore.swagger.io/v2";
|
||||
|
||||
NSMutableDictionary* queryParams = [[NSMutableDictionary alloc] init];
|
||||
|
||||
NSMutableDictionary* headerParams = [[NSMutableDictionary alloc] init];
|
||||
NSMutableDictionary* headerParams = [NSMutableDictionary dictionaryWithDictionary:self.defaultHeaders];
|
||||
|
||||
|
||||
|
||||
id bodyDictionary = nil;
|
||||
@ -157,7 +162,8 @@ static NSString * basePath = @"http://petstore.swagger.io/v2";
|
||||
|
||||
NSMutableDictionary* queryParams = [[NSMutableDictionary alloc] init];
|
||||
|
||||
NSMutableDictionary* headerParams = [[NSMutableDictionary alloc] init];
|
||||
NSMutableDictionary* headerParams = [NSMutableDictionary dictionaryWithDictionary:self.defaultHeaders];
|
||||
|
||||
|
||||
|
||||
id bodyDictionary = nil;
|
||||
@ -247,7 +253,8 @@ static NSString * basePath = @"http://petstore.swagger.io/v2";
|
||||
|
||||
}
|
||||
|
||||
NSMutableDictionary* headerParams = [[NSMutableDictionary alloc] init];
|
||||
NSMutableDictionary* headerParams = [NSMutableDictionary dictionaryWithDictionary:self.defaultHeaders];
|
||||
|
||||
|
||||
|
||||
id bodyDictionary = nil;
|
||||
@ -327,7 +334,8 @@ static NSString * basePath = @"http://petstore.swagger.io/v2";
|
||||
|
||||
}
|
||||
|
||||
NSMutableDictionary* headerParams = [[NSMutableDictionary alloc] init];
|
||||
NSMutableDictionary* headerParams = [NSMutableDictionary dictionaryWithDictionary:self.defaultHeaders];
|
||||
|
||||
|
||||
|
||||
id bodyDictionary = nil;
|
||||
@ -402,7 +410,8 @@ static NSString * basePath = @"http://petstore.swagger.io/v2";
|
||||
|
||||
NSMutableDictionary* queryParams = [[NSMutableDictionary alloc] init];
|
||||
|
||||
NSMutableDictionary* headerParams = [[NSMutableDictionary alloc] init];
|
||||
NSMutableDictionary* headerParams = [NSMutableDictionary dictionaryWithDictionary:self.defaultHeaders];
|
||||
|
||||
|
||||
|
||||
id bodyDictionary = nil;
|
||||
@ -480,7 +489,8 @@ static NSString * basePath = @"http://petstore.swagger.io/v2";
|
||||
|
||||
NSMutableDictionary* queryParams = [[NSMutableDictionary alloc] init];
|
||||
|
||||
NSMutableDictionary* headerParams = [[NSMutableDictionary alloc] init];
|
||||
NSMutableDictionary* headerParams = [NSMutableDictionary dictionaryWithDictionary:self.defaultHeaders];
|
||||
|
||||
|
||||
|
||||
id bodyDictionary = nil;
|
||||
@ -559,7 +569,8 @@ static NSString * basePath = @"http://petstore.swagger.io/v2";
|
||||
|
||||
NSMutableDictionary* queryParams = [[NSMutableDictionary alloc] init];
|
||||
|
||||
NSMutableDictionary* headerParams = [[NSMutableDictionary alloc] init];
|
||||
NSMutableDictionary* headerParams = [NSMutableDictionary dictionaryWithDictionary:self.defaultHeaders];
|
||||
|
||||
if(api_key != nil)
|
||||
headerParams[@"api_key"] = api_key;
|
||||
|
||||
@ -625,7 +636,8 @@ static NSString * basePath = @"http://petstore.swagger.io/v2";
|
||||
|
||||
NSMutableDictionary* queryParams = [[NSMutableDictionary alloc] init];
|
||||
|
||||
NSMutableDictionary* headerParams = [[NSMutableDictionary alloc] init];
|
||||
NSMutableDictionary* headerParams = [NSMutableDictionary dictionaryWithDictionary:self.defaultHeaders];
|
||||
|
||||
|
||||
|
||||
id bodyDictionary = nil;
|
||||
|
@ -1,3 +1,5 @@
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
@interface SWGQueryParamCollection : NSObject
|
||||
|
||||
@property(nonatomic, readonly) NSArray* values;
|
||||
|
@ -5,6 +5,9 @@
|
||||
#import "SWGOrder.h"
|
||||
|
||||
|
||||
@interface SWGStoreApi ()
|
||||
@property (readwrite, nonatomic, strong) NSMutableDictionary *defaultHeaders;
|
||||
@end
|
||||
|
||||
@implementation SWGStoreApi
|
||||
static NSString * basePath = @"http://petstore.swagger.io/v2";
|
||||
@ -32,18 +35,19 @@ static NSString * basePath = @"http://petstore.swagger.io/v2";
|
||||
}
|
||||
|
||||
-(void) addHeader:(NSString*)value forKey:(NSString*)key {
|
||||
[[self apiClient] setHeaderValue:value forKey:key];
|
||||
[self.defaultHeaders setValue:value forKey:key];
|
||||
}
|
||||
|
||||
-(id) init {
|
||||
self = [super init];
|
||||
self.defaultHeaders = [NSMutableDictionary dictionary];
|
||||
[self apiClient];
|
||||
return self;
|
||||
}
|
||||
|
||||
-(void) setHeaderValue:(NSString*) value
|
||||
forKey:(NSString*)key {
|
||||
[[self apiClient] setHeaderValue:value forKey:key];
|
||||
[self.defaultHeaders setValue:value forKey:key];
|
||||
}
|
||||
|
||||
-(unsigned long) requestQueueSize {
|
||||
@ -71,7 +75,8 @@ static NSString * basePath = @"http://petstore.swagger.io/v2";
|
||||
|
||||
NSMutableDictionary* queryParams = [[NSMutableDictionary alloc] init];
|
||||
|
||||
NSMutableDictionary* headerParams = [[NSMutableDictionary alloc] init];
|
||||
NSMutableDictionary* headerParams = [NSMutableDictionary dictionaryWithDictionary:self.defaultHeaders];
|
||||
|
||||
|
||||
|
||||
id bodyDictionary = nil;
|
||||
@ -138,7 +143,8 @@ static NSString * basePath = @"http://petstore.swagger.io/v2";
|
||||
|
||||
NSMutableDictionary* queryParams = [[NSMutableDictionary alloc] init];
|
||||
|
||||
NSMutableDictionary* headerParams = [[NSMutableDictionary alloc] init];
|
||||
NSMutableDictionary* headerParams = [NSMutableDictionary dictionaryWithDictionary:self.defaultHeaders];
|
||||
|
||||
|
||||
|
||||
id bodyDictionary = nil;
|
||||
@ -237,7 +243,8 @@ static NSString * basePath = @"http://petstore.swagger.io/v2";
|
||||
|
||||
NSMutableDictionary* queryParams = [[NSMutableDictionary alloc] init];
|
||||
|
||||
NSMutableDictionary* headerParams = [[NSMutableDictionary alloc] init];
|
||||
NSMutableDictionary* headerParams = [NSMutableDictionary dictionaryWithDictionary:self.defaultHeaders];
|
||||
|
||||
|
||||
|
||||
id bodyDictionary = nil;
|
||||
@ -313,7 +320,8 @@ static NSString * basePath = @"http://petstore.swagger.io/v2";
|
||||
|
||||
NSMutableDictionary* queryParams = [[NSMutableDictionary alloc] init];
|
||||
|
||||
NSMutableDictionary* headerParams = [[NSMutableDictionary alloc] init];
|
||||
NSMutableDictionary* headerParams = [NSMutableDictionary dictionaryWithDictionary:self.defaultHeaders];
|
||||
|
||||
|
||||
|
||||
id bodyDictionary = nil;
|
||||
|
@ -5,6 +5,9 @@
|
||||
#import "SWGUser.h"
|
||||
|
||||
|
||||
@interface SWGUserApi ()
|
||||
@property (readwrite, nonatomic, strong) NSMutableDictionary *defaultHeaders;
|
||||
@end
|
||||
|
||||
@implementation SWGUserApi
|
||||
static NSString * basePath = @"http://petstore.swagger.io/v2";
|
||||
@ -32,18 +35,19 @@ static NSString * basePath = @"http://petstore.swagger.io/v2";
|
||||
}
|
||||
|
||||
-(void) addHeader:(NSString*)value forKey:(NSString*)key {
|
||||
[[self apiClient] setHeaderValue:value forKey:key];
|
||||
[self.defaultHeaders setValue:value forKey:key];
|
||||
}
|
||||
|
||||
-(id) init {
|
||||
self = [super init];
|
||||
self.defaultHeaders = [NSMutableDictionary dictionary];
|
||||
[self apiClient];
|
||||
return self;
|
||||
}
|
||||
|
||||
-(void) setHeaderValue:(NSString*) value
|
||||
forKey:(NSString*)key {
|
||||
[[self apiClient] setHeaderValue:value forKey:key];
|
||||
[self.defaultHeaders setValue:value forKey:key];
|
||||
}
|
||||
|
||||
-(unsigned long) requestQueueSize {
|
||||
@ -72,7 +76,8 @@ static NSString * basePath = @"http://petstore.swagger.io/v2";
|
||||
|
||||
NSMutableDictionary* queryParams = [[NSMutableDictionary alloc] init];
|
||||
|
||||
NSMutableDictionary* headerParams = [[NSMutableDictionary alloc] init];
|
||||
NSMutableDictionary* headerParams = [NSMutableDictionary dictionaryWithDictionary:self.defaultHeaders];
|
||||
|
||||
|
||||
|
||||
id bodyDictionary = nil;
|
||||
@ -156,7 +161,8 @@ static NSString * basePath = @"http://petstore.swagger.io/v2";
|
||||
|
||||
NSMutableDictionary* queryParams = [[NSMutableDictionary alloc] init];
|
||||
|
||||
NSMutableDictionary* headerParams = [[NSMutableDictionary alloc] init];
|
||||
NSMutableDictionary* headerParams = [NSMutableDictionary dictionaryWithDictionary:self.defaultHeaders];
|
||||
|
||||
|
||||
|
||||
id bodyDictionary = nil;
|
||||
@ -240,7 +246,8 @@ static NSString * basePath = @"http://petstore.swagger.io/v2";
|
||||
|
||||
NSMutableDictionary* queryParams = [[NSMutableDictionary alloc] init];
|
||||
|
||||
NSMutableDictionary* headerParams = [[NSMutableDictionary alloc] init];
|
||||
NSMutableDictionary* headerParams = [NSMutableDictionary dictionaryWithDictionary:self.defaultHeaders];
|
||||
|
||||
|
||||
|
||||
id bodyDictionary = nil;
|
||||
@ -333,7 +340,8 @@ static NSString * basePath = @"http://petstore.swagger.io/v2";
|
||||
queryParams[@"password"] = password;
|
||||
}
|
||||
|
||||
NSMutableDictionary* headerParams = [[NSMutableDictionary alloc] init];
|
||||
NSMutableDictionary* headerParams = [NSMutableDictionary dictionaryWithDictionary:self.defaultHeaders];
|
||||
|
||||
|
||||
|
||||
id bodyDictionary = nil;
|
||||
@ -405,7 +413,8 @@ static NSString * basePath = @"http://petstore.swagger.io/v2";
|
||||
|
||||
NSMutableDictionary* queryParams = [[NSMutableDictionary alloc] init];
|
||||
|
||||
NSMutableDictionary* headerParams = [[NSMutableDictionary alloc] init];
|
||||
NSMutableDictionary* headerParams = [NSMutableDictionary dictionaryWithDictionary:self.defaultHeaders];
|
||||
|
||||
|
||||
|
||||
id bodyDictionary = nil;
|
||||
@ -467,7 +476,8 @@ static NSString * basePath = @"http://petstore.swagger.io/v2";
|
||||
|
||||
NSMutableDictionary* queryParams = [[NSMutableDictionary alloc] init];
|
||||
|
||||
NSMutableDictionary* headerParams = [[NSMutableDictionary alloc] init];
|
||||
NSMutableDictionary* headerParams = [NSMutableDictionary dictionaryWithDictionary:self.defaultHeaders];
|
||||
|
||||
|
||||
|
||||
id bodyDictionary = nil;
|
||||
@ -544,7 +554,8 @@ static NSString * basePath = @"http://petstore.swagger.io/v2";
|
||||
|
||||
NSMutableDictionary* queryParams = [[NSMutableDictionary alloc] init];
|
||||
|
||||
NSMutableDictionary* headerParams = [[NSMutableDictionary alloc] init];
|
||||
NSMutableDictionary* headerParams = [NSMutableDictionary dictionaryWithDictionary:self.defaultHeaders];
|
||||
|
||||
|
||||
|
||||
id bodyDictionary = nil;
|
||||
@ -629,7 +640,8 @@ static NSString * basePath = @"http://petstore.swagger.io/v2";
|
||||
|
||||
NSMutableDictionary* queryParams = [[NSMutableDictionary alloc] init];
|
||||
|
||||
NSMutableDictionary* headerParams = [[NSMutableDictionary alloc] init];
|
||||
NSMutableDictionary* headerParams = [NSMutableDictionary dictionaryWithDictionary:self.defaultHeaders];
|
||||
|
||||
|
||||
|
||||
id bodyDictionary = nil;
|
||||
|
@ -54,7 +54,7 @@
|
||||
<argument>PetstoreClient</argument>
|
||||
<argument>test</argument>
|
||||
<argument>-destination</argument>
|
||||
<argument>platform=iOS Simulator,name=iPhone 6,OS=8.2</argument>
|
||||
<argument>platform=iOS Simulator,name=iPhone 6,OS=8.3</argument>
|
||||
</arguments>
|
||||
</configuration>
|
||||
</execution>
|
||||
|
Loading…
Reference in New Issue
Block a user