From bd81f3264d0d849d1e233121986c782248c90aa4 Mon Sep 17 00:00:00 2001 From: Brian Shamblen Date: Fri, 16 Dec 2016 02:06:28 -0800 Subject: [PATCH] [html2] Fix import statements for most languages (#4243) * [html2] Clean up namespace issues in code samples * pull c# and php package namespace from --additional-properties arg phpInvokerPackage arg now sets the PHP namespace and packageName sets the CSharp namespace. invokerPackage still works for Java and Android namespace. --- .../io/swagger/codegen/CodegenConstants.java | 3 + .../languages/StaticHtml2Generator.java | 35 +- .../main/resources/htmlDocs2/index.mustache | 28 +- .../htmlDocs2/sample_android.mustache | 4 +- .../htmlDocs2/sample_csharp.mustache | 6 +- .../resources/htmlDocs2/sample_java.mustache | 4 +- .../resources/htmlDocs2/sample_js.mustache | 6 +- .../resources/htmlDocs2/sample_objc.mustache | 1 - .../resources/htmlDocs2/sample_php.mustache | 15 +- samples/html2/index.html | 1160 ++++++----------- 10 files changed, 461 insertions(+), 801 deletions(-) diff --git a/modules/swagger-codegen/src/main/java/io/swagger/codegen/CodegenConstants.java b/modules/swagger-codegen/src/main/java/io/swagger/codegen/CodegenConstants.java index 84c5c9e8714e..094ff38e8fde 100644 --- a/modules/swagger-codegen/src/main/java/io/swagger/codegen/CodegenConstants.java +++ b/modules/swagger-codegen/src/main/java/io/swagger/codegen/CodegenConstants.java @@ -16,6 +16,9 @@ public class CodegenConstants { public static final String INVOKER_PACKAGE = "invokerPackage"; public static final String INVOKER_PACKAGE_DESC = "root package for generated code"; + public static final String PHP_INVOKER_PACKAGE = "phpInvokerPackage"; + public static final String PHP_INVOKER_PACKAGE_DESC = "root package for generated php code"; + public static final String GROUP_ID = "groupId"; public static final String GROUP_ID_DESC = "groupId in generated pom.xml"; diff --git a/modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/StaticHtml2Generator.java b/modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/StaticHtml2Generator.java index 2907c1dfc435..7a07ef8a58fd 100644 --- a/modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/StaticHtml2Generator.java +++ b/modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/StaticHtml2Generator.java @@ -7,17 +7,23 @@ import io.swagger.models.Swagger; import io.swagger.models.properties.ArrayProperty; import io.swagger.models.properties.MapProperty; import io.swagger.models.properties.Property; +import io.swagger.models.Info; +import org.apache.commons.lang3.StringUtils; import java.util.HashMap; import java.util.HashSet; import java.util.List; import java.util.Map; public class StaticHtml2Generator extends DefaultCodegen implements CodegenConfig { - protected String invokerPackage = "io.swagger.client"; + protected String invokerPackage = "io.swagger.client"; // default for Java and Android + protected String phpInvokerPackage = "Swagger\\Client"; // default for PHP + protected String packageName = "IO.Swagger"; // default for C# protected String groupId = "io.swagger"; protected String artifactId = "swagger-client"; protected String artifactVersion = "1.0.0"; + protected String jsProjectName; + protected String jsModuleName; public StaticHtml2Generator() { super(); @@ -33,6 +39,8 @@ public class StaticHtml2Generator extends DefaultCodegen implements CodegenConfi cliOptions.add(new CliOption("licenseInfo", "a short description of the license")); cliOptions.add(new CliOption("licenseUrl", "a URL pointing to the full license")); cliOptions.add(new CliOption(CodegenConstants.INVOKER_PACKAGE, CodegenConstants.INVOKER_PACKAGE_DESC)); + cliOptions.add(new CliOption(CodegenConstants.PHP_INVOKER_PACKAGE, CodegenConstants.PHP_INVOKER_PACKAGE_DESC)); + cliOptions.add(new CliOption(CodegenConstants.PACKAGE_NAME, "C# package name")); cliOptions.add(new CliOption(CodegenConstants.GROUP_ID, CodegenConstants.GROUP_ID_DESC)); cliOptions.add(new CliOption(CodegenConstants.ARTIFACT_ID, CodegenConstants.ARTIFACT_ID_DESC)); cliOptions.add(new CliOption(CodegenConstants.ARTIFACT_VERSION, CodegenConstants.ARTIFACT_VERSION_DESC)); @@ -44,6 +52,8 @@ public class StaticHtml2Generator extends DefaultCodegen implements CodegenConfi additionalProperties.put("licenseInfo", "All rights reserved"); additionalProperties.put("licenseUrl", "http://apache.org/licenses/LICENSE-2.0.html"); additionalProperties.put(CodegenConstants.INVOKER_PACKAGE, invokerPackage); + additionalProperties.put(CodegenConstants.PHP_INVOKER_PACKAGE, phpInvokerPackage); + additionalProperties.put(CodegenConstants.PACKAGE_NAME, packageName); additionalProperties.put(CodegenConstants.GROUP_ID, groupId); additionalProperties.put(CodegenConstants.ARTIFACT_ID, artifactId); additionalProperties.put(CodegenConstants.ARTIFACT_VERSION, artifactVersion); @@ -101,6 +111,29 @@ public class StaticHtml2Generator extends DefaultCodegen implements CodegenConfi return objs; } + @Override + public void preprocessSwagger(Swagger swagger) { + super.preprocessSwagger(swagger); + + if (swagger.getInfo() != null) { + Info info = swagger.getInfo(); + if (StringUtils.isBlank(jsProjectName) && info.getTitle() != null) { + // when jsProjectName is not specified, generate it from info.title + jsProjectName = sanitizeName(dashize(info.getTitle())); + } + } + + // default values + if (StringUtils.isBlank(jsProjectName)) { + jsProjectName = "swagger-js-client"; + } + if (StringUtils.isBlank(jsModuleName)) { + jsModuleName = camelize(underscore(jsProjectName)); + } + + additionalProperties.put("jsProjectName", jsProjectName); + additionalProperties.put("jsModuleName", jsModuleName); + } @Override public CodegenOperation fromOperation(String path, String httpMethod, Operation operation, Map definitions, Swagger swagger) { diff --git a/modules/swagger-codegen/src/main/resources/htmlDocs2/index.mustache b/modules/swagger-codegen/src/main/resources/htmlDocs2/index.mustache index e7dbd5352580..3f5cb05b3dce 100644 --- a/modules/swagger-codegen/src/main/resources/htmlDocs2/index.mustache +++ b/modules/swagger-codegen/src/main/resources/htmlDocs2/index.mustache @@ -222,50 +222,36 @@
-

-  curl -X {{httpMethod}}{{#authMethods}}{{#isApiKey}}{{#isKeyInHeader}} -H "{{keyParamName}}: [[apiKey]]" {{/isKeyInHeader}}{{/isApiKey}}{{#isBasic}} -H "Authorization: Basic [[basicHash]]" {{/isBasic}}{{/authMethods}} "{{basePath}}{{path}}{{#hasQueryParams}}?{{#queryParams}}{{^-first}}&{{/-first}}{{paramName}}={{vendorExtensions.x-eg}}{{/queryParams}}{{/hasQueryParams}}"
-  
+
curl -X {{httpMethod}}{{#authMethods}}{{#isApiKey}}{{#isKeyInHeader}} -H "{{keyParamName}}: [[apiKey]]" {{/isKeyInHeader}}{{/isApiKey}}{{#isBasic}} -H "Authorization: Basic [[basicHash]]" {{/isBasic}}{{/authMethods}} "{{basePath}}{{path}}{{#hasQueryParams}}?{{#queryParams}}{{^-first}}&{{/-first}}{{paramName}}={{vendorExtensions.x-eg}}{{/queryParams}}{{/hasQueryParams}}"
-

-  {{>sample_java}}
-                            
+
{{>sample_java}}
-

-  {{>sample_android}}
-                            
+
{{>sample_android}}
-

-  {{>sample_objc}}
-                              
+
{{>sample_objc}}
-

-  {{>sample_js}}
-                              
+
{{>sample_js}}
-

-  {{>sample_csharp}}
-                              
+
{{>sample_csharp}}
-

-  {{>sample_php}}
-                              
+
{{>sample_php}}
diff --git a/modules/swagger-codegen/src/main/resources/htmlDocs2/sample_android.mustache b/modules/swagger-codegen/src/main/resources/htmlDocs2/sample_android.mustache index cb23590bf535..2bf0769666ce 100644 --- a/modules/swagger-codegen/src/main/resources/htmlDocs2/sample_android.mustache +++ b/modules/swagger-codegen/src/main/resources/htmlDocs2/sample_android.mustache @@ -1,4 +1,4 @@ -import {{{package}}}.{{{classname}}}; +import {{{invokerPackage}}}.api.{{{classname}}}; public class {{{classname}}}Example { @@ -15,4 +15,4 @@ public class {{{classname}}}Example { e.printStackTrace(); } } -} +} \ No newline at end of file diff --git a/modules/swagger-codegen/src/main/resources/htmlDocs2/sample_csharp.mustache b/modules/swagger-codegen/src/main/resources/htmlDocs2/sample_csharp.mustache index fd7a75d0da28..ebfef12699fb 100644 --- a/modules/swagger-codegen/src/main/resources/htmlDocs2/sample_csharp.mustache +++ b/modules/swagger-codegen/src/main/resources/htmlDocs2/sample_csharp.mustache @@ -2,9 +2,7 @@ using System; using System.Diagnostics; using {{packageName}}.Api; using {{packageName}}.Client; -{{#modelPackage}} -using {{{.}}}; -{{/modelPackage}} +using {{packageName}}.Model; namespace Example { @@ -48,4 +46,4 @@ namespace Example } } } -} +} \ No newline at end of file diff --git a/modules/swagger-codegen/src/main/resources/htmlDocs2/sample_java.mustache b/modules/swagger-codegen/src/main/resources/htmlDocs2/sample_java.mustache index 160916ed81f6..02454e6cc7d2 100644 --- a/modules/swagger-codegen/src/main/resources/htmlDocs2/sample_java.mustache +++ b/modules/swagger-codegen/src/main/resources/htmlDocs2/sample_java.mustache @@ -1,7 +1,7 @@ import {{{invokerPackage}}}.*; import {{{invokerPackage}}}.auth.*; import {{{invokerPackage}}}.model.*; -import {{{package}}}.{{{classname}}}; +import {{{invokerPackage}}}.api.{{{classname}}}; import java.io.File; import java.util.*; @@ -38,4 +38,4 @@ public class {{{classname}}}Example { e.printStackTrace(); } } -} +} \ No newline at end of file diff --git a/modules/swagger-codegen/src/main/resources/htmlDocs2/sample_js.mustache b/modules/swagger-codegen/src/main/resources/htmlDocs2/sample_js.mustache index 8c77656a1a61..4fc35f077113 100644 --- a/modules/swagger-codegen/src/main/resources/htmlDocs2/sample_js.mustache +++ b/modules/swagger-codegen/src/main/resources/htmlDocs2/sample_js.mustache @@ -1,6 +1,6 @@ -var {{{moduleName}}} = require('{{{projectName}}}'); +var {{{jsModuleName}}} = require('{{{jsProjectName}}}'); {{#hasAuthMethods}} -var defaultClient = {{{moduleName}}}.ApiClient.instance; +var defaultClient = {{{jsModuleName}}}.ApiClient.instance; {{#authMethods}}{{#isBasic}} // Configure HTTP basic authorization: {{{name}}} var {{{name}}} = defaultClient.authentications['{{{name}}}']; @@ -17,7 +17,7 @@ var {{{name}}} = defaultClient.authentications['{{{name}}}']; {{/authMethods}} {{/hasAuthMethods}} -var api = new {{{moduleName}}}.{{{classname}}}(){{#hasParams}} +var api = new {{{jsModuleName}}}.{{{classname}}}(){{#hasParams}} {{#vendorExtensions.x-codegen-hasRequiredParams}}{{#allParams}}{{#required}} var {{{paramName}}} = {{{example}}}; // {{=< >=}}{<&dataType>}<={{ }}=> {{{description}}} {{/required}}{{/allParams}}{{/vendorExtensions.x-codegen-hasRequiredParams}}{{#hasOptionalParams}} diff --git a/modules/swagger-codegen/src/main/resources/htmlDocs2/sample_objc.mustache b/modules/swagger-codegen/src/main/resources/htmlDocs2/sample_objc.mustache index 88aa2b08b749..232bf0c2f055 100644 --- a/modules/swagger-codegen/src/main/resources/htmlDocs2/sample_objc.mustache +++ b/modules/swagger-codegen/src/main/resources/htmlDocs2/sample_objc.mustache @@ -13,7 +13,6 @@ [apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"]; {{/isOAuth}}{{/authMethods}} {{/hasAuthMethods}} - {{#allParams}}{{{dataType}}} *{{paramName}} = {{{example}}}; // {{{description}}}{{^required}} (optional){{/required}}{{#defaultValue}} (default to {{{.}}}){{/defaultValue}} {{/allParams}} diff --git a/modules/swagger-codegen/src/main/resources/htmlDocs2/sample_php.mustache b/modules/swagger-codegen/src/main/resources/htmlDocs2/sample_php.mustache index 4b9ee43b866d..b479530d6cae 100644 --- a/modules/swagger-codegen/src/main/resources/htmlDocs2/sample_php.mustache +++ b/modules/swagger-codegen/src/main/resources/htmlDocs2/sample_php.mustache @@ -1,18 +1,18 @@ - +<?php require_once(__DIR__ . '/vendor/autoload.php'); {{#hasAuthMethods}}{{#authMethods}}{{#isBasic}} // Configure HTTP basic authorization: {{{name}}} -{{{invokerPackage}}}\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME'); -{{{invokerPackage}}}\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');{{/isBasic}}{{#isApiKey}} +{{phpInvokerPackage}}\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME'); +{{phpInvokerPackage}}\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');{{/isBasic}}{{#isApiKey}} // Configure API key authorization: {{{name}}} -{{{invokerPackage}}}\Configuration::getDefaultConfiguration()->setApiKey('{{{keyParamName}}}', 'YOUR_API_KEY'); +{{phpInvokerPackage}}\Configuration::getDefaultConfiguration()->setApiKey('{{{keyParamName}}}', 'YOUR_API_KEY'); // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// {{{invokerPackage}}}\Configuration::getDefaultConfiguration()->setApiKeyPrefix('{{{keyParamName}}}', 'Bearer');{{/isApiKey}}{{#isOAuth}} +// {{phpInvokerPackage}}\Configuration::getDefaultConfiguration()->setApiKeyPrefix('{{{keyParamName}}}', 'Bearer');{{/isApiKey}}{{#isOAuth}} // Configure OAuth2 access token for authorization: {{{name}}} -{{{invokerPackage}}}\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');{{/isOAuth}}{{/authMethods}} +{{phpInvokerPackage}}\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');{{/isOAuth}}{{/authMethods}} {{/hasAuthMethods}} -$api_instance = new {{invokerPackage}}\Api\{{classname}}(); +$api_instance = new Swagger\Client\Api\{{classname}}(); {{#allParams}}${{paramName}} = {{{example}}}; // {{{dataType}}} | {{{description}}} {{/allParams}} @@ -22,3 +22,4 @@ try { } catch (Exception $e) { echo 'Exception when calling {{classname}}->{{operationId}}: ', $e->getMessage(), PHP_EOL; } +?> \ No newline at end of file diff --git a/samples/html2/index.html b/samples/html2/index.html index d7ee2cea4680..1cc445b3f32a 100644 --- a/samples/html2/index.html +++ b/samples/html2/index.html @@ -1010,16 +1010,13 @@ margin-bottom: 20px;
-

-  curl -X post "http://petstore.swagger.io/v2/pet"
-  
+
curl -X post "http://petstore.swagger.io/v2/pet"
-

-  import io.swagger.client.*;
+                            
import io.swagger.client.*;
 import io.swagger.client.auth.*;
 import io.swagger.client.model.*;
-import .PetApi;
+import io.swagger.client.api.PetApi;
 
 import java.io.File;
 import java.util.*;
@@ -1042,14 +1039,11 @@ public class PetApiExample {
             e.printStackTrace();
         }
     }
-}
-
-                            
+}
-

-  import .PetApi;
+                            
import io.swagger.client.api.PetApi;
 
 public class PetApiExample {
 
@@ -1063,22 +1057,18 @@ public class PetApiExample {
             e.printStackTrace();
         }
     }
-}
-
-                            
+}
-

