Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion samples/client/petstore/cpprest/api/PetApi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,7 @@ pplx::task<std::vector<std::shared_ptr<Pet>>> PetApi::findPetsByTags(std::vector


{
queryParams[U("tags")] = ApiClient::parameterToArrayString<>(tags);
queryParams[U("tags")] = ApiClient::parameterToArrayString<utility::string_t>(tags);
}

std::shared_ptr<IHttpBody> httpBody;
Expand Down
4 changes: 2 additions & 2 deletions samples/client/petstore/cpprest/api/PetApi.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@

#include "ApiClient.h"

#include "Pet.h"
#include <cpprest/details/basic_types.h>
#include "ApiResponse.h"
#include "HttpContent.h"
#include "Pet.h"
#include <cpprest/details/basic_types.h>

namespace io {
namespace swagger {
Expand Down
4 changes: 2 additions & 2 deletions samples/client/petstore/cpprest/api/StoreApi.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@

#include "ApiClient.h"

#include <cpprest/details/basic_types.h>
#include <map>
#include "Order.h"
#include <map>
#include <cpprest/details/basic_types.h>

namespace io {
namespace swagger {
Expand Down
2 changes: 1 addition & 1 deletion samples/client/petstore/cpprest/model/Category.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ namespace model {

Category::Category()
{
m_Id = 0L;
m_Id = 0;
m_IdIsSet = false;
m_Name = U("");
m_NameIsSet = false;
Expand Down
4 changes: 2 additions & 2 deletions samples/client/petstore/cpprest/model/Order.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ namespace model {

Order::Order()
{
m_Id = 0L;
m_Id = 0;
m_IdIsSet = false;
m_PetId = 0L;
m_PetId = 0;
m_PetIdIsSet = false;
m_Quantity = 0;
m_QuantityIsSet = false;
Expand Down
2 changes: 1 addition & 1 deletion samples/client/petstore/cpprest/model/Pet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ namespace model {

Pet::Pet()
{
m_Id = 0L;
m_Id = 0;
m_IdIsSet = false;
m_CategoryIsSet = false;
m_Name = U("");
Expand Down
2 changes: 1 addition & 1 deletion samples/client/petstore/cpprest/model/Tag.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ namespace model {

Tag::Tag()
{
m_Id = 0L;
m_Id = 0;
m_IdIsSet = false;
m_Name = U("");
m_NameIsSet = false;
Expand Down
2 changes: 1 addition & 1 deletion samples/client/petstore/cpprest/model/User.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ namespace model {

User::User()
{
m_Id = 0L;
m_Id = 0;
m_IdIsSet = false;
m_Username = U("");
m_UsernameIsSet = false;
Expand Down
4 changes: 2 additions & 2 deletions samples/client/petstore/dart/swagger/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ This is a sample server Petstore server. You can find out more about Swagger at
This Dart package is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:

- API version: 1.0.0
- Build date: 2016-11-30T18:12:21.701+08:00
- Build package: class io.swagger.codegen.languages.DartClientCodegen
- Build date: 2017-03-02T21:05:05.222+01:00
- Build package: io.swagger.codegen.languages.DartClientCodegen

## Requirements

Expand Down
2 changes: 1 addition & 1 deletion samples/client/petstore/dart/swagger/docs/PetApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import 'package:swagger/api.dart';
```

All URIs are relative to **
All URIs are relative to *http://petstore.swagger.io/v2*

Method | HTTP request | Description
------------- | ------------- | -------------
Expand Down
2 changes: 1 addition & 1 deletion samples/client/petstore/dart/swagger/docs/StoreApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import 'package:swagger/api.dart';
```

All URIs are relative to **
All URIs are relative to *http://petstore.swagger.io/v2*

Method | HTTP request | Description
------------- | ------------- | -------------
Expand Down
2 changes: 1 addition & 1 deletion samples/client/petstore/dart/swagger/docs/UserApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import 'package:swagger/api.dart';
```

All URIs are relative to **
All URIs are relative to *http://petstore.swagger.io/v2*

Method | HTTP request | Description
------------- | ------------- | -------------
Expand Down
23 changes: 23 additions & 0 deletions samples/client/petstore/flash/.swagger-codegen-ignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Swagger Codegen Ignore
# Generated by swagger-codegen https://github.com/swagger-api/swagger-codegen

# Use this file to prevent files from being overwritten by the generator.
# The patterns follow closely to .gitignore or .dockerignore.

# As an example, the C# client generator defines ApiClient.cs.
# You can make changes and tell Swagger Codgen to ignore just this file by uncommenting the following line:
#ApiClient.cs

# You can match any string of characters against a directory, file or extension with a single asterisk (*):
#foo/*/qux
# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux

# You can recursively match patterns against a directory, file or extension with a double asterisk (**):
#foo/**/qux
# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux

# You can also negate patterns with an exclamation (!).
# For example, you can ignore all files in a docs folder with the file extension .md:
#docs/*.md
# Then explicitly reverse the ignore rule for a single file:
#!docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import io.swagger.exception.ApiError;
import io.swagger.common.ApiUserCredentials;
import io.swagger.event.Response;
import io.swagger.common.SwaggerApi;
import io.swagger.client.model.Pet;
import io.swagger.client.model.ApiResponse;
import flash.filesystem.File;
import io.swagger.client.model.Pet;

import mx.rpc.AsyncToken;
import mx.utils.UIDUtil;
Expand Down
4 changes: 2 additions & 2 deletions samples/client/petstore/flash/git_push.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ git_repo_id=$2
release_note=$3

if [ "$git_user_id" = "" ]; then
git_user_id="YOUR_GIT_USR_ID"
git_user_id="GIT_USER_ID"
echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
fi

if [ "$git_repo_id" = "" ]; then
git_repo_id="YOUR_GIT_REPO_ID"
git_repo_id="GIT_REPO_ID"
echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
fi

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import static groovyx.net.http.ContentType.*
import static groovyx.net.http.Method.*
import io.swagger.api.ApiUtils

import io.swagger.model.Pet
import io.swagger.model.File
import io.swagger.model.ModelApiResponse
import java.io.File
import io.swagger.model.Pet

import java.util.*;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import static groovyx.net.http.ContentType.*
import static groovyx.net.http.Method.*
import io.swagger.api.ApiUtils

import io.swagger.model.Map
import io.swagger.model.Order

import java.util.*;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package io.swagger.model;
import groovy.transform.Canonical
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;
import io.swagger.model.Date;
@Canonical
class Order {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package io.swagger.model;
import groovy.transform.Canonical
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.model.ArrayList;
import io.swagger.model.Category;
import io.swagger.model.Tag;
import java.util.ArrayList;
import java.util.List;
@Canonical
class Pet {
Expand Down
17 changes: 8 additions & 9 deletions samples/client/petstore/objc/core-data/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ This ObjC package is automatically generated by the [Swagger Codegen](https://gi

- API version: 1.0.0
- Package version:
- Build date: 2016-08-23T10:56:27.632+02:00
- Build package: class io.swagger.codegen.languages.ObjcClientCodegen
- Build package: io.swagger.codegen.languages.ObjcClientCodegen

## Requirements

Expand Down Expand Up @@ -56,7 +55,7 @@ Import the following:

## Recommendation

It's recommended to create an instance of ApiClient per thread in a multi-threaded environment to avoid any potential issue.
It's recommended to create an instance of ApiClient per thread in a multi-threaded environment to avoid any potential issues.

## Getting Started

Expand Down Expand Up @@ -124,6 +123,12 @@ Class | Method | HTTP request | Description
## Documentation For Authorization


## api_key

- **Type**: API key
- **API key parameter name**: api_key
- **Location**: HTTP header

## petstore_auth

- **Type**: OAuth
Expand All @@ -133,12 +138,6 @@ Class | Method | HTTP request | Description
- **write:pets**: modify pets in your account
- **read:pets**: read your pets

## api_key

- **Type**: API key
- **API key parameter name**: api_key
- **Location**: HTTP header


## Author

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Pod::Spec.new do |s|
s.frameworks = 'SystemConfiguration', 'CoreData'

s.homepage = "https://github.com/swagger-api/swagger-codegen"
s.license = "Apache License, Version 2.0"
s.license = "Proprietary"
s.source = { :git => "https://github.com/swagger-api/swagger-codegen.git", :tag => "#{s.version}" }
s.author = { "Swagger" => "apiteam@swagger.io" }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,10 @@
* 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.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/



@interface SWGPetApi: NSObject <SWGApi>

extern NSString* kSWGPetApiErrorDomain;
Expand Down Expand Up @@ -61,7 +50,7 @@ extern NSInteger kSWGPetApiMissingParamErrorCode;


/// Finds Pets by status
/// Multiple status values can be provided with comma seperated strings
/// Multiple status values can be provided with comma separated strings
///
/// @param status Status values that need to be considered for filter (optional) (default to available)
///
Expand All @@ -74,7 +63,7 @@ extern NSInteger kSWGPetApiMissingParamErrorCode;


/// Finds Pets by tags
/// Muliple tags can be provided with comma seperated strings. Use tag1, tag2, tag3 for testing.
/// Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.
///
/// @param tags Tags to filter by (optional)
///
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ -(NSURLSessionTask*) deletePetWithPetId: (NSNumber*) petId

///
/// Finds Pets by status
/// Multiple status values can be provided with comma seperated strings
/// Multiple status values can be provided with comma separated strings
/// @param status Status values that need to be considered for filter (optional, default to available)
///
/// @returns NSArray<SWGPet>*
Expand Down Expand Up @@ -247,7 +247,7 @@ -(NSURLSessionTask*) findPetsByStatusWithStatus: (NSArray<NSString*>*) status

///
/// Finds Pets by tags
/// Muliple tags can be provided with comma seperated strings. Use tag1, tag2, tag3 for testing.
/// Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.
/// @param tags Tags to filter by (optional)
///
/// @returns NSArray<SWGPet>*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,10 @@
* 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.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/



@interface SWGStoreApi: NSObject <SWGApi>

extern NSString* kSWGStoreApiErrorDomain;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,10 @@
* 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.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/



@interface SWGUserApi: NSObject <SWGApi>

extern NSString* kSWGUserApiErrorDomain;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,9 @@
* 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.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/


/**
* A key for `NSError` user info dictionaries.
*
Expand Down
Loading