From dcd26ece71021048f74f4cbad67f22593fb8f6a3 Mon Sep 17 00:00:00 2001 From: William Cheng Date: Wed, 9 May 2018 16:34:54 +0800 Subject: [PATCH] Update Scala gatling's default value (#390) * update powershell script * update powershell bin script (oas3) * update html2 generator's default value * update scala gatling default value --- bin/openapi3/powershell-petstore.sh | 2 +- bin/powershell-petstore.sh | 2 +- .../languages/ScalaGatlingCodegen.java | 10 +- .../languages/StaticHtml2Generator.java | 10 +- samples/client/petstore/powershell/Build.ps1 | 2 +- samples/client/petstore/powershell/README.md | 2 +- .../scala-gatling/.openapi-generator/VERSION | 2 +- .../petstore/scala-gatling/build.gradle | 2 +- .../client/api/PetApiSimulation.scala | 22 +- .../client/api/StoreApiSimulation.scala | 9 +- .../client/api/UserApiSimulation.scala | 20 +- .../client/model/ApiResponse.scala | 2 +- .../openapitools}/client/model/Category.scala | 2 +- .../openapitools}/client/model/Order.scala | 2 +- .../openapitools}/client/model/Pet.scala | 2 +- .../openapitools}/client/model/Tag.scala | 2 +- .../openapitools}/client/model/User.scala | 2 +- samples/html2/index.html | 302 +++++++++--------- 18 files changed, 186 insertions(+), 211 deletions(-) rename samples/client/petstore/scala-gatling/src/gatling/scala/{io/swagger => org/openapitools}/client/api/PetApiSimulation.scala (90%) rename samples/client/petstore/scala-gatling/src/gatling/scala/{io/swagger => org/openapitools}/client/api/StoreApiSimulation.scala (95%) rename samples/client/petstore/scala-gatling/src/gatling/scala/{io/swagger => org/openapitools}/client/api/UserApiSimulation.scala (92%) rename samples/client/petstore/scala-gatling/src/gatling/scala/{io/swagger => org/openapitools}/client/model/ApiResponse.scala (90%) rename samples/client/petstore/scala-gatling/src/gatling/scala/{io/swagger => org/openapitools}/client/model/Category.scala (86%) rename samples/client/petstore/scala-gatling/src/gatling/scala/{io/swagger => org/openapitools}/client/model/Order.scala (94%) rename samples/client/petstore/scala-gatling/src/gatling/scala/{io/swagger => org/openapitools}/client/model/Pet.scala (93%) rename samples/client/petstore/scala-gatling/src/gatling/scala/{io/swagger => org/openapitools}/client/model/Tag.scala (86%) rename samples/client/petstore/scala-gatling/src/gatling/scala/{io/swagger => org/openapitools}/client/model/User.scala (95%) diff --git a/bin/openapi3/powershell-petstore.sh b/bin/openapi3/powershell-petstore.sh index 275f61db655..3d90b6c7a01 100755 --- a/bin/openapi3/powershell-petstore.sh +++ b/bin/openapi3/powershell-petstore.sh @@ -27,6 +27,6 @@ fi # if you've executed sbt assembly previously it will use that instead. export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties" -ags="generate -t modules/openapi-generator/src/main/resources/powershell -i modules/openapi-generator/src/test/resources/3_0/petstore.yaml -l powershell -o samples/client/petstore/powershell --additional-properties packageGuid=a27b908d-2a20-467f-bc32-af6f3a654ac5,csharpClientPath=\$ScriptDir\..\..\petstore\csharp\SwaggerClient $@" +ags="generate -t modules/openapi-generator/src/main/resources/powershell -i modules/openapi-generator/src/test/resources/3_0/petstore.yaml -l powershell -o samples/client/petstore/powershell --additional-properties packageGuid=a27b908d-2a20-467f-bc32-af6f3a654ac5,csharpClientPath=\$ScriptDir\..\..\petstore\csharp\OpenAPIClient $@" java $JAVA_OPTS -jar $executable $ags diff --git a/bin/powershell-petstore.sh b/bin/powershell-petstore.sh index 837e558e71b..13fc308e137 100755 --- a/bin/powershell-petstore.sh +++ b/bin/powershell-petstore.sh @@ -27,6 +27,6 @@ fi # if you've executed sbt assembly previously it will use that instead. export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties" -ags="generate -t modules/openapi-generator/src/main/resources/powershell -i modules/openapi-generator/src/test/resources/2_0/petstore.yaml -l powershell -o samples/client/petstore/powershell --additional-properties packageGuid=a27b908d-2a20-467f-bc32-af6f3a654ac5,csharpClientPath=\$ScriptDir\..\..\petstore\csharp\SwaggerClient $@" +ags="generate -t modules/openapi-generator/src/main/resources/powershell -i modules/openapi-generator/src/test/resources/2_0/petstore.yaml -l powershell -o samples/client/petstore/powershell --additional-properties packageGuid=a27b908d-2a20-467f-bc32-af6f3a654ac5,csharpClientPath=\$ScriptDir\..\..\petstore\csharp\OpenAPIClient $@" java ${JAVA_OPTS} -jar ${executable} ${ags} diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/ScalaGatlingCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/ScalaGatlingCodegen.java index 79ed47dc79d..f65c12569c3 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/ScalaGatlingCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/ScalaGatlingCodegen.java @@ -96,12 +96,12 @@ public class ScalaGatlingCodegen extends AbstractScalaCodegen implements Codegen /** * Api Package. Optional, if needed, this can be used in templates */ - apiPackage = "io.swagger.client.api"; + apiPackage = "org.openapitools.client.api"; /** * Model Package. Optional, if needed, this can be used in templates */ - modelPackage = "io.swagger.client.model"; + modelPackage = "org.openapitools.client.model"; /** * Additional Properties. These values can be passed to the templates and @@ -305,9 +305,9 @@ public class ScalaGatlingCodegen extends AbstractScalaCodegen implements Codegen /** * Creates all the necessary openapi vendor extensions and feeder files for gatling * - * @param operation Swagger Operation - * @param parameters Swagger Parameters - * @param parameterType Swagger Parameter Type + * @param operation OpoenAPI Operation + * @param parameters OpenAPI Parameters + * @param parameterType OpenAPI Parameter Type */ private void prepareGatlingData(Operation operation, Set parameters, String parameterType) { if (parameters.size() > 0) { diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/StaticHtml2Generator.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/StaticHtml2Generator.java index 553fd18c6c8..ca56afb86cb 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/StaticHtml2Generator.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/StaticHtml2Generator.java @@ -50,8 +50,8 @@ public class StaticHtml2Generator extends DefaultCodegen implements CodegenConfi protected String artifactVersion = "1.0.0"; protected String jsProjectName; protected String jsModuleName; - protected String perlModuleName = "WWW::SwaggerClient"; - protected String pythonPackageName = "swagger_client"; + protected String perlModuleName = "WWW::OPenAPIClient"; + protected String pythonPackageName = "openapi_client"; public StaticHtml2Generator() { super(); @@ -77,8 +77,8 @@ public class StaticHtml2Generator extends DefaultCodegen implements CodegenConfi additionalProperties.put("appName", "OpenAPI Sample"); additionalProperties.put("appDescription", "A sample openapi server"); - additionalProperties.put("infoUrl", "https://helloreverb.com"); - additionalProperties.put("infoEmail", "hello@helloreverb.com"); + additionalProperties.put("infoUrl", "https://openapi-generator.tech"); + additionalProperties.put("infoEmail", "contributors@openapitools.org"); additionalProperties.put("licenseInfo", "All rights reserved"); additionalProperties.put("licenseUrl", "http://apache.org/licenses/LICENSE-2.0.html"); additionalProperties.put(CodegenConstants.INVOKER_PACKAGE, invokerPackage); @@ -161,7 +161,7 @@ public class StaticHtml2Generator extends DefaultCodegen implements CodegenConfi // default values if (StringUtils.isBlank(jsProjectName)) { - jsProjectName = "swagger-js-client"; + jsProjectName = "openapi-js-client"; } if (StringUtils.isBlank(jsModuleName)) { jsModuleName = camelize(underscore(jsProjectName)); diff --git a/samples/client/petstore/powershell/Build.ps1 b/samples/client/petstore/powershell/Build.ps1 index 8ac592d37fb..8be0b79099d 100644 --- a/samples/client/petstore/powershell/Build.ps1 +++ b/samples/client/petstore/powershell/Build.ps1 @@ -38,7 +38,7 @@ function Get-FunctionsToExport { } $ScriptDir = Split-Path $script:MyInvocation.MyCommand.Path -$ClientPath = ("$ScriptDir\..\..\petstore\csharp\SwaggerClient" | Resolve-Path).ProviderPath +$ClientPath = ("$ScriptDir\..\..\petstore\csharp\OpenAPIClient" | Resolve-Path).ProviderPath $FunctionPath = 'API', 'Model' | ForEach-Object {Join-Path "$ScriptDir\src\Org.OpenAPITools\" $_} $BinPath = "$ScriptDir\src\Org.OpenAPITools\Bin" diff --git a/samples/client/petstore/powershell/README.md b/samples/client/petstore/powershell/README.md index daf3fd4413d..5196860d730 100644 --- a/samples/client/petstore/powershell/README.md +++ b/samples/client/petstore/powershell/README.md @@ -14,7 +14,7 @@ This PowerShell module is automatically generated by the [OpenAPI Generator](htt ## Dependencies -- C# API client generated by OpenAPI Generator AND should be located in $ScriptDir\..\..\petstore\csharp\SwaggerClient as stated in Build.ps1 +- C# API client generated by OpenAPI Generator AND should be located in $ScriptDir\..\..\petstore\csharp\OpenAPIClient as stated in Build.ps1 ## Installation diff --git a/samples/client/petstore/scala-gatling/.openapi-generator/VERSION b/samples/client/petstore/scala-gatling/.openapi-generator/VERSION index 855ff9501eb..096bf47efe3 100644 --- a/samples/client/petstore/scala-gatling/.openapi-generator/VERSION +++ b/samples/client/petstore/scala-gatling/.openapi-generator/VERSION @@ -1 +1 @@ -2.4.0-SNAPSHOT \ No newline at end of file +3.0.0-SNAPSHOT \ No newline at end of file diff --git a/samples/client/petstore/scala-gatling/build.gradle b/samples/client/petstore/scala-gatling/build.gradle index 6671c428cbf..e0d39a06fe3 100644 --- a/samples/client/petstore/scala-gatling/build.gradle +++ b/samples/client/petstore/scala-gatling/build.gradle @@ -1,5 +1,5 @@ plugins { - id 'com.github.lkishalmi.gatling' version '0.4.1' + id 'com.github.lkishalmi.gatling' version '0.7.1' } repositories { diff --git a/samples/client/petstore/scala-gatling/src/gatling/scala/io/swagger/client/api/PetApiSimulation.scala b/samples/client/petstore/scala-gatling/src/gatling/scala/org/openapitools/client/api/PetApiSimulation.scala similarity index 90% rename from samples/client/petstore/scala-gatling/src/gatling/scala/io/swagger/client/api/PetApiSimulation.scala rename to samples/client/petstore/scala-gatling/src/gatling/scala/org/openapitools/client/api/PetApiSimulation.scala index 5e349cc2b6d..805e05dfc60 100644 --- a/samples/client/petstore/scala-gatling/src/gatling/scala/io/swagger/client/api/PetApiSimulation.scala +++ b/samples/client/petstore/scala-gatling/src/gatling/scala/org/openapitools/client/api/PetApiSimulation.scala @@ -1,6 +1,6 @@ -package io.swagger.client.api +package org.openapitools.client.api -import io.swagger.client.model._ +import org.openapitools.client.model._ import com.typesafe.config.ConfigFactory import io.gatling.core.Predef._ @@ -68,27 +68,21 @@ class PetApiSimulation extends Simulation { val scenarioBuilders: mutable.MutableList[PopulationBuilder] = new mutable.MutableList[PopulationBuilder]() // Set up CSV feeders - val addPetBodyFeeder = csv(userDataDirectory + File.separator + "addPet-bodyParams.csv", escapeChar = '\\').random val deletePetHEADERFeeder = csv(userDataDirectory + File.separator + "deletePet-headerParams.csv").random val deletePetPATHFeeder = csv(userDataDirectory + File.separator + "deletePet-pathParams.csv").random val findPetsByStatusQUERYFeeder = csv(userDataDirectory + File.separator + "findPetsByStatus-queryParams.csv").random val findPetsByTagsQUERYFeeder = csv(userDataDirectory + File.separator + "findPetsByTags-queryParams.csv").random val getPetByIdPATHFeeder = csv(userDataDirectory + File.separator + "getPetById-pathParams.csv").random - val updatePetBodyFeeder = csv(userDataDirectory + File.separator + "updatePet-bodyParams.csv", escapeChar = '\\').random - val updatePetWithFormFORMFeeder = csv(userDataDirectory + File.separator + "updatePetWithForm-formParams.csv").random val updatePetWithFormPATHFeeder = csv(userDataDirectory + File.separator + "updatePetWithForm-pathParams.csv").random - val uploadFileFORMFeeder = csv(userDataDirectory + File.separator + "uploadFile-formParams.csv").random val uploadFilePATHFeeder = csv(userDataDirectory + File.separator + "uploadFile-pathParams.csv").random // Setup all scenarios val scnaddPet = scenario("addPetSimulation") - .feed(addPetBodyFeeder) .exec(http("addPet") .httpRequest("POST","/pet") - .body(StringBody(Pet.toStringBody("${id}","${category}","${name}","${tags}","${status}","${photoUrls}"))) - ) +) // Run scnaddPet with warm up and reach a constant rate for entire duration scenarioBuilders += scnaddPet.inject( @@ -159,11 +153,9 @@ class PetApiSimulation extends Simulation { val scnupdatePet = scenario("updatePetSimulation") - .feed(updatePetBodyFeeder) .exec(http("updatePet") .httpRequest("PUT","/pet") - .body(StringBody(Pet.toStringBody("${id}","${category}","${name}","${tags}","${status}","${photoUrls}"))) - ) +) // Run scnupdatePet with warm up and reach a constant rate for entire duration scenarioBuilders += scnupdatePet.inject( @@ -174,12 +166,9 @@ class PetApiSimulation extends Simulation { val scnupdatePetWithForm = scenario("updatePetWithFormSimulation") - .feed(updatePetWithFormFORMFeeder) .feed(updatePetWithFormPATHFeeder) .exec(http("updatePetWithForm") .httpRequest("POST","/pet/${petId}") - .formParam("name","${name}") - .formParam("status","${status}") ) // Run scnupdatePetWithForm with warm up and reach a constant rate for entire duration @@ -191,12 +180,9 @@ class PetApiSimulation extends Simulation { val scnuploadFile = scenario("uploadFileSimulation") - .feed(uploadFileFORMFeeder) .feed(uploadFilePATHFeeder) .exec(http("uploadFile") .httpRequest("POST","/pet/${petId}/uploadImage") - .formParam("file","${file}") - .formParam("additionalMetadata","${additionalMetadata}") ) // Run scnuploadFile with warm up and reach a constant rate for entire duration diff --git a/samples/client/petstore/scala-gatling/src/gatling/scala/io/swagger/client/api/StoreApiSimulation.scala b/samples/client/petstore/scala-gatling/src/gatling/scala/org/openapitools/client/api/StoreApiSimulation.scala similarity index 95% rename from samples/client/petstore/scala-gatling/src/gatling/scala/io/swagger/client/api/StoreApiSimulation.scala rename to samples/client/petstore/scala-gatling/src/gatling/scala/org/openapitools/client/api/StoreApiSimulation.scala index 3331dc06aa2..3bf491c31a3 100644 --- a/samples/client/petstore/scala-gatling/src/gatling/scala/io/swagger/client/api/StoreApiSimulation.scala +++ b/samples/client/petstore/scala-gatling/src/gatling/scala/org/openapitools/client/api/StoreApiSimulation.scala @@ -1,6 +1,6 @@ -package io.swagger.client.api +package org.openapitools.client.api -import io.swagger.client.model._ +import org.openapitools.client.model._ import com.typesafe.config.ConfigFactory import io.gatling.core.Predef._ @@ -66,7 +66,6 @@ class StoreApiSimulation extends Simulation { // Set up CSV feeders val deleteOrderPATHFeeder = csv(userDataDirectory + File.separator + "deleteOrder-pathParams.csv").random val getOrderByIdPATHFeeder = csv(userDataDirectory + File.separator + "getOrderById-pathParams.csv").random - val placeOrderBodyFeeder = csv(userDataDirectory + File.separator + "placeOrder-bodyParams.csv", escapeChar = '\\').random // Setup all scenarios @@ -113,11 +112,9 @@ class StoreApiSimulation extends Simulation { val scnplaceOrder = scenario("placeOrderSimulation") - .feed(placeOrderBodyFeeder) .exec(http("placeOrder") .httpRequest("POST","/store/order") - .body(StringBody(Order.toStringBody("${id}","${shipDate}","${complete}","${quantity}","${status}","${petId}"))) - ) +) // Run scnplaceOrder with warm up and reach a constant rate for entire duration scenarioBuilders += scnplaceOrder.inject( diff --git a/samples/client/petstore/scala-gatling/src/gatling/scala/io/swagger/client/api/UserApiSimulation.scala b/samples/client/petstore/scala-gatling/src/gatling/scala/org/openapitools/client/api/UserApiSimulation.scala similarity index 92% rename from samples/client/petstore/scala-gatling/src/gatling/scala/io/swagger/client/api/UserApiSimulation.scala rename to samples/client/petstore/scala-gatling/src/gatling/scala/org/openapitools/client/api/UserApiSimulation.scala index b065e226dff..c12112e8b0d 100644 --- a/samples/client/petstore/scala-gatling/src/gatling/scala/io/swagger/client/api/UserApiSimulation.scala +++ b/samples/client/petstore/scala-gatling/src/gatling/scala/org/openapitools/client/api/UserApiSimulation.scala @@ -1,6 +1,6 @@ -package io.swagger.client.api +package org.openapitools.client.api -import io.swagger.client.model._ +import org.openapitools.client.model._ import com.typesafe.config.ConfigFactory import io.gatling.core.Predef._ @@ -68,22 +68,18 @@ class UserApiSimulation extends Simulation { val scenarioBuilders: mutable.MutableList[PopulationBuilder] = new mutable.MutableList[PopulationBuilder]() // Set up CSV feeders - val createUserBodyFeeder = csv(userDataDirectory + File.separator + "createUser-bodyParams.csv", escapeChar = '\\').random val deleteUserPATHFeeder = csv(userDataDirectory + File.separator + "deleteUser-pathParams.csv").random val getUserByNamePATHFeeder = csv(userDataDirectory + File.separator + "getUserByName-pathParams.csv").random val loginUserQUERYFeeder = csv(userDataDirectory + File.separator + "loginUser-queryParams.csv").random val updateUserPATHFeeder = csv(userDataDirectory + File.separator + "updateUser-pathParams.csv").random - val updateUserBodyFeeder = csv(userDataDirectory + File.separator + "updateUser-bodyParams.csv", escapeChar = '\\').random // Setup all scenarios val scncreateUser = scenario("createUserSimulation") - .feed(createUserBodyFeeder) .exec(http("createUser") .httpRequest("POST","/user") - .body(StringBody(User.toStringBody("${password}","${id}","${lastName}","${firstName}","${email}","${userStatus}","${phone}","${username}"))) - ) +) // Run scncreateUser with warm up and reach a constant rate for entire duration scenarioBuilders += scncreateUser.inject( @@ -96,8 +92,7 @@ class UserApiSimulation extends Simulation { val scncreateUsersWithArrayInput = scenario("createUsersWithArrayInputSimulation") .exec(http("createUsersWithArrayInput") .httpRequest("POST","/user/createWithArray") - .body(StringBody(StringBody("[]"))) - ) +) // Run scncreateUsersWithArrayInput with warm up and reach a constant rate for entire duration scenarioBuilders += scncreateUsersWithArrayInput.inject( @@ -110,8 +105,7 @@ class UserApiSimulation extends Simulation { val scncreateUsersWithListInput = scenario("createUsersWithListInputSimulation") .exec(http("createUsersWithListInput") .httpRequest("POST","/user/createWithList") - .body(StringBody(StringBody("[]"))) - ) +) // Run scncreateUsersWithListInput with warm up and reach a constant rate for entire duration scenarioBuilders += scncreateUsersWithListInput.inject( @@ -179,12 +173,10 @@ class UserApiSimulation extends Simulation { val scnupdateUser = scenario("updateUserSimulation") - .feed(updateUserBodyFeeder) .feed(updateUserPATHFeeder) .exec(http("updateUser") .httpRequest("PUT","/user/${username}") - .body(StringBody(User.toStringBody("${password}","${id}","${lastName}","${firstName}","${email}","${userStatus}","${phone}","${username}"))) - ) +) // Run scnupdateUser with warm up and reach a constant rate for entire duration scenarioBuilders += scnupdateUser.inject( diff --git a/samples/client/petstore/scala-gatling/src/gatling/scala/io/swagger/client/model/ApiResponse.scala b/samples/client/petstore/scala-gatling/src/gatling/scala/org/openapitools/client/model/ApiResponse.scala similarity index 90% rename from samples/client/petstore/scala-gatling/src/gatling/scala/io/swagger/client/model/ApiResponse.scala rename to samples/client/petstore/scala-gatling/src/gatling/scala/org/openapitools/client/model/ApiResponse.scala index 33a26c338b4..27d53614c6e 100644 --- a/samples/client/petstore/scala-gatling/src/gatling/scala/io/swagger/client/model/ApiResponse.scala +++ b/samples/client/petstore/scala-gatling/src/gatling/scala/org/openapitools/client/model/ApiResponse.scala @@ -1,5 +1,5 @@ -package io.swagger.client.model +package org.openapitools.client.model case class ApiResponse ( diff --git a/samples/client/petstore/scala-gatling/src/gatling/scala/io/swagger/client/model/Category.scala b/samples/client/petstore/scala-gatling/src/gatling/scala/org/openapitools/client/model/Category.scala similarity index 86% rename from samples/client/petstore/scala-gatling/src/gatling/scala/io/swagger/client/model/Category.scala rename to samples/client/petstore/scala-gatling/src/gatling/scala/org/openapitools/client/model/Category.scala index e8f0eda76cc..02e43d9b0dd 100644 --- a/samples/client/petstore/scala-gatling/src/gatling/scala/io/swagger/client/model/Category.scala +++ b/samples/client/petstore/scala-gatling/src/gatling/scala/org/openapitools/client/model/Category.scala @@ -1,5 +1,5 @@ -package io.swagger.client.model +package org.openapitools.client.model case class Category ( diff --git a/samples/client/petstore/scala-gatling/src/gatling/scala/io/swagger/client/model/Order.scala b/samples/client/petstore/scala-gatling/src/gatling/scala/org/openapitools/client/model/Order.scala similarity index 94% rename from samples/client/petstore/scala-gatling/src/gatling/scala/io/swagger/client/model/Order.scala rename to samples/client/petstore/scala-gatling/src/gatling/scala/org/openapitools/client/model/Order.scala index 757b8c06810..ba6967f0e17 100644 --- a/samples/client/petstore/scala-gatling/src/gatling/scala/io/swagger/client/model/Order.scala +++ b/samples/client/petstore/scala-gatling/src/gatling/scala/org/openapitools/client/model/Order.scala @@ -1,5 +1,5 @@ -package io.swagger.client.model +package org.openapitools.client.model import java.util.Date diff --git a/samples/client/petstore/scala-gatling/src/gatling/scala/io/swagger/client/model/Pet.scala b/samples/client/petstore/scala-gatling/src/gatling/scala/org/openapitools/client/model/Pet.scala similarity index 93% rename from samples/client/petstore/scala-gatling/src/gatling/scala/io/swagger/client/model/Pet.scala rename to samples/client/petstore/scala-gatling/src/gatling/scala/org/openapitools/client/model/Pet.scala index eae41bc8a2f..6f580085287 100644 --- a/samples/client/petstore/scala-gatling/src/gatling/scala/io/swagger/client/model/Pet.scala +++ b/samples/client/petstore/scala-gatling/src/gatling/scala/org/openapitools/client/model/Pet.scala @@ -1,5 +1,5 @@ -package io.swagger.client.model +package org.openapitools.client.model case class Pet ( diff --git a/samples/client/petstore/scala-gatling/src/gatling/scala/io/swagger/client/model/Tag.scala b/samples/client/petstore/scala-gatling/src/gatling/scala/org/openapitools/client/model/Tag.scala similarity index 86% rename from samples/client/petstore/scala-gatling/src/gatling/scala/io/swagger/client/model/Tag.scala rename to samples/client/petstore/scala-gatling/src/gatling/scala/org/openapitools/client/model/Tag.scala index 4662d850fdd..2b8c033de86 100644 --- a/samples/client/petstore/scala-gatling/src/gatling/scala/io/swagger/client/model/Tag.scala +++ b/samples/client/petstore/scala-gatling/src/gatling/scala/org/openapitools/client/model/Tag.scala @@ -1,5 +1,5 @@ -package io.swagger.client.model +package org.openapitools.client.model case class Tag ( diff --git a/samples/client/petstore/scala-gatling/src/gatling/scala/io/swagger/client/model/User.scala b/samples/client/petstore/scala-gatling/src/gatling/scala/org/openapitools/client/model/User.scala similarity index 95% rename from samples/client/petstore/scala-gatling/src/gatling/scala/io/swagger/client/model/User.scala rename to samples/client/petstore/scala-gatling/src/gatling/scala/org/openapitools/client/model/User.scala index 3db708ad9ca..64607788b28 100644 --- a/samples/client/petstore/scala-gatling/src/gatling/scala/io/swagger/client/model/User.scala +++ b/samples/client/petstore/scala-gatling/src/gatling/scala/org/openapitools/client/model/User.scala @@ -1,5 +1,5 @@ -package io.swagger.client.model +package org.openapitools.client.model case class User ( diff --git a/samples/html2/index.html b/samples/html2/index.html index 06897b59838..970fc33b102 100644 --- a/samples/html2/index.html +++ b/samples/html2/index.html @@ -1151,14 +1151,14 @@ try {
use Data::Dumper;
-use WWW::SwaggerClient::Configuration;
-use WWW::SwaggerClient::PetApi;
+use WWW::OPenAPIClient::Configuration;
+use WWW::OPenAPIClient::PetApi;
 
 # Configure OAuth2 access token for authorization: petstore_auth