-  Configuration *apiConfig = [Configuration sharedConfig];
+                              
Configuration *apiConfig = [Configuration sharedConfig];
 
 // Configure OAuth2 access token for authorization: (authentication scheme: petstore_auth)
 [apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
 
-
 Pet *body = ; // Pet object that needs to be added to the store
 
 PetApi *apiInstance = [[PetApi alloc] init];
@@ -1090,20 +1080,18 @@ PetApi *apiInstance = [[PetApi alloc] init];
                                 NSLog(@"Error: %@", error);
                             }
                         }];
-
-                              
+
-

-  var  = require('');
-var defaultClient = .ApiClient.instance;
+                              
var SwaggerPetstore = require('swagger_petstore');
+var defaultClient = SwaggerPetstore.ApiClient.instance;
 
 // Configure OAuth2 access token for authorization: petstore_auth
 var petstore_auth = defaultClient.authentications['petstore_auth'];
 petstore_auth.accessToken = "YOUR ACCESS TOKEN"
 
-var api = new .PetApi()
+var api = new SwaggerPetstore.PetApi()
 
 var body = ; // {Pet} Pet object that needs to be added to the store
 
@@ -1116,20 +1104,18 @@ var callback = function(error, data, response) {
   }
 };
 api.addPet(body, callback);
-
-                              
+
-

-  using System;
+                              
using System;
 using System.Diagnostics;
-using .Api;
-using .Client;
-using ;
+using IO.Swagger.Api;
+using IO.Swagger.Client;
+using IO.Swagger.Model;
 
 namespace Example
 {
@@ -1155,20 +1141,17 @@ namespace Example
             }
         }
     }
