Skip to content
GitLab
    • Explore Projects Groups Snippets
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • O openapi-generator
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 3,476
    • Issues 3,476
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 402
    • Merge requests 402
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • OpenAPI Tools
  • openapi-generator
  • Merge requests
  • !7449
An error occurred while fetching the assigned milestone of the selected merge_request.

[ObjC] Delete outdated files in the ObjC petstore clients

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged William Cheng requested to merge obj-clean-up into master 4 years ago
  • Overview 0
  • Commits 1
  • Pipelines 0
  • Changes 8
  • Delete outdated files in the ObjC petstore clients

PR checklist

  • Read the contribution guidelines.
  • Pull Request title clearly describes the work in the pull request and Pull Request description provides details about how to validate the work. Missing information here may result in delayed response from the community.
  • If contributing template-only or documentation-only changes which will change sample output, build the project beforehand.
  • Run the shell script ./bin/generate-samples.shto update all Petstore samples related to your fix. This is important, as CI jobs will verify all generator outputs of your HEAD commit as it would merge with master. These must match the expectations made by your contribution. You may regenerate an individual generator by passing the relevant config(s) as an argument to the script, for example ./bin/generate-samples.sh bin/configs/java*. For Windows users, please run the script in Git BASH.
  • File the PR against the correct branch: master
  • Copy the technical committee to review the pull request if your PR is targeting a particular programming language.
Compare
  • master (base)

and
  • latest version
    e19a1871
    1 commit, 2 years ago

8 files
+ 0
- 241

    Preferences

    File browser
    Compare changes
samples/client‎/petstore/objc‎
core-data/S‎waggerClient‎
Co‎re‎
SWGJSONRespon‎seSerializer.h‎ +0 -19
Mo‎del‎
SWGApiRe‎sponse.h‎ +0 -31
SWGApiResponse‎ManagedObject.h‎ +0 -36
SWGApiResponse‎ManagedObject.m‎ +0 -13
SWGApiResponseMana‎gedObjectBuilder.h‎ +0 -35
SWGApiResponseMana‎gedObjectBuilder.m‎ +0 -57
default/Sw‎aggerClient‎
Co‎re‎
SWGJSONRespon‎seSerializer.h‎ +0 -19
Mo‎del‎
SWGApiRe‎sponse.h‎ +0 -31
samples/client/petstore/objc/core-data/SwaggerClient/Core/SWGJSONResponseSerializer.h deleted 100644 → 0
+ 0
- 19
  • View file @ ef429770

#import <Foundation/Foundation.h>
#import <AFNetworking/AFURLResponseSerialization.h>
/**
* Swagger Petstore
* This is a sample server Petstore server. You can find out more about Swagger at <a href=\"http://swagger.io\">http://swagger.io</a> or on irc.freenode.net, #swagger. For this sample, you can use the api key \"special-key\" to test the authorization filters
*
* OpenAPI spec version: 1.0.0
* Contact: apiteam@wordnik.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
@interface SWGJSONResponseSerializer : AFJSONResponseSerializer
@end
samples/client/petstore/objc/core-data/SwaggerClient/Model/SWGApiResponse.h deleted 100644 → 0
+ 0
- 31
  • View file @ ef429770

#import <Foundation/Foundation.h>
#import "SWGObject.h"
/**
* Swagger Petstore
* This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters.
*
* OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
@protocol SWGApiResponse
@end
@interface SWGApiResponse : SWGObject
@property(nonatomic) NSNumber* code;
@property(nonatomic) NSString* type;
@property(nonatomic) NSString* message;
@end
samples/client/petstore/objc/core-data/SwaggerClient/Model/SWGApiResponseManagedObject.h deleted 100644 → 0
+ 0
- 36
  • View file @ ef429770

#import <Foundation/Foundation.h>
#import <CoreData/CoreData.h>
/**
* Swagger Petstore
* This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters.
*
* OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
NS_ASSUME_NONNULL_BEGIN
@interface SWGApiResponseManagedObject : NSManagedObject
@property (nullable, nonatomic, retain) NSNumber* code;
@property (nullable, nonatomic, retain) NSString* type;
@property (nullable, nonatomic, retain) NSString* message;
@end
@interface SWGApiResponseManagedObject (GeneratedAccessors)
@end
NS_ASSUME_NONNULL_END
samples/client/petstore/objc/core-data/SwaggerClient/Model/SWGApiResponseManagedObject.m deleted 100644 → 0
+ 0
- 13
  • View file @ ef429770

#import "SWGApiResponseManagedObject.h"
/**
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen
* Do not edit the class manually.
*/
@implementation SWGApiResponseManagedObject
@dynamic code;
@dynamic type;
@dynamic message;
@end
samples/client/petstore/objc/core-data/SwaggerClient/Model/SWGApiResponseManagedObjectBuilder.h deleted 100644 → 0
+ 0
- 35
  • View file @ ef429770