-$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
+$WWW::OPenAPIClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
 
-my $api_instance = WWW::SwaggerClient::PetApi->new();
-my $pet = WWW::SwaggerClient::Object::Pet->new(); # Pet | 
+my $api_instance = WWW::OPenAPIClient::PetApi->new();
+my $pet = WWW::OPenAPIClient::Object::Pet->new(); # Pet | 
 
 eval { 
     $api_instance->addPet(pet => $pet);
@@ -1171,15 +1171,15 @@ if ($@) {
                             
from __future__ import print_statement
 import time
-import swagger_client
-from swagger_client.rest import ApiException
+import openapi_client
+from openapi_client.rest import ApiException
 from pprint import pprint
 
 # Configure OAuth2 access token for authorization: petstore_auth
-swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
+openapi_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
 
 # create an instance of the API class
-api_instance = swagger_client.PetApi()
+api_instance = openapi_client.PetApi()
 pet =  # Pet | 
 
 try: 
@@ -1437,13 +1437,13 @@ try {
 
                             
use Data::Dumper;
-use WWW::SwaggerClient::Configuration;
-use WWW::SwaggerClient::PetApi;
+use WWW::OPenAPIClient::Configuration;
+use WWW::OPenAPIClient::PetApi;
 
 # Configure OAuth2 access token for authorization: petstore_auth
-$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
+$WWW::OPenAPIClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
 
-my $api_instance = WWW::SwaggerClient::PetApi->new();
+my $api_instance = WWW::OPenAPIClient::PetApi->new();
 my $petId = 789; # Long | Pet id to delete
 my $apiKey = apiKey_example; # String | 
 
@@ -1458,15 +1458,15 @@ if ($@) {
                             
from __future__ import print_statement
 import time
-import swagger_client
-from swagger_client.rest import ApiException
+import openapi_client
+from openapi_client.rest import ApiException
 from pprint import pprint
 
 # Configure OAuth2 access token for authorization: petstore_auth
-swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
+openapi_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
 
 # create an instance of the API class
-api_instance = swagger_client.PetApi()
+api_instance = openapi_client.PetApi()
 petId = 789 # Long | Pet id to delete
 apiKey = apiKey_example # String |  (optional)
 
@@ -1746,13 +1746,13 @@ try {
 
                             
use Data::Dumper;
-use WWW::SwaggerClient::Configuration;
-use WWW::SwaggerClient::PetApi;
+use WWW::OPenAPIClient::Configuration;
+use WWW::OPenAPIClient::PetApi;
 
 # Configure OAuth2 access token for authorization: petstore_auth
-$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
+$WWW::OPenAPIClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
 
-my $api_instance = WWW::SwaggerClient::PetApi->new();
+my $api_instance = WWW::OPenAPIClient::PetApi->new();
 my $status = []; # array[String] | Status values that need to be considered for filter
 
 eval { 
@@ -1767,15 +1767,15 @@ if ($@) {
                             
from __future__ import print_statement
 import time
-import swagger_client
-from swagger_client.rest import ApiException
+import openapi_client
+from openapi_client.rest import ApiException
 from pprint import pprint
 
 # Configure OAuth2 access token for authorization: petstore_auth
-swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
+openapi_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
 
 # create an instance of the API class
-api_instance = swagger_client.PetApi()
+api_instance = openapi_client.PetApi()
 status =  # array[String] | Status values that need to be considered for filter
 
 try: 
@@ -2086,13 +2086,13 @@ try {
 
                             
use Data::Dumper;
-use WWW::SwaggerClient::Configuration;
-use WWW::SwaggerClient::PetApi;
+use WWW::OPenAPIClient::Configuration;
+use WWW::OPenAPIClient::PetApi;
 
 # Configure OAuth2 access token for authorization: petstore_auth
-$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
+$WWW::OPenAPIClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
 
-my $api_instance = WWW::SwaggerClient::PetApi->new();
+my $api_instance = WWW::OPenAPIClient::PetApi->new();
 my $tags = []; # array[String] | Tags to filter by
 
 eval { 
@@ -2107,15 +2107,15 @@ if ($@) {
                             
from __future__ import print_statement
 import time
-import swagger_client
-from swagger_client.rest import ApiException
+import openapi_client
+from openapi_client.rest import ApiException
 from pprint import pprint
 
 # Configure OAuth2 access token for authorization: petstore_auth
-swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
+openapi_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
 
 # create an instance of the API class
-api_instance = swagger_client.PetApi()
+api_instance = openapi_client.PetApi()
 tags =  # array[String] | Tags to filter by
 
 try: 
@@ -2436,15 +2436,15 @@ try {
 
                             
use Data::Dumper;
-use WWW::SwaggerClient::Configuration;
-use WWW::SwaggerClient::PetApi;
+use WWW::OPenAPIClient::Configuration;
+use WWW::OPenAPIClient::PetApi;
 
 # Configure API key authorization: api_key
-$WWW::SwaggerClient::Configuration::api_key->{'api_key'} = 'YOUR_API_KEY';
+$WWW::OPenAPIClient::Configuration::api_key->{'api_key'} = 'YOUR_API_KEY';
 # uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-#$WWW::SwaggerClient::Configuration::api_key_prefix->{'api_key'} = "Bearer";
+#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'api_key'} = "Bearer";
 
-my $api_instance = WWW::SwaggerClient::PetApi->new();
+my $api_instance = WWW::OPenAPIClient::PetApi->new();
 my $petId = 789; # Long | ID of pet to return
 
 eval { 
@@ -2459,17 +2459,17 @@ if ($@) {
                             
from __future__ import print_statement
 import time
-import swagger_client
-from swagger_client.rest import ApiException
+import openapi_client
+from openapi_client.rest import ApiException
 from pprint import pprint
 
 # Configure API key authorization: api_key
-swagger_client.configuration.api_key['api_key'] = 'YOUR_API_KEY'
+openapi_client.configuration.api_key['api_key'] = 'YOUR_API_KEY'
 # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# swagger_client.configuration.api_key_prefix['api_key'] = 'Bearer'
+# openapi_client.configuration.api_key_prefix['api_key'] = 'Bearer'
 
 # create an instance of the API class
-api_instance = swagger_client.PetApi()
+api_instance = openapi_client.PetApi()
 petId = 789 # Long | ID of pet to return
 
 try: 
@@ -2778,14 +2778,14 @@ try {
 
                             
use Data::Dumper;
-use WWW::SwaggerClient::Configuration;
-use WWW::SwaggerClient::PetApi;
+use WWW::OPenAPIClient::Configuration;
+use WWW::OPenAPIClient::PetApi;
 
 # Configure OAuth2 access token for authorization: petstore_auth
-$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
+$WWW::OPenAPIClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
 
-my $api_instance = WWW::SwaggerClient::PetApi->new();
-my $pet = WWW::SwaggerClient::Object::Pet->new(); # Pet | 
+my $api_instance = WWW::OPenAPIClient::PetApi->new();
+my $pet = WWW::OPenAPIClient::Object::Pet->new(); # Pet | 
 
 eval { 
     $api_instance->updatePet(pet => $pet);
@@ -2798,15 +2798,15 @@ if ($@) {
                             
from __future__ import print_statement
 import time
-import swagger_client
-from swagger_client.rest import ApiException
+import openapi_client
+from openapi_client.rest import ApiException
 from pprint import pprint
 
 # Configure OAuth2 access token for authorization: petstore_auth
-swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
+openapi_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
 
 # create an instance of the API class
-api_instance = swagger_client.PetApi()
+api_instance = openapi_client.PetApi()
 pet =  # Pet | 
 
 try: 
@@ -3087,13 +3087,13 @@ try {
 
                             
use Data::Dumper;
-use WWW::SwaggerClient::Configuration;
-use WWW::SwaggerClient::PetApi;
+use WWW::OPenAPIClient::Configuration;
+use WWW::OPenAPIClient::PetApi;
 
 # Configure OAuth2 access token for authorization: petstore_auth
-$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
+$WWW::OPenAPIClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
 
-my $api_instance = WWW::SwaggerClient::PetApi->new();
+my $api_instance = WWW::OPenAPIClient::PetApi->new();
 my $petId = 789; # Long | ID of pet that needs to be updated
 my $name = name_example; # String | Updated name of the pet
 my $status = status_example; # String | Updated status of the pet
@@ -3109,15 +3109,15 @@ if ($@) {
                             
from __future__ import print_statement
 import time
-import swagger_client
-from swagger_client.rest import ApiException
+import openapi_client
+from openapi_client.rest import ApiException
 from pprint import pprint
 
 # Configure OAuth2 access token for authorization: petstore_auth
-swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
+openapi_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
 
 # create an instance of the API class
-api_instance = swagger_client.PetApi()
+api_instance = openapi_client.PetApi()
 petId = 789 # Long | ID of pet that needs to be updated
 name = name_example # String | Updated name of the pet (optional) (default to null)
 status = status_example # String | Updated status of the pet (optional) (default to null)
@@ -3437,13 +3437,13 @@ try {
 
                             
use Data::Dumper;
-use WWW::SwaggerClient::Configuration;
-use WWW::SwaggerClient::PetApi;
+use WWW::OPenAPIClient::Configuration;
+use WWW::OPenAPIClient::PetApi;
 
 # Configure OAuth2 access token for authorization: petstore_auth
-$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
+$WWW::OPenAPIClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
 
-my $api_instance = WWW::SwaggerClient::PetApi->new();
+my $api_instance = WWW::OPenAPIClient::PetApi->new();
 my $petId = 789; # Long | ID of pet to update
 my $additionalMetadata = additionalMetadata_example; # String | Additional data to pass to server
 my $file = BINARY_DATA_HERE; # File | file to upload
@@ -3460,15 +3460,15 @@ if ($@) {
                             
from __future__ import print_statement
 import time
-import swagger_client
-from swagger_client.rest import ApiException
+import openapi_client
+from openapi_client.rest import ApiException
 from pprint import pprint
 
 # Configure OAuth2 access token for authorization: petstore_auth
-swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
+openapi_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
 
 # create an instance of the API class
-api_instance = swagger_client.PetApi()
+api_instance = openapi_client.PetApi()
 petId = 789 # Long | ID of pet to update
 additionalMetadata = additionalMetadata_example # String | Additional data to pass to server (optional) (default to null)
 file = BINARY_DATA_HERE # File | file to upload (optional) (default to null)
@@ -3790,10 +3790,10 @@ try {
 
                             
use Data::Dumper;
-use WWW::SwaggerClient::Configuration;
-use WWW::SwaggerClient::StoreApi;
+use WWW::OPenAPIClient::Configuration;
+use WWW::OPenAPIClient::StoreApi;
 
-my $api_instance = WWW::SwaggerClient::StoreApi->new();
+my $api_instance = WWW::OPenAPIClient::StoreApi->new();
 my $orderId = orderId_example; # String | ID of the order that needs to be deleted
 
 eval { 
@@ -3807,12 +3807,12 @@ if ($@) {
                             
from __future__ import print_statement
 import time
-import swagger_client
-from swagger_client.rest import ApiException
+import openapi_client
+from openapi_client.rest import ApiException
 from pprint import pprint
 
 # create an instance of the API class
-api_instance = swagger_client.StoreApi()
+api_instance = openapi_client.StoreApi()
 orderId = orderId_example # String | ID of the order that needs to be deleted
 
 try: 
@@ -4075,15 +4075,15 @@ try {
 
                             
use Data::Dumper;
-use WWW::SwaggerClient::Configuration;
-use WWW::SwaggerClient::StoreApi;
+use WWW::OPenAPIClient::Configuration;
+use WWW::OPenAPIClient::StoreApi;
 
 # Configure API key authorization: api_key
-$WWW::SwaggerClient::Configuration::api_key->{'api_key'} = 'YOUR_API_KEY';
+$WWW::OPenAPIClient::Configuration::api_key->{'api_key'} = 'YOUR_API_KEY';
 # uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-#$WWW::SwaggerClient::Configuration::api_key_prefix->{'api_key'} = "Bearer";
+#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'api_key'} = "Bearer";
 
-my $api_instance = WWW::SwaggerClient::StoreApi->new();
+my $api_instance = WWW::OPenAPIClient::StoreApi->new();
 
 eval { 
     my $result = $api_instance->getInventory();
@@ -4097,17 +4097,17 @@ if ($@) {
                             
from __future__ import print_statement
 import time
-import swagger_client
-from swagger_client.rest import ApiException
+import openapi_client
+from openapi_client.rest import ApiException
 from pprint import pprint
 
 # Configure API key authorization: api_key
-swagger_client.configuration.api_key['api_key'] = 'YOUR_API_KEY'
+openapi_client.configuration.api_key['api_key'] = 'YOUR_API_KEY'
 # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# swagger_client.configuration.api_key_prefix['api_key'] = 'Bearer'
+# openapi_client.configuration.api_key_prefix['api_key'] = 'Bearer'
 
 # create an instance of the API class
-api_instance = swagger_client.StoreApi()
+api_instance = openapi_client.StoreApi()
 
 try: 
     # Returns pet inventories by status
@@ -4351,10 +4351,10 @@ try {
 
                             
use Data::Dumper;
-use WWW::SwaggerClient::Configuration;
-use WWW::SwaggerClient::StoreApi;
+use WWW::OPenAPIClient::Configuration;
+use WWW::OPenAPIClient::StoreApi;
 
-my $api_instance = WWW::SwaggerClient::StoreApi->new();
+my $api_instance = WWW::OPenAPIClient::StoreApi->new();
 my $orderId = 789; # Long | ID of pet that needs to be fetched
 
 eval { 
@@ -4369,12 +4369,12 @@ if ($@) {
                             
from __future__ import print_statement
 import time
-import swagger_client
-from swagger_client.rest import ApiException
+import openapi_client
+from openapi_client.rest import ApiException
 from pprint import pprint
 
 # create an instance of the API class
-api_instance = swagger_client.StoreApi()
+api_instance = openapi_client.StoreApi()
 orderId = 789 # Long | ID of pet that needs to be fetched
 
 try: 
@@ -4669,11 +4669,11 @@ try {
 
                             
use Data::Dumper;
-use WWW::SwaggerClient::Configuration;
-use WWW::SwaggerClient::StoreApi;
+use WWW::OPenAPIClient::Configuration;
+use WWW::OPenAPIClient::StoreApi;
 
-my $api_instance = WWW::SwaggerClient::StoreApi->new();
-my $order = WWW::SwaggerClient::Object::Order->new(); # Order | 
+my $api_instance = WWW::OPenAPIClient::StoreApi->new();
+my $order = WWW::OPenAPIClient::Object::Order->new(); # Order | 
 
 eval { 
     my $result = $api_instance->placeOrder(order => $order);
@@ -4687,12 +4687,12 @@ if ($@) {
                             
from __future__ import print_statement
 import time
-import swagger_client
-from swagger_client.rest import ApiException
+import openapi_client
+from openapi_client.rest import ApiException
 from pprint import pprint
 
 # create an instance of the API class
-api_instance = swagger_client.StoreApi()
+api_instance = openapi_client.StoreApi()
 order =  # Order | 
 
 try: 
@@ -4976,11 +4976,11 @@ try {
 
                             
use Data::Dumper;
-use WWW::SwaggerClient::Configuration;
-use WWW::SwaggerClient::UserApi;
+use WWW::OPenAPIClient::Configuration;
+use WWW::OPenAPIClient::UserApi;
 
-my $api_instance = WWW::SwaggerClient::UserApi->new();
-my $user = WWW::SwaggerClient::Object::User->new(); # User | 
+my $api_instance = WWW::OPenAPIClient::UserApi->new();
+my $user = WWW::OPenAPIClient::Object::User->new(); # User | 
 
 eval { 
     $api_instance->createUser(user => $user);
@@ -4993,12 +4993,12 @@ if ($@) {
                             
from __future__ import print_statement
 import time
-import swagger_client
-from swagger_client.rest import ApiException
+import openapi_client
+from openapi_client.rest import ApiException
 from pprint import pprint
 
 # create an instance of the API class
-api_instance = swagger_client.UserApi()
+api_instance = openapi_client.UserApi()
 user =  # User | 
 
 try: 
@@ -5226,11 +5226,11 @@ try {
 
                             
use Data::Dumper;
-use WWW::SwaggerClient::Configuration;
-use WWW::SwaggerClient::UserApi;
+use WWW::OPenAPIClient::Configuration;
+use WWW::OPenAPIClient::UserApi;
 
-my $api_instance = WWW::SwaggerClient::UserApi->new();
-my $user = [WWW::SwaggerClient::Object::array[User]->new()]; # array[User] | 
+my $api_instance = WWW::OPenAPIClient::UserApi->new();
+my $user = [WWW::OPenAPIClient::Object::array[User]->new()]; # array[User] | 
 
 eval { 
     $api_instance->createUsersWithArrayInput(user => $user);
@@ -5243,12 +5243,12 @@ if ($@) {
                             
from __future__ import print_statement
 import time
-import swagger_client
-from swagger_client.rest import ApiException
+import openapi_client
+from openapi_client.rest import ApiException
 from pprint import pprint
 
 # create an instance of the API class
-api_instance = swagger_client.UserApi()
+api_instance = openapi_client.UserApi()
 user =  # array[User] | 
 
 try: 
@@ -5476,11 +5476,11 @@ try {
 
                             
use Data::Dumper;
-use WWW::SwaggerClient::Configuration;
-use WWW::SwaggerClient::UserApi;
+use WWW::OPenAPIClient::Configuration;
+use WWW::OPenAPIClient::UserApi;
 
-my $api_instance = WWW::SwaggerClient::UserApi->new();
-my $user = [WWW::SwaggerClient::Object::array[User]->new()]; # array[User] | 
+my $api_instance = WWW::OPenAPIClient::UserApi->new();
+my $user = [WWW::OPenAPIClient::Object::array[User]->new()]; # array[User] | 
 
 eval { 
     $api_instance->createUsersWithListInput(user => $user);
@@ -5493,12 +5493,12 @@ if ($@) {
                             
from __future__ import print_statement
 import time
-import swagger_client
-from swagger_client.rest import ApiException
+import openapi_client
+from openapi_client.rest import ApiException
 from pprint import pprint
 
 # create an instance of the API class
-api_instance = swagger_client.UserApi()
+api_instance = openapi_client.UserApi()
 user =  # array[User] | 
 
 try: 
@@ -5726,10 +5726,10 @@ try {
 
                             
use Data::Dumper;
-use WWW::SwaggerClient::Configuration;
-use WWW::SwaggerClient::UserApi;
+use WWW::OPenAPIClient::Configuration;
+use WWW::OPenAPIClient::UserApi;
 
-my $api_instance = WWW::SwaggerClient::UserApi->new();
+my $api_instance = WWW::OPenAPIClient::UserApi->new();
 my $username = username_example; # String | The name that needs to be deleted
 
 eval { 
@@ -5743,12 +5743,12 @@ if ($@) {
                             
from __future__ import print_statement
 import time
-import swagger_client
-from swagger_client.rest import ApiException
+import openapi_client
+from openapi_client.rest import ApiException
 from pprint import pprint
 
 # create an instance of the API class
-api_instance = swagger_client.UserApi()
+api_instance = openapi_client.UserApi()
 username = username_example # String | The name that needs to be deleted
 
 try: 
@@ -5987,10 +5987,10 @@ try {
 
                             
use Data::Dumper;
-use WWW::SwaggerClient::Configuration;
-use WWW::SwaggerClient::UserApi;
+use WWW::OPenAPIClient::Configuration;
+use WWW::OPenAPIClient::UserApi;
 
-my $api_instance = WWW::SwaggerClient::UserApi->new();
+my $api_instance = WWW::OPenAPIClient::UserApi->new();
 my $username = username_example; # String | The name that needs to be fetched. Use user1 for testing.
 
 eval { 
@@ -6005,12 +6005,12 @@ if ($@) {
                             
from __future__ import print_statement
 import time
-import swagger_client
-from swagger_client.rest import ApiException
+import openapi_client
+from openapi_client.rest import ApiException
 from pprint import pprint
 
 # create an instance of the API class
-api_instance = swagger_client.UserApi()
+api_instance = openapi_client.UserApi()
 username = username_example # String | The name that needs to be fetched. Use user1 for testing.
 
 try: 
@@ -6309,10 +6309,10 @@ try {
 
                             
use Data::Dumper;
-use WWW::SwaggerClient::Configuration;
-use WWW::SwaggerClient::UserApi;
+use WWW::OPenAPIClient::Configuration;
+use WWW::OPenAPIClient::UserApi;
 
-my $api_instance = WWW::SwaggerClient::UserApi->new();
+my $api_instance = WWW::OPenAPIClient::UserApi->new();
 my $username = username_example; # String | The user name for login
 my $password = password_example; # String | The password for login in clear text
 
@@ -6328,12 +6328,12 @@ if ($@) {
                             
from __future__ import print_statement
 import time
-import swagger_client
-from swagger_client.rest import ApiException
+import openapi_client
+from openapi_client.rest import ApiException
 from pprint import pprint
 
 # create an instance of the API class
-api_instance = swagger_client.UserApi()
+api_instance = openapi_client.UserApi()
 username = username_example # String | The user name for login
 password = password_example # String | The password for login in clear text
 
@@ -6668,10 +6668,10 @@ try {
 
                             
use Data::Dumper;
-use WWW::SwaggerClient::Configuration;
-use WWW::SwaggerClient::UserApi;
+use WWW::OPenAPIClient::Configuration;
+use WWW::OPenAPIClient::UserApi;
 
-my $api_instance = WWW::SwaggerClient::UserApi->new();
+my $api_instance = WWW::OPenAPIClient::UserApi->new();
 
 eval { 
     $api_instance->logoutUser();
@@ -6684,12 +6684,12 @@ if ($@) {
                             
from __future__ import print_statement
 import time
-import swagger_client
-from swagger_client.rest import ApiException
+import openapi_client
+from openapi_client.rest import ApiException
 from pprint import pprint
 
 # create an instance of the API class
-api_instance = swagger_client.UserApi()
+api_instance = openapi_client.UserApi()
 
 try: 
     # Logs out current logged in user session
@@ -6889,12 +6889,12 @@ try {
 
                             
use Data::Dumper;
-use WWW::SwaggerClient::Configuration;
-use WWW::SwaggerClient::UserApi;
+use WWW::OPenAPIClient::Configuration;
+use WWW::OPenAPIClient::UserApi;
 
-my $api_instance = WWW::SwaggerClient::UserApi->new();
+my $api_instance = WWW::OPenAPIClient::UserApi->new();
 my $username = username_example; # String | name that need to be deleted
-my $user = WWW::SwaggerClient::Object::User->new(); # User | 
+my $user = WWW::OPenAPIClient::Object::User->new(); # User | 
 
 eval { 
     $api_instance->updateUser(username => $username, user => $user);
@@ -6907,12 +6907,12 @@ if ($@) {
                             
from __future__ import print_statement
 import time
-import swagger_client
-from swagger_client.rest import ApiException
+import openapi_client
+from openapi_client.rest import ApiException
 from pprint import pprint
 
 # create an instance of the API class
-api_instance = swagger_client.UserApi()
+api_instance = openapi_client.UserApi()
 username = username_example # String | name that need to be deleted
 user =  # User | 
 
@@ -7020,8 +7020,8 @@ $(document).ready(function() {