-}
-
-                              
+}
-

-  <?php
 require_once(__DIR__ . '/vendor/autoload.php');
 
 // Configure OAuth2 access token for authorization: petstore_auth
-io.swagger.client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
+Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
 
-$api_instance = new io.swagger.client\Api\PetApi();
+$api_instance = new Swagger\Client\Api\PetApi();
 $body = ; // Pet | Pet object that needs to be added to the store
 
 try {
@@ -1176,8 +1159,7 @@ try {
 } catch (Exception $e) {
     echo 'Exception when calling PetApi->addPet: ', $e->getMessage(), PHP_EOL;
 }
-
-                              
+?>
@@ -1275,16 +1257,13 @@ try {
-

-  curl -X delete "http://petstore.swagger.io/v2/pet/{petId}"
-  
+
curl -X delete "http://petstore.swagger.io/v2/pet/{petId}"
-

-  import io.swagger.client.*;
+                            
import io.swagger.client.*;
 import io.swagger.client.auth.*;
 import io.swagger.client.model.*;
-import .PetApi;
+import io.swagger.client.api.PetApi;
 
 import java.io.File;
 import java.util.*;
@@ -1308,14 +1287,11 @@ public class PetApiExample {
             e.printStackTrace();
         }
     }
-}
-
-                            
+}
-

-  import .PetApi;
+                            
import io.swagger.client.api.PetApi;
 
 public class PetApiExample {
 
@@ -1330,22 +1306,18 @@ public class PetApiExample {
             e.printStackTrace();
         }
     }
-}
-
-                            
+}
-

-  Configuration *apiConfig = [Configuration sharedConfig];
+                              
Configuration *apiConfig = [Configuration sharedConfig];
 
 // Configure OAuth2 access token for authorization: (authentication scheme: petstore_auth)
 [apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
 
-
 Long *petId = 789; // Pet id to delete
 String *apiKey = apiKey_example; //  (optional)
 
@@ -1359,20 +1331,18 @@ PetApi *apiInstance = [[PetApi alloc] init];
                                 NSLog(@"Error: %@", error);
                             }
                         }];
-
-                              
+
-

-  var  = require('');
-var defaultClient = .ApiClient.instance;
+                              
var SwaggerPetstore = require('swagger_petstore');
+var defaultClient = SwaggerPetstore.ApiClient.instance;
 
 // Configure OAuth2 access token for authorization: petstore_auth
 var petstore_auth = defaultClient.authentications['petstore_auth'];
 petstore_auth.accessToken = "YOUR ACCESS TOKEN"
 
-var api = new .PetApi()
+var api = new SwaggerPetstore.PetApi()
 
 var petId = 789; // {Long} Pet id to delete
 
@@ -1388,20 +1358,18 @@ var callback = function(error, data, response) {
   }
 };
 api.deletePet(petId, opts, callback);
-
-                              
+
-

-  using System;
+                              
using System;
 using System.Diagnostics;
-using .Api;
-using .Client;
-using ;
+using IO.Swagger.Api;
+using IO.Swagger.Client;
+using IO.Swagger.Model;
 
 namespace Example
 {
@@ -1428,20 +1396,17 @@ namespace Example
             }
         }
     }
-}
-
-                              
+}
-

-  <?php
 require_once(__DIR__ . '/vendor/autoload.php');
 
 // Configure OAuth2 access token for authorization: petstore_auth
-io.swagger.client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
+Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
 
-$api_instance = new io.swagger.client\Api\PetApi();
+$api_instance = new Swagger\Client\Api\PetApi();
 $petId = 789; // Long | Pet id to delete
 $apiKey = apiKey_example; // String | 
 
@@ -1450,8 +1415,7 @@ try {
 } catch (Exception $e) {
     echo 'Exception when calling PetApi->deletePet: ', $e->getMessage(), PHP_EOL;
 }
-
-                              
+?>
@@ -1578,16 +1542,13 @@ try {
-

-  curl -X get "http://petstore.swagger.io/v2/pet/findByStatus?status="
-  
+
curl -X get "http://petstore.swagger.io/v2/pet/findByStatus?status="
-

-  import io.swagger.client.*;
+                            
import io.swagger.client.*;
 import io.swagger.client.auth.*;
 import io.swagger.client.model.*;
-import .PetApi;
+import io.swagger.client.api.PetApi;
 
 import java.io.File;
 import java.util.*;
@@ -1611,14 +1572,11 @@ public class PetApiExample {
             e.printStackTrace();
         }
     }
-}
-
-                            
+}
-

-  import .PetApi;
+                            
import io.swagger.client.api.PetApi;
 
 public class PetApiExample {
 
@@ -1633,22 +1591,18 @@ public class PetApiExample {
             e.printStackTrace();
         }
     }
-}
-
-                            
+}
-

-  Configuration *apiConfig = [Configuration sharedConfig];
+                              
Configuration *apiConfig = [Configuration sharedConfig];
 
 // Configure OAuth2 access token for authorization: (authentication scheme: petstore_auth)
 [apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
 
-
 array[String] *status = ; // Status values that need to be considered for filter
 
 PetApi *apiInstance = [[PetApi alloc] init];
@@ -1663,20 +1617,18 @@ PetApi *apiInstance = [[PetApi alloc] init];
                                 NSLog(@"Error: %@", error);
                             }
                         }];
-
-                              
+
-

-  var  = require('');
-var defaultClient = .ApiClient.instance;
+                              
var SwaggerPetstore = require('swagger_petstore');
+var defaultClient = SwaggerPetstore.ApiClient.instance;
 
 // Configure OAuth2 access token for authorization: petstore_auth
 var petstore_auth = defaultClient.authentications['petstore_auth'];
 petstore_auth.accessToken = "YOUR ACCESS TOKEN"
 
-var api = new .PetApi()
+var api = new SwaggerPetstore.PetApi()
 
 var status = ; // {array[String]} Status values that need to be considered for filter
 
@@ -1689,20 +1641,18 @@ var callback = function(error, data, response) {
   }
 };
 api.findPetsByStatus(status, callback);
-
-                              
+
-

-  using System;
+                              
using System;
 using System.Diagnostics;
-using .Api;
-using .Client;
-using ;
+using IO.Swagger.Api;
+using IO.Swagger.Client;
+using IO.Swagger.Model;
 
 namespace Example
 {
@@ -1729,20 +1679,17 @@ namespace Example
             }
         }
     }
-}
-
-                              
+}
-

-  <?php
 require_once(__DIR__ . '/vendor/autoload.php');
 
 // Configure OAuth2 access token for authorization: petstore_auth
-io.swagger.client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
+Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
 
-$api_instance = new io.swagger.client\Api\PetApi();
+$api_instance = new Swagger\Client\Api\PetApi();
 $status = ; // array[String] | Status values that need to be considered for filter
 
 try {
@@ -1751,8 +1698,7 @@ try {
 } catch (Exception $e) {
     echo 'Exception when calling PetApi->findPetsByStatus: ', $e->getMessage(), PHP_EOL;
 }
-
-                              
+?>
@@ -1890,16 +1836,13 @@ try {
-

-  curl -X get "http://petstore.swagger.io/v2/pet/findByTags?tags="
-  
+
curl -X get "http://petstore.swagger.io/v2/pet/findByTags?tags="
-

-  import io.swagger.client.*;
+                            
import io.swagger.client.*;
 import io.swagger.client.auth.*;
 import io.swagger.client.model.*;
-import .PetApi;
+import io.swagger.client.api.PetApi;
 
 import java.io.File;
 import java.util.*;
@@ -1923,14 +1866,11 @@ public class PetApiExample {
             e.printStackTrace();
         }
     }
-}
-
-                            
+}
-

-  import .PetApi;
+                            
import io.swagger.client.api.PetApi;
 
 public class PetApiExample {
 
@@ -1945,22 +1885,18 @@ public class PetApiExample {
             e.printStackTrace();
         }
     }
-}
-
-                            
+}
-

-  Configuration *apiConfig = [Configuration sharedConfig];
+                              
Configuration *apiConfig = [Configuration sharedConfig];
 
 // Configure OAuth2 access token for authorization: (authentication scheme: petstore_auth)
 [apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
 
-
 array[String] *tags = ; // Tags to filter by
 
 PetApi *apiInstance = [[PetApi alloc] init];
@@ -1975,20 +1911,18 @@ PetApi *apiInstance = [[PetApi alloc] init];
                                 NSLog(@"Error: %@", error);
                             }
                         }];
-
-                              
+
-

-  var  = require('');
-var defaultClient = .ApiClient.instance;
+                              
var SwaggerPetstore = require('swagger_petstore');
+var defaultClient = SwaggerPetstore.ApiClient.instance;
 
 // Configure OAuth2 access token for authorization: petstore_auth
 var petstore_auth = defaultClient.authentications['petstore_auth'];
 petstore_auth.accessToken = "YOUR ACCESS TOKEN"
 
-var api = new .PetApi()
+var api = new SwaggerPetstore.PetApi()
 
 var tags = ; // {array[String]} Tags to filter by
 
@@ -2001,20 +1935,18 @@ var callback = function(error, data, response) {
   }
 };
 api.findPetsByTags(tags, callback);
-
-                              
+
-