#import <Foundation/Foundation.h>
#import <CoreData/CoreData.h>
#import "SWGApiResponseManagedObject.h"
#import "SWGApiResponse.h"
/**
* Swagger Petstore
* This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters.
*
* OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
@interface SWGApiResponseManagedObjectBuilder : NSObject
-(SWGApiResponseManagedObject*)createNewSWGApiResponseManagedObjectInContext:(NSManagedObjectContext*)context;
-(SWGApiResponseManagedObject*)SWGApiResponseManagedObjectFromSWGApiResponse:(SWGApiResponse*)object context:(NSManagedObjectContext*)context;
-(void)updateSWGApiResponseManagedObject:(SWGApiResponseManagedObject*)object withSWGApiResponse:(SWGApiResponse*)object2;
-(SWGApiResponse*)SWGApiResponseFromSWGApiResponseManagedObject:(SWGApiResponseManagedObject*)obj;
-(void)updateSWGApiResponse:(SWGApiResponse*)object withSWGApiResponseManagedObject:(SWGApiResponseManagedObject*)object2;
@end
samples/client/petstore/objc/core-data/SwaggerClient/Model/SWGApiResponseManagedObjectBuilder.m deleted 100644 → 0
+ 0
- 57
  • View file @ ef429770

#import "SWGApiResponseManagedObjectBuilder.h"
/**
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen
* Do not edit the class manually.
*/
@implementation SWGApiResponseManagedObjectBuilder
-(instancetype)init {
self = [super init];
if (self != nil) {
}
return self;
}
-(SWGApiResponseManagedObject*)createNewSWGApiResponseManagedObjectInContext:(NSManagedObjectContext*)context {
SWGApiResponseManagedObject *managedObject = [NSEntityDescription insertNewObjectForEntityForName:NSStringFromClass([SWGApiResponseManagedObject class]) inManagedObjectContext:context];
return managedObject;
}
-(SWGApiResponseManagedObject*)SWGApiResponseManagedObjectFromSWGApiResponse:(SWGApiResponse*)object context:(NSManagedObjectContext*)context {
SWGApiResponseManagedObject* newSWGApiResponse = [self createNewSWGApiResponseManagedObjectInContext:context];
[self updateSWGApiResponseManagedObject:newSWGApiResponse withSWGApiResponse:object];
return newSWGApiResponse;
}
-(void)updateSWGApiResponseManagedObject:(SWGApiResponseManagedObject*)managedObject withSWGApiResponse:(SWGApiResponse*)object {
if(!managedObject || !object) {
return;
}
NSManagedObjectContext* context = managedObject.managedObjectContext;
managedObject.code = [object.code copy];
managedObject.type = [object.type copy];
managedObject.message = [object.message copy];
}
-(SWGApiResponse*)SWGApiResponseFromSWGApiResponseManagedObject:(SWGApiResponseManagedObject*)obj {
if(!obj) {
return nil;
}
SWGApiResponse* newSWGApiResponse = [[SWGApiResponse alloc] init];
[self updateSWGApiResponse:newSWGApiResponse withSWGApiResponseManagedObject:obj];
return newSWGApiResponse;
}
-(void)updateSWGApiResponse:(SWGApiResponse*)newSWGApiResponse withSWGApiResponseManagedObject:(SWGApiResponseManagedObject*)obj {
newSWGApiResponse.code = [obj.code copy];
newSWGApiResponse.type = [obj.type copy];
newSWGApiResponse.message = [obj.message copy];
}
@end
samples/client/petstore/objc/default/SwaggerClient/Core/SWGJSONResponseSerializer.h deleted 100644 → 0
+ 0
- 19
  • View file @ ef429770

#import <Foundation/Foundation.h>
#import <AFNetworking/AFURLResponseSerialization.h>
/**
* Swagger Petstore
* This is a sample server Petstore server. You can find out more about Swagger at <a href=\"http://swagger.io\">http://swagger.io</a> or on irc.freenode.net, #swagger. For this sample, you can use the api key \"special-key\" to test the authorization filters
*
* OpenAPI spec version: 1.0.0
* Contact: apiteam@wordnik.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
@interface SWGJSONResponseSerializer : AFJSONResponseSerializer
@end
samples/client/petstore/objc/default/SwaggerClient/Model/SWGApiResponse.h deleted 100644 → 0
+ 0
- 31
  • View file @ ef429770

#import <Foundation/Foundation.h>
#import "SWGObject.h"
/**
* Swagger Petstore
* This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters.
*
* OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
@protocol SWGApiResponse
@end
@interface SWGApiResponse : SWGObject
@property(nonatomic) NSNumber* code;
@property(nonatomic) NSString* type;
@property(nonatomic) NSString* message;
@end
0 Assignees
None
Assign to
0 Reviewers
None
Request review from
Labels
0
None
0
None
    Assign labels
  • Manage project labels

Milestone
No milestone
None
None
Time tracking
No estimate or time spent
Lock merge request
Unlocked
0
0 participants
Reference:
Source branch: obj-clean-up

Menu

Explore Projects Groups Snippets