From 97722437c4e77fe2ffd86bdbe7a789bd8690d169 Mon Sep 17 00:00:00 2001 From: Brian Shamblen Date: Wed, 16 Nov 2016 15:42:27 -0800 Subject: [PATCH] Add missing enums to properties --- .../main/resources/htmlDocs2/index.mustache | 945 +- .../htmlDocs2/js_jsonschemaview.mustache | 8 +- samples/html2/index.html | 8184 +++++------------ 3 files changed, 2754 insertions(+), 6383 deletions(-) diff --git a/modules/swagger-codegen/src/main/resources/htmlDocs2/index.mustache b/modules/swagger-codegen/src/main/resources/htmlDocs2/index.mustache index 427f2cb49249..e7dbd5352580 100644 --- a/modules/swagger-codegen/src/main/resources/htmlDocs2/index.mustache +++ b/modules/swagger-codegen/src/main/resources/htmlDocs2/index.mustache @@ -6,580 +6,431 @@ + {{>js_jquery}} + {{>js_prettify}} + {{>js_bootstrap}} + {{>marked}} + - - - - + + -
+
-
- + {{#apiInfo}} + {{#apis}} + {{#operations}} + + {{#operation}} +
  • + {{nickname}} +
  • + {{/operation}} + {{/operations}} + {{/apis}} + {{/apiInfo}} + + +
    +
    +
    +
    +

    {{{appName}}}

    +
    +
    -
    -
    -
    -

    {{{appName}}}

    -
    -
    -
    - -
    - - {{#apiInfo}} - - {{#apis}} - {{#operations}} -
    -

    {{baseName}}

    - {{#operation}} - - - - - - - -
    - -
    -
    -

    {{nickname}}

    -

    {{summary}}

    -
    -
    - -
    -
    - -

    -

    {{notes}}

    -

    -
    - -
    {{path}}
    - -

    -

    Usage and SDK Samples

    -

    - - - -
    -
    -
    
    -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}}
    -                                                  
    + - - - - - -

    Parameters

    - - - - {{#hasPathParams}} -
    Path parameters
    - - - - - - - {{#pathParams}} - {{>param}} - {{/pathParams}} -
    NameDescription
    - {{/hasPathParams}} - - {{#hasHeaderParams}} -
    Header parameters
    - - - - - - - {{#headerParams}} - {{>param}} - {{/headerParams}} - -
    NameDescription
    - {{/hasHeaderParams}} - - - {{#hasBodyParam}} -
    Body parameters
    - - - - - - - {{#bodyParams}} - {{>paramB}} - {{/bodyParams}} - -
    NameDescription
    - {{/hasBodyParam}} - - {{#hasFormParams}} -
    Form parameters
    - - - - - - - {{#formParams}} - {{>param}} - {{/formParams}} - -
    NameDescription
    - {{/hasFormParams}} - - {{#hasQueryParams}} -
    Query parameters
    - - - - - - - {{#queryParams}} - {{>param}} - {{/queryParams}} -
    NameDescription
    - {{/hasQueryParams}} - -

    Responses

    - {{#responses}} - -

    Status: {{code}} - {{message}}

    - - - - - - - - - -
    - - - -
    - - - - -
    - - -
    - - - - - - - -
    - - - {{#examples}} -
    -
    {{example}}
    -
    - {{/examples}} - - -
    - - - - {{/responses}} - - - - - - -
    - -
    - -
    - - {{/operation}} -
    - - {{/operations}} - {{/apis}} - - {{/apiInfo}} - - - - -
    - - - - - - - -
    -
    - Generated {{generatedDate}} -
    -
    +
    + {{#apiInfo}} + {{#apis}} + {{#operations}} +
    +

    {{baseName}}

    + {{#operation}} +
    +
    +
    +

    {{nickname}}

    +

    {{summary}}

    +
    +
    +
    +

    +

    {{notes}}

    +

    +
    +
    {{path}}
    +

    +

    Usage and SDK Samples

    +

    + + +
    +
    +
    
    +  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_android}}
    +                            
    +
    + +
    +
    
    +  {{>sample_objc}}
    +                              
    +
    + +
    +
    
    +  {{>sample_js}}
    +                              
    +
    + + +
    +
    
    +  {{>sample_csharp}}
    +                              
    +
    + +
    +
    
    +  {{>sample_php}}
    +                              
    +
    +
    + +

    Parameters

    + + {{#hasPathParams}} +
    Path parameters
    + + + + + + {{#pathParams}} + {{>param}} + {{/pathParams}} +
    NameDescription
    + {{/hasPathParams}} + + {{#hasHeaderParams}} +
    Header parameters
    + + + + + + {{#headerParams}} + {{>param}} + {{/headerParams}} +
    NameDescription
    + {{/hasHeaderParams}} + + {{#hasBodyParam}} +
    Body parameters
    + + + + + + {{#bodyParams}} + {{>paramB}} + {{/bodyParams}} +
    NameDescription
    + {{/hasBodyParam}} + + {{#hasFormParams}} +
    Form parameters
    + + + + + + {{#formParams}} + {{>param}} + {{/formParams}} +
    NameDescription
    + {{/hasFormParams}} + + {{#hasQueryParams}} +
    Query parameters
    + + + + + + {{#queryParams}} + {{>param}} + {{/queryParams}} +
    NameDescription
    + {{/hasQueryParams}} + +

    Responses

    + {{#responses}} +

    Status: {{code}} - {{message}}

    + + {{#schema}} + + +
    +
    +
    + + +
    + +
    + {{#examples}} +
    +
    {{example}}
    +
    + {{/examples}} +
    + {{/schema}} + {{/responses}} +
    +
    +
    + {{/operation}} +
    + {{/operations}} + {{/apis}} + {{/apiInfo}} +
    + +
    +
    + Generated {{generatedDate}} +
    +
    +
    -
    - - - - - - -{{>js_jsonschemaview}} -{{>js_jsonref}} -{{>js_webfontloader}} - - - - - +
    + {{>js_jsonschemaview}} + {{>js_jsonref}} + {{>js_webfontloader}} + - diff --git a/modules/swagger-codegen/src/main/resources/htmlDocs2/js_jsonschemaview.mustache b/modules/swagger-codegen/src/main/resources/htmlDocs2/js_jsonschemaview.mustache index 173ea07a0448..d299d5fd13d0 100644 --- a/modules/swagger-codegen/src/main/resources/htmlDocs2/js_jsonschemaview.mustache +++ b/modules/swagger-codegen/src/main/resources/htmlDocs2/js_jsonschemaview.mustache @@ -251,10 +251,10 @@ var JSONSchemaView = (function () { } if (this.schema['enum']) { - var formatter = new JSONFormatter(this.schema['enum'], this.open - 1); - var formatterEl = formatter.render(); - formatterEl.classList.add('inner'); - element.querySelector('.enums.inner').appendChild(formatterEl); + var tempDiv = document.createElement('span');; + tempDiv.classList.add('inner'); + tempDiv.innerHTML = '' + this.schema['enum'].join(', ') + ''; + element.querySelector('.enums.inner').appendChild(tempDiv); } if (this.isArray) { diff --git a/samples/html2/index.html b/samples/html2/index.html index a4de731cfb61..d7ee2cea4680 100644 --- a/samples/html2/index.html +++ b/samples/html2/index.html @@ -6,17 +6,14 @@ - - - - - - - + - - - - + -
    +
    - +
    +
    +
    +

    Swagger Petstore

    +
    +
    -
    -
    -
    -

    Swagger Petstore

    -
    -
    -
    - -
    +

    Parameters

    - - - - -

    Parameters

    - - - -
    Path parameters
    - - - - - - - +
    Path parameters
    +
    NameDescription
    petId*
    + + + + + -
    NameDescription
    petId* @@ -1704,16 +1497,15 @@ try {
    + -
    Header parameters
    - - - - - - - +
    Header parameters
    +
    NameDescription
    apiKey
    + + + + + - -
    NameDescription
    apiKey @@ -1745,174 +1537,54 @@ try {
    - - - - - -

    Responses

    - -

    Status: 400 - Invalid pet value

    - - - - - - - - - -
    - - - -
    - - - - -
    - - -
    - - - - - - - -
    - - - - -
    - - - - - - - - - - - -
    - -
    - - - - - - - - -
    - -
    -
    -

    findPetsByStatus

    -

    Finds Pets by status

    -
    -
    - -
    -
    - -

    -

    Multiple status values can be provided with comma separated strings

    -

    -
    - -
    /pet/findByStatus
    - -

    -

    Usage and SDK Samples

    -

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

    Responses

    +

    Status: 400 - Invalid pet value

    + +
    +
    +
    +
    +
    +
    +

    findPetsByStatus

    +

    Finds Pets by status

    +
    +
    +
    +

    +

    Multiple status values can be provided with comma separated strings

    +

    +
    +
    /pet/findByStatus
    +

    +

    Usage and SDK Samples

    +

    + + +
    +
    +
    
    +  curl -X get "http://petstore.swagger.io/v2/pet/findByStatus?status="
    +  
    +
    +
    +
    
    +  import io.swagger.client.*;
     import io.swagger.client.auth.*;
     import io.swagger.client.model.*;
     import .PetApi;
    @@ -1941,13 +1613,12 @@ public class PetApiExample {
         }
     }
     
    -                                                  
    -
    +
    +
    - -
    -
    
    -import .PetApi;
    +                          
    +
    
    +  import .PetApi;
     
     public class PetApiExample {
     
    @@ -1964,18 +1635,15 @@ public class PetApiExample {
         }
     }
     
    -                                                  
    -
    - - - - -
    -
    
    -Configuration *apiConfig = [Configuration sharedConfig];
    +                            
    +
    + +
    +
    
    +  Configuration *apiConfig = [Configuration sharedConfig];
     
     // Configure OAuth2 access token for authorization: (authentication scheme: petstore_auth)
     [apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
    @@ -1996,11 +1664,12 @@ PetApi *apiInstance = [[PetApi alloc] init];
                                 }
                             }];
     
    -                                                    
    -
    -
    -
    
    -var  = require('');
    +                              
    +
    + +
    +
    
    +  var  = require('');
     var defaultClient = .ApiClient.instance;
     
     // Configure OAuth2 access token for authorization: petstore_auth
    @@ -2021,16 +1690,15 @@ var callback = function(error, data, response) {
     };
     api.findPetsByStatus(status, callback);
     
    -                                                    
    -
    +
    +
    - - -
    -
    
    -using System;
    +                            
    +                            
    +
    
    +  using System;
     using System.Diagnostics;
     using .Api;
     using .Client;
    @@ -2063,13 +1731,12 @@ namespace Example
         }
     }
     
    -                                                    
    -
    +
    +
    - -
    -
    
    -
    +                              
    
    +  findPetsByStatus: ', $e->getMessage(), PHP_EOL;
     }
     
    -                                                  
    -
    + +
    +
    -
    +

    Parameters

    -

    Parameters

    - - - - - - - - -
    Query parameters
    - - - - - - - +
    Query parameters
    +
    NameDescription
    status*
    + + + + + -
    NameDescription
    status* @@ -2149,41 +1807,25 @@ try {
    + -

    Responses

    +

    Responses

    +

    Status: 200 - successful operation

    -

    Status: 200 - successful operation

    + - - - - - - - -
    - - - -
    - - - - -
    - - -
    - - - - - - - -
    - - - - -
    - - - - -

    Status: 400 - Invalid status value

    - - - - - - - - - -
    - - - -
    - - - - -
    - - -
    - - - - - - - -
    - - - - -
    - - - - - - - - - - - -
    - -
    - - - - - - - - -
    - -
    -
    -

    findPetsByTags

    -

    Finds Pets by tags

    -
    -
    - -
    -
    - -

    -

    Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.

    -

    -
    - -
    /pet/findByTags
    - -

    -

    Usage and SDK Samples

    -

    - - - -
    -
    -
    
    -curl -X get "http://petstore.swagger.io/v2/pet/findByTags?tags="
    -
    -
    -
    -
    - -
    -
    
    -import io.swagger.client.*;
    +                                        var schema = schemaWrapper.schema;
    +                                        schemaWrapper.definitions = defs;
    +                                        //console.log(JSON.stringify(schema))
    +                                        JsonRefs.resolveRefs(schemaWrapper, {
    +                                            "depth": 3,
    +                                            "resolveRemoteRefs": false,
    +                                            "resolveFileRefs": false
    +                                        }, function(err, resolved, metadata) {
    +                                          //console.log(JSON.stringify(resolved));
    +                                          var view = new JSONSchemaView(resolved.schema, 3);
    +                                          $('#examples-Pet-findPetsByStatus-schema-data').val(JSON.stringify(resolved.schema));
    +                                          var result = $('#examples-Pet-findPetsByStatus-schema-200');
    +                                          result.empty();
    +                                          result.append(view.render());
    +                                        });
    +                                      });
    +                                    
    +                                  
    + +
    +
    +

    Status: 400 - Invalid status value

    + + + +
    +
    +
    +
    +

    findPetsByTags

    +

    Finds Pets by tags

    +
    +
    +
    +

    +

    Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.

    +

    +
    +
    /pet/findByTags
    +

    +

    Usage and SDK Samples

    +

    + + +
    +
    +
    
    +  curl -X get "http://petstore.swagger.io/v2/pet/findByTags?tags="
    +  
    +
    +
    +
    
    +  import io.swagger.client.*;
     import io.swagger.client.auth.*;
     import io.swagger.client.model.*;
     import .PetApi;
    @@ -2422,13 +1925,12 @@ public class PetApiExample {
         }
     }
     
    -                                                  
    -
    +
    +
    - -
    -
    
    -import .PetApi;
    +                          
    +
    
    +  import .PetApi;
     
     public class PetApiExample {
     
    @@ -2445,18 +1947,15 @@ public class PetApiExample {
         }
     }
     
    -                                                  
    -
    - - - - -
    -
    
    -Configuration *apiConfig = [Configuration sharedConfig];
    +                            
    +
    + +
    +
    
    +  Configuration *apiConfig = [Configuration sharedConfig];
     
     // Configure OAuth2 access token for authorization: (authentication scheme: petstore_auth)
     [apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
    @@ -2477,11 +1976,12 @@ PetApi *apiInstance = [[PetApi alloc] init];
                                 }
                             }];
     
    -                                                    
    -
    -
    -
    
    -var  = require('');
    +                              
    +
    + +
    +
    
    +  var  = require('');
     var defaultClient = .ApiClient.instance;
     
     // Configure OAuth2 access token for authorization: petstore_auth
    @@ -2502,16 +2002,15 @@ var callback = function(error, data, response) {
     };
     api.findPetsByTags(tags, callback);
     
    -                                                    
    -
    +
    +
    - - -
    -
    
    -using System;
    +                            
    +                            
    +
    
    +  using System;
     using System.Diagnostics;
     using .Api;
     using .Client;
    @@ -2544,13 +2043,12 @@ namespace Example
         }
     }
     
    -                                                    
    -
    +
    +
    - -
    -
    
    -
    +                              
    
    +  findPetsByTags: ', $e->getMessage(), PHP_EOL;
     }
     
    -                                                  
    -
    + +
    + - +

    Parameters

    -

    Parameters

    - - - - - - - - -
    Query parameters
    - - - - - - - +
    Query parameters
    +
    NameDescription
    tags*
    + + + + + -
    NameDescription
    tags* @@ -2628,41 +2117,25 @@ try {
    + -

    Responses

    +

    Responses

    +

    Status: 200 - successful operation

    -

    Status: 200 - successful operation

    + - - - - - - - -
    - - - -
    - - - - -
    - - -
    - - - - - - - -
    - - - - -
    - - - - -

    Status: 400 - Invalid tag value

    - - - - - - - - - -
    - - - -
    - - - - -
    - - -
    - - - - - - - -
    - - - - -
    - - - - - - - - - - - - - -
    - - - - - - - - -
    - -
    -
    -

    getPetById

    -

    Find pet by ID

    -
    -
    - -
    -
    - -

    -

    Returns a single pet

    -

    -
    - -
    /pet/{petId}
    - -

    -

    Usage and SDK Samples

    -

    - - - -
    -
    -
    
    -curl -X get -H "api_key: [[apiKey]]"  "http://petstore.swagger.io/v2/pet/{petId}"
    -
    -
    -
    -
    - -
    -
    
    -import io.swagger.client.*;
    +                                        var schema = schemaWrapper.schema;
    +                                        schemaWrapper.definitions = defs;
    +                                        //console.log(JSON.stringify(schema))
    +                                        JsonRefs.resolveRefs(schemaWrapper, {
    +                                            "depth": 3,
    +                                            "resolveRemoteRefs": false,
    +                                            "resolveFileRefs": false
    +                                        }, function(err, resolved, metadata) {
    +                                          //console.log(JSON.stringify(resolved));
    +                                          var view = new JSONSchemaView(resolved.schema, 3);
    +                                          $('#examples-Pet-findPetsByTags-schema-data').val(JSON.stringify(resolved.schema));
    +                                          var result = $('#examples-Pet-findPetsByTags-schema-200');
    +                                          result.empty();
    +                                          result.append(view.render());
    +                                        });
    +                                      });
    +                                    
    +                                  
    + +
    +
    +

    Status: 400 - Invalid tag value

    + + + +
    +
    +
    +
    +

    getPetById

    +

    Find pet by ID

    +
    +
    +
    +

    +

    Returns a single pet

    +

    +
    +
    /pet/{petId}
    +

    +

    Usage and SDK Samples

    +

    + + +
    +
    +
    
    +  curl -X get -H "api_key: [[apiKey]]"  "http://petstore.swagger.io/v2/pet/{petId}"
    +  
    +
    +
    +
    
    +  import io.swagger.client.*;
     import io.swagger.client.auth.*;
     import io.swagger.client.model.*;
     import .PetApi;
    @@ -2903,13 +2237,12 @@ public class PetApiExample {
         }
     }
     
    -                                                  
    -
    +
    +
    - -
    -
    
    -import .PetApi;
    +                          
    +
    
    +  import .PetApi;
     
     public class PetApiExample {
     
    @@ -2926,18 +2259,15 @@ public class PetApiExample {
         }
     }
     
    -                                                  
    -
    - - - - -
    -
    
    -Configuration *apiConfig = [Configuration sharedConfig];
    +                            
    +
    + +
    +
    
    +  Configuration *apiConfig = [Configuration sharedConfig];
     
     // Configure API key authorization: (authentication scheme: api_key)
     [apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"api_key"];
    @@ -2960,11 +2290,12 @@ PetApi *apiInstance = [[PetApi alloc] init];
                                 }
                             }];
     
    -                                                    
    -
    -
    -
    
    -var  = require('');
    +                              
    +
    + +
    +
    
    +  var  = require('');
     var defaultClient = .ApiClient.instance;
     
     // Configure API key authorization: api_key
    @@ -2987,16 +2318,15 @@ var callback = function(error, data, response) {
     };
     api.getPetById(petId, callback);
     
    -                                                    
    -
    +
    +
    - - -
    -
    
    -using System;
    +                            
    +                            
    +
    
    +  using System;
     using System.Diagnostics;
     using .Api;
     using .Client;
    @@ -3031,13 +2361,12 @@ namespace Example
         }
     }
     
    -                                                    
    -
    +
    +
    - -
    -
    
    -
    +                              
    
    +  getPetById: ', $e->getMessage(), PHP_EOL;
     }
     
    -                                                  
    -
    + +
    + - +

    Parameters

    - - - - -

    Parameters

    - - - -
    Path parameters
    - - - - - - - +
    Path parameters
    +
    NameDescription
    petId*
    + + + + + -
    NameDescription
    petId* @@ -3109,329 +2430,99 @@ try {
    + +

    Responses

    +

    Status: 200 - successful operation

    -

    Responses

    + - - - - - - - - -
    - - - -
    - - - - -
    - - -
    - - - - - - - -
    - - - - -
    - - - - -

    Status: 400 - Invalid ID supplied

    - - - - - - - - - -
    - - - -
    - - - - -
    - - -
    - - - - - - - -
    - - - - -
    - - - - -

    Status: 404 - Pet not found

    - - - - - - - - - -
    - - - -
    - - - - -
    - - -
    - - - - - - - -
    - - - - -
    - - - - - - - - - - - - - -
    - - - - - - - - -
    - -
    -
    -

    updatePet

    -

    Update an existing pet

    -
    -
    - -
    -
    - -

    -

    -

    -
    - -
    /pet
    - -

    -

    Usage and SDK Samples

    -

    - - - -
    -
    -
    
    -curl -X put "http://petstore.swagger.io/v2/pet"
    -
    -
    -
    -
    - -
    -
    
    -import io.swagger.client.*;
    +                                        var schema = schemaWrapper.schema;
    +                                        schemaWrapper.definitions = defs;
    +                                        //console.log(JSON.stringify(schema))
    +                                        JsonRefs.resolveRefs(schemaWrapper, {
    +                                            "depth": 3,
    +                                            "resolveRemoteRefs": false,
    +                                            "resolveFileRefs": false
    +                                        }, function(err, resolved, metadata) {
    +                                          //console.log(JSON.stringify(resolved));
    +                                          var view = new JSONSchemaView(resolved.schema, 3);
    +                                          $('#examples-Pet-getPetById-schema-data').val(JSON.stringify(resolved.schema));
    +                                          var result = $('#examples-Pet-getPetById-schema-200');
    +                                          result.empty();
    +                                          result.append(view.render());
    +                                        });
    +                                      });
    +                                    
    +                                  
    + +
    +
    +

    Status: 400 - Invalid ID supplied

    + +

    Status: 404 - Pet not found

    + + + +
    +
    +
    +
    +

    updatePet

    +

    Update an existing pet

    +
    +
    +
    +

    +

    +

    +
    +
    /pet
    +

    +

    Usage and SDK Samples

    +

    + + +
    +
    +
    
    +  curl -X put "http://petstore.swagger.io/v2/pet"
    +  
    +
    +
    +
    
    +  import io.swagger.client.*;
     import io.swagger.client.auth.*;
     import io.swagger.client.model.*;
     import .PetApi;
    @@ -3459,13 +2550,12 @@ public class PetApiExample {
         }
     }
     
    -                                                  
    -
    +
    +
    - -
    -
    
    -import .PetApi;
    +                          
    +
    
    +  import .PetApi;
     
     public class PetApiExample {
     
    @@ -3481,18 +2571,15 @@ public class PetApiExample {
         }
     }
     
    -                                                  
    -
    - - - - -
    -
    
    -Configuration *apiConfig = [Configuration sharedConfig];
    +                            
    +
    + +
    +
    
    +  Configuration *apiConfig = [Configuration sharedConfig];
     
     // Configure OAuth2 access token for authorization: (authentication scheme: petstore_auth)
     [apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
    @@ -3510,11 +2597,12 @@ PetApi *apiInstance = [[PetApi alloc] init];
                                 }
                             }];
     
    -                                                    
    -
    -
    -
    
    -var  = require('');
    +                              
    +
    + +
    +
    
    +  var  = require('');
     var defaultClient = .ApiClient.instance;
     
     // Configure OAuth2 access token for authorization: petstore_auth
    @@ -3535,16 +2623,15 @@ var callback = function(error, data, response) {
     };
     api.updatePet(body, callback);
     
    -                                                    
    -
    +
    +
    - - -
    -
    
    -using System;
    +                            
    +                            
    +
    
    +  using System;
     using System.Diagnostics;
     using .Api;
     using .Client;
    @@ -3576,13 +2663,12 @@ namespace Example
         }
     }
     
    -                                                    
    -
    +
    +
    - -
    -
    
    -
    +                              
    
    +  updatePet: ', $e->getMessage(), PHP_EOL;
     }
     
    -                                                  
    -
    + +
    + - +

    Parameters

    - - -

    Parameters

    - - - - - - -
    Body parameters
    - - - - - - - +
    Body parameters
    +
    NameDescription
    body *
    + + + + + - -
    NameDescription
    body * @@ -3664,324 +2741,57 @@ try {
    - - - -

    Responses

    - -

    Status: 400 - Invalid ID supplied

    - - - - - - - - - -
    - - - -
    - - - - -
    - - -
    - - - - - - - -
    - - - - -
    - - - - -

    Status: 404 - Pet not found

    - - - - - - - - - -
    - - - -
    - - - - -
    - - -
    - - - - - - - -
    - - - - -
    - - - - -

    Status: 405 - Validation exception

    - - - - - - - - - -
    - - - -
    - - - - -
    - - -
    - - - - - - - -
    - - - - -
    - - - - - - - - - - - - - -
    - - - - - - - - -
    - -
    -
    -

    updatePetWithForm

    -

    Updates a pet in the store with form data

    -
    -
    - -
    -
    - -

    -

    -

    -
    - -
    /pet/{petId}
    - -

    -

    Usage and SDK Samples

    -

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

    Responses

    +

    Status: 400 - Invalid ID supplied

    + +

    Status: 404 - Pet not found

    + +

    Status: 405 - Validation exception

    + +
    +
    +
    +
    +
    +
    +

    updatePetWithForm

    +

    Updates a pet in the store with form data

    +
    +
    +
    +

    +

    +

    +
    +
    /pet/{petId}
    +

    +

    Usage and SDK Samples

    +

    + + +
    +
    +
    
    +  curl -X post "http://petstore.swagger.io/v2/pet/{petId}"
    +  
    +
    +
    +
    
    +  import io.swagger.client.*;
     import io.swagger.client.auth.*;
     import io.swagger.client.model.*;
     import .PetApi;
    @@ -4011,13 +2821,12 @@ public class PetApiExample {
         }
     }
     
    -                                                  
    -
    +
    +
    - -
    -
    
    -import .PetApi;
    +                          
    +
    
    +  import .PetApi;
     
     public class PetApiExample {
     
    @@ -4035,18 +2844,15 @@ public class PetApiExample {
         }
     }
     
    -                                                  
    -
    - - - - -
    -
    
    -Configuration *apiConfig = [Configuration sharedConfig];
    +                            
    +
    + +
    +
    
    +  Configuration *apiConfig = [Configuration sharedConfig];
     
     // Configure OAuth2 access token for authorization: (authentication scheme: petstore_auth)
     [apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
    @@ -4068,11 +2874,12 @@ PetApi *apiInstance = [[PetApi alloc] init];
                                 }
                             }];
     
    -                                                    
    -
    -
    -
    
    -var  = require('');
    +                              
    +
    + +
    +
    
    +  var  = require('');
     var defaultClient = .ApiClient.instance;
     
     // Configure OAuth2 access token for authorization: petstore_auth
    @@ -4097,16 +2904,15 @@ var callback = function(error, data, response) {
     };
     api.updatePetWithForm(petId, opts, callback);
     
    -                                                    
    -
    +
    +
    - - -
    -
    
    -using System;
    +                            
    +                            
    +
    
    +  using System;
     using System.Diagnostics;
     using .Api;
     using .Client;
    @@ -4140,13 +2946,12 @@ namespace Example
         }
     }
     
    -                                                    
    -
    +
    +
    - -
    -
    
    -
    +                              
    
    +  updatePetWithForm: ', $e->getMessage(), PHP_EOL;
     }
     
    -                                                  
    -
    + +
    + - +

    Parameters

    - - - - -

    Parameters

    - - - -
    Path parameters
    - - - - - - - +
    Path parameters
    +
    NameDescription
    petId*
    + + + + + -
    NameDescription
    petId* @@ -4217,19 +3014,17 @@ try {
    + - -
    Form parameters
    - - - - - - - +
    Form parameters
    +
    NameDescription
    name
    + + + + + - + - -
    NameDescription
    name @@ -4262,7 +3057,7 @@ try {
    status
    status @@ -4295,171 +3090,52 @@ try {
    - - -

    Responses

    - -

    Status: 405 - Invalid input

    - - - - - - - - - -
    - - - -
    - - - - -
    - - -
    - - - - - - - -
    - - - - -
    - - - - - - - - - - - - - -
    - - - - - - - - -
    - -
    -
    -

    uploadFile

    -

    uploads an image

    -
    -
    - -
    -
    - -

    -

    -

    -
    - -
    /pet/{petId}/uploadImage
    - -

    -

    Usage and SDK Samples

    -

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

    Responses

    +

    Status: 405 - Invalid input

    + +
    +
    +
    +
    +
    +
    +

    uploadFile

    +

    uploads an image

    +
    +
    +
    +

    +

    +

    +
    +
    /pet/{petId}/uploadImage
    +

    +

    Usage and SDK Samples

    +

    + + +
    +
    +
    
    +  curl -X post "http://petstore.swagger.io/v2/pet/{petId}/uploadImage"
    +  
    +
    +
    +
    
    +  import io.swagger.client.*;
     import io.swagger.client.auth.*;
     import io.swagger.client.model.*;
     import .PetApi;
    @@ -4490,13 +3166,12 @@ public class PetApiExample {
         }
     }
     
    -                                                  
    -
    +
    +
    - -
    -
    
    -import .PetApi;
    +                          
    +
    
    +  import .PetApi;
     
     public class PetApiExample {
     
    @@ -4515,18 +3190,15 @@ public class PetApiExample {
         }
     }
     
    -                                                  
    -
    - - - - -
    -
    
    -Configuration *apiConfig = [Configuration sharedConfig];
    +                            
    +
    + +
    +
    
    +  Configuration *apiConfig = [Configuration sharedConfig];
     
     // Configure OAuth2 access token for authorization: (authentication scheme: petstore_auth)
     [apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
    @@ -4551,11 +3223,12 @@ PetApi *apiInstance = [[PetApi alloc] init];
                                 }
                             }];
     
    -                                                    
    -
    -
    -
    
    -var  = require('');
    +                              
    +
    + +
    +
    
    +  var  = require('');
     var defaultClient = .ApiClient.instance;
     
     // Configure OAuth2 access token for authorization: petstore_auth
    @@ -4580,16 +3253,15 @@ var callback = function(error, data, response) {
     };
     api.uploadFile(petId, opts, callback);
     
    -                                                    
    -
    +
    +
    - - -
    -
    
    -using System;
    +                            
    +                            
    +
    
    +  using System;
     using System.Diagnostics;
     using .Api;
     using .Client;
    @@ -4624,13 +3296,12 @@ namespace Example
         }
     }
     
    -                                                    
    -
    +
    +
    - -
    -
    
    -
    +                              
    
    +  uploadFile: ', $e->getMessage(), PHP_EOL;
     }
     
    -                                                  
    -
    + +
    + - +

    Parameters

    - - - - -

    Parameters

    - - - -
    Path parameters
    - - - - - - - +
    Path parameters
    +
    NameDescription
    petId*
    + + + + + -
    NameDescription
    petId* @@ -4702,19 +3365,17 @@ try {
    + - -
    Form parameters
    - - - - - - - +
    Form parameters
    +
    NameDescription
    additionalMetadata
    + + + + + - + - -
    NameDescription
    additionalMetadata @@ -4747,7 +3408,7 @@ try {
    file
    file @@ -4780,178 +3441,95 @@ try {
    + -

    Responses

    +

    Responses

    +

    Status: 200 - successful operation

    -

    Status: 200 - successful operation

    + - - - - - - - -
    - - - -
    - - - - -
    - - +
    + +
    +
    + + +
    + +
    +

    Store

    +
    +
    +
    +

    deleteOrder

    +

    Delete purchase order by ID

    +
    +
    +
    +

    +

    For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors

    +

    +
    +
    /store/order/{orderId}
    +

    +

    Usage and SDK Samples

    +

    + - //console.log(JSON.stringify(resolved)); - - - - var view = new JSONSchemaView(resolved.schema, 3); - $('#examples-Pet-uploadFile-schema-data').val(JSON.stringify(resolved.schema)); - var result = $('#examples-Pet-uploadFile-schema-200'); - result.empty(); - result.append(view.render()); - }); - - - - - }); - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - -
    - -
    - -
    -

    Store

    - - - - - - - -
    - -
    -
    -

    deleteOrder

    -

    Delete purchase order by ID

    -
    -
    - -
    -
    - -

    -

    For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors

    -

    -
    - -
    /store/order/{orderId}
    - -

    -

    Usage and SDK Samples

    -

    - - - -
    -
    -
    
    -curl -X delete "http://petstore.swagger.io/v2/store/order/{orderId}"
    -
    -
    -
    -
    - -
    -
    
    -import io.swagger.client.*;
    +                        
    +
    +
    
    +  curl -X delete "http://petstore.swagger.io/v2/store/order/{orderId}"
    +  
    +
    +
    +
    
    +  import io.swagger.client.*;
     import io.swagger.client.auth.*;
     import io.swagger.client.model.*;
     import .StoreApi;
    @@ -4974,13 +3552,12 @@ public class StoreApiExample {
         }
     }
     
    -                                                  
    -
    +
    +
    - -
    -
    
    -import .StoreApi;
    +                          
    +
    
    +  import .StoreApi;
     
     public class StoreApiExample {
     
    @@ -4996,18 +3573,15 @@ public class StoreApiExample {
         }
     }
     
    -                                                  
    -
    - - - - -
    -
    
    -
    +                            
    +
    + +
    +
    
    +  
     String *orderId = orderId_example; // ID of the order that needs to be deleted
     
     StoreApi *apiInstance = [[StoreApi alloc] init];
    @@ -5020,11 +3594,12 @@ StoreApi *apiInstance = [[StoreApi alloc] init];
                                 }
                             }];
     
    -                                                    
    -
    -
    -
    
    -var  = require('');
    +                              
    +
    + +
    +
    
    +  var  = require('');
     
     var api = new .StoreApi()
     
    @@ -5040,16 +3615,15 @@ var callback = function(error, data, response) {
     };
     api.deleteOrder(orderId, callback);
     
    -                                                    
    -
    +
    +
    - - -
    -
    
    -using System;
    +                            
    +                            
    +
    
    +  using System;
     using System.Diagnostics;
     using .Api;
     using .Client;
    @@ -5078,13 +3652,12 @@ namespace Example
         }
     }
     
    -                                                    
    -
    +
    +
    - -
    -
    
    -
    +                              
    
    +  deleteOrder: ', $e->getMessage(), PHP_EOL;
     }
     
    -                                                  
    -
    + +
    +
    - +

    Parameters

    - - - - -

    Parameters

    - - - -
    Path parameters
    - - - - - - - +
    Path parameters
    +
    NameDescription
    orderId*
    + + + + + -
    NameDescription
    orderId* @@ -5150,250 +3715,57 @@ try {
    - - - - - - -

    Responses

    - -

    Status: 400 - Invalid ID supplied

    - - - - - - - - - -
    - - - -
    - - - - -
    - - -
    - - - - - - - -
    - - - - -
    - - - - -

    Status: 404 - Order not found

    - - - - - - - - - -
    - - - -
    - - - - -
    - - -
    - - - - - - - -
    - - - - -
    - - - - - - - - - - - - - -
    - - - - - - - - -
    - -
    -
    -

    getInventory

    -

    Returns pet inventories by status

    -
    -
    - -
    -
    - -

    -

    Returns a map of status codes to quantities

    -

    -
    - -
    /store/inventory
    - -

    -

    Usage and SDK Samples

    -

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

    Responses

    +

    Status: 400 - Invalid ID supplied

    + +

    Status: 404 - Order not found

    + +
    +
    +
    +
    +
    +
    +

    getInventory

    +

    Returns pet inventories by status

    +
    +
    +
    +

    +

    Returns a map of status codes to quantities

    +

    +
    +
    /store/inventory
    +

    +

    Usage and SDK Samples

    +

    + + +
    +
    +
    
    +  curl -X get -H "api_key: [[apiKey]]"  "http://petstore.swagger.io/v2/store/inventory"
    +  
    +
    +
    +
    
    +  import io.swagger.client.*;
     import io.swagger.client.auth.*;
     import io.swagger.client.model.*;
     import .StoreApi;
    @@ -5423,13 +3795,12 @@ public class StoreApiExample {
         }
     }
     
    -                                                  
    -
    +
    +
    - -
    -
    
    -import .StoreApi;
    +                          
    +
    
    +  import .StoreApi;
     
     public class StoreApiExample {
     
    @@ -5445,18 +3816,15 @@ public class StoreApiExample {
         }
     }
     
    -                                                  
    -
    - - - - -
    -
    
    -Configuration *apiConfig = [Configuration sharedConfig];
    +                            
    +
    + +
    +
    
    +  Configuration *apiConfig = [Configuration sharedConfig];
     
     // Configure API key authorization: (authentication scheme: api_key)
     [apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"api_key"];
    @@ -5478,11 +3846,12 @@ StoreApi *apiInstance = [[StoreApi alloc] init];
                                 }
                             }];
     
    -                                                    
    -
    -
    -
    
    -var  = require('');
    +                              
    +
    + +
    +
    
    +  var  = require('');
     var defaultClient = .ApiClient.instance;
     
     // Configure API key authorization: api_key
    @@ -5502,16 +3871,15 @@ var callback = function(error, data, response) {
     };
     api.getInventory(callback);
     
    -                                                    
    -
    +
    +
    - - -
    -
    
    -using System;
    +                            
    +                            
    +
    
    +  using System;
     using System.Diagnostics;
     using .Api;
     using .Client;
    @@ -5545,13 +3913,12 @@ namespace Example
         }
     }
     
    -                                                    
    -
    +
    +
    - -
    -
    
    -
    +                              
    
    +  getInventory: ', $e->getMessage(), PHP_EOL;
     }
     
    -                                                  
    -
    + +
    + - - - - - - -

    Parameters

    +

    Parameters

    +

    Responses

    +

    Status: 200 - successful operation

    + -

    Responses

    +
    +
    +
    -

    Status: 200 - successful operation

    - - - - - - - - - -
    - - - -
    - - - - -
    - - +
    + +
    +
    + +
    +
    +
    +
    +
    +

    getOrderById

    +

    Find purchase order by ID

    +
    +
    +
    +

    +

    For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions

    +

    +
    +
    /store/order/{orderId}
    +

    +

    Usage and SDK Samples

    +

    + - //console.log(JSON.stringify(resolved)); - - - - var view = new JSONSchemaView(resolved.schema, 3); - $('#examples-Store-getInventory-schema-data').val(JSON.stringify(resolved.schema)); - var result = $('#examples-Store-getInventory-schema-200'); - result.empty(); - result.append(view.render()); - }); - - - - - }); - -
    - - - - - - - -
    - - - - -
    - - - - - - - - - - - - - -
    - - - - - - - - -
    - -
    -
    -

    getOrderById

    -

    Find purchase order by ID

    -
    -
    - -
    -
    - -

    -

    For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions

    -

    -
    - -
    /store/order/{orderId}
    - -

    -

    Usage and SDK Samples

    -

    - - - -
    -
    -
    
    -curl -X get "http://petstore.swagger.io/v2/store/order/{orderId}"
    -
    -
    -
    -
    - -
    -
    
    -import io.swagger.client.*;
    +                        
    +
    +
    
    +  curl -X get "http://petstore.swagger.io/v2/store/order/{orderId}"
    +  
    +
    +
    +
    
    +  import io.swagger.client.*;
     import io.swagger.client.auth.*;
     import io.swagger.client.model.*;
     import .StoreApi;
    @@ -5778,13 +4056,12 @@ public class StoreApiExample {
         }
     }
     
    -                                                  
    -
    +
    +
    - -
    -
    
    -import .StoreApi;
    +                          
    +
    
    +  import .StoreApi;
     
     public class StoreApiExample {
     
    @@ -5801,18 +4078,15 @@ public class StoreApiExample {
         }
     }
     
    -                                                  
    -
    - - - - -
    -
    
    -
    +                            
    +
    + +
    +
    
    +  
     Long *orderId = 789; // ID of pet that needs to be fetched
     
     StoreApi *apiInstance = [[StoreApi alloc] init];
    @@ -5828,11 +4102,12 @@ StoreApi *apiInstance = [[StoreApi alloc] init];
                                 }
                             }];
     
    -                                                    
    -
    -
    -
    
    -var  = require('');
    +                              
    +
    + +
    +
    
    +  var  = require('');
     
     var api = new .StoreApi()
     
    @@ -5848,16 +4123,15 @@ var callback = function(error, data, response) {
     };
     api.getOrderById(orderId, callback);
     
    -                                                    
    -
    +
    +
    - - -
    -
    
    -using System;
    +                            
    +                            
    +
    
    +  using System;
     using System.Diagnostics;
     using .Api;
     using .Client;
    @@ -5887,13 +4161,12 @@ namespace Example
         }
     }
     
    -                                                    
    -
    +
    +
    - -
    -
    
    -
    +                              
    
    +  getOrderById: ', $e->getMessage(), PHP_EOL;
     }
     
    -                                                  
    -
    + +
    +
    - +

    Parameters

    - - - - -

    Parameters

    - - - -
    Path parameters
    - - - - - - - +
    Path parameters
    +
    NameDescription
    orderId*
    + + + + + -
    NameDescription
    orderId* @@ -5962,329 +4227,99 @@ try {
    + +

    Responses

    +

    Status: 200 - successful operation

    -

    Responses

    + - - - - - - - - -
    - - - -
    - - - - -
    - - -
    - - - - - - - -
    - - - - -
    - - - - -

    Status: 400 - Invalid ID supplied

    - - - - - - - - - -
    - - - -
    - - - - -
    - - -
    - - - - - - - -
    - - - - -
    - - - - -

    Status: 404 - Order not found

    - - - - - - - - - -
    - - - -
    - - - - -
    - - -
    - - - - - - - -
    - - - - -
    - - - - - - - - - - - - - -
    - - - - - - - - -
    - -
    -
    -

    placeOrder

    -

    Place an order for a pet

    -
    -
    - -
    -
    - -

    -

    -

    -
    - -
    /store/order
    - -

    -

    Usage and SDK Samples

    -

    - - - -
    -
    -
    
    -curl -X post "http://petstore.swagger.io/v2/store/order"
    -
    -
    -
    -
    - -
    -
    
    -import io.swagger.client.*;
    +                                        var schema = schemaWrapper.schema;
    +                                        schemaWrapper.definitions = defs;
    +                                        //console.log(JSON.stringify(schema))
    +                                        JsonRefs.resolveRefs(schemaWrapper, {
    +                                            "depth": 3,
    +                                            "resolveRemoteRefs": false,
    +                                            "resolveFileRefs": false
    +                                        }, function(err, resolved, metadata) {
    +                                          //console.log(JSON.stringify(resolved));
    +                                          var view = new JSONSchemaView(resolved.schema, 3);
    +                                          $('#examples-Store-getOrderById-schema-data').val(JSON.stringify(resolved.schema));
    +                                          var result = $('#examples-Store-getOrderById-schema-200');
    +                                          result.empty();
    +                                          result.append(view.render());
    +                                        });
    +                                      });
    +                                    
    +                                  
    + +
    +
    +

    Status: 400 - Invalid ID supplied

    + +

    Status: 404 - Order not found

    + + + +
    +
    +
    +
    +

    placeOrder

    +

    Place an order for a pet

    +
    +
    +
    +

    +

    +

    +
    +
    /store/order
    +

    +

    Usage and SDK Samples

    +

    + + +
    +
    +
    
    +  curl -X post "http://petstore.swagger.io/v2/store/order"
    +  
    +
    +
    +
    
    +  import io.swagger.client.*;
     import io.swagger.client.auth.*;
     import io.swagger.client.model.*;
     import .StoreApi;
    @@ -6308,13 +4343,12 @@ public class StoreApiExample {
         }
     }
     
    -                                                  
    -
    +
    +
    - -
    -
    
    -import .StoreApi;
    +                          
    +
    
    +  import .StoreApi;
     
     public class StoreApiExample {
     
    @@ -6331,18 +4365,15 @@ public class StoreApiExample {
         }
     }
     
    -                                                  
    -
    - - - - -
    -
    
    -
    +                            
    +
    + +
    +
    
    +  
     Order *body = ; // order placed for purchasing the pet
     
     StoreApi *apiInstance = [[StoreApi alloc] init];
    @@ -6358,11 +4389,12 @@ StoreApi *apiInstance = [[StoreApi alloc] init];
                                 }
                             }];
     
    -                                                    
    -
    -
    -
    
    -var  = require('');
    +                              
    +
    + +
    +
    
    +  var  = require('');
     
     var api = new .StoreApi()
     
    @@ -6378,16 +4410,15 @@ var callback = function(error, data, response) {
     };
     api.placeOrder(body, callback);
     
    -                                                    
    -
    +
    +
    - - -
    -
    
    -using System;
    +                            
    +                            
    +
    
    +  using System;
     using System.Diagnostics;
     using .Api;
     using .Client;
    @@ -6417,13 +4448,12 @@ namespace Example
         }
     }
     
    -                                                    
    -
    +
    +
    - -
    -
    
    -
    +                              
    
    +  placeOrder: ', $e->getMessage(), PHP_EOL;
     }
     
    -                                                  
    -
    + +
    + - +

    Parameters

    - - -

    Parameters

    - - - - - - -
    Body parameters
    - - - - - - - +
    Body parameters
    +
    NameDescription
    body *
    + + + + + - -
    NameDescription
    body * @@ -6503,255 +4524,98 @@ try {
    + -

    Responses

    +

    Responses

    +

    Status: 200 - successful operation

    -

    Status: 200 - successful operation

    + - - - - - - - -
    - - - -
    - - - - -
    - - -
    - - - - - - - -
    - - - - -
    - - - - -

    Status: 400 - Invalid Order

    - - - - - - - - - -
    - - - -
    - - - - -
    - - -
    - - - - - - - -
    - - - - -
    - - - - - - - - - - - - - -
    - -
    - -
    -

    User

    - - - - - - - -
    - -
    -
    -

    createUser

    -

    Create user

    -
    -
    - -
    -
    - -

    -

    This can only be done by the logged in user.

    -

    -
    - -
    /user
    - -

    -

    Usage and SDK Samples

    -

    - - - -
    -
    -
    
    -curl -X post "http://petstore.swagger.io/v2/user"
    -
    -
    -
    -
    - -
    -
    
    -import io.swagger.client.*;
    +                                        var schema = schemaWrapper.schema;
    +                                        schemaWrapper.definitions = defs;
    +                                        //console.log(JSON.stringify(schema))
    +                                        JsonRefs.resolveRefs(schemaWrapper, {
    +                                            "depth": 3,
    +                                            "resolveRemoteRefs": false,
    +                                            "resolveFileRefs": false
    +                                        }, function(err, resolved, metadata) {
    +                                          //console.log(JSON.stringify(resolved));
    +                                          var view = new JSONSchemaView(resolved.schema, 3);
    +                                          $('#examples-Store-placeOrder-schema-data').val(JSON.stringify(resolved.schema));
    +                                          var result = $('#examples-Store-placeOrder-schema-200');
    +                                          result.empty();
    +                                          result.append(view.render());
    +                                        });
    +                                      });
    +                                    
    +                                  
    + +
    +
    +

    Status: 400 - Invalid Order

    + + + +
    +
    +
    +

    User

    +
    +
    +
    +

    createUser

    +

    Create user

    +
    +
    +
    +

    +

    This can only be done by the logged in user.

    +

    +
    +
    /user
    +

    +

    Usage and SDK Samples

    +

    + + +
    +
    +
    
    +  curl -X post "http://petstore.swagger.io/v2/user"
    +  
    +
    +
    +
    
    +  import io.swagger.client.*;
     import io.swagger.client.auth.*;
     import io.swagger.client.model.*;
     import .UserApi;
    @@ -6774,13 +4638,12 @@ public class UserApiExample {
         }
     }
     
    -                                                  
    -
    +
    +
    - -
    -
    
    -import .UserApi;
    +                          
    +
    
    +  import .UserApi;
     
     public class UserApiExample {
     
    @@ -6796,18 +4659,15 @@ public class UserApiExample {
         }
     }
     
    -                                                  
    -
    - - - - -
    -
    
    -
    +                            
    +
    + +
    +
    
    +  
     User *body = ; // Created user object
     
     UserApi *apiInstance = [[UserApi alloc] init];
    @@ -6820,11 +4680,12 @@ UserApi *apiInstance = [[UserApi alloc] init];
                                 }
                             }];
     
    -                                                    
    -
    -
    -
    
    -var  = require('');
    +                              
    +
    + +
    +
    
    +  var  = require('');
     
     var api = new .UserApi()
     
    @@ -6840,16 +4701,15 @@ var callback = function(error, data, response) {
     };
     api.createUser(body, callback);
     
    -                                                    
    -
    +
    +
    - - -
    -
    
    -using System;
    +                            
    +                            
    +
    
    +  using System;
     using System.Diagnostics;
     using .Api;
     using .Client;
    @@ -6878,13 +4738,12 @@ namespace Example
         }
     }
     
    -                                                    
    -
    +
    +
    - -
    -
    
    -
    +                              
    
    +  createUser: ', $e->getMessage(), PHP_EOL;
     }
     
    -                                                  
    -
    + +
    + - +

    Parameters

    - - -

    Parameters

    - - - - - - -
    Body parameters
    - - - - - - - +
    Body parameters
    +
    NameDescription
    body *
    + + + + + - -
    NameDescription
    body * @@ -6963,172 +4813,53 @@ try {
    - - - -

    Responses

    - -

    Status: 0 - successful operation

    - - - - - - - - - -
    - - - -
    - - - - -
    - - -
    - - - - - - - -
    - - - - -
    - - - - - - - - - - - - - -
    - - - - - - - - -
    - -
    -
    -

    createUsersWithArrayInput

    -

    Creates list of users with given input array

    -
    -
    - -
    -
    - -

    -

    -

    -
    - -
    /user/createWithArray
    - -

    -

    Usage and SDK Samples

    -

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

    Responses

    +

    Status: 0 - successful operation

    + +
    +
    +
    +
    +
    +
    +

    createUsersWithArrayInput

    +

    Creates list of users with given input array

    +
    +
    +
    +

    +

    +

    +
    +
    /user/createWithArray
    +

    +

    Usage and SDK Samples

    +

    + + +
    +
    +
    
    +  curl -X post "http://petstore.swagger.io/v2/user/createWithArray"
    +  
    +
    +
    +
    
    +  import io.swagger.client.*;
     import io.swagger.client.auth.*;
     import io.swagger.client.model.*;
     import .UserApi;
    @@ -7151,13 +4882,12 @@ public class UserApiExample {
         }
     }
     
    -                                                  
    -
    +
    +
    - -
    -
    
    -import .UserApi;
    +                          
    +
    
    +  import .UserApi;
     
     public class UserApiExample {
     
    @@ -7173,18 +4903,15 @@ public class UserApiExample {
         }
     }
     
    -                                                  
    -
    - - - - -
    -
    
    -
    +                            
    +
    + +
    +
    
    +  
     array[User] *body = ; // List of user object
     
     UserApi *apiInstance = [[UserApi alloc] init];
    @@ -7197,11 +4924,12 @@ UserApi *apiInstance = [[UserApi alloc] init];
                                 }
                             }];
     
    -                                                    
    -
    -
    -
    
    -var  = require('');
    +                              
    +
    + +
    +
    
    +  var  = require('');
     
     var api = new .UserApi()
     
    @@ -7217,16 +4945,15 @@ var callback = function(error, data, response) {
     };
     api.createUsersWithArrayInput(body, callback);
     
    -                                                    
    -
    +
    +
    - - -
    -
    
    -using System;
    +                            
    +                            
    +
    
    +  using System;
     using System.Diagnostics;
     using .Api;
     using .Client;
    @@ -7255,13 +4982,12 @@ namespace Example
         }
     }
     
    -                                                    
    -
    +
    +
    - -
    -
    
    -
    +                              
    
    +  createUsersWithArrayInput: ', $e->getMessage(), PHP_EOL;
     }
     
    -                                                  
    -
    + +
    + - +

    Parameters

    - - -

    Parameters

    - - - - - - -
    Body parameters
    - - - - - - - +
    Body parameters
    +
    NameDescription
    body *
    + + + + + - -
    NameDescription
    body * @@ -7343,172 +5060,53 @@ try {
    - - - -

    Responses

    - -

    Status: 0 - successful operation

    - - - - - - - - - -
    - - - -
    - - - - -
    - - -
    - - - - - - - -
    - - - - -
    - - - - - - - - - - - - - -
    - - - - - - - - -
    - -
    -
    -

    createUsersWithListInput

    -

    Creates list of users with given input array

    -
    -
    - -
    -
    - -

    -

    -

    -
    - -
    /user/createWithList
    - -

    -

    Usage and SDK Samples

    -

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

    Responses

    +

    Status: 0 - successful operation

    + +
    +
    +
    +
    +
    +
    +

    createUsersWithListInput

    +

    Creates list of users with given input array

    +
    +
    +
    +

    +

    +

    +
    +
    /user/createWithList
    +

    +

    Usage and SDK Samples

    +

    + + +
    +
    +
    
    +  curl -X post "http://petstore.swagger.io/v2/user/createWithList"
    +  
    +
    +
    +
    
    +  import io.swagger.client.*;
     import io.swagger.client.auth.*;
     import io.swagger.client.model.*;
     import .UserApi;
    @@ -7531,13 +5129,12 @@ public class UserApiExample {
         }
     }
     
    -                                                  
    -
    +
    +
    - -
    -
    
    -import .UserApi;
    +                          
    +
    
    +  import .UserApi;
     
     public class UserApiExample {
     
    @@ -7553,18 +5150,15 @@ public class UserApiExample {
         }
     }
     
    -                                                  
    -
    - - - - -
    -
    
    -
    +                            
    +
    + +
    +
    
    +  
     array[User] *body = ; // List of user object
     
     UserApi *apiInstance = [[UserApi alloc] init];
    @@ -7577,11 +5171,12 @@ UserApi *apiInstance = [[UserApi alloc] init];
                                 }
                             }];
     
    -                                                    
    -
    -
    -
    
    -var  = require('');
    +                              
    +
    + +
    +
    
    +  var  = require('');
     
     var api = new .UserApi()
     
    @@ -7597,16 +5192,15 @@ var callback = function(error, data, response) {
     };
     api.createUsersWithListInput(body, callback);
     
    -                                                    
    -
    +
    +
    - - -
    -
    
    -using System;
    +                            
    +                            
    +
    
    +  using System;
     using System.Diagnostics;
     using .Api;
     using .Client;
    @@ -7635,13 +5229,12 @@ namespace Example
         }
     }
     
    -                                                    
    -
    +
    +
    - -
    -
    
    -
    +                              
    
    +  createUsersWithListInput: ', $e->getMessage(), PHP_EOL;
     }
     
    -                                                  
    -
    + +
    + - +

    Parameters

    - - -

    Parameters

    - - - - - - -
    Body parameters
    - - - - - - - +
    Body parameters
    +
    NameDescription
    body *
    + + + + + - -
    NameDescription
    body * @@ -7723,172 +5307,53 @@ try {
    - - - -

    Responses

    - -

    Status: 0 - successful operation

    - - - - - - - - - -
    - - - -
    - - - - -
    - - -
    - - - - - - - -
    - - - - -
    - - - - - - - - - - - - - -
    - - - - - - - - -
    - -
    -
    -

    deleteUser

    -

    Delete user

    -
    -
    - -
    -
    - -

    -

    This can only be done by the logged in user.

    -

    -
    - -
    /user/{username}
    - -

    -

    Usage and SDK Samples

    -

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

    Responses

    +

    Status: 0 - successful operation

    + +
    +
    +
    +
    +
    +
    +

    deleteUser

    +

    Delete user

    +
    +
    +
    +

    +

    This can only be done by the logged in user.

    +

    +
    +
    /user/{username}
    +

    +

    Usage and SDK Samples

    +

    + + +
    +
    +
    
    +  curl -X delete "http://petstore.swagger.io/v2/user/{username}"
    +  
    +
    +
    +
    
    +  import io.swagger.client.*;
     import io.swagger.client.auth.*;
     import io.swagger.client.model.*;
     import .UserApi;
    @@ -7911,13 +5376,12 @@ public class UserApiExample {
         }
     }
     
    -                                                  
    -
    +
    +
    - -
    -
    
    -import .UserApi;
    +                          
    +
    
    +  import .UserApi;
     
     public class UserApiExample {
     
    @@ -7933,18 +5397,15 @@ public class UserApiExample {
         }
     }
     
    -                                                  
    -
    - - - - -
    -
    
    -
    +                            
    +
    + +
    +
    
    +  
     String *username = username_example; // The name that needs to be deleted
     
     UserApi *apiInstance = [[UserApi alloc] init];
    @@ -7957,11 +5418,12 @@ UserApi *apiInstance = [[UserApi alloc] init];
                                 }
                             }];
     
    -                                                    
    -
    -
    -
    
    -var  = require('');
    +                              
    +
    + +
    +
    
    +  var  = require('');
     
     var api = new .UserApi()
     
    @@ -7977,16 +5439,15 @@ var callback = function(error, data, response) {
     };
     api.deleteUser(username, callback);
     
    -                                                    
    -
    +
    +
    - - -
    -
    
    -using System;
    +                            
    +                            
    +
    
    +  using System;
     using System.Diagnostics;
     using .Api;
     using .Client;
    @@ -8015,13 +5476,12 @@ namespace Example
         }
     }
     
    -                                                    
    -
    +
    +
    - -
    -
    
    -
    +                              
    
    +  deleteUser: ', $e->getMessage(), PHP_EOL;
     }
     
    -                                                  
    -
    + +
    + - +

    Parameters

    - - - - -

    Parameters

    - - - -
    Path parameters
    - - - - - - - +
    Path parameters
    +
    NameDescription
    username*
    + + + + + -
    NameDescription
    username* @@ -8086,250 +5538,57 @@ try {
    - - - - - - -

    Responses

    - -

    Status: 400 - Invalid username supplied

    - - - - - - - - - -
    - - - -
    - - - - -
    - - -
    - - - - - - - -
    - - - - -
    - - - - -

    Status: 404 - User not found

    - - - - - - - - - -
    - - - -
    - - - - -
    - - -
    - - - - - - - -
    - - - - -
    - - - - - - - - - - - - - -
    - - - - - - - - -
    - -
    -
    -

    getUserByName

    -

    Get user by user name

    -
    -
    - -
    -
    - -

    -

    -

    -
    - -
    /user/{username}
    - -

    -

    Usage and SDK Samples

    -

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

    Responses

    +

    Status: 400 - Invalid username supplied

    + +

    Status: 404 - User not found

    + +
    +
    +
    +
    +
    +
    +

    getUserByName

    +

    Get user by user name

    +
    +
    +
    +

    +

    +

    +
    +
    /user/{username}
    +

    +

    Usage and SDK Samples

    +

    + + +
    +
    +
    
    +  curl -X get "http://petstore.swagger.io/v2/user/{username}"
    +  
    +
    +
    +
    
    +  import io.swagger.client.*;
     import io.swagger.client.auth.*;
     import io.swagger.client.model.*;
     import .UserApi;
    @@ -8353,13 +5612,12 @@ public class UserApiExample {
         }
     }
     
    -                                                  
    -
    +
    +
    - -
    -
    
    -import .UserApi;
    +                          
    +
    
    +  import .UserApi;
     
     public class UserApiExample {
     
    @@ -8376,18 +5634,15 @@ public class UserApiExample {
         }
     }
     
    -                                                  
    -
    - - - - -
    -
    
    -
    +                            
    +
    + +
    +
    
    +  
     String *username = username_example; // The name that needs to be fetched. Use user1 for testing. 
     
     UserApi *apiInstance = [[UserApi alloc] init];
    @@ -8403,11 +5658,12 @@ UserApi *apiInstance = [[UserApi alloc] init];
                                 }
                             }];
     
    -                                                    
    -
    -
    -
    
    -var  = require('');
    +                              
    +
    + +
    +
    
    +  var  = require('');
     
     var api = new .UserApi()
     
    @@ -8423,16 +5679,15 @@ var callback = function(error, data, response) {
     };
     api.getUserByName(username, callback);
     
    -                                                    
    -
    +
    +
    - - -
    -
    
    -using System;
    +                            
    +                            
    +
    
    +  using System;
     using System.Diagnostics;
     using .Api;
     using .Client;
    @@ -8462,13 +5717,12 @@ namespace Example
         }
     }
     
    -                                                    
    -
    +
    +
    - -
    -
    
    -
    +                              
    
    +  getUserByName: ', $e->getMessage(), PHP_EOL;
     }
     
    -                                                  
    -
    + +
    + - +

    Parameters

    - - - - -

    Parameters

    - - - -
    Path parameters
    - - - - - - - +
    Path parameters
    +
    NameDescription
    username*
    + + + + + -
    NameDescription
    username* @@ -8534,329 +5780,99 @@ try {
    + +

    Responses

    +

    Status: 200 - successful operation

    -

    Responses

    + - - - - - - - - -
    - - - -
    - - - - -
    - - -
    - - - - - - - -
    - - - - -
    - - - - -

    Status: 400 - Invalid username supplied

    - - - - - - - - - -
    - - - -
    - - - - -
    - - -
    - - - - - - - -
    - - - - -
    - - - - -

    Status: 404 - User not found

    - - - - - - - - - -
    - - - -
    - - - - -
    - - -
    - - - - - - - -
    - - - - -
    - - - - - - - - - - - - - -
    - - - - - - - - -
    - -
    -
    -

    loginUser

    -

    Logs user into the system

    -
    -
    - -
    -
    - -

    -

    -

    -
    - -
    /user/login
    - -

    -

    Usage and SDK Samples

    -

    - - - -
    -
    -
    
    -curl -X get "http://petstore.swagger.io/v2/user/login?username=&password="
    -
    -
    -
    -
    - -
    -
    
    -import io.swagger.client.*;
    +                                        var schema = schemaWrapper.schema;
    +                                        schemaWrapper.definitions = defs;
    +                                        //console.log(JSON.stringify(schema))
    +                                        JsonRefs.resolveRefs(schemaWrapper, {
    +                                            "depth": 3,
    +                                            "resolveRemoteRefs": false,
    +                                            "resolveFileRefs": false
    +                                        }, function(err, resolved, metadata) {
    +                                          //console.log(JSON.stringify(resolved));
    +                                          var view = new JSONSchemaView(resolved.schema, 3);
    +                                          $('#examples-User-getUserByName-schema-data').val(JSON.stringify(resolved.schema));
    +                                          var result = $('#examples-User-getUserByName-schema-200');
    +                                          result.empty();
    +                                          result.append(view.render());
    +                                        });
    +                                      });
    +                                    
    +                                  
    + +
    +
    +

    Status: 400 - Invalid username supplied

    + +

    Status: 404 - User not found

    + + + +
    +
    +
    +
    +

    loginUser

    +

    Logs user into the system

    +
    +
    +
    +

    +

    +

    +
    +
    /user/login
    +

    +

    Usage and SDK Samples

    +

    + + +
    +
    +
    
    +  curl -X get "http://petstore.swagger.io/v2/user/login?username=&password="
    +  
    +
    +
    +
    
    +  import io.swagger.client.*;
     import io.swagger.client.auth.*;
     import io.swagger.client.model.*;
     import .UserApi;
    @@ -8881,13 +5897,12 @@ public class UserApiExample {
         }
     }
     
    -                                                  
    -
    +
    +
    - -
    -
    
    -import .UserApi;
    +                          
    +
    
    +  import .UserApi;
     
     public class UserApiExample {
     
    @@ -8905,18 +5920,15 @@ public class UserApiExample {
         }
     }
     
    -                                                  
    -
    - - - - -
    -
    
    -
    +                            
    +
    + +
    +
    
    +  
     String *username = username_example; // The user name for login
     String *password = password_example; // The password for login in clear text
     
    @@ -8934,11 +5946,12 @@ UserApi *apiInstance = [[UserApi alloc] init];
                                 }
                             }];
     
    -                                                    
    -
    -
    -
    
    -var  = require('');
    +                              
    +
    + +
    +
    
    +  var  = require('');
     
     var api = new .UserApi()
     
    @@ -8956,16 +5969,15 @@ var callback = function(error, data, response) {
     };
     api.loginUser(username, password, callback);
     
    -                                                    
    -
    +
    +
    - - -
    -
    
    -using System;
    +                            
    +                            
    +
    
    +  using System;
     using System.Diagnostics;
     using .Api;
     using .Client;
    @@ -8996,13 +6008,12 @@ namespace Example
         }
     }
     
    -                                                    
    -
    +
    +
    - -
    -
    
    -
    +                              
    
    +  loginUser: ', $e->getMessage(), PHP_EOL;
     }
     
    -                                                  
    -
    + +
    + - +

    Parameters

    -

    Parameters

    - - - - - - - - -
    Query parameters
    - - - - - - - +
    Query parameters
    +
    NameDescription
    username*
    + + + + + - + -
    NameDescription
    username* @@ -9074,7 +6076,7 @@ try {
    password*
    password* @@ -9107,41 +6109,25 @@ try {
    + -

    Responses

    +

    Responses

    +

    Status: 200 - successful operation

    -

    Status: 200 - successful operation

    + - - - - - - - -
    - - - -
    - - - - -
    - - -
    - - - - - - - -
    - - - - -
    - - - - -

    Status: 400 - Invalid username/password supplied

    - - - - - - - - - -
    - - - -
    - - - - -
    - - -
    - - - - - - - -
    - - - - -
    - - - - - - - - - - - - - -
    - - - - - - - - -
    - -
    -
    -

    logoutUser

    -

    Logs out current logged in user session

    -
    -
    - -
    -
    - -

    -

    -

    -
    - -
    /user/logout
    - -

    -

    Usage and SDK Samples

    -

    - - - -
    -
    -
    
    -curl -X get "http://petstore.swagger.io/v2/user/logout"
    -
    -
    -
    -
    - -
    -
    
    -import io.swagger.client.*;
    +                                        var schema = schemaWrapper.schema;
    +                                        schemaWrapper.definitions = defs;
    +                                        //console.log(JSON.stringify(schema))
    +                                        JsonRefs.resolveRefs(schemaWrapper, {
    +                                            "depth": 3,
    +                                            "resolveRemoteRefs": false,
    +                                            "resolveFileRefs": false
    +                                        }, function(err, resolved, metadata) {
    +                                          //console.log(JSON.stringify(resolved));
    +                                          var view = new JSONSchemaView(resolved.schema, 3);
    +                                          $('#examples-User-loginUser-schema-data').val(JSON.stringify(resolved.schema));
    +                                          var result = $('#examples-User-loginUser-schema-200');
    +                                          result.empty();
    +                                          result.append(view.render());
    +                                        });
    +                                      });
    +                                    
    +                                  
    + +
    +
    +

    Status: 400 - Invalid username/password supplied

    + + + +
    +
    +
    +
    +

    logoutUser

    +

    Logs out current logged in user session

    +
    +
    +
    +

    +

    +

    +
    +
    /user/logout
    +

    +

    Usage and SDK Samples

    +

    + + +
    +
    +
    
    +  curl -X get "http://petstore.swagger.io/v2/user/logout"
    +  
    +
    +
    +
    
    +  import io.swagger.client.*;
     import io.swagger.client.auth.*;
     import io.swagger.client.model.*;
     import .UserApi;
    @@ -9382,13 +6229,12 @@ public class UserApiExample {
         }
     }
     
    -                                                  
    -
    +
    +
    - -
    -
    
    -import .UserApi;
    +                          
    +
    
    +  import .UserApi;
     
     public class UserApiExample {
     
    @@ -9403,18 +6249,15 @@ public class UserApiExample {
         }
     }
     
    -                                                  
    -
    - - - - -
    -
    
    -
    +                            
    +
    + +
    +
    
    +  
     
     UserApi *apiInstance = [[UserApi alloc] init];
     
    @@ -9426,11 +6269,12 @@ UserApi *apiInstance = [[UserApi alloc] init];
                                 }
                             }];
     
    -                                                    
    -
    -
    -
    
    -var  = require('');
    +                              
    +
    + +
    +
    
    +  var  = require('');
     
     var api = new .UserApi()
     
    @@ -9443,16 +6287,15 @@ var callback = function(error, data, response) {
     };
     api.logoutUser(callback);
     
    -                                                    
    -
    +
    +
    - - -
    -
    
    -using System;
    +                            
    +                            
    +
    
    +  using System;
     using System.Diagnostics;
     using .Api;
     using .Client;
    @@ -9480,13 +6323,12 @@ namespace Example
         }
     }
     
    -                                                    
    -
    +
    +
    - -
    -
    
    -
    +                              
    
    +  logoutUser: ', $e->getMessage(), PHP_EOL;
     }
     
    -                                                  
    -
    - -
    - - - - - -

    Parameters

    - - - - - - - - - -

    Responses

    - -

    Status: 0 - successful operation

    - - - - - - - - - -
    - - - -
    - - - - -
    - - -
    - - - - - - - -
    - - - - -
    - - - - - - - - - - - - - -
    - - - - - - - - -
    - -
    -
    -

    updateUser

    -

    Updated user

    -
    -
    - -
    -
    - -

    -

    This can only be done by the logged in user.

    -

    -
    - -
    /user/{username}
    - -

    -

    Usage and SDK Samples

    -

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

    Parameters

    + + + + + + +

    Responses

    +

    Status: 0 - successful operation

    + +
    +
    +
    +
    +
    +
    +

    updateUser

    +

    Updated user

    +
    +
    +
    +

    +

    This can only be done by the logged in user.

    +

    +
    +
    /user/{username}
    +

    +

    Usage and SDK Samples

    +

    + + +
    +
    +
    
    +  curl -X put "http://petstore.swagger.io/v2/user/{username}"
    +  
    +
    +
    +
    
    +  import io.swagger.client.*;
     import io.swagger.client.auth.*;
     import io.swagger.client.model.*;
     import .UserApi;
    @@ -9700,13 +6416,12 @@ public class UserApiExample {
         }
     }
     
    -                                                  
    -
    +
    +
    - -
    -
    
    -import .UserApi;
    +                          
    +
    
    +  import .UserApi;
     
     public class UserApiExample {
     
    @@ -9723,18 +6438,15 @@ public class UserApiExample {
         }
     }
     
    -                                                  
    -
    - - - - -
    -
    
    -
    +                            
    +
    + +
    +
    
    +  
     String *username = username_example; // name that need to be deleted
     User *body = ; // Updated user object
     
    @@ -9749,11 +6461,12 @@ UserApi *apiInstance = [[UserApi alloc] init];
                                 }
                             }];
     
    -                                                    
    -
    -
    -
    
    -var  = require('');
    +                              
    +
    + +
    +
    
    +  var  = require('');
     
     var api = new .UserApi()
     
    @@ -9771,16 +6484,15 @@ var callback = function(error, data, response) {
     };
     api.updateUser(username, body, callback);
     
    -                                                    
    -
    +
    +
    - - -
    -
    
    -using System;
    +                            
    +                            
    +
    
    +  using System;
     using System.Diagnostics;
     using .Api;
     using .Client;
    @@ -9810,13 +6522,12 @@ namespace Example
         }
     }
     
    -                                                    
    -
    +
    +
    - -
    -
    
    -
    +                              
    
    +  updateUser: ', $e->getMessage(), PHP_EOL;
     }
     
    -                                                  
    -
    + +
    + - +

    Parameters

    - - - - -

    Parameters

    - - - -
    Path parameters
    - - - - - - - +
    Path parameters
    +
    NameDescription
    username*
    + + + + + -
    NameDescription
    username* @@ -9882,18 +6585,16 @@ try {
    + - -
    Body parameters
    - - - - - - - +
    Body parameters
    +
    NameDescription
    body *
    + + + + + - -
    NameDescription
    body * @@ -9937,214 +6638,38 @@ try {
    - - - -

    Responses

    - -

    Status: 400 - Invalid user supplied

    - - - - - - - - - -
    - - - -
    - - - - -
    - - -
    - - - - - - - -
    - - - - -
    - - - - -

    Status: 404 - User not found

    - - - - - - - - - -
    - - - -
    - - - - -
    - - -
    - - - - - - - -
    - - - - -
    - - - - - - - - - - - - - -
    - -
    - + +

    Responses

    +

    Status: 400 - Invalid user supplied

    +

    Status: 404 - User not found

    + + +
    + + + + - - - - - - - - - - - - - - - + -