-  using System;
+                              
using System;
 using System.Diagnostics;
-using .Api;
-using .Client;
-using ;
+using IO.Swagger.Api;
+using IO.Swagger.Client;
+using IO.Swagger.Model;
 
 namespace Example
 {
@@ -2041,20 +1973,17 @@ namespace Example
             }
         }
     }
-}
-
-                              
+}
-

-  <?php
 require_once(__DIR__ . '/vendor/autoload.php');
 
 // Configure OAuth2 access token for authorization: petstore_auth
-io.swagger.client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
+Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
 
-$api_instance = new io.swagger.client\Api\PetApi();
+$api_instance = new Swagger\Client\Api\PetApi();
 $tags = ; // array[String] | Tags to filter by
 
 try {
@@ -2063,8 +1992,7 @@ try {
 } catch (Exception $e) {
     echo 'Exception when calling PetApi->findPetsByTags: ', $e->getMessage(), PHP_EOL;
 }
-
-                              
+?>
@@ -2200,16 +2128,13 @@ try {
-

-  curl -X get -H "api_key: [[apiKey]]"  "http://petstore.swagger.io/v2/pet/{petId}"
-  
+
curl -X get -H "api_key: [[apiKey]]"  "http://petstore.swagger.io/v2/pet/{petId}"
-

-  import io.swagger.client.*;
+                            
import io.swagger.client.*;
 import io.swagger.client.auth.*;
 import io.swagger.client.model.*;
-import .PetApi;
+import io.swagger.client.api.PetApi;
 
 import java.io.File;
 import java.util.*;
@@ -2235,14 +2160,11 @@ public class PetApiExample {
             e.printStackTrace();
         }
     }
-}
-
-                            
+}
-

-  import .PetApi;
+                            
import io.swagger.client.api.PetApi;
 
 public class PetApiExample {
 
@@ -2257,24 +2179,20 @@ public class PetApiExample {
             e.printStackTrace();
         }
     }
-}
-
-                            
+}
-

-  Configuration *apiConfig = [Configuration sharedConfig];
+                              
Configuration *apiConfig = [Configuration sharedConfig];
 
 // Configure API key authorization: (authentication scheme: api_key)
 [apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"api_key"];
 // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
 //[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"api_key"];
 
-
 Long *petId = 789; // ID of pet to return
 
 PetApi *apiInstance = [[PetApi alloc] init];
@@ -2289,14 +2207,12 @@ PetApi *apiInstance = [[PetApi alloc] init];
                                 NSLog(@"Error: %@", error);
                             }
                         }];
-
-                              
+
-

-  var  = require('');
-var defaultClient = .ApiClient.instance;
+                              
var SwaggerPetstore = require('swagger_petstore');
+var defaultClient = SwaggerPetstore.ApiClient.instance;
 
 // Configure API key authorization: api_key
 var api_key = defaultClient.authentications['api_key'];
@@ -2304,7 +2220,7 @@ api_key.apiKey = "YOUR API KEY"
 // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
 //api_key.apiKeyPrefix['api_key'] = "Token"
 
-var api = new .PetApi()
+var api = new SwaggerPetstore.PetApi()
 
 var petId = 789; // {Long} ID of pet to return
 
@@ -2317,20 +2233,18 @@ var callback = function(error, data, response) {
   }
 };
 api.getPetById(petId, callback);
-
-                              
+
-

-  using System;
+                              
using System;
 using System.Diagnostics;
-using .Api;
-using .Client;
-using ;
+using IO.Swagger.Api;
+using IO.Swagger.Client;
+using IO.Swagger.Model;
 
 namespace Example
 {
@@ -2359,22 +2273,19 @@ namespace Example
             }
         }
     }
-}
-
-                              
+}
-

-  <?php
 require_once(__DIR__ . '/vendor/autoload.php');
 
 // Configure API key authorization: api_key
-io.swagger.client\Configuration::getDefaultConfiguration()->setApiKey('api_key', 'YOUR_API_KEY');
+Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('api_key', 'YOUR_API_KEY');
 // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-// io.swagger.client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api_key', 'Bearer');
+// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api_key', 'Bearer');
 
-$api_instance = new io.swagger.client\Api\PetApi();
+$api_instance = new Swagger\Client\Api\PetApi();
 $petId = 789; // Long | ID of pet to return
 
 try {
@@ -2383,8 +2294,7 @@ try {
 } catch (Exception $e) {
     echo 'Exception when calling PetApi->getPetById: ', $e->getMessage(), PHP_EOL;
 }
-
-                              
+?>
@@ -2516,16 +2426,13 @@ try {
-

-  curl -X put "http://petstore.swagger.io/v2/pet"
-  
+
curl -X put "http://petstore.swagger.io/v2/pet"
-

-  import io.swagger.client.*;
+                            
import io.swagger.client.*;
 import io.swagger.client.auth.*;
 import io.swagger.client.model.*;
-import .PetApi;
+import io.swagger.client.api.PetApi;
 
 import java.io.File;
 import java.util.*;
@@ -2548,14 +2455,11 @@ public class PetApiExample {
             e.printStackTrace();
         }
     }
-}
-
-                            
+}
-

-  import .PetApi;
+                            
import io.swagger.client.api.PetApi;
 
 public class PetApiExample {
 
@@ -2569,22 +2473,18 @@ public class PetApiExample {
             e.printStackTrace();
         }
     }
-}
-
-                            
+}
-

-  Configuration *apiConfig = [Configuration sharedConfig];
+                              
Configuration *apiConfig = [Configuration sharedConfig];
 
 // Configure OAuth2 access token for authorization: (authentication scheme: petstore_auth)
 [apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
 
-
 Pet *body = ; // Pet object that needs to be added to the store
 
 PetApi *apiInstance = [[PetApi alloc] init];
@@ -2596,20 +2496,18 @@ PetApi *apiInstance = [[PetApi alloc] init];
                                 NSLog(@"Error: %@", error);
                             }
                         }];
-
-                              
+
-

-  var  = require('');
-var defaultClient = .ApiClient.instance;
+                              
var SwaggerPetstore = require('swagger_petstore');
+var defaultClient = SwaggerPetstore.ApiClient.instance;
 
 // Configure OAuth2 access token for authorization: petstore_auth
 var petstore_auth = defaultClient.authentications['petstore_auth'];
 petstore_auth.accessToken = "YOUR ACCESS TOKEN"
 
-var api = new .PetApi()
+var api = new SwaggerPetstore.PetApi()
 
 var body = ; // {Pet} Pet object that needs to be added to the store
 
@@ -2622,20 +2520,18 @@ var callback = function(error, data, response) {
   }
 };
 api.updatePet(body, callback);
-
-                              
+
-

-  using System;
+                              
using System;
 using System.Diagnostics;
-using .Api;
-using .Client;
-using ;
+using IO.Swagger.Api;
+using IO.Swagger.Client;
+using IO.Swagger.Model;
 
 namespace Example
 {
@@ -2661,20 +2557,17 @@ namespace Example
             }
         }
     }
-}
-
-                              
+}
-

-  <?php
 require_once(__DIR__ . '/vendor/autoload.php');
 
 // Configure OAuth2 access token for authorization: petstore_auth
-io.swagger.client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
+Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
 
-$api_instance = new io.swagger.client\Api\PetApi();
+$api_instance = new Swagger\Client\Api\PetApi();
 $body = ; // Pet | Pet object that needs to be added to the store
 
 try {
@@ -2682,8 +2575,7 @@ try {
 } catch (Exception $e) {
     echo 'Exception when calling PetApi->updatePet: ', $e->getMessage(), PHP_EOL;
 }
-
-                              
+?>
@@ -2785,16 +2677,13 @@ try {
-

-  curl -X post "http://petstore.swagger.io/v2/pet/{petId}"
-  
+
curl -X post "http://petstore.swagger.io/v2/pet/{petId}"
-

-  import io.swagger.client.*;
+                            
import io.swagger.client.*;
 import io.swagger.client.auth.*;
 import io.swagger.client.model.*;
-import .PetApi;
+import io.swagger.client.api.PetApi;
 
 import java.io.File;
 import java.util.*;
@@ -2819,14 +2708,11 @@ public class PetApiExample {
             e.printStackTrace();
         }
     }
-}
-
-                            
+}
-

-  import .PetApi;
+                            
import io.swagger.client.api.PetApi;
 
 public class PetApiExample {
 
@@ -2842,22 +2728,18 @@ public class PetApiExample {
             e.printStackTrace();
         }
     }
-}
-
-                            
+}
-

-  Configuration *apiConfig = [Configuration sharedConfig];
+                              
Configuration *apiConfig = [Configuration sharedConfig];
 
 // Configure OAuth2 access token for authorization: (authentication scheme: petstore_auth)
 [apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
 
-
 Long *petId = 789; // ID of pet that needs to be updated
 String *name = name_example; // Updated name of the pet (optional)
 String *status = status_example; // Updated status of the pet (optional)
@@ -2873,20 +2755,18 @@ PetApi *apiInstance = [[PetApi alloc] init];
                                 NSLog(@"Error: %@", error);
                             }
                         }];
-
-                              
+
-

