[Objc] Class not identified due to Circular imports (#6069)

* [Objc] Class not identified due to Circular imports

* Pet store generated sample
This commit is contained in:
Alex Nolasco 2017-07-17 05:14:05 -04:00 committed by wing328
parent bf74de3a5a
commit 93415af92d
10 changed files with 25 additions and 11 deletions

View File

@ -5,6 +5,11 @@
{{#imports}}#import "{{import}}.h"
{{/imports}}
{{#imports}}
@protocol {{import}};
@class {{import}};
{{/imports}}
{{newline}}
{{#models}}
{{#model}}

View File

@ -69,7 +69,7 @@ SWGDefaultConfiguration *apiConfig = [SWGDefaultConfiguration sharedConfig];
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
SWGPet* *body = [[Pet alloc] init]; // Pet object that needs to be added to the store (optional)
SWGPet* *body = [[SWGPet alloc] init]; // Pet object that needs to be added to the store (optional)
SWGPetApi *apiInstance = [[SWGPetApi alloc] init];

View File

@ -16,6 +16,7 @@
@protocol SWGCategory
@end

View File

@ -16,6 +16,7 @@
@protocol SWGOrder
@end

View File

@ -16,6 +16,11 @@
#import "SWGCategory.h"
#import "SWGTag.h"
@protocol SWGCategory;
@class SWGCategory;
@protocol SWGTag;
@class SWGTag;
@protocol SWGPet

View File

@ -16,6 +16,7 @@
@protocol SWGTag
@end

View File

@ -16,6 +16,7 @@
@protocol SWGUser
@end

View File

@ -32,7 +32,7 @@ SWGDefaultConfiguration *apiConfig = [SWGDefaultConfiguration sharedConfig];
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
SWGPet* body = [[Pet alloc] init]; // Pet object that needs to be added to the store (optional)
SWGPet* body = [[SWGPet alloc] init]; // Pet object that needs to be added to the store (optional)
SWGPetApi*apiInstance = [[SWGPetApi alloc] init];
@ -49,7 +49,7 @@ SWGPetApi*apiInstance = [[SWGPetApi alloc] init];
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**body** | [**SWGPet***](Pet.md)| Pet object that needs to be added to the store | [optional]
**body** | [**SWGPet***](SWGPet.md)| Pet object that needs to be added to the store | [optional]
### Return type
@ -310,7 +310,7 @@ SWGDefaultConfiguration *apiConfig = [SWGDefaultConfiguration sharedConfig];
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
SWGPet* body = [[Pet alloc] init]; // Pet object that needs to be added to the store (optional)
SWGPet* body = [[SWGPet alloc] init]; // Pet object that needs to be added to the store (optional)
SWGPetApi*apiInstance = [[SWGPetApi alloc] init];
@ -327,7 +327,7 @@ SWGPetApi*apiInstance = [[SWGPetApi alloc] init];
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**body** | [**SWGPet***](Pet.md)| Pet object that needs to be added to the store | [optional]
**body** | [**SWGPet***](SWGPet.md)| Pet object that needs to be added to the store | [optional]
### Return type

View File

@ -173,7 +173,7 @@ Place an order for a pet
### Example
```objc
SWGOrder* body = [[Order alloc] init]; // order placed for purchasing the pet (optional)
SWGOrder* body = [[SWGOrder alloc] init]; // order placed for purchasing the pet (optional)
SWGStoreApi*apiInstance = [[SWGStoreApi alloc] init];
@ -193,7 +193,7 @@ SWGStoreApi*apiInstance = [[SWGStoreApi alloc] init];
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**body** | [**SWGOrder***](Order.md)| order placed for purchasing the pet | [optional]
**body** | [**SWGOrder***](SWGOrder.md)| order placed for purchasing the pet | [optional]
### Return type

View File

@ -27,7 +27,7 @@ This can only be done by the logged in user.
### Example
```objc
SWGUser* body = [[User alloc] init]; // Created user object (optional)
SWGUser* body = [[SWGUser alloc] init]; // Created user object (optional)
SWGUserApi*apiInstance = [[SWGUserApi alloc] init];
@ -44,7 +44,7 @@ SWGUserApi*apiInstance = [[SWGUserApi alloc] init];
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**body** | [**SWGUser***](User.md)| Created user object | [optional]
**body** | [**SWGUser***](SWGUser.md)| Created user object | [optional]
### Return type
@ -364,7 +364,7 @@ This can only be done by the logged in user.
```objc
NSString* username = @"username_example"; // name that need to be deleted
SWGUser* body = [[User alloc] init]; // Updated user object (optional)
SWGUser* body = [[SWGUser alloc] init]; // Updated user object (optional)
SWGUserApi*apiInstance = [[SWGUserApi alloc] init];
@ -383,7 +383,7 @@ SWGUserApi*apiInstance = [[SWGUserApi alloc] init];
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**username** | **NSString***| name that need to be deleted |
**body** | [**SWGUser***](User.md)| Updated user object | [optional]
**body** | [**SWGUser***](SWGUser.md)| Updated user object | [optional]
### Return type