-  var  = require('');
-var defaultClient = .ApiClient.instance;
+                              
var SwaggerPetstore = require('swagger_petstore');
+var defaultClient = SwaggerPetstore.ApiClient.instance;
 
 // Configure OAuth2 access token for authorization: petstore_auth
 var petstore_auth = defaultClient.authentications['petstore_auth'];
 petstore_auth.accessToken = "YOUR ACCESS TOKEN"
 
-var api = new .PetApi()
+var api = new SwaggerPetstore.PetApi()
 
 var petId = 789; // {Long} ID of pet that needs to be updated
 
@@ -2903,20 +2783,18 @@ var callback = function(error, data, response) {
   }
 };
 api.updatePetWithForm(petId, opts, callback);
-
-                              
+
-

-  using System;
+                              
using System;
 using System.Diagnostics;
-using .Api;
-using .Client;
-using ;
+using IO.Swagger.Api;
+using IO.Swagger.Client;
+using IO.Swagger.Model;
 
 namespace Example
 {
@@ -2944,20 +2822,17 @@ namespace Example
             }
         }
     }
-}
-
-                              
+}
-

-  <?php
 require_once(__DIR__ . '/vendor/autoload.php');
 
 // Configure OAuth2 access token for authorization: petstore_auth
-io.swagger.client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
+Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
 
-$api_instance = new io.swagger.client\Api\PetApi();
+$api_instance = new Swagger\Client\Api\PetApi();
 $petId = 789; // Long | ID of pet that needs to be updated
 $name = name_example; // String | Updated name of the pet
 $status = status_example; // String | Updated status of the pet
@@ -2967,8 +2842,7 @@ try {
 } catch (Exception $e) {
     echo 'Exception when calling PetApi->updatePetWithForm: ', $e->getMessage(), PHP_EOL;
 }
-
-                              
+?>
@@ -3129,16 +3003,13 @@ try {
-

-  curl -X post "http://petstore.swagger.io/v2/pet/{petId}/uploadImage"
-  
+
curl -X post "http://petstore.swagger.io/v2/pet/{petId}/uploadImage"
-

-  import io.swagger.client.*;
+                            
import io.swagger.client.*;
 import io.swagger.client.auth.*;
 import io.swagger.client.model.*;
-import .PetApi;
+import io.swagger.client.api.PetApi;
 
 import java.io.File;
 import java.util.*;
@@ -3164,14 +3035,11 @@ public class PetApiExample {
             e.printStackTrace();
         }
     }
-}
-
-                            
+}
-

-  import .PetApi;
+                            
import io.swagger.client.api.PetApi;
 
 public class PetApiExample {
 
@@ -3188,22 +3056,18 @@ public class PetApiExample {
             e.printStackTrace();
         }
     }
-}
-
-                            
+}
-

-  Configuration *apiConfig = [Configuration sharedConfig];
+                              
Configuration *apiConfig = [Configuration sharedConfig];
 
 // Configure OAuth2 access token for authorization: (authentication scheme: petstore_auth)
 [apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
 
-
 Long *petId = 789; // ID of pet to update
 String *additionalMetadata = additionalMetadata_example; // Additional data to pass to server (optional)
 file *file = /path/to/file.txt; // file to upload (optional)
@@ -3222,20 +3086,18 @@ PetApi *apiInstance = [[PetApi alloc] init];
                                 NSLog(@"Error: %@", error);
                             }
                         }];
-
-                              
+
-

-  var  = require('');
-var defaultClient = .ApiClient.instance;
+                              
var SwaggerPetstore = require('swagger_petstore');
+var defaultClient = SwaggerPetstore.ApiClient.instance;
 
 // Configure OAuth2 access token for authorization: petstore_auth
 var petstore_auth = defaultClient.authentications['petstore_auth'];
 petstore_auth.accessToken = "YOUR ACCESS TOKEN"
 
-var api = new .PetApi()
+var api = new SwaggerPetstore.PetApi()
 
 var petId = 789; // {Long} ID of pet to update
 
@@ -3252,20 +3114,18 @@ var callback = function(error, data, response) {
   }
 };
 api.uploadFile(petId, opts, callback);
-
-                              
+
-

-  using System;
+                              
using System;
 using System.Diagnostics;
-using .Api;
-using .Client;
-using ;
+using IO.Swagger.Api;
+using IO.Swagger.Client;
+using IO.Swagger.Model;
 
 namespace Example
 {
@@ -3294,20 +3154,17 @@ namespace Example
             }
         }
     }
-}
-
-                              
+}
-

-  <?php
 require_once(__DIR__ . '/vendor/autoload.php');
 
 // Configure OAuth2 access token for authorization: petstore_auth
-io.swagger.client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
+Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
 
-$api_instance = new io.swagger.client\Api\PetApi();
+$api_instance = new Swagger\Client\Api\PetApi();
 $petId = 789; // Long | ID of pet to update
 $additionalMetadata = additionalMetadata_example; // String | Additional data to pass to server
 $file = /path/to/file.txt; // file | file to upload
@@ -3318,8 +3175,7 @@ try {
 } catch (Exception $e) {
     echo 'Exception when calling PetApi->uploadFile: ', $e->getMessage(), PHP_EOL;
 }
-
-                              
+?>
@@ -3523,16 +3379,13 @@ try {
-

-  curl -X delete "http://petstore.swagger.io/v2/store/order/{orderId}"
-  
+
curl -X delete "http://petstore.swagger.io/v2/store/order/{orderId}"
-

-  import io.swagger.client.*;
+                            
import io.swagger.client.*;
 import io.swagger.client.auth.*;
 import io.swagger.client.model.*;
-import .StoreApi;
+import io.swagger.client.api.StoreApi;
 
 import java.io.File;
 import java.util.*;
@@ -3550,14 +3403,11 @@ public class StoreApiExample {
             e.printStackTrace();
         }
     }
-}
-
-                            
+}
-

-  import .StoreApi;
+                            
import io.swagger.client.api.StoreApi;
 
 public class StoreApiExample {
 
@@ -3571,18 +3421,14 @@ public class StoreApiExample {
             e.printStackTrace();
         }
     }
-}
-
-                            
+}
-

-  
-String *orderId = orderId_example; // ID of the order that needs to be deleted
+                              
String *orderId = orderId_example; // ID of the order that needs to be deleted
 
 StoreApi *apiInstance = [[StoreApi alloc] init];
 
@@ -3593,15 +3439,13 @@ StoreApi *apiInstance = [[StoreApi alloc] init];
                                 NSLog(@"Error: %@", error);
                             }
                         }];
-
-                              
+
-

-  var  = require('');
+                              
var SwaggerPetstore = require('swagger_petstore');
 
-var api = new .StoreApi()
+var api = new SwaggerPetstore.StoreApi()
 
 var orderId = orderId_example; // {String} ID of the order that needs to be deleted
 
@@ -3614,20 +3458,18 @@ var callback = function(error, data, response) {
   }
 };
 api.deleteOrder(orderId, callback);
-
-                              
+
-

-  using System;
+                              
using System;
 using System.Diagnostics;
-using .Api;
-using .Client;
-using ;
+using IO.Swagger.Api;
+using IO.Swagger.Client;
+using IO.Swagger.Model;
 
 namespace Example
 {
@@ -3650,17 +3492,14 @@ namespace Example
             }
         }
     }
-}
-
-                              
+}
-

-  <?php
 require_once(__DIR__ . '/vendor/autoload.php');
 
-$api_instance = new io.swagger.client\Api\StoreApi();
+$api_instance = new Swagger\Client\Api\StoreApi();
 $orderId = orderId_example; // String | ID of the order that needs to be deleted
 
 try {
@@ -3668,8 +3507,7 @@ try {
 } catch (Exception $e) {
     echo 'Exception when calling StoreApi->deleteOrder: ', $e->getMessage(), PHP_EOL;
 }
-
-                              
+?>
@@ -3759,16 +3597,13 @@ try {
-

-  curl -X get -H "api_key: [[apiKey]]"  "http://petstore.swagger.io/v2/store/inventory"
-  
+
curl -X get -H "api_key: [[apiKey]]"  "http://petstore.swagger.io/v2/store/inventory"
-

-  import io.swagger.client.*;
+                            
import io.swagger.client.*;
 import io.swagger.client.auth.*;
 import io.swagger.client.model.*;
-import .StoreApi;
+import io.swagger.client.api.StoreApi;
 
 import java.io.File;
 import java.util.*;
@@ -3793,14 +3628,11 @@ public class StoreApiExample {
             e.printStackTrace();
         }
     }
-}
-
-                            
+}
-

-  import .StoreApi;
+                            
import io.swagger.client.api.StoreApi;
 
 public class StoreApiExample {
 
@@ -3814,17 +3646,14 @@ public class StoreApiExample {
             e.printStackTrace();
         }
     }
-}
-
-                            
+}
-

-  Configuration *apiConfig = [Configuration sharedConfig];
+                              
Configuration *apiConfig = [Configuration sharedConfig];
 
 // Configure API key authorization: (authentication scheme: api_key)
 [apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"api_key"];
@@ -3832,7 +3661,6 @@ public class StoreApiExample {
 //[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"api_key"];
 
 
-
 StoreApi *apiInstance = [[StoreApi alloc] init];
 
 // Returns pet inventories by status
@@ -3845,14 +3673,12 @@ StoreApi *apiInstance = [[StoreApi alloc] init];
                                 NSLog(@"Error: %@", error);
                             }
                         }];
-
-                              
+
-

-  var  = require('');
-var defaultClient = .ApiClient.instance;
+                              
var SwaggerPetstore = require('swagger_petstore');
+var defaultClient = SwaggerPetstore.ApiClient.instance;
 
 // Configure API key authorization: api_key
 var api_key = defaultClient.authentications['api_key'];
@@ -3860,7 +3686,7 @@ api_key.apiKey = "YOUR API KEY"
 // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
 //api_key.apiKeyPrefix['api_key'] = "Token"
 
-var api = new .StoreApi()
+var api = new SwaggerPetstore.StoreApi()
 
 var callback = function(error, data, response) {
   if (error) {
@@ -3870,20 +3696,18 @@ var callback = function(error, data, response) {
   }
 };
 api.getInventory(callback);
-
-                              
+
-

-  using System;
+                              
using System;
 using System.Diagnostics;
-using .Api;
-using .Client;
-using ;
+using IO.Swagger.Api;
+using IO.Swagger.Client;
+using IO.Swagger.Model;
 
 namespace Example
 {
@@ -3911,22 +3735,19 @@ namespace Example
             }
         }
     }
-}
-
-                              
+}
-

-  <?php
 require_once(__DIR__ . '/vendor/autoload.php');
 
 // Configure API key authorization: api_key
-io.swagger.client\Configuration::getDefaultConfiguration()->setApiKey('api_key', 'YOUR_API_KEY');
+Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('api_key', 'YOUR_API_KEY');
 // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-// io.swagger.client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api_key', 'Bearer');
+// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api_key', 'Bearer');
 
-$api_instance = new io.swagger.client\Api\StoreApi();
+$api_instance = new Swagger\Client\Api\StoreApi();
 
 try {
     $result = $api_instance->getInventory();
@@ -3934,8 +3755,7 @@ try {
 } catch (Exception $e) {
     echo 'Exception when calling StoreApi->getInventory: ', $e->getMessage(), PHP_EOL;
 }
-
-                              
+?>
@@ -4026,16 +3846,13 @@ try {
-

-  curl -X get "http://petstore.swagger.io/v2/store/order/{orderId}"
-  
+
curl -X get "http://petstore.swagger.io/v2/store/order/{orderId}"
-

-  import io.swagger.client.*;
+                            
import io.swagger.client.*;
 import io.swagger.client.auth.*;
 import io.swagger.client.model.*;
-import .StoreApi;
+import io.swagger.client.api.StoreApi;
 
 import java.io.File;
 import java.util.*;
@@ -4054,14 +3871,11 @@ public class StoreApiExample {
             e.printStackTrace();
         }
     }
-}
-
-                            
+}
-

-  import .StoreApi;
+                            
import io.swagger.client.api.StoreApi;
 
 public class StoreApiExample {
 
@@ -4076,18 +3890,14 @@ public class StoreApiExample {
             e.printStackTrace();
         }
     }
-}
-
-                            
+}
-

-  
-Long *orderId = 789; // ID of pet that needs to be fetched
+                              
Long *orderId = 789; // ID of pet that needs to be fetched
 
 StoreApi *apiInstance = [[StoreApi alloc] init];
 
@@ -4101,15 +3911,13 @@ StoreApi *apiInstance = [[StoreApi alloc] init];
                                 NSLog(@"Error: %@", error);
                             }
                         }];
-
-                              
+
-

-  var  = require('');
+                              
var SwaggerPetstore = require('swagger_petstore');
 
-var api = new .StoreApi()
+var api = new SwaggerPetstore.StoreApi()
 
 var orderId = 789; // {Long} ID of pet that needs to be fetched
 
@@ -4122,20 +3930,18 @@ var callback = function(error, data, response) {
   }
 };
 api.getOrderById(orderId, callback);
-
-                              
+
-

-  using System;
+                              
using System;
 using System.Diagnostics;
-using .Api;
-using .Client;
-using ;
+using IO.Swagger.Api;
+using IO.Swagger.Client;
+using IO.Swagger.Model;
 
 namespace Example
 {
@@ -4159,17 +3965,14 @@ namespace Example
             }
         }
     }
-}
-
-                              
+}
-

-  <?php
 require_once(__DIR__ . '/vendor/autoload.php');
 
-$api_instance = new io.swagger.client\Api\StoreApi();
+$api_instance = new Swagger\Client\Api\StoreApi();
 $orderId = 789; // Long | ID of pet that needs to be fetched
 
 try {
@@ -4178,8 +3981,7 @@ try {
 } catch (Exception $e) {
     echo 'Exception when calling StoreApi->getOrderById: ', $e->getMessage(), PHP_EOL;
 }
-
-                              
+?>
@@ -4313,16 +4115,13 @@ try {
-

-  curl -X post "http://petstore.swagger.io/v2/store/order"
-  
+
curl -X post "http://petstore.swagger.io/v2/store/order"
-

-  import io.swagger.client.*;
+                            
import io.swagger.client.*;
 import io.swagger.client.auth.*;
 import io.swagger.client.model.*;
-import .StoreApi;
+import io.swagger.client.api.StoreApi;
 
 import java.io.File;
 import java.util.*;
@@ -4341,14 +4140,11 @@ public class StoreApiExample {
             e.printStackTrace();
         }
     }
-}
-
-                            
+}
-

-  import .StoreApi;
+                            
import io.swagger.client.api.StoreApi;
 
 public class StoreApiExample {
 
@@ -4363,18 +4159,14 @@ public class StoreApiExample {
             e.printStackTrace();
         }
     }
-}
-
-                            
+}
-

-  
-Order *body = ; // order placed for purchasing the pet
+                              
Order *body = ; // order placed for purchasing the pet
 
 StoreApi *apiInstance = [[StoreApi alloc] init];
 
@@ -4388,15 +4180,13 @@ StoreApi *apiInstance = [[StoreApi alloc] init];
                                 NSLog(@"Error: %@", error);
                             }
                         }];
-
-                              
+
-

-  var  = require('');
+                              
var SwaggerPetstore = require('swagger_petstore');
 
-var api = new .StoreApi()
+var api = new SwaggerPetstore.StoreApi()
 
 var body = ; // {Order} order placed for purchasing the pet
 
@@ -4409,20 +4199,18 @@ var callback = function(error, data, response) {
   }
 };
 api.placeOrder(body, callback);
-
-                              
+
-

-  using System;
+                              
using System;
 using System.Diagnostics;
-using .Api;
-using .Client;
-using ;
+using IO.Swagger.Api;
+using IO.Swagger.Client;
+using IO.Swagger.Model;
 
 namespace Example
 {
@@ -4446,17 +4234,14 @@ namespace Example
             }
         }
     }
-}
-
-                              
+}
-

-  <?php
 require_once(__DIR__ . '/vendor/autoload.php');
 
-$api_instance = new io.swagger.client\Api\StoreApi();
+$api_instance = new Swagger\Client\Api\StoreApi();
 $body = ; // Order | order placed for purchasing the pet
 
 try {
@@ -4465,8 +4250,7 @@ try {
 } catch (Exception $e) {
     echo 'Exception when calling StoreApi->placeOrder: ', $e->getMessage(), PHP_EOL;
 }
-
-                              
+?>
@@ -4609,16 +4393,13 @@ try {
-

-  curl -X post "http://petstore.swagger.io/v2/user"
-  
+
curl -X post "http://petstore.swagger.io/v2/user"
-

-  import io.swagger.client.*;
+                            
import io.swagger.client.*;
 import io.swagger.client.auth.*;
 import io.swagger.client.model.*;
-import .UserApi;
+import io.swagger.client.api.UserApi;
 
 import java.io.File;
 import java.util.*;
@@ -4636,14 +4417,11 @@ public class UserApiExample {
             e.printStackTrace();
         }
     }
-}
-
-                            
+}
-

-  import .UserApi;
+                            
import io.swagger.client.api.UserApi;
 
 public class UserApiExample {
 
@@ -4657,18 +4435,14 @@ public class UserApiExample {
             e.printStackTrace();
         }
     }
-}
-
-                            
+}
-

-  
-User *body = ; // Created user object
+                              
User *body = ; // Created user object
 
 UserApi *apiInstance = [[UserApi alloc] init];
 
@@ -4679,15 +4453,13 @@ UserApi *apiInstance = [[UserApi alloc] init];
                                 NSLog(@"Error: %@", error);
                             }
                         }];
-
-                              
+
-

-  var  = require('');
+                              
var SwaggerPetstore = require('swagger_petstore');
 
-var api = new .UserApi()
+var api = new SwaggerPetstore.UserApi()
 
 var body = ; // {User} Created user object
 
@@ -4700,20 +4472,18 @@ var callback = function(error, data, response) {
   }
 };
 api.createUser(body, callback);
-
-                              
+
-

-  using System;
+                              
using System;
 using System.Diagnostics;
-using .Api;
-using .Client;
-using ;
+using IO.Swagger.Api;
+using IO.Swagger.Client;
+using IO.Swagger.Model;
 
 namespace Example
 {
@@ -4736,17 +4506,14 @@ namespace Example
             }
         }
     }
-}
-
-                              
+}
-

-  <?php
 require_once(__DIR__ . '/vendor/autoload.php');
 
-$api_instance = new io.swagger.client\Api\UserApi();
+$api_instance = new Swagger\Client\Api\UserApi();
 $body = ; // User | Created user object
 
 try {
@@ -4754,8 +4521,7 @@ try {
 } catch (Exception $e) {
     echo 'Exception when calling UserApi->createUser: ', $e->getMessage(), PHP_EOL;
 }
-
-                              
+?>
@@ -4853,16 +4619,13 @@ try {
-

-  curl -X post "http://petstore.swagger.io/v2/user/createWithArray"
-  
+
curl -X post "http://petstore.swagger.io/v2/user/createWithArray"
-

-  import io.swagger.client.*;
+                            
import io.swagger.client.*;
 import io.swagger.client.auth.*;
 import io.swagger.client.model.*;
-import .UserApi;
+import io.swagger.client.api.UserApi;
 
 import java.io.File;
 import java.util.*;
@@ -4880,14 +4643,11 @@ public class UserApiExample {
             e.printStackTrace();
         }
     }
-}
-
-                            
+}
-

-  import .UserApi;
+                            
import io.swagger.client.api.UserApi;
 
 public class UserApiExample {
 
@@ -4901,18 +4661,14 @@ public class UserApiExample {
             e.printStackTrace();
         }
     }
-}
-
-                            
+}
-

-  
-array[User] *body = ; // List of user object
+                              
array[User] *body = ; // List of user object
 
 UserApi *apiInstance = [[UserApi alloc] init];
 
@@ -4923,15 +4679,13 @@ UserApi *apiInstance = [[UserApi alloc] init];
                                 NSLog(@"Error: %@", error);
                             }
                         }];
-
-                              
+
-

-  var  = require('');
+                              
var SwaggerPetstore = require('swagger_petstore');
 
-var api = new .UserApi()
+var api = new SwaggerPetstore.UserApi()
 
 var body = ; // {array[User]} List of user object
 
@@ -4944,20 +4698,18 @@ var callback = function(error, data, response) {
   }
 };
 api.createUsersWithArrayInput(body, callback);
-
-                              
+
-

-  using System;
+                              
using System;
 using System.Diagnostics;
-using .Api;
-using .Client;
-using ;
+using IO.Swagger.Api;
+using IO.Swagger.Client;
+using IO.Swagger.Model;
 
 namespace Example
 {
@@ -4980,17 +4732,14 @@ namespace Example
             }
         }
     }
-}
-
-                              
+}
-

-  <?php
 require_once(__DIR__ . '/vendor/autoload.php');
 
-$api_instance = new io.swagger.client\Api\UserApi();
+$api_instance = new Swagger\Client\Api\UserApi();
 $body = ; // array[User] | List of user object
 
 try {
@@ -4998,8 +4747,7 @@ try {
 } catch (Exception $e) {
     echo 'Exception when calling UserApi->createUsersWithArrayInput: ', $e->getMessage(), PHP_EOL;
 }
-
-                              
+?>
@@ -5100,16 +4848,13 @@ try {
-

-  curl -X post "http://petstore.swagger.io/v2/user/createWithList"
-  
+
curl -X post "http://petstore.swagger.io/v2/user/createWithList"
-

-  import io.swagger.client.*;
+                            
import io.swagger.client.*;
 import io.swagger.client.auth.*;
 import io.swagger.client.model.*;
-import .UserApi;
+import io.swagger.client.api.UserApi;
 
 import java.io.File;
 import java.util.*;
@@ -5127,14 +4872,11 @@ public class UserApiExample {
             e.printStackTrace();
         }
     }
-}
-
-                            
+}
-

-  import .UserApi;
+                            
import io.swagger.client.api.UserApi;
 
 public class UserApiExample {
 
@@ -5148,18 +4890,14 @@ public class UserApiExample {
             e.printStackTrace();
         }
     }
-}
-
-                            
+}
-

-  
-array[User] *body = ; // List of user object
+                              
array[User] *body = ; // List of user object
 
 UserApi *apiInstance = [[UserApi alloc] init];
 
@@ -5170,15 +4908,13 @@ UserApi *apiInstance = [[UserApi alloc] init];
                                 NSLog(@"Error: %@", error);
                             }
                         }];
-
-                              
+
-

-  var  = require('');
+                              
var SwaggerPetstore = require('swagger_petstore');
 
-var api = new .UserApi()
+var api = new SwaggerPetstore.UserApi()
 
 var body = ; // {array[User]} List of user object
 
@@ -5191,20 +4927,18 @@ var callback = function(error, data, response) {
   }
 };
 api.createUsersWithListInput(body, callback);
-
-                              
+
-

-  using System;
+                              
using System;
 using System.Diagnostics;
-using .Api;
-using .Client;
-using ;
+using IO.Swagger.Api;
+using IO.Swagger.Client;
+using IO.Swagger.Model;
 
 namespace Example
 {
@@ -5227,17 +4961,14 @@ namespace Example
             }
         }
     }
-}
-
-                              
+}
-

-  <?php
 require_once(__DIR__ . '/vendor/autoload.php');
 
-$api_instance = new io.swagger.client\Api\UserApi();
+$api_instance = new Swagger\Client\Api\UserApi();
 $body = ; // array[User] | List of user object
 
 try {
@@ -5245,8 +4976,7 @@ try {
 } catch (Exception $e) {
     echo 'Exception when calling UserApi->createUsersWithListInput: ', $e->getMessage(), PHP_EOL;
 }
-
-                              
+?>
@@ -5347,16 +5077,13 @@ try {
-

-  curl -X delete "http://petstore.swagger.io/v2/user/{username}"
-  
+
curl -X delete "http://petstore.swagger.io/v2/user/{username}"
-

-  import io.swagger.client.*;
+                            
import io.swagger.client.*;
 import io.swagger.client.auth.*;
 import io.swagger.client.model.*;
-import .UserApi;
+import io.swagger.client.api.UserApi;
 
 import java.io.File;
 import java.util.*;
@@ -5374,14 +5101,11 @@ public class UserApiExample {
             e.printStackTrace();
         }
     }
-}
-
-                            
+}
-

-  import .UserApi;
+                            
import io.swagger.client.api.UserApi;
 
 public class UserApiExample {
 
@@ -5395,18 +5119,14 @@ public class UserApiExample {
             e.printStackTrace();
         }
     }
-}
-
-                            
+}
-

-  
-String *username = username_example; // The name that needs to be deleted
+                              
String *username = username_example; // The name that needs to be deleted
 
 UserApi *apiInstance = [[UserApi alloc] init];
 
@@ -5417,15 +5137,13 @@ UserApi *apiInstance = [[UserApi alloc] init];
                                 NSLog(@"Error: %@", error);
                             }
                         }];
-
-                              
+
-

-  var  = require('');
+                              
var SwaggerPetstore = require('swagger_petstore');
 
-var api = new .UserApi()
+var api = new SwaggerPetstore.UserApi()
 
 var username = username_example; // {String} The name that needs to be deleted
 
@@ -5438,20 +5156,18 @@ var callback = function(error, data, response) {
   }
 };
 api.deleteUser(username, callback);
-
-                              
+
-

-  using System;
+                              
using System;
 using System.Diagnostics;
-using .Api;
-using .Client;
-using ;
+using IO.Swagger.Api;
+using IO.Swagger.Client;
+using IO.Swagger.Model;
 
 namespace Example
 {
@@ -5474,17 +5190,14 @@ namespace Example
             }
         }
     }
-}
-
-                              
+}
-

-  <?php
 require_once(__DIR__ . '/vendor/autoload.php');
 
-$api_instance = new io.swagger.client\Api\UserApi();
+$api_instance = new Swagger\Client\Api\UserApi();
 $username = username_example; // String | The name that needs to be deleted
 
 try {
@@ -5492,8 +5205,7 @@ try {
 } catch (Exception $e) {
     echo 'Exception when calling UserApi->deleteUser: ', $e->getMessage(), PHP_EOL;
 }
-
-                              
+?>
@@ -5582,16 +5294,13 @@ try {
-

-  curl -X get "http://petstore.swagger.io/v2/user/{username}"
-  
+
curl -X get "http://petstore.swagger.io/v2/user/{username}"
-

-  import io.swagger.client.*;
+                            
import io.swagger.client.*;
 import io.swagger.client.auth.*;
 import io.swagger.client.model.*;
-import .UserApi;
+import io.swagger.client.api.UserApi;
 
 import java.io.File;
 import java.util.*;
@@ -5610,14 +5319,11 @@ public class UserApiExample {
             e.printStackTrace();
         }
     }
-}
-
-                            
+}
-

-  import .UserApi;
+                            
import io.swagger.client.api.UserApi;
 
 public class UserApiExample {
 
@@ -5632,18 +5338,14 @@ public class UserApiExample {
             e.printStackTrace();
         }
     }
-}
-
-                            
+}
-

-  
-String *username = username_example; // The name that needs to be fetched. Use user1 for testing. 
+                              
String *username = username_example; // The name that needs to be fetched. Use user1 for testing. 
 
 UserApi *apiInstance = [[UserApi alloc] init];
 
@@ -5657,15 +5359,13 @@ UserApi *apiInstance = [[UserApi alloc] init];
                                 NSLog(@"Error: %@", error);
                             }
                         }];
-
-                              
+
-

-  var  = require('');
+                              
var SwaggerPetstore = require('swagger_petstore');
 
-var api = new .UserApi()
+var api = new SwaggerPetstore.UserApi()
 
 var username = username_example; // {String} The name that needs to be fetched. Use user1 for testing. 
 
@@ -5678,20 +5378,18 @@ var callback = function(error, data, response) {
   }
 };
 api.getUserByName(username, callback);
-
-                              
+
-

-  using System;
+                              
using System;
 using System.Diagnostics;
-using .Api;
-using .Client;
-using ;
+using IO.Swagger.Api;
+using IO.Swagger.Client;
+using IO.Swagger.Model;
 
 namespace Example
 {
@@ -5715,17 +5413,14 @@ namespace Example
             }
         }
     }
-}
-
-                              
+}
-

-  <?php
 require_once(__DIR__ . '/vendor/autoload.php');
 
-$api_instance = new io.swagger.client\Api\UserApi();
+$api_instance = new Swagger\Client\Api\UserApi();
 $username = username_example; // String | The name that needs to be fetched. Use user1 for testing. 
 
 try {
@@ -5734,8 +5429,7 @@ try {
 } catch (Exception $e) {
     echo 'Exception when calling UserApi->getUserByName: ', $e->getMessage(), PHP_EOL;
 }
-
-                              
+?>
@@ -5866,16 +5560,13 @@ try {
-

-  curl -X get "http://petstore.swagger.io/v2/user/login?username=&password="
-  
+
curl -X get "http://petstore.swagger.io/v2/user/login?username=&password="
-

-  import io.swagger.client.*;
+                            
import io.swagger.client.*;
 import io.swagger.client.auth.*;
 import io.swagger.client.model.*;
-import .UserApi;
+import io.swagger.client.api.UserApi;
 
 import java.io.File;
 import java.util.*;
@@ -5895,14 +5586,11 @@ public class UserApiExample {
             e.printStackTrace();
         }
     }
-}
-
-                            
+}
-

-  import .UserApi;
+                            
import io.swagger.client.api.UserApi;
 
 public class UserApiExample {
 
@@ -5918,18 +5606,14 @@ public class UserApiExample {
             e.printStackTrace();
         }
     }
-}
-
-                            
+}
-

-  
-String *username = username_example; // The user name for login
+                              
String *username = username_example; // The user name for login
 String *password = password_example; // The password for login in clear text
 
 UserApi *apiInstance = [[UserApi alloc] init];
@@ -5945,15 +5629,13 @@ UserApi *apiInstance = [[UserApi alloc] init];
                                 NSLog(@"Error: %@", error);
                             }
                         }];
-
-                              
+
-

-  var  = require('');
+                              
var SwaggerPetstore = require('swagger_petstore');
 
-var api = new .UserApi()
+var api = new SwaggerPetstore.UserApi()
 
 var username = username_example; // {String} The user name for login
 
@@ -5968,20 +5650,18 @@ var callback = function(error, data, response) {
   }
 };
 api.loginUser(username, password, callback);
-
-                              
+
-

-  using System;
+                              
using System;
 using System.Diagnostics;
-using .Api;
-using .Client;
-using ;
+using IO.Swagger.Api;
+using IO.Swagger.Client;
+using IO.Swagger.Model;
 
 namespace Example
 {
@@ -6006,17 +5686,14 @@ namespace Example
             }
         }
     }
-}
-
-                              
+}
-

-  <?php
 require_once(__DIR__ . '/vendor/autoload.php');
 
-$api_instance = new io.swagger.client\Api\UserApi();
+$api_instance = new Swagger\Client\Api\UserApi();
 $username = username_example; // String | The user name for login
 $password = password_example; // String | The password for login in clear text
 
@@ -6026,8 +5703,7 @@ try {
 } catch (Exception $e) {
     echo 'Exception when calling UserApi->loginUser: ', $e->getMessage(), PHP_EOL;
 }
-
-                              
+?>
@@ -6201,16 +5877,13 @@ try {
-

-  curl -X get "http://petstore.swagger.io/v2/user/logout"
-  
+
curl -X get "http://petstore.swagger.io/v2/user/logout"
-

-  import io.swagger.client.*;
+                            
import io.swagger.client.*;
 import io.swagger.client.auth.*;
 import io.swagger.client.model.*;
-import .UserApi;
+import io.swagger.client.api.UserApi;
 
 import java.io.File;
 import java.util.*;
@@ -6227,14 +5900,11 @@ public class UserApiExample {
             e.printStackTrace();
         }
     }
-}
-
-                            
+}
-

-  import .UserApi;
+                            
import io.swagger.client.api.UserApi;
 
 public class UserApiExample {
 
@@ -6247,9 +5917,7 @@ public class UserApiExample {
             e.printStackTrace();
         }
     }
-}
-
-                            
+}

-  
-
 UserApi *apiInstance = [[UserApi alloc] init];
 
 // Logs out current logged in user session
@@ -6268,15 +5934,13 @@ UserApi *apiInstance = [[UserApi alloc] init];
                                 NSLog(@"Error: %@", error);
                             }
                         }];
-
-                              
+
-

-  var  = require('');
+                              
var SwaggerPetstore = require('swagger_petstore');
 
-var api = new .UserApi()
+var api = new SwaggerPetstore.UserApi()
 
 var callback = function(error, data, response) {
   if (error) {
@@ -6286,20 +5950,18 @@ var callback = function(error, data, response) {
   }
 };
 api.logoutUser(callback);
-
-                              
+
-

-  using System;
+                              
using System;
 using System.Diagnostics;
-using .Api;
-using .Client;
-using ;
+using IO.Swagger.Api;
+using IO.Swagger.Client;
+using IO.Swagger.Model;
 
 namespace Example
 {
@@ -6321,25 +5983,21 @@ namespace Example
             }
         }
     }
-}
-
-                              
+}
-

-  <?php
 require_once(__DIR__ . '/vendor/autoload.php');
 
-$api_instance = new io.swagger.client\Api\UserApi();
+$api_instance = new Swagger\Client\Api\UserApi();
 
 try {
     $api_instance->logoutUser();
 } catch (Exception $e) {
     echo 'Exception when calling UserApi->logoutUser: ', $e->getMessage(), PHP_EOL;
 }
-
-                              
+?>
@@ -6386,16 +6044,13 @@ try {
-

-  curl -X put "http://petstore.swagger.io/v2/user/{username}"
-  
+
curl -X put "http://petstore.swagger.io/v2/user/{username}"
-

-  import io.swagger.client.*;
+                            
import io.swagger.client.*;
 import io.swagger.client.auth.*;
 import io.swagger.client.model.*;
-import .UserApi;
+import io.swagger.client.api.UserApi;
 
 import java.io.File;
 import java.util.*;
@@ -6414,14 +6069,11 @@ public class UserApiExample {
             e.printStackTrace();
         }
     }
-}
-
-                            
+}
-

-  import .UserApi;
+                            
import io.swagger.client.api.UserApi;
 
 public class UserApiExample {
 
@@ -6436,18 +6088,14 @@ public class UserApiExample {
             e.printStackTrace();
         }
     }
-}
-
-                            
+}
-

-  
-String *username = username_example; // name that need to be deleted
+                              
String *username = username_example; // name that need to be deleted
 User *body = ; // Updated user object
 
 UserApi *apiInstance = [[UserApi alloc] init];
@@ -6460,15 +6108,13 @@ UserApi *apiInstance = [[UserApi alloc] init];
                                 NSLog(@"Error: %@", error);
                             }
                         }];
-
-                              
+
-

-  var  = require('');
+                              
var SwaggerPetstore = require('swagger_petstore');
 
-var api = new .UserApi()
+var api = new SwaggerPetstore.UserApi()
 
 var username = username_example; // {String} name that need to be deleted
 
@@ -6483,20 +6129,18 @@ var callback = function(error, data, response) {
   }
 };
 api.updateUser(username, body, callback);
-
-                              
+
-

-  using System;
+                              
using System;
 using System.Diagnostics;
-using .Api;
-using .Client;
-using ;
+using IO.Swagger.Api;
+using IO.Swagger.Client;
+using IO.Swagger.Model;
 
 namespace Example
 {
@@ -6520,17 +6164,14 @@ namespace Example
             }
         }
     }
-}
-
-                              
+}
-

-  <?php
 require_once(__DIR__ . '/vendor/autoload.php');
 
-$api_instance = new io.swagger.client\Api\UserApi();
+$api_instance = new Swagger\Client\Api\UserApi();
 $username = username_example; // String | name that need to be deleted
 $body = ; // User | Updated user object
 
@@ -6539,8 +6180,7 @@ try {
 } catch (Exception $e) {
     echo 'Exception when calling UserApi->updateUser: ', $e->getMessage(), PHP_EOL;
 }
-
-                              
+?>
@@ -6663,7 +6303,7 @@ try {
- Generated 2016-11-16T15:33:43.134-08:00 + Generated 2016-12-12T15:29:18.279-08:00