diff --git a/.github/.test/js-yaml.js b/.github/.test/js-yaml.js index 0c9e648bd07..fcdc5f9077d 100644 --- a/.github/.test/js-yaml.js +++ b/.github/.test/js-yaml.js @@ -1811,7 +1811,7 @@ function readBlockScalar(state, nodeIndent) { } } - // Break this `while` cycle and go to the funciton's epilogue. + // Break this `while` cycle and go to the function's epilogue. break; } @@ -2862,7 +2862,7 @@ module.exports = new Schema({ // // NOTE: JS-YAML does not support schema-specific tag resolution restrictions. // So, this schema is not such strict as defined in the YAML specification. -// It allows numbers in binary notaion, use `Null` and `NULL` as `null`, etc. +// It allows numbers in binary notation, use `Null` and `NULL` as `null`, etc. 'use strict'; @@ -3222,7 +3222,7 @@ function representYamlFloat(object, style) { res = object.toString(10); // JS stringifier can build scientific format without dots: 5e-100, - // while YAML requres dot: 5.e-100. Fix it with simple hack + // while YAML requires dot: 5.e-100. Fix it with simple hack return SCIENTIFIC_WITHOUT_DOT.test(res) ? res.replace('e', '.e') : res; } @@ -3424,7 +3424,7 @@ var esprima; // Browserified version does not have esprima // // 1. For node.js just require module as deps -// 2. For browser try to require mudule via external AMD system. +// 2. For browser try to require module via external AMD system. // If not found - try to fallback to window.esprima. If not // found too - then fail to parse. // @@ -3881,7 +3881,7 @@ function constructYamlTimestamp(data) { if (match[9]) { tz_hour = +(match[10]); tz_minute = +(match[11] || 0); - delta = (tz_hour * 60 + tz_minute) * 60000; // delta in mili-seconds + delta = (tz_hour * 60 + tz_minute) * 60000; // delta in milliseconds if (match[9] === '-') delta = -delta; } diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 26b750dff4f..73eb45d0ee8 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -18,7 +18,7 @@ scripts/**/* @jimschubert website/**/* @jimschubert bin/ci/**/* @jimschubert -## Bulid related +## Build related CI/**/* @OpenAPITools/build .mvn/**/* @OpenAPITools/build bin/utils/**/* @OpenAPITools/build diff --git a/.travis.yml b/.travis.yml index 7deb298f0fa..5761227d0a7 100644 --- a/.travis.yml +++ b/.travis.yml @@ -126,7 +126,7 @@ before_install: # -- skip perl test to shorten build time # perl dep #- cpanm --local-lib=~/perl5 local::lib && eval $(perl -I ~/perl5/lib/perl5/ -Mlocal::lib) - #- cpanm --quiet --no-interactive Test::Exception Test::More Log::Any LWP::UserAgent URI::Query Module::Runtime DateTime Module::Find Moose::Role JSON || echo "Igorned failure from cpanm" + #- cpanm --quiet --no-interactive Test::Exception Test::More Log::Any LWP::UserAgent URI::Query Module::Runtime DateTime Module::Find Moose::Role JSON || echo "Ignored failure from cpanm" # -- skip perl test end # show host table to confirm petstore.swagger.io is mapped to localhost - cat /etc/hosts diff --git a/appveyor.yml b/appveyor.yml index e50dc6c2bb2..bd3df29e020 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -95,7 +95,7 @@ test_script: # generate all petstore clients (openapi3) # - .\bin\openapi3\windows\run-all-petstore.cmd - # test ps pestore + # test ps petstore - ps: | $ErrorActionPreference = "Stop" cd samples\client\petstore\powershell\ diff --git a/bin/utils/dart-keywords/README.md b/bin/utils/dart-keywords/README.md index 29b85bfae92..2873e00dbe1 100644 --- a/bin/utils/dart-keywords/README.md +++ b/bin/utils/dart-keywords/README.md @@ -17,4 +17,4 @@ The last Dart version that was used to generate the keywords can be found in `da 1. run the dart app - `./save-dart-keywords.exe` -1. the ouput is `dart-keywords.txt` and `dart-version.txt` +1. the output is `dart-keywords.txt` and `dart-version.txt` diff --git a/bin/utils/ensure-up-to-date b/bin/utils/ensure-up-to-date index ec9874d8d91..e94289191bc 100755 --- a/bin/utils/ensure-up-to-date +++ b/bin/utils/ensure-up-to-date @@ -26,7 +26,7 @@ if [[ "--skip-docs" == "${1}" ]]; then export SKIP_EXPORT_DOCS=true fi -# Some special case generators may expect to be run as a stanalone process (e.g. modifying classpath) +# Some special case generators may expect to be run as a standalone process (e.g. modifying classpath) # Docs should always be run, regardless of batch or operation. declare -a always_iterate=( "${root}/bin/meta-codegen.sh" diff --git a/bin/utils/release_checkout.rb b/bin/utils/release_checkout.rb index f754221b024..97ef6b3877f 100755 --- a/bin/utils/release_checkout.rb +++ b/bin/utils/release_checkout.rb @@ -1,6 +1,6 @@ #!/usr/bin/env ruby # -# release_chekcout.rb +# release_checkout.rb # require 'rubygems' require 'open-uri' @@ -37,7 +37,7 @@ def check_npmjs end def check_homebrew - print "Checking homebrew forumla ... " + print "Checking homebrew formula ... " url = "https://raw.githubusercontent.com/Homebrew/homebrew-core/master/Formula/openapi-generator.rb" new_maven_url = "https://search.maven.org/remotecontent?filepath=org/openapitools/openapi-generator-cli/#{$version}/openapi-generator-cli-#{$version}.jar" diff --git a/docs/3.0.0-release-note.md b/docs/3.0.0-release-note.md index 6bfaaaffaa4..b2127975817 100644 --- a/docs/3.0.0-release-note.md +++ b/docs/3.0.0-release-note.md @@ -104,7 +104,7 @@ sidebar_label: "Release Notes: 3.0.0" * 39fa375e3 \[kotlin] Fix NPE for POST/PUT/PATCH with empty request models. * c599906f1 Kotlin: Correct data_class.mustache to use proper property for inner enum data type * c69925b53 \[Kotlin] Fix issues with threetenbp -* a811a48c3 minor fix to kotlin client genrator due to merge conflict +* a811a48c3 minor fix to kotlin client generator due to merge conflict * 914275fe7 \[kotlin] support selection of datelibrary * a61d23265 Fixed incorrect renaming of header and query param to camel cases for Kotlin Client template @@ -141,7 +141,7 @@ sidebar_label: "Release Notes: 3.0.0" * 82ee8656f \[java] Enum in array of array (#66) * bf7e4e7df Java gson: add @SerializedName value as constant (#22) * 30c1448d7 Fix build.gradle for Java RESTEasy client -* 642c0566d \[Java] Use Rx2 Completalbe for Void Retrofit2 responses +* 642c0566d \[Java] Use Rx2 Completable for Void Retrofit2 responses * 72221b1cf Adding @Deprecated to retrofit2 client interfaces. * 47111b324 \[Java] fix gson deserialize format byte * 9e06f7063 \[Java] Fix assignment of new object instance to variable @@ -183,7 +183,7 @@ sidebar_label: "Release Notes: 3.0.0" * 61e58d649 Add R namespace file * ### Ruby -* a08164592 fix ruby parameters in documentation, fix reuqiredParams, optionalParams +* a08164592 fix ruby parameters in documentation, fix requiredParams, optionalParams * 8e34f9a98 update to newer version of ruby * aa6b217bb \[Ruby] Add auto-generated rubocop config file @@ -238,15 +238,15 @@ sidebar_label: "Release Notes: 3.0.0" * 866817587 \[aspnetcore] Fix string enum generation * ### Java -* bd50d368e \[JAVA - jaxrs-reasteasy-eap] Add import to models (#179) +* bd50d368e \[JAVA - jaxrs-resteasy-eap] Add import to models (#179) * 7efda597c Fix issue with useBeanValidation option in Java server generators (#160) * 71b5de3ed Do not set contextPath for spring-boot (#104) * b73ab0260 jaxrs-cxf-cdi: fix outer enum (#131) * 4d7fc046f \[JaxRS] Add "validation-api" dependency in jetty (#30) * ce930e7a6 \[Jaxrs-cxf] Add bean-level cascaded beanvalidation for pojos (@Valid) * 386b9f432 Modify "postProcessOperations" for "jaxrs-cxf-client" -* 5d92717dc update jaxrs to listent at port 10080 -* 7c2031675 update artifict id for jaxrs datelib j8 +* 5d92717dc update jaxrs to listen at port 10080 +* 7c2031675 update artifact id for jaxrs datelib j8 * 88c5112f2 Adds support for returning response in jaxrs-spec interfaces * 6bf84d5fa \[JAXRS-SPEC] Fix lowercase enums sent as uppercase * 3a1922bc9 Fix version for "spring-boot-maven-plugin" (#85) @@ -329,7 +329,7 @@ sidebar_label: "Release Notes: 3.0.0" * 1492df6ce Override server port for Jetty configuration * 622a75b2c Fix data type shadowing * 861d11d01 use vendor extension in operation to set the body parameter name -* 80c8b92cb add postProcessParamter for body, form parameter +* 80c8b92cb add postProcessParameter for body, form parameter * 7fe555a51 Set collectionFormat default only for array * 16589de97 default collection format to csv according to the spec * edbe4902a Consider '$ref' for consumes and produces in CodegenOperation diff --git a/docs/customization.md b/docs/customization.md index 6daf72e2130..8606d09f689 100644 --- a/docs/customization.md +++ b/docs/customization.md @@ -360,7 +360,7 @@ import org.openapitools.codegen.languages.*; public class MyObjcCodegen extends ObjcClientCodegen { static { - PREFIX = "HELO"; + PREFIX = "HELLO"; } } ``` diff --git a/docs/faq.md b/docs/faq.md index 69749ae3eda..ac867c8dec8 100644 --- a/docs/faq.md +++ b/docs/faq.md @@ -5,7 +5,7 @@ title: "FAQ: General" ## Do you have a chat room? -[![Jion the Slack chat room](https://img.shields.io/badge/Slack-Join%20the%20chat%20room-orange)](https://join.slack.com/t/openapi-generator/shared_invite/enQtNzAyNDMyOTU0OTE1LTY5ZDBiNDI5NzI5ZjQ1Y2E5OWVjMjZkYzY1ZGM2MWQ4YWFjMzcyNDY5MGI4NjQxNDBiMTlmZTc5NjY2ZTQ5MGM) +[![Join the Slack chat room](https://img.shields.io/badge/Slack-Join%20the%20chat%20room-orange)](https://join.slack.com/t/openapi-generator/shared_invite/enQtNzAyNDMyOTU0OTE1LTY5ZDBiNDI5NzI5ZjQ1Y2E5OWVjMjZkYzY1ZGM2MWQ4YWFjMzcyNDY5MGI4NjQxNDBiMTlmZTc5NjY2ZTQ5MGM) ## What is the governance structure of the OpenAPI Generator project? diff --git a/docs/generators/android.md b/docs/generators/android.md index eaf7e37135d..f2c6442c6e9 100644 --- a/docs/generators/android.md +++ b/docs/generators/android.md @@ -19,7 +19,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl |groupId|groupId for use in the generated build.gradle and pom.xml| |null| |invokerPackage|root package for generated code| |null| |legacyDiscriminatorBehavior|Set to false for generators with better support for discriminators. (Python, Java, Go, PowerShell, C#have this enabled by default).|
**true**
The mapping in the discriminator includes descendent schemas that allOf inherit from self and the discriminator mapping schemas in the OAS document.
**false**
The mapping in the discriminator includes any descendent schemas that allOf inherit from self, any oneOf schemas, any anyOf schemas, any x-discriminator-values, and the discriminator mapping schemas in the OAS document AND Codegen validates that oneOf and anyOf schemas contain the required discriminator and throws an error if the discriminator is missing.
|true| -|library|library template (sub-template) to use|
**volley**
HTTP client: Volley 1.0.19 (default)
**httpclient**
HTTP client: Apache HttpClient 4.3.6. JSON processing: Gson 2.3.1. IMPORTANT: Android client using HttpClient is not actively maintained and will be depecreated in the next major release.
|null| +|library|library template (sub-template) to use|
**volley**
HTTP client: Volley 1.0.19 (default)
**httpclient**
HTTP client: Apache HttpClient 4.3.6. JSON processing: Gson 2.3.1. IMPORTANT: Android client using HttpClient is not actively maintained and will be deprecated in the next major release.
|null| |modelPackage|package for generated models| |null| |prependFormOrBodyParameters|Add form or body parameters to the beginning of the parameter list.| |false| |serializableModel|boolean - toggle "implements Serializable" for generated models| |false| diff --git a/docs/generators/go-experimental.md b/docs/generators/go-experimental.md index b2b94ad8bb5..012ab8febac 100644 --- a/docs/generators/go-experimental.md +++ b/docs/generators/go-experimental.md @@ -14,7 +14,7 @@ sidebar_label: go-experimental |packageVersion|Go package version.| |1.0.0| |prependFormOrBodyParameters|Add form or body parameters to the beginning of the parameter list.| |false| |structPrefix|whether to prefix struct with the class name. e.g. DeletePetOpts => PetApiDeletePetOpts| |false| -|useOneOfDiscriminatorLookup|Use the discriminator's mapping in oneOf to speed up the model lookup. IMPORTANT: Validation (e.g. one and onlye one match in oneOf's schemas) will be skipped.| |false| +|useOneOfDiscriminatorLookup|Use the discriminator's mapping in oneOf to speed up the model lookup. IMPORTANT: Validation (e.g. one and only one match in oneOf's schemas) will be skipped.| |false| |skipReadonlyPropertiesInInt|Skip default values to the readOnly properties in the model init function./ /false/ |withAWSV4Signature|whether to include AWS v4 signature support| |false| |withGoCodegenComment|whether to include Go codegen comment to disable Go Lint and collapse by default in GitHub PRs and diffs| |false| diff --git a/docs/generators/java.md b/docs/generators/java.md index 5b8dfd52f85..21e2817ae3d 100644 --- a/docs/generators/java.md +++ b/docs/generators/java.md @@ -36,7 +36,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl |invokerPackage|root package for generated code| |org.openapitools.client| |java8|Use Java8 classes instead of third party equivalents. Starting in 5.x, JDK8 is the default and the support for JDK7, JDK6 has been dropped|
**true**
Use Java 8 classes such as Base64
**false**
Various third party libraries as needed
|true| |legacyDiscriminatorBehavior|Set to false for generators with better support for discriminators. (Python, Java, Go, PowerShell, C#have this enabled by default).|
**true**
The mapping in the discriminator includes descendent schemas that allOf inherit from self and the discriminator mapping schemas in the OAS document.
**false**
The mapping in the discriminator includes any descendent schemas that allOf inherit from self, any oneOf schemas, any anyOf schemas, any x-discriminator-values, and the discriminator mapping schemas in the OAS document AND Codegen validates that oneOf and anyOf schemas contain the required discriminator and throws an error if the discriminator is missing.
|true| -|library|library template (sub-template) to use|
**jersey1**
HTTP client: Jersey client 1.19.x. JSON processing: Jackson 2.9.x. Enable gzip request encoding using '-DuseGzipFeature=true'. IMPORTANT NOTE: jersey 1.x is no longer actively maintained so please upgrade to 'jersey2' or other HTTP libaries instead.
**jersey2**
HTTP client: Jersey client 2.25.1. JSON processing: Jackson 2.9.x
**feign**
HTTP client: OpenFeign 10.x. JSON processing: Jackson 2.9.x.
**okhttp-gson**
[DEFAULT] HTTP client: OkHttp 3.x. JSON processing: Gson 2.8.x. Enable Parcelable models on Android using '-DparcelableModel=true'. Enable gzip request encoding using '-DuseGzipFeature=true'.
**retrofit2**
HTTP client: OkHttp 3.x. JSON processing: Gson 2.x (Retrofit 2.3.0). Enable the RxJava adapter using '-DuseRxJava[2/3]=true'. (RxJava 1.x or 2.x or 3.x)
**resttemplate**
HTTP client: Spring RestTemplate 4.x. JSON processing: Jackson 2.9.x
**webclient**
HTTP client: Spring WebClient 5.x. JSON processing: Jackson 2.9.x
**resteasy**
HTTP client: Resteasy client 3.x. JSON processing: Jackson 2.9.x
**vertx**
HTTP client: VertX client 3.x. JSON processing: Jackson 2.9.x
**google-api-client**
HTTP client: Google API client 1.x. JSON processing: Jackson 2.9.x
**rest-assured**
HTTP client: rest-assured : 4.x. JSON processing: Gson 2.x or Jackson 2.10.x. Only for Java 8
**native**
HTTP client: Java native HttpClient. JSON processing: Jackson 2.9.x. Only for Java11+
**microprofile**
HTTP client: Microprofile client 1.x. JSON processing: JSON-B
**apache-httpclient**
HTTP client: Apache httpclient 4.x
|okhttp-gson| +|library|library template (sub-template) to use|
**jersey1**
HTTP client: Jersey client 1.19.x. JSON processing: Jackson 2.9.x. Enable gzip request encoding using '-DuseGzipFeature=true'. IMPORTANT NOTE: jersey 1.x is no longer actively maintained so please upgrade to 'jersey2' or other HTTP libraries instead.
**jersey2**
HTTP client: Jersey client 2.25.1. JSON processing: Jackson 2.9.x
**feign**
HTTP client: OpenFeign 10.x. JSON processing: Jackson 2.9.x.
**okhttp-gson**
[DEFAULT] HTTP client: OkHttp 3.x. JSON processing: Gson 2.8.x. Enable Parcelable models on Android using '-DparcelableModel=true'. Enable gzip request encoding using '-DuseGzipFeature=true'.
**retrofit2**
HTTP client: OkHttp 3.x. JSON processing: Gson 2.x (Retrofit 2.3.0). Enable the RxJava adapter using '-DuseRxJava[2/3]=true'. (RxJava 1.x or 2.x or 3.x)
**resttemplate**
HTTP client: Spring RestTemplate 4.x. JSON processing: Jackson 2.9.x
**webclient**
HTTP client: Spring WebClient 5.x. JSON processing: Jackson 2.9.x
**resteasy**
HTTP client: Resteasy client 3.x. JSON processing: Jackson 2.9.x
**vertx**
HTTP client: VertX client 3.x. JSON processing: Jackson 2.9.x
**google-api-client**
HTTP client: Google API client 1.x. JSON processing: Jackson 2.9.x
**rest-assured**
HTTP client: rest-assured : 4.x. JSON processing: Gson 2.x or Jackson 2.10.x. Only for Java 8
**native**
HTTP client: Java native HttpClient. JSON processing: Jackson 2.9.x. Only for Java11+
**microprofile**
HTTP client: Microprofile client 1.x. JSON processing: JSON-B
**apache-httpclient**
HTTP client: Apache httpclient 4.x
|okhttp-gson| |licenseName|The name of the license| |Unlicense| |licenseUrl|The URL of the license| |http://unlicense.org| |microprofileFramework|Framework for microprofile. Possible values "kumuluzee"| |null| diff --git a/docs/generators/kotlin.md b/docs/generators/kotlin.md index a8a1d0be869..fca84164c69 100644 --- a/docs/generators/kotlin.md +++ b/docs/generators/kotlin.md @@ -19,7 +19,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl |moshiCodeGen|Whether to enable codegen with the Moshi library. Refer to the [official Moshi doc](https://github.com/square/moshi#codegen) for more info.| |false| |packageName|Generated artifact package name.| |org.openapitools.client| |parcelizeModels|toggle "@Parcelize" for generated models| |null| -|requestDateConverter|JVM-Option. Defines in how to handle date-time objects that are used for a request (as query or parameter)|
**toJson**
[DEFAULT] Date formater option using a json converter.
**toString**
Use the 'toString'-method of the date-time object to retrieve the related string representation.
|toJson| +|requestDateConverter|JVM-Option. Defines in how to handle date-time objects that are used for a request (as query or parameter)|
**toJson**
[DEFAULT] Date formatter option using a json converter.
**toString**
Use the 'toString'-method of the date-time object to retrieve the related string representation.
|toJson| |serializableModel|boolean - toggle "implements Serializable" for generated models| |null| |serializationLibrary|What serialization library to use: 'moshi' (default), or 'gson' or 'jackson'| |moshi| |sortModelPropertiesByRequiredFlag|Sort model properties to place required parameters before optional parameters.| |null| diff --git a/docs/migration-from-swagger-codegen.md b/docs/migration-from-swagger-codegen.md index db6069bec79..f4bd36b6d33 100644 --- a/docs/migration-from-swagger-codegen.md +++ b/docs/migration-from-swagger-codegen.md @@ -166,7 +166,7 @@ You don't need to rename the file manually, OpenAPI Generator will do it when yo ## Metadata folder -The metatata folder (to store the `VERSION` file for example) is now called `.openapi-generator/` instead of `.swagger-codegen/`. +The metadata folder (to store the `VERSION` file for example) is now called `.openapi-generator/` instead of `.swagger-codegen/`. diff --git a/docs/templating.md b/docs/templating.md index aba3fd49274..d1bdd81a738 100644 --- a/docs/templating.md +++ b/docs/templating.md @@ -563,7 +563,7 @@ For C-like languages which also require header files, you may create two files p apiTemplateFiles.put("api-header.mustache", ".h"); apiTemplateFiles.put("api-body.mustache", ".m"); ``` -Here, an Operation with tag `Pet` will generate two files: `SWGPetApi.h` and `SWGPetApi.m`. The `SWG` prefix and `Api` suffix are options specific to the Objective-C geneator. +Here, an Operation with tag `Pet` will generate two files: `SWGPetApi.h` and `SWGPetApi.m`. The `SWG` prefix and `Api` suffix are options specific to the Objective-C generator. ### Models diff --git a/modules/openapi-generator-core/src/main/java/org/openapitools/codegen/api/TemplatingEngineAdapter.java b/modules/openapi-generator-core/src/main/java/org/openapitools/codegen/api/TemplatingEngineAdapter.java index 71b8c50297c..34666bf7a2c 100644 --- a/modules/openapi-generator-core/src/main/java/org/openapitools/codegen/api/TemplatingEngineAdapter.java +++ b/modules/openapi-generator-core/src/main/java/org/openapitools/codegen/api/TemplatingEngineAdapter.java @@ -62,7 +62,7 @@ public interface TemplatingEngineAdapter { * @param bundle The map of values to pass to the template * @param templateFile The name of the template (e.g. model.mustache ) * @return the processed template result - * @throws IOException an error ocurred in the template processing + * @throws IOException an error occurred in the template processing */ String compileTemplate(TemplatingExecutor executor, Map bundle, String templateFile) throws IOException; diff --git a/modules/openapi-generator-core/src/main/java/org/openapitools/codegen/validation/ValidationRule.java b/modules/openapi-generator-core/src/main/java/org/openapitools/codegen/validation/ValidationRule.java index 8d5818b2887..c20773364b3 100644 --- a/modules/openapi-generator-core/src/main/java/org/openapitools/codegen/validation/ValidationRule.java +++ b/modules/openapi-generator-core/src/main/java/org/openapitools/codegen/validation/ValidationRule.java @@ -54,7 +54,7 @@ public class ValidationRule { } /** - * Evalute an instance of an object against this rule. + * Evaluate an instance of an object against this rule. * * @param input The instance to be evaluated. * diff --git a/modules/openapi-generator-gradle-plugin/README.adoc b/modules/openapi-generator-gradle-plugin/README.adoc index 86c2df36c1f..ca070b844c1 100644 --- a/modules/openapi-generator-gradle-plugin/README.adoc +++ b/modules/openapi-generator-gradle-plugin/README.adoc @@ -677,7 +677,7 @@ You can run `gradle tasks --debug` to see this registration. === Android Studio -Android Studio may experience a Windows-specific Guava dependency conflict with openapig-enerator-gradle-plugin versions greater than 3.0.0. +Android Studio may experience a Windows-specific Guava dependency conflict with openapi-generator-gradle-plugin versions greater than 3.0.0. As a workaround, you may force exclude conflicting Guava dependencies. diff --git a/modules/openapi-generator-gradle-plugin/build.gradle b/modules/openapi-generator-gradle-plugin/build.gradle index 2db50f96d3e..233399c18a8 100644 --- a/modules/openapi-generator-gradle-plugin/build.gradle +++ b/modules/openapi-generator-gradle-plugin/build.gradle @@ -80,7 +80,7 @@ test { failFast = true onOutput { descriptor, event -> - // SLF4J may complain about multiple bindings dependign on how this is run. + // SLF4J may complain about multiple bindings depending on how this is run. // This is just a warning, but can make test output less readable. So we ignore it specifically. if (!event.message.contains("SLF4J:")) { logger.lifecycle("Test: " + descriptor + " produced standard out/err: " + event.message) diff --git a/modules/openapi-generator-gradle-plugin/samples/local-spec/README.md b/modules/openapi-generator-gradle-plugin/samples/local-spec/README.md index c4306892312..dc640d17289 100644 --- a/modules/openapi-generator-gradle-plugin/samples/local-spec/README.md +++ b/modules/openapi-generator-gradle-plugin/samples/local-spec/README.md @@ -7,11 +7,11 @@ First, publish the openapi-generator-gradle-plugin locally via `./gradlew assemb Then, run the following tasks in this example directory. ```bash -gradle openApiGenerate # expected outcome: BUILD SCCESSFUL -gradle openApiMeta # expected outcome: BUILD SCCESSFUL +gradle openApiGenerate # expected outcome: BUILD SUCCESSFUL +gradle openApiMeta # expected outcome: BUILD SUCCESSFUL gradle openApiValidate # expected outcome: BUILD FAILED -gradle buildGoSdk # expected outcome: BUILD SCCESSFUL -gradle buildDotnetSdk # expected outcome: BUILD SCCESSFUL +gradle buildGoSdk # expected outcome: BUILD SUCCESSFUL +gradle buildDotnetSdk # expected outcome: BUILD SUCCESSFUL gradle generateGoWithInvalidSpec # expected outcome: BUILD FAILED ``` diff --git a/modules/openapi-generator-maven-plugin/examples/kotlin.xml b/modules/openapi-generator-maven-plugin/examples/kotlin.xml index facba8edeb3..7e0e42967f0 100644 --- a/modules/openapi-generator-maven-plugin/examples/kotlin.xml +++ b/modules/openapi-generator-maven-plugin/examples/kotlin.xml @@ -127,7 +127,7 @@ ${swagger-annotations-version} - diff --git a/modules/openapi-generator-maven-plugin/examples/multi-module/java-client/pom.xml b/modules/openapi-generator-maven-plugin/examples/multi-module/java-client/pom.xml index 693b2a6f431..7054853715b 100644 --- a/modules/openapi-generator-maven-plugin/examples/multi-module/java-client/pom.xml +++ b/modules/openapi-generator-maven-plugin/examples/multi-module/java-client/pom.xml @@ -81,7 +81,7 @@ ${swagger-annotations-version} - diff --git a/modules/openapi-generator-maven-plugin/examples/multi-module/sample-schema/src/main/resources/openapi.yaml b/modules/openapi-generator-maven-plugin/examples/multi-module/sample-schema/src/main/resources/openapi.yaml index fffd7f152be..0f5b2e5e8d4 100644 --- a/modules/openapi-generator-maven-plugin/examples/multi-module/sample-schema/src/main/resources/openapi.yaml +++ b/modules/openapi-generator-maven-plugin/examples/multi-module/sample-schema/src/main/resources/openapi.yaml @@ -478,7 +478,7 @@ paths: X-Expires-After: type: "string" format: "date-time" - description: "date in UTC when toekn expires" + description: "date in UTC when token expires" 400: description: "Invalid username/password supplied" /user/logout: diff --git a/modules/openapi-generator-maven-plugin/examples/spring.xml b/modules/openapi-generator-maven-plugin/examples/spring.xml index 651a0e187a9..0efdb925059 100644 --- a/modules/openapi-generator-maven-plugin/examples/spring.xml +++ b/modules/openapi-generator-maven-plugin/examples/spring.xml @@ -78,7 +78,7 @@ ${swagger-annotations-version} - diff --git a/modules/openapi-generator-maven-plugin/examples/swagger.yaml b/modules/openapi-generator-maven-plugin/examples/swagger.yaml index fffd7f152be..0f5b2e5e8d4 100644 --- a/modules/openapi-generator-maven-plugin/examples/swagger.yaml +++ b/modules/openapi-generator-maven-plugin/examples/swagger.yaml @@ -478,7 +478,7 @@ paths: X-Expires-After: type: "string" format: "date-time" - description: "date in UTC when toekn expires" + description: "date in UTC when token expires" 400: description: "Invalid username/password supplied" /user/logout: diff --git a/modules/openapi-generator-maven-plugin/src/main/java/org/openapitools/codegen/plugin/CodeGenMojo.java b/modules/openapi-generator-maven-plugin/src/main/java/org/openapitools/codegen/plugin/CodeGenMojo.java index 1f1dbd946f5..d09fb1cff03 100644 --- a/modules/openapi-generator-maven-plugin/src/main/java/org/openapitools/codegen/plugin/CodeGenMojo.java +++ b/modules/openapi-generator-maven-plugin/src/main/java/org/openapitools/codegen/plugin/CodeGenMojo.java @@ -637,7 +637,7 @@ public class CodeGenMojo extends AbstractMojo { GlobalSettings.setProperty(CodegenConstants.WITH_XML, withXml.toString()); if (configOptions != null) { - // Retained for backwards-compataibility with configOptions -> instantiation-types + // Retained for backwards-compatibility with configOptions -> instantiation-types if (instantiationTypes == null && configOptions.containsKey("instantiation-types")) { applyInstantiationTypesKvp(configOptions.get("instantiation-types").toString(), configurator); @@ -649,18 +649,18 @@ public class CodeGenMojo extends AbstractMojo { configurator); } - // Retained for backwards-compataibility with configOptions -> type-mappings + // Retained for backwards-compatibility with configOptions -> type-mappings if (typeMappings == null && configOptions.containsKey("type-mappings")) { applyTypeMappingsKvp(configOptions.get("type-mappings").toString(), configurator); } - // Retained for backwards-compataibility with configOptions -> language-specific-primitives + // Retained for backwards-compatibility with configOptions -> language-specific-primitives if (languageSpecificPrimitives == null && configOptions.containsKey("language-specific-primitives")) { applyLanguageSpecificPrimitivesCsv(configOptions .get("language-specific-primitives").toString(), configurator); } - // Retained for backwards-compataibility with configOptions -> additional-properties + // Retained for backwards-compatibility with configOptions -> additional-properties if (additionalProperties == null && configOptions.containsKey("additional-properties")) { applyAdditionalPropertiesKvp(configOptions.get("additional-properties").toString(), configurator); @@ -670,7 +670,7 @@ public class CodeGenMojo extends AbstractMojo { applyServerVariablesKvp(configOptions.get("server-variables").toString(), configurator); } - // Retained for backwards-compataibility with configOptions -> reserved-words-mappings + // Retained for backwards-compatibility with configOptions -> reserved-words-mappings if (reservedWordsMappings == null && configOptions.containsKey("reserved-words-mappings")) { applyReservedWordsMappingsKvp(configOptions.get("reserved-words-mappings") .toString(), configurator); diff --git a/modules/openapi-generator-maven-plugin/src/test/resources/default/petstore.yaml b/modules/openapi-generator-maven-plugin/src/test/resources/default/petstore.yaml index f5e98eec38d..b63c595bfbf 100644 --- a/modules/openapi-generator-maven-plugin/src/test/resources/default/petstore.yaml +++ b/modules/openapi-generator-maven-plugin/src/test/resources/default/petstore.yaml @@ -465,7 +465,7 @@ paths: type: integer format: int32 X-Expires-After: - description: date in UTC when toekn expires + description: date in UTC when token expires schema: type: string format: date-time diff --git a/modules/openapi-generator-maven-plugin/src/test/resources/petstore-on-classpath.yaml b/modules/openapi-generator-maven-plugin/src/test/resources/petstore-on-classpath.yaml index f5e98eec38d..b63c595bfbf 100644 --- a/modules/openapi-generator-maven-plugin/src/test/resources/petstore-on-classpath.yaml +++ b/modules/openapi-generator-maven-plugin/src/test/resources/petstore-on-classpath.yaml @@ -465,7 +465,7 @@ paths: type: integer format: int32 X-Expires-After: - description: date in UTC when toekn expires + description: date in UTC when token expires schema: type: string format: date-time diff --git a/modules/openapi-generator-online/src/main/resources/static/index.html b/modules/openapi-generator-online/src/main/resources/static/index.html index 0920d74bd00..8efc1fd4509 100755 --- a/modules/openapi-generator-online/src/main/resources/static/index.html +++ b/modules/openapi-generator-online/src/main/resources/static/index.html @@ -1,7 +1,7 @@ - + diff --git a/modules/openapi-generator/pom.xml b/modules/openapi-generator/pom.xml index 08f2fdea691..7dfb3b8712a 100644 --- a/modules/openapi-generator/pom.xml +++ b/modules/openapi-generator/pom.xml @@ -207,7 +207,7 @@ se.bjurr.violations violations-maven-plugin - 65 diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/CodegenConfig.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/CodegenConfig.java index 5cda05e55dd..f3df50d9b53 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/CodegenConfig.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/CodegenConfig.java @@ -229,7 +229,7 @@ public interface CodegenConfig { /** * Library template (sub-template). * - * @return libray template + * @return library template */ String getLibrary(); diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java index c38076d2e29..3bfcebaac1c 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java @@ -928,7 +928,7 @@ public class DefaultCodegen implements CodegenConfig { // remove \t, \n, \r // replace \ with \\ // replace " with \" - // outter unescape to retain the original multi-byte characters + // outer unescape to retain the original multi-byte characters // finally escalate characters avoiding code injection return escapeUnsafeCharacters( StringEscapeUtils.unescapeJava( @@ -954,7 +954,7 @@ public class DefaultCodegen implements CodegenConfig { // remove \t // replace \ with \\ // replace " with \" - // outter unescape to retain the original multi-byte characters + // outer unescape to retain the original multi-byte characters // finally escalate characters avoiding code injection return escapeUnsafeCharacters( StringEscapeUtils.unescapeJava( @@ -1331,7 +1331,7 @@ public class DefaultCodegen implements CodegenConfig { /** * Return the variable name in the Api * - * @param name the varible name of the Api + * @param name the variable name of the Api * @return the snake-cased variable name */ @Override @@ -2317,7 +2317,7 @@ public class DefaultCodegen implements CodegenConfig { /** * Converts the OpenAPI schema name to a model name suitable for the current code generator. - * May be overriden for each programming language. + * May be overridden for each programming language. * In case the name belongs to the TypeSystem it won't be renamed. * * @param name the name of the model @@ -2453,7 +2453,7 @@ public class DefaultCodegen implements CodegenConfig { final List allParents = ModelUtils.getAllParentsName(composed, allDefinitions, false); final Schema parent = StringUtils.isBlank(parentName) || allDefinitions == null ? null : allDefinitions.get(parentName); - // TODO revise the logic below to set dicriminator, xml attributes + // TODO revise the logic below to set discriminator, xml attributes if (supportsInheritance || supportsMixins) { m.allVars = new ArrayList(); if (composed.getAllOf() != null) { @@ -3851,13 +3851,13 @@ public class DefaultCodegen implements CodegenConfig { // remove prefix in operationId if (removeOperationIdPrefix) { // The prefix is everything before the removeOperationIdPrefixCount occurrence of removeOperationIdPrefixDelimiter - String[] componenets = operationId.split("[" + removeOperationIdPrefixDelimiter + "]"); - if (componenets.length > 1) { + String[] components = operationId.split("[" + removeOperationIdPrefixDelimiter + "]"); + if (components.length > 1) { // If removeOperationIdPrefixCount is -1 or bigger that the number of occurrences, uses the last one - int componenet_number = removeOperationIdPrefixCount == -1 ? componenets.length - 1 : removeOperationIdPrefixCount; - componenet_number = Math.min(componenet_number, componenets.length - 1); + int component_number = removeOperationIdPrefixCount == -1 ? components.length - 1 : removeOperationIdPrefixCount; + component_number = Math.min(component_number, components.length - 1); // Reconstruct the operationId from its split elements and the delimiter - operationId = String.join(removeOperationIdPrefixDelimiter, Arrays.copyOfRange(componenets, componenet_number, componenets.length)); + operationId = String.join(removeOperationIdPrefixDelimiter, Arrays.copyOfRange(components, component_number, components.length)); } } operationId = removeNonNameElementToCamelCase(operationId); @@ -4947,7 +4947,7 @@ public class DefaultCodegen implements CodegenConfig { } /** - * Loop through propertiies and unalias the reference if $ref (reference) is defined + * Loop through properties and unalias the reference if $ref (reference) is defined * * @param properties model properties (schemas) * @return model properties with direct reference to schemas @@ -6022,7 +6022,7 @@ public class DefaultCodegen implements CodegenConfig { } else { LOGGER.warn("Could not compute datatypeWithEnum from {}, {}", codegenParameter.baseType, codegenParameter.enumName); } - //TODO fix collectformat for form parameters + //TODO fix collectionFormat for form parameters //collectionFormat = getCollectionFormat(s); String collectionFormat = getCollectionFormat(codegenParameter); // default to csv: @@ -6577,7 +6577,7 @@ public class DefaultCodegen implements CodegenConfig { } /** - * Boolean value indicating the state of the option for post-processing file using envirionment variables. + * Boolean value indicating the state of the option for post-processing file using environment variables. * * @return true if the option is enabled */ @@ -6587,7 +6587,7 @@ public class DefaultCodegen implements CodegenConfig { } /** - * Set the boolean value indicating the state of the option for post-processing file using envirionment variables. + * Set the boolean value indicating the state of the option for post-processing file using environment variables. * * @param enablePostProcessFile true to enable post-processing file */ diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/DefaultGenerator.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/DefaultGenerator.java index 404c49fd0d2..3025376b034 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/DefaultGenerator.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/DefaultGenerator.java @@ -458,7 +458,7 @@ public class DefaultGenerator implements Generator { Schema schema = schemas.get(name); - if (ModelUtils.isFreeFormObject(this.openAPI, schema)) { // check to see if it'a a free-form object + if (ModelUtils.isFreeFormObject(this.openAPI, schema)) { // check to see if it's a free-form object // there are 3 free form use cases // 1. free form with no validation that is not allOf included in any composed schemas // 2. free form with validation @@ -1320,8 +1320,8 @@ public class DefaultGenerator implements Generator { if (securityScheme != null) { if (securityScheme.getType().equals(SecurityScheme.Type.OAUTH2)) { - OAuthFlows oautUpdatedFlows = new OAuthFlows(); - oautUpdatedFlows.extensions(securityScheme.getFlows().getExtensions()); + OAuthFlows oauthUpdatedFlows = new OAuthFlows(); + oauthUpdatedFlows.extensions(securityScheme.getFlows().getExtensions()); SecurityScheme oauthUpdatedScheme = new SecurityScheme() .type(securityScheme.getType()) @@ -1333,7 +1333,7 @@ public class DefaultGenerator implements Generator { .bearerFormat(securityScheme.getBearerFormat()) .openIdConnectUrl(securityScheme.getOpenIdConnectUrl()) .extensions(securityScheme.getExtensions()) - .flows(oautUpdatedFlows); + .flows(oauthUpdatedFlows); // Ensure inserted AuthMethod only contains scopes of actual operation, and not all of them defined in the Security Component // have to iterate through and create new SecurityScheme objects with the scopes 'fixed/updated' @@ -1343,22 +1343,22 @@ public class DefaultGenerator implements Generator { if (securitySchemeFlows.getAuthorizationCode() != null) { OAuthFlow updatedFlow = cloneOAuthFlow(securitySchemeFlows.getAuthorizationCode(), entry.getValue()); - oautUpdatedFlows.setAuthorizationCode(updatedFlow); + oauthUpdatedFlows.setAuthorizationCode(updatedFlow); } if (securitySchemeFlows.getImplicit() != null) { OAuthFlow updatedFlow = cloneOAuthFlow(securitySchemeFlows.getImplicit(), entry.getValue()); - oautUpdatedFlows.setImplicit(updatedFlow); + oauthUpdatedFlows.setImplicit(updatedFlow); } if (securitySchemeFlows.getPassword() != null) { OAuthFlow updatedFlow = cloneOAuthFlow(securitySchemeFlows.getPassword(), entry.getValue()); - oautUpdatedFlows.setPassword(updatedFlow); + oauthUpdatedFlows.setPassword(updatedFlow); } if (securitySchemeFlows.getClientCredentials() != null) { OAuthFlow updatedFlow = cloneOAuthFlow(securitySchemeFlows.getClientCredentials(), entry.getValue()); - oautUpdatedFlows.setClientCredentials(updatedFlow); + oauthUpdatedFlows.setClientCredentials(updatedFlow); } authMethods.put(key, oauthUpdatedScheme); diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/examples/ExampleGenerator.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/examples/ExampleGenerator.java index e699a252719..fc1f7aa77c2 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/examples/ExampleGenerator.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/examples/ExampleGenerator.java @@ -80,7 +80,7 @@ public class ExampleGenerator { if (ModelUtils.isArraySchema(responseSchema)) { // array of schema ArraySchema as = (ArraySchema) responseSchema; - if (as.getItems() != null && StringUtils.isEmpty(as.getItems().get$ref())) { // arary of primtive types + if (as.getItems() != null && StringUtils.isEmpty(as.getItems().get$ref())) { // array of primitive types return generate((Map) responseSchema.getExample(), new ArrayList(producesInfo), as.getItems()); } else if (as.getItems() != null && !StringUtils.isEmpty(as.getItems().get$ref())) { // array of model @@ -90,7 +90,7 @@ public class ExampleGenerator { // TODO log warning message as such case is not handled at the moment return null; } - } else if (StringUtils.isEmpty(responseSchema.get$ref())) { // primtiive type (e.g. integer, string) + } else if (StringUtils.isEmpty(responseSchema.get$ref())) { // primitive type (e.g. integer, string) return generate((Map) responseSchema.getExample(), new ArrayList(producesInfo), responseSchema); } else { // model diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractApexCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractApexCodegen.java index 0049bb6554d..278be7eada5 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractApexCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractApexCodegen.java @@ -96,7 +96,7 @@ public abstract class AbstractApexCodegen extends DefaultCodegen implements Code name = "_u"; } - // if it's all uppper case, do nothing + // if it's all upper case, do nothing if (name.matches("^[A-Z_]*$")) { if (isReservedWord(name)) { name = escapeReservedWord(name); @@ -600,15 +600,15 @@ public abstract class AbstractApexCodegen extends DefaultCodegen implements Code // Iterate over all of the parent model properties boolean removedChildEnum = false; - for (CodegenProperty parentModelCodegenPropery : parentModelCodegenProperties) { + for (CodegenProperty parentModelCodegenProperty : parentModelCodegenProperties) { // Look for enums - if (parentModelCodegenPropery.isEnum) { + if (parentModelCodegenProperty.isEnum) { // Now that we have found an enum in the parent class, // and search the child class for the same enum. Iterator iterator = codegenProperties.iterator(); while (iterator.hasNext()) { CodegenProperty codegenProperty = iterator.next(); - if (codegenProperty.isEnum && codegenProperty.equals(parentModelCodegenPropery)) { + if (codegenProperty.isEnum && codegenProperty.equals(parentModelCodegenProperty)) { // We found an enum in the child class that is // a duplicate of the one in the parent, so remove it. iterator.remove(); diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractCSharpCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractCSharpCodegen.java index c162b753d9a..25385064ced 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractCSharpCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractCSharpCodegen.java @@ -560,7 +560,7 @@ public abstract class AbstractCSharpCodegen extends DefaultCodegen implements Co model.vendorExtensions.put("x-enum-string", true); } - // Since we iterate enumVars for modelnnerEnum and enumClass templates, and CodegenModel is missing some of CodegenProperty's properties, + // Since we iterate enumVars for modelInnerEnum and enumClass templates, and CodegenModel is missing some of CodegenProperty's properties, // we can take advantage of Mustache's contextual lookup to add the same "properties" to the model's enumVars scope rather than CodegenProperty's scope. List> enumVars = (ArrayList>) model.allowableValues.get("enumVars"); List> newEnumVars = new ArrayList>(); @@ -837,7 +837,7 @@ public abstract class AbstractCSharpCodegen extends DefaultCodegen implements Co // sanitize name name = sanitizeName(name); - // if it's all uppper case, do nothing + // if it's all upper case, do nothing if (name.matches("^[A-Z_]*$")) { return name; } @@ -866,7 +866,7 @@ public abstract class AbstractCSharpCodegen extends DefaultCodegen implements Co // replace - with _ e.g. created-at => created_at name = name.replaceAll("-", "_"); - // if it's all uppper case, do nothing + // if it's all upper case, do nothing if (name.matches("^[A-Z_]*$")) { return name; } diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractEiffelCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractEiffelCodegen.java index d0554f2646d..2bb25a1952b 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractEiffelCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractEiffelCodegen.java @@ -134,7 +134,7 @@ public abstract class AbstractEiffelCodegen extends DefaultCodegen implements Co // replace - with _ e.g. created-at => created_at name = sanitizeName(name.replaceAll("-", "_")); - // if it's all uppper case, do nothing + // if it's all upper case, do nothing if (name.matches("^[A-Z_]*$")) { return name; } @@ -304,32 +304,32 @@ public abstract class AbstractEiffelCodegen extends DefaultCodegen implements Co // Not using the supertype invocation, because we want to UpperCamelize // the type. - String scheamType = getSchemaType(p); - if (typeMapping.containsKey(scheamType)) { - return typeMapping.get(scheamType); + String schemaType = getSchemaType(p); + if (typeMapping.containsKey(schemaType)) { + return typeMapping.get(schemaType); } - if (typeMapping.containsValue(scheamType)) { - return scheamType; + if (typeMapping.containsValue(schemaType)) { + return schemaType; } - if (languageSpecificPrimitives.contains(scheamType)) { - return scheamType; + if (languageSpecificPrimitives.contains(schemaType)) { + return schemaType; } - return toModelName(scheamType); + return toModelName(schemaType); } @Override public String getSchemaType(Schema p) { - String scheamType = super.getSchemaType(p); + String schemaType = super.getSchemaType(p); String type = null; - if (typeMapping.containsKey(scheamType)) { - type = typeMapping.get(scheamType); + if (typeMapping.containsKey(schemaType)) { + type = typeMapping.get(schemaType); if (languageSpecificPrimitives.contains(type)) return (type); } else - type = scheamType; + type = schemaType; return type; } @@ -518,15 +518,15 @@ public abstract class AbstractEiffelCodegen extends DefaultCodegen implements Co // Iterate over all of the parent model properties boolean removedChildEnum = false; - for (CodegenProperty parentModelCodegenPropery : parentModelCodegenProperties) { + for (CodegenProperty parentModelCodegenProperty : parentModelCodegenProperties) { // Look for enums - if (parentModelCodegenPropery.isEnum) { + if (parentModelCodegenProperty.isEnum) { // Now that we have found an enum in the parent class, // and search the child class for the same enum. Iterator iterator = codegenProperties.iterator(); while (iterator.hasNext()) { CodegenProperty codegenProperty = iterator.next(); - if (codegenProperty.isEnum && codegenProperty.equals(parentModelCodegenPropery)) { + if (codegenProperty.isEnum && codegenProperty.equals(parentModelCodegenProperty)) { // We found an enum in the child class that is // a duplicate of the one in the parent, so remove it. iterator.remove(); diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractFSharpCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractFSharpCodegen.java index d33738bd824..a9140bd7dab 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractFSharpCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractFSharpCodegen.java @@ -346,7 +346,7 @@ public abstract class AbstractFSharpCodegen extends DefaultCodegen implements Co /* * F# does not allow forward declarations, so files must be imported in the correct order. - * Output of CodeGen models must therefore bein dependency order (rather than alphabetical order, which seems to be the default). + * Output of CodeGen models must therefore be in dependency order (rather than alphabetical order, which seems to be the default). * This could probably be made more efficient if absolutely needed. */ @SuppressWarnings({"unchecked"}) @@ -452,7 +452,7 @@ public abstract class AbstractFSharpCodegen extends DefaultCodegen implements Co model.vendorExtensions.put("x-enum-string", true); } - // Since we iterate enumVars for modelnnerEnum and enumClass templates, and CodegenModel is missing some of CodegenProperty's properties, + // Since we iterate enumVars for modelInnerEnum and enumClass templates, and CodegenModel is missing some of CodegenProperty's properties, // we can take advantage of Mustache's contextual lookup to add the same "properties" to the model's enumVars scope rather than CodegenProperty's scope. List> enumVars = (ArrayList>) model.allowableValues.get("enumVars"); List> newEnumVars = new ArrayList>(); @@ -679,7 +679,7 @@ public abstract class AbstractFSharpCodegen extends DefaultCodegen implements Co // sanitize name name = sanitizeName(name); - // if it's all uppper case, do nothing + // if it's all upper case, do nothing if (name.matches("^[A-Z_]*$")) { return name; } @@ -701,7 +701,7 @@ public abstract class AbstractFSharpCodegen extends DefaultCodegen implements Co // replace - with _ e.g. created-at => created_at name = name.replaceAll("-", "_"); - // if it's all uppper case, do nothing + // if it's all upper case, do nothing if (name.matches("^[A-Z_]*$")) { return name; } diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractGoCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractGoCodegen.java index c4dd2d45168..5ef7f430c52 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractGoCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractGoCodegen.java @@ -192,7 +192,7 @@ public abstract class AbstractGoCodegen extends DefaultCodegen implements Codege // replace - with _ e.g. created-at => created_at name = sanitizeName(name); - // if it's all uppper case, do nothing + // if it's all upper case, do nothing if (name.matches("^[A-Z_]*$")) return name; @@ -420,7 +420,7 @@ public abstract class AbstractGoCodegen extends DefaultCodegen implements Codege *

* Note the 'parent' attribute in the codegen model is used in the following scenarios: * - Indicate a polymorphic association with some other type (e.g. class inheritance). - * - If the specification has a discriminator, cogegen create a “parent” based on the discriminator. + * - If the specification has a discriminator, codegen create a “parent” based on the discriminator. * - Use of the 'additionalProperties' attribute in the OAS specification. * This is the specific scenario when codegen invokes this function. * diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractGraphQLCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractGraphQLCodegen.java index 041ead342ae..0742a6b4459 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractGraphQLCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractGraphQLCodegen.java @@ -153,7 +153,7 @@ public abstract class AbstractGraphQLCodegen extends DefaultCodegen implements C // replace - with _ e.g. created-at => created_at name = sanitizeName(name.replaceAll("-", "_")); - // if it's all uppper case, do nothing + // if it's all upper case, do nothing if (name.matches("^[A-Z_]*$")) return name; diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractJavaCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractJavaCodegen.java index f4557791a99..68fd77a768b 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractJavaCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractJavaCodegen.java @@ -756,7 +756,7 @@ public abstract class AbstractJavaCodegen extends DefaultCodegen implements Code name = "_" + name; } - // if it's all uppper case, do nothing + // if it's all upper case, do nothing if (name.matches("^[A-Z0-9_]*$")) { return name; } @@ -1529,15 +1529,15 @@ public abstract class AbstractJavaCodegen extends DefaultCodegen implements Code // Iterate over all of the parent model properties boolean removedChildEnum = false; - for (CodegenProperty parentModelCodegenPropery : parentModelCodegenProperties) { + for (CodegenProperty parentModelCodegenProperty : parentModelCodegenProperties) { // Look for enums - if (parentModelCodegenPropery.isEnum) { + if (parentModelCodegenProperty.isEnum) { // Now that we have found an enum in the parent class, // and search the child class for the same enum. Iterator iterator = codegenProperties.iterator(); while (iterator.hasNext()) { CodegenProperty codegenProperty = iterator.next(); - if (codegenProperty.isEnum && codegenProperty.equals(parentModelCodegenPropery)) { + if (codegenProperty.isEnum && codegenProperty.equals(parentModelCodegenProperty)) { // We found an enum in the child class that is // a duplicate of the one in the parent, so remove it. iterator.remove(); @@ -1942,7 +1942,7 @@ public abstract class AbstractJavaCodegen extends DefaultCodegen implements Code @Override protected void addAdditionPropertiesToCodeGenModel(CodegenModel codegenModel, Schema schema) { if (!supportsAdditionalPropertiesWithComposedSchema) { - // The additional (undeclared) propertiees are modeled in Java as a HashMap. + // The additional (undeclared) properties are modeled in Java as a HashMap. // // 1. supportsAdditionalPropertiesWithComposedSchema is set to false: // The generated model class extends from the HashMap. That does not work diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractJavaJAXRSServerCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractJavaJAXRSServerCodegen.java index cb448e277d0..2e1cc510a7f 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractJavaJAXRSServerCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractJavaJAXRSServerCodegen.java @@ -61,7 +61,7 @@ public abstract class AbstractJavaJAXRSServerCodegen extends AbstractJavaCodegen apiPackage = "org.openapitools.api"; modelPackage = "org.openapitools.model"; - // clioOptions default redifinition need to be updated + // clioOptions default redefinition need to be updated updateOption(CodegenConstants.INVOKER_PACKAGE, this.getInvokerPackage()); updateOption(CodegenConstants.ARTIFACT_ID, this.getArtifactId()); updateOption(CodegenConstants.API_PACKAGE, apiPackage); diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractKotlinCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractKotlinCodegen.java index 1dd3780689c..da93330eca2 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractKotlinCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractKotlinCodegen.java @@ -881,7 +881,7 @@ public abstract class AbstractKotlinCodegen extends DefaultCodegen implements Co name = "_u"; } - // if it's all uppper case, do nothing + // if it's all upper case, do nothing if (name.matches("^[A-Z0-9_]*$")) { return name; } diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractPhpCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractPhpCodegen.java index 779393af403..9a7a0e91772 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractPhpCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractPhpCodegen.java @@ -441,7 +441,7 @@ public abstract class AbstractPhpCodegen extends DefaultCodegen implements Codeg public String toModelName(String name) { name = toGenericName(name); - // add prefix and/or suffic only if name does not start wth \ (e.g. \DateTime) + // add prefix and/or suffix only if name does not start wth \ (e.g. \DateTime) if (!name.matches("^\\\\.*")) { if (!StringUtils.isEmpty(modelNamePrefix)) { name = modelNamePrefix + "_" + name; diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractPythonCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractPythonCodegen.java index eced1ac0e78..00caff0f8cc 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractPythonCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractPythonCodegen.java @@ -188,7 +188,7 @@ public abstract class AbstractPythonCodegen extends DefaultCodegen implements Co // remove dollar sign name = name.replaceAll("$", ""); - // if it's all uppper case, convert to lower case + // if it's all upper case, convert to lower case if (name.matches("^[A-Z_]*$")) { name = name.toLowerCase(Locale.ROOT); } diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractPythonConnexionServerCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractPythonConnexionServerCodegen.java index 2e04cd2d3e6..042b76572b8 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractPythonConnexionServerCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractPythonConnexionServerCodegen.java @@ -344,7 +344,7 @@ public abstract class AbstractPythonConnexionServerCodegen extends AbstractPytho } if (!fixedPath.equals(pathname)) { LOGGER.warn( - "Path '{}' is not consistant with Python variable names. It will be replaced by '{}'", + "Path '{}' is not consistent with Python variable names. It will be replaced by '{}'", pathname, fixedPath); paths.remove(pathname); path.addExtension("x-python-connexion-openapi-name", pathname); @@ -376,7 +376,7 @@ public abstract class AbstractPythonConnexionServerCodegen extends AbstractPytho String pythonParameterName = this.toParamName(swaggerParameterName); if (!swaggerParameterName.equals(pythonParameterName)) { LOGGER.warn( - "Parameter name '{}' is not consistant with Python variable names. It will be replaced by '{}'", + "Parameter name '{}' is not consistent with Python variable names. It will be replaced by '{}'", swaggerParameterName, pythonParameterName); parameter.addExtension("x-python-connexion-openapi-name", swaggerParameterName); parameter.setName(pythonParameterName); @@ -439,7 +439,7 @@ public abstract class AbstractPythonConnexionServerCodegen extends AbstractPytho } break; case OPENIDCONNECT: - LOGGER.warn("Security type {} is not supported by connextion yet", securityScheme.getType().toString()); + LOGGER.warn("Security type {} is not supported by connexion yet", securityScheme.getType().toString()); case OAUTH2: addSecurityExtension(securityScheme, "x-tokenInfoFunc", baseFunctionName + "info_from_" + securityName); addSecurityExtension(securityScheme, "x-scopeValidateFunc", baseFunctionName + "validate_scope_" + securityName); @@ -503,7 +503,7 @@ public abstract class AbstractPythonConnexionServerCodegen extends AbstractPytho String openapiPathname = (String) pathExtensions.remove("x-python-connexion-openapi-name"); if (openapiPathname != null && !openapiPathname.equals(pythonPathname)) { LOGGER.info( - "Path '{}' is not consistant with the original OpenAPI definition. It will be replaced back by '{}'", + "Path '{}' is not consistent with the original OpenAPI definition. It will be replaced back by '{}'", pythonPathname, openapiPathname); paths.remove(pythonPathname); paths.put(openapiPathname, path); @@ -652,7 +652,7 @@ public abstract class AbstractPythonConnexionServerCodegen extends AbstractPytho operation.vendorExtensions.put("x-prefered-consume", consume); } else if (operation.consumes.size() > 1) { Map consume = operation.consumes.get(0); - skipTests.put("reason", "Connexion does not support multiple consummes. See https://github.com/zalando/connexion/pull/760"); + skipTests.put("reason", "Connexion does not support multiple consumes. See https://github.com/zalando/connexion/pull/760"); operation.vendorExtensions.put("x-prefered-consume", consume); if ("multipart/form-data".equals(consume.get(MEDIA_TYPE))) { operation.isMultipart = Boolean.TRUE; diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractRubyCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractRubyCodegen.java index 1894ba310b9..39b340d61d5 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractRubyCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractRubyCodegen.java @@ -175,7 +175,7 @@ abstract public class AbstractRubyCodegen extends DefaultCodegen implements Code @Override public String toVarName(final String name) { String varName = sanitizeName(name); - // if it's all uppper case, convert to lower case + // if it's all upper case, convert to lower case if (name.matches("^[A-Z_]*$")) { varName = varName.toLowerCase(Locale.ROOT); } diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractScalaCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractScalaCodegen.java index 7278c7fbc02..ab74d902593 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractScalaCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractScalaCodegen.java @@ -244,7 +244,7 @@ public abstract class AbstractScalaCodegen extends DefaultCodegen { varName = "_u"; } - // if it's all uppper case, do nothing + // if it's all upper case, do nothing if (!varName.matches("^[A-Z_0-9]*$")) { varName = getNameUsingModelPropertyNaming(varName); } diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractTypeScriptClientCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractTypeScriptClientCodegen.java index 8a7d8b97aaf..3d0c4ccf69f 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractTypeScriptClientCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractTypeScriptClientCodegen.java @@ -394,7 +394,7 @@ public abstract class AbstractTypeScriptClientCodegen extends DefaultCodegen imp sanName = camelize(sanName); // model name cannot use reserved keyword, e.g. return - // this is unlikely to happen, because we have just camelized the name, while reserved words are usually all lowcase + // this is unlikely to happen, because we have just camelized the name, while reserved words are usually all lowercase if (isReservedWord(sanName)) { String modelName = safePrefix + sanName; LOGGER.warn("{} (reserved word) cannot be used as model name. Renamed to {}", sanName, modelName); diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AndroidClientCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AndroidClientCodegen.java index d3ead4fc86d..d1c6fb6a3e8 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AndroidClientCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AndroidClientCodegen.java @@ -162,7 +162,7 @@ public class AndroidClientCodegen extends DefaultCodegen implements CodegenConfi cliOptions.add(CliOption.newBoolean(CodegenConstants.SERIALIZABLE_MODEL, CodegenConstants.SERIALIZABLE_MODEL_DESC)); supportedLibraries.put("volley", "HTTP client: Volley 1.0.19 (default)"); - supportedLibraries.put("httpclient", "HTTP client: Apache HttpClient 4.3.6. JSON processing: Gson 2.3.1. IMPORTANT: Android client using HttpClient is not actively maintained and will be depecreated in the next major release."); + supportedLibraries.put("httpclient", "HTTP client: Apache HttpClient 4.3.6. JSON processing: Gson 2.3.1. IMPORTANT: Android client using HttpClient is not actively maintained and will be deprecated in the next major release."); CliOption library = new CliOption(CodegenConstants.LIBRARY, "library template (sub-template) to use"); library.setEnum(supportedLibraries); cliOptions.add(library); @@ -260,7 +260,7 @@ public class AndroidClientCodegen extends DefaultCodegen implements CodegenConfi // replace - with _ e.g. created-at => created_at name = name.replaceAll("-", "_"); // FIXME: a parameter should not be assigned. Also declare the methods parameters as 'final'. - // if it's all uppper case, do nothing + // if it's all upper case, do nothing if (name.matches("^[A-Z_]*$")) { return name; } diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AspNetCoreServerCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AspNetCoreServerCodegen.java index 16957ff6b3b..0ce832feb3b 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AspNetCoreServerCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AspNetCoreServerCodegen.java @@ -563,7 +563,7 @@ public class AspNetCoreServerCodegen extends AbstractCSharpCodegen { if ("abstract".equals(classModifier.getOptValue())) { operationModifier.setOptValue(classModifier.getOptValue()); additionalProperties.put(OPERATION_MODIFIER, operationModifier.getOptValue()); - LOGGER.warn("classModifier is {} so forcing operatonModifier to {}", classModifier.getOptValue(), operationModifier.getOptValue()); + LOGGER.warn("classModifier is {} so forcing operationModifier to {}", classModifier.getOptValue(), operationModifier.getOptValue()); } } diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/BashClientCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/BashClientCodegen.java index 8f2c32f2a7e..85e68a20354 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/BashClientCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/BashClientCodegen.java @@ -182,7 +182,7 @@ public class BashClientCodegen extends DefaultCodegen implements CodegenConfig { /** * Allow the user to force the script to always include certain cURL - * comamnds + * commands */ cliOptions.add(CliOption.newString(CURL_OPTIONS, "Default cURL options")); cliOptions.add(CliOption.newBoolean(PROCESS_MARKDOWN, @@ -529,7 +529,7 @@ public class BashClientCodegen extends DefaultCodegen implements CodegenConfig { * remove standalone '\' * * replace " with \" - * outter unescape to retain the original multi-byte characters + * outer unescape to retain the original multi-byte characters */ result = escapeUnsafeCharacters( StringEscapeUtils.unescapeJava( diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/CLibcurlClientCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/CLibcurlClientCodegen.java index 4c7a0c74160..07b16ca17b4 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/CLibcurlClientCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/CLibcurlClientCodegen.java @@ -553,7 +553,7 @@ public class CLibcurlClientCodegen extends DefaultCodegen implements CodegenConf public String toVarName(String name) { // sanitize name name = sanitizeName(name); // FIXME: a parameter should not be assigned. Also declare the methods parameters as 'final'. - // if it's all uppper case, convert to lower case + // if it's all upper case, convert to lower case if (name.matches("^[A-Z_]*$")) { name = name.toLowerCase(Locale.ROOT); } @@ -868,7 +868,7 @@ public class CLibcurlClientCodegen extends DefaultCodegen implements CodegenConf return; // skip if C_POST_PROCESS_FILE env variable is not defined } - // only procees the following type (or we can simply rely on the file extension to check if it's a .c or .h file) + // only process the following type (or we can simply rely on the file extension to check if it's a .c or .h file) Set supportedFileType = new HashSet( Arrays.asList( "supporting-mustache", diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/CSharpClientCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/CSharpClientCodegen.java index cab9ee837fe..3b06619b845 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/CSharpClientCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/CSharpClientCodegen.java @@ -75,7 +75,7 @@ public class CSharpClientCodegen extends AbstractCSharpCodegen { // By default, generated code is considered public protected boolean nonPublicApi = Boolean.FALSE; - // use KellermanSoftware.CompareNetObjects for deep recursive object comparision + // use KellermanSoftware.CompareNetObjects for deep recursive object comparison protected boolean useCompareNetObjects = Boolean.FALSE; // To make API response's headers dictionary case insensitive @@ -750,15 +750,15 @@ public class CSharpClientCodegen extends AbstractCSharpCodegen { // Iterate over all of the parent model properties boolean removedChildEnum = false; - for (CodegenProperty parentModelCodegenPropery : parentModelCodegenProperties) { + for (CodegenProperty parentModelCodegenProperty : parentModelCodegenProperties) { // Look for enums - if (parentModelCodegenPropery.isEnum) { + if (parentModelCodegenProperty.isEnum) { // Now that we have found an enum in the parent class, // and search the child class for the same enum. Iterator iterator = codegenProperties.iterator(); while (iterator.hasNext()) { CodegenProperty codegenProperty = iterator.next(); - if (codegenProperty.isEnum && codegenProperty.equals(parentModelCodegenPropery)) { + if (codegenProperty.isEnum && codegenProperty.equals(parentModelCodegenProperty)) { // We found an enum in the child class that is // a duplicate of the one in the parent, so remove it. iterator.remove(); @@ -815,7 +815,7 @@ public class CSharpClientCodegen extends AbstractCSharpCodegen { // sanitize name name = sanitizeName(name); - // if it's all uppper case, do nothing + // if it's all upper case, do nothing if (name.matches("^[A-Z_]*$")) { return name; } diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/CSharpNetCoreClientCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/CSharpNetCoreClientCodegen.java index 3e6a692ecec..bedc111b3ea 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/CSharpNetCoreClientCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/CSharpNetCoreClientCodegen.java @@ -890,7 +890,7 @@ public class CSharpNetCoreClientCodegen extends AbstractCSharpCodegen { // sanitize name name = sanitizeName(name); - // if it's all uppper case, do nothing + // if it's all upper case, do nothing if (name.matches("^[A-Z_]*$")) { return name; } @@ -926,15 +926,15 @@ public class CSharpNetCoreClientCodegen extends AbstractCSharpCodegen { // Iterate over all of the parent model properties boolean removedChildEnum = false; - for (CodegenProperty parentModelCodegenPropery : parentModelCodegenProperties) { + for (CodegenProperty parentModelCodegenProperty : parentModelCodegenProperties) { // Look for enums - if (parentModelCodegenPropery.isEnum) { + if (parentModelCodegenProperty.isEnum) { // Now that we have found an enum in the parent class, // and search the child class for the same enum. Iterator iterator = codegenProperties.iterator(); while (iterator.hasNext()) { CodegenProperty codegenProperty = iterator.next(); - if (codegenProperty.isEnum && codegenProperty.equals(parentModelCodegenPropery)) { + if (codegenProperty.isEnum && codegenProperty.equals(parentModelCodegenProperty)) { // We found an enum in the child class that is // a duplicate of the one in the parent, so remove it. iterator.remove(); diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/CppQtAbstractCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/CppQtAbstractCodegen.java index 2dff94f15c3..0ddf552ad9a 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/CppQtAbstractCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/CppQtAbstractCodegen.java @@ -273,7 +273,7 @@ public class CppQtAbstractCodegen extends AbstractCppCodegen implements CodegenC String varName = name; varName = sanitizeName(name); - // if it's all uppper case, convert to lower case + // if it's all upper case, convert to lower case if (varName.matches("^[A-Z_]*$")) { varName = varName.toLowerCase(Locale.ROOT); } diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/CppUE4ClientCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/CppUE4ClientCodegen.java index 1e5289503cc..9f3b47c8272 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/CppUE4ClientCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/CppUE4ClientCodegen.java @@ -124,7 +124,7 @@ public class CppUE4ClientCodegen extends AbstractCppCodegen { // Write defaults namespace in properties so that it can be accessible in templates. // At this point command line has not been parsed so if value is given - // in command line it will superseed this content + // in command line it will supersede this content additionalProperties.put("cppNamespace", cppNamespace); additionalProperties.put("unrealModuleName", unrealModuleName); @@ -494,7 +494,7 @@ public class CppUE4ClientCodegen extends AbstractCppCodegen { // sanitize name name = sanitizeName(name); // FIXME: a parameter should not be assigned. Also declare the methods parameters as 'final'. - // if it's all uppper case, convert to lower case + // if it's all upper case, convert to lower case if (name.matches("^[A-Z_]*$")) { name = name.toLowerCase(Locale.ROOT); } diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/CrystalClientCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/CrystalClientCodegen.java index 38e95c67d26..250f9672968 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/CrystalClientCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/CrystalClientCodegen.java @@ -820,7 +820,7 @@ public class CrystalClientCodegen extends DefaultCodegen { String varName; // sanitize name varName = sanitizeName(name); - // if it's all uppper case, convert to lower case + // if it's all upper case, convert to lower case if (name.matches("^[A-Z_]*$")) { varName = varName.toLowerCase(Locale.ROOT); } diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/ErlangClientCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/ErlangClientCodegen.java index 3349e256072..541456a824e 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/ErlangClientCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/ErlangClientCodegen.java @@ -356,7 +356,7 @@ public class ErlangClientCodegen extends DefaultCodegen implements CodegenConfig * Returns the number of required parameters plus 1. * * @param os List of Codegen Parameters - * @return the string representation of the number of required paramters plus 1 + * @return the string representation of the number of required parameters plus 1 */ String length(Object os) { int l = 1; @@ -371,7 +371,7 @@ public class ErlangClientCodegen extends DefaultCodegen implements CodegenConfig * Returns the number of required parameters or body parameters. * * @param os List of Codegen Parameters - * @return the number of required paramters or body parameters + * @return the number of required parameters or body parameters */ int lengthRequired(List allParams) { int l = 0; diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/FlashClientCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/FlashClientCodegen.java index 8f2d6ce052e..2dfcbfcafbe 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/FlashClientCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/FlashClientCodegen.java @@ -290,7 +290,7 @@ public class FlashClientCodegen extends DefaultCodegen implements CodegenConfig // replace - with _ e.g. created-at => created_at name = name.replaceAll("-", "_"); // FIXME: a parameter should not be assigned. Also declare the methods parameters as 'final'. - // if it's all uppper case, convert to lower case + // if it's all upper case, convert to lower case if (name.matches("^[A-Z_]*$")) { name = name.toLowerCase(Locale.ROOT); } diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/GraphQLNodeJSExpressServerCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/GraphQLNodeJSExpressServerCodegen.java index 5edc4ae74c1..edfe46026a2 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/GraphQLNodeJSExpressServerCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/GraphQLNodeJSExpressServerCodegen.java @@ -127,7 +127,7 @@ public class GraphQLNodeJSExpressServerCodegen extends AbstractGraphQLCodegen im ArraySchema ap = (ArraySchema) p; Schema inner = ap.getItems(); - // IMPORTANT NOTE we add the braces within template because there we have the possibility to differenciate + // IMPORTANT NOTE we add the braces within template because there we have the possibility to differentiate // between some specific types for GraphQL: // return "[" + getTypeDeclaration(inner) + "]"; return getTypeDeclaration(inner); @@ -137,7 +137,7 @@ public class GraphQLNodeJSExpressServerCodegen extends AbstractGraphQLCodegen im return getTypeDeclaration(inner); } - // IMPORANT NOTE Not using the supertype invocation, because we want to UpperCamelize the type: + // IMPORTANT NOTE Not using the supertype invocation, because we want to UpperCamelize the type: String schemaType = getSchemaType(p); String nullable = ModelUtils.isNullable(p) ? "" : "!"; diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/HaskellHttpClientCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/HaskellHttpClientCodegen.java index 561f2f06bbf..32f51f26a87 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/HaskellHttpClientCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/HaskellHttpClientCodegen.java @@ -953,10 +953,10 @@ public class HaskellHttpClientCodegen extends DefaultCodegen implements CodegenC } } - private void SetNoContent(CodegenOperation op, String inlineExtentionName) { + private void SetNoContent(CodegenOperation op, String inlineExtensionName) { Map m = new HashMap<>(); m.put(X_MEDIA_DATA_TYPE, MIME_NO_CONTENT); - op.vendorExtensions.put(inlineExtentionName, m); + op.vendorExtensions.put(inlineExtensionName, m); } private String toDedupedModelName(String paramNameType, String dataType, Boolean appendDataType) { @@ -1418,7 +1418,7 @@ public class HaskellHttpClientCodegen extends DefaultCodegen implements CodegenC // remove \t, \n, \r // replace \ with \\ // replace " with \" - // outter unescape to retain the original multi-byte characters + // outer unescape to retain the original multi-byte characters // finally escalate characters avoiding code injection return escapeUnsafeCharacters( StringEscapeUtils.unescapeJava( diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/JavaCXFClientCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/JavaCXFClientCodegen.java index a02a1782764..46aa7960c1b 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/JavaCXFClientCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/JavaCXFClientCodegen.java @@ -64,7 +64,7 @@ public class JavaCXFClientCodegen extends AbstractJavaCodegen modelPackage = "org.openapitools.model"; outputFolder = "generated-code/JavaJaxRS-CXF"; - // clioOptions default redifinition need to be updated + // clioOptions default redefinition need to be updated updateOption(CodegenConstants.SOURCE_FOLDER, this.getSourceFolder()); updateOption(CodegenConstants.INVOKER_PACKAGE, this.getInvokerPackage()); updateOption(CodegenConstants.ARTIFACT_ID, this.getArtifactId()); diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/JavaCXFServerCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/JavaCXFServerCodegen.java index f7dae1dc15a..ae0c006cabd 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/JavaCXFServerCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/JavaCXFServerCodegen.java @@ -75,7 +75,7 @@ public class JavaCXFServerCodegen extends AbstractJavaJAXRSServerCodegen outputFolder = "generated-code/JavaJaxRS-CXF"; - // clioOptions default redifinition need to be updated + // clioOptions default redefinition need to be updated updateOption(CodegenConstants.ARTIFACT_ID, this.getArtifactId()); updateOption(USE_TAGS, String.valueOf(true)); diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/JavaClientCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/JavaClientCodegen.java index 2ed09080b7f..aa43075765d 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/JavaClientCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/JavaClientCodegen.java @@ -155,7 +155,7 @@ public class JavaClientCodegen extends AbstractJavaCodegen cliOptions.add(CliOption.newBoolean(USE_ABSTRACTION_FOR_FILES, "Use alternative types instead of java.io.File to allow passing bytes without a file on disk. Available on " + RESTTEMPLATE + " library")); cliOptions.add(CliOption.newBoolean(DYNAMIC_OPERATIONS, "Generate operations dynamically at runtime from an OAS", this.dynamicOperations)); - supportedLibraries.put(JERSEY1, "HTTP client: Jersey client 1.19.x. JSON processing: Jackson 2.9.x. Enable gzip request encoding using '-DuseGzipFeature=true'. IMPORTANT NOTE: jersey 1.x is no longer actively maintained so please upgrade to 'jersey2' or other HTTP libaries instead."); + supportedLibraries.put(JERSEY1, "HTTP client: Jersey client 1.19.x. JSON processing: Jackson 2.9.x. Enable gzip request encoding using '-DuseGzipFeature=true'. IMPORTANT NOTE: jersey 1.x is no longer actively maintained so please upgrade to 'jersey2' or other HTTP libraries instead."); supportedLibraries.put(JERSEY2, "HTTP client: Jersey client 2.25.1. JSON processing: Jackson 2.9.x"); supportedLibraries.put(FEIGN, "HTTP client: OpenFeign 10.x. JSON processing: Jackson 2.9.x."); supportedLibraries.put(OKHTTP_GSON, "[DEFAULT] HTTP client: OkHttp 3.x. JSON processing: Gson 2.8.x. Enable Parcelable models on Android using '-DparcelableModel=true'. Enable gzip request encoding using '-DuseGzipFeature=true'."); diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/JavaInflectorServerCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/JavaInflectorServerCodegen.java index 5bf0265e2cb..22f1567f3b5 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/JavaInflectorServerCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/JavaInflectorServerCodegen.java @@ -59,7 +59,7 @@ public class JavaInflectorServerCodegen extends AbstractJavaCodegen { modelDocTemplateFiles.remove("model_doc.mustache"); apiDocTemplateFiles.remove("api_doc.mustache"); - // clioOptions default redifinition need to be updated + // clioOptions default redefinition need to be updated updateOption(CodegenConstants.SOURCE_FOLDER, this.getSourceFolder()); updateOption(CodegenConstants.INVOKER_PACKAGE, this.getInvokerPackage()); updateOption(CodegenConstants.ARTIFACT_ID, this.getArtifactId()); diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/JavaJAXRSCXFCDIServerCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/JavaJAXRSCXFCDIServerCodegen.java index 025154d387b..4bb58c88e50 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/JavaJAXRSCXFCDIServerCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/JavaJAXRSCXFCDIServerCodegen.java @@ -40,7 +40,7 @@ public class JavaJAXRSCXFCDIServerCodegen extends JavaJAXRSSpecServerCodegen imp sourceFolder = "src/gen/java"; useBeanValidation = true; - // clioOptions default redifinition need to be updated + // clioOptions default redefinition need to be updated updateOption(CodegenConstants.SOURCE_FOLDER, this.getSourceFolder()); updateOption(CodegenConstants.ARTIFACT_ID, this.getArtifactId()); diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/JavaJAXRSSpecServerCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/JavaJAXRSSpecServerCodegen.java index a679e0a982d..a0313a6bc8e 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/JavaJAXRSSpecServerCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/JavaJAXRSSpecServerCodegen.java @@ -150,7 +150,7 @@ public class JavaJAXRSSpecServerCodegen extends AbstractJavaJAXRSServerCodegen { useJackson = convertPropertyToBoolean(JACKSON); if (interfaceOnly) { - // Change default artifactId if genereating interfaces only, before command line options are applied in base class. + // Change default artifactId if generating interfaces only, before command line options are applied in base class. artifactId = "openapi-jaxrs-client"; } diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/JavaPKMSTServerCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/JavaPKMSTServerCodegen.java index ca3d6b5c3eb..e6b291cd730 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/JavaPKMSTServerCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/JavaPKMSTServerCodegen.java @@ -63,7 +63,7 @@ public class JavaPKMSTServerCodegen extends AbstractJavaCodegen { modelPackage = "com.prokarma.pkmst.model"; invokerPackage = "com.prokarma.pkmst.controller"; - // clioOptions default redifinition need to be updated + // clioOptions default redefinition need to be updated updateOption(CodegenConstants.GROUP_ID, this.getGroupId()); updateOption(CodegenConstants.INVOKER_PACKAGE, this.getInvokerPackage()); updateOption(CodegenConstants.ARTIFACT_ID, this.getArtifactId()); diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/JavaPlayFrameworkCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/JavaPlayFrameworkCodegen.java index e3037d73460..2b2ab17b725 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/JavaPlayFrameworkCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/JavaPlayFrameworkCodegen.java @@ -74,7 +74,7 @@ public class JavaPlayFrameworkCodegen extends AbstractJavaCodegen implements Bea projectTestFolder = projectFolder + "/test"; testFolder = projectTestFolder; - // clioOptions default redifinition need to be updated + // clioOptions default redefinition need to be updated updateOption(CodegenConstants.SOURCE_FOLDER, this.getSourceFolder()); updateOption(CodegenConstants.INVOKER_PACKAGE, this.getInvokerPackage()); updateOption(CodegenConstants.ARTIFACT_ID, this.getArtifactId()); diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/JavaResteasyEapServerCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/JavaResteasyEapServerCodegen.java index d32ce662cea..8698bd98dea 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/JavaResteasyEapServerCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/JavaResteasyEapServerCodegen.java @@ -44,7 +44,7 @@ public class JavaResteasyEapServerCodegen extends AbstractJavaJAXRSServerCodegen useBeanValidation = true; outputFolder = "generated-code/JavaJaxRS-Resteasy-eap"; - // clioOptions default redifinition need to be updated + // clioOptions default redefinition need to be updated updateOption(CodegenConstants.ARTIFACT_ID, this.getArtifactId()); apiTemplateFiles.put("apiServiceImpl.mustache", ".java"); diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/JavaResteasyServerCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/JavaResteasyServerCodegen.java index 0970e975b96..5a86c38ab25 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/JavaResteasyServerCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/JavaResteasyServerCodegen.java @@ -39,7 +39,7 @@ public class JavaResteasyServerCodegen extends AbstractJavaJAXRSServerCodegen im artifactId = "openapi-jaxrs-resteasy-server"; outputFolder = "generated-code/JavaJaxRS-Resteasy"; - // clioOptions default redifinition need to be updated + // clioOptions default redefinition need to be updated updateOption(CodegenConstants.ARTIFACT_ID, this.getArtifactId()); apiTemplateFiles.put("apiService.mustache", ".java"); diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/JavaUndertowServerCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/JavaUndertowServerCodegen.java index 06a20ad12a8..5f44517c5c0 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/JavaUndertowServerCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/JavaUndertowServerCodegen.java @@ -49,7 +49,7 @@ public class JavaUndertowServerCodegen extends AbstractJavaCodegen { artifactId = "openapi-undertow-server"; dateLibrary = "legacy"; //TODO: add joda support - // clioOptions default redifinition need to be updated + // clioOptions default redefinition need to be updated updateOption(CodegenConstants.INVOKER_PACKAGE, this.getInvokerPackage()); updateOption(CodegenConstants.ARTIFACT_ID, this.getArtifactId()); updateOption(this.DATE_LIBRARY, this.getDateLibrary()); diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/JavaVertXServerCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/JavaVertXServerCodegen.java index 231be3622ca..e8b58b6e81c 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/JavaVertXServerCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/JavaVertXServerCodegen.java @@ -90,7 +90,7 @@ public class JavaVertXServerCodegen extends AbstractJavaCodegen { artifactVersion = apiVersion; this.setDateLibrary("java8"); - // clioOptions default redifinition need to be updated + // clioOptions default redefinition need to be updated updateOption(CodegenConstants.ARTIFACT_ID, this.getArtifactId()); updateOption(CodegenConstants.ARTIFACT_VERSION, this.getArtifactVersion()); updateOption(CodegenConstants.API_PACKAGE, apiPackage); diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/JavaVertXWebServerCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/JavaVertXWebServerCodegen.java index 395d5533b8f..b498ec02cfe 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/JavaVertXWebServerCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/JavaVertXWebServerCodegen.java @@ -58,7 +58,7 @@ public class JavaVertXWebServerCodegen extends AbstractJavaCodegen { artifactVersion = apiVersion; this.setDateLibrary("java8"); - // clioOptions default redifinition need to be updated + // clioOptions default redefinition need to be updated updateOption(CodegenConstants.ARTIFACT_ID, this.getArtifactId()); updateOption(CodegenConstants.ARTIFACT_VERSION, this.getArtifactVersion()); updateOption(CodegenConstants.API_PACKAGE, apiPackage); diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/JavascriptApolloClientCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/JavascriptApolloClientCodegen.java index 3023ff6ab2e..28028afbc62 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/JavascriptApolloClientCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/JavascriptApolloClientCodegen.java @@ -486,7 +486,7 @@ public class JavascriptApolloClientCodegen extends DefaultCodegen implements Cod name = "_u"; } - // if it's all uppper case, do nothing + // if it's all upper case, do nothing if (name.matches("^[A-Z_]*$")) { return name; } @@ -1042,15 +1042,15 @@ public class JavascriptApolloClientCodegen extends DefaultCodegen implements Cod // Iterate over all of the parent model properties boolean removedChildEnum = false; - for (CodegenProperty parentModelCodegenPropery : parentModelCodegenProperties) { + for (CodegenProperty parentModelCodegenProperty : parentModelCodegenProperties) { // Look for enums - if (parentModelCodegenPropery.isEnum) { + if (parentModelCodegenProperty.isEnum) { // Now that we have found an enum in the parent class, // and search the child class for the same enum. Iterator iterator = codegenProperties.iterator(); while (iterator.hasNext()) { CodegenProperty codegenProperty = iterator.next(); - if (codegenProperty.isEnum && codegenProperty.equals(parentModelCodegenPropery)) { + if (codegenProperty.isEnum && codegenProperty.equals(parentModelCodegenProperty)) { // We found an enum in the child class that is // a duplicate of the one in the parent, so remove it. iterator.remove(); diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/JavascriptClientCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/JavascriptClientCodegen.java index 71a93675a0d..71f0711bc5d 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/JavascriptClientCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/JavascriptClientCodegen.java @@ -537,7 +537,7 @@ public class JavascriptClientCodegen extends DefaultCodegen implements CodegenCo name = "_u"; } - // if it's all uppper case, do nothing + // if it's all upper case, do nothing if (name.matches("^[A-Z_]*$")) { return name; } @@ -1127,15 +1127,15 @@ public class JavascriptClientCodegen extends DefaultCodegen implements CodegenCo // Iterate over all of the parent model properties boolean removedChildEnum = false; - for (CodegenProperty parentModelCodegenPropery : parentModelCodegenProperties) { + for (CodegenProperty parentModelCodegenProperty : parentModelCodegenProperties) { // Look for enums - if (parentModelCodegenPropery.isEnum) { + if (parentModelCodegenProperty.isEnum) { // Now that we have found an enum in the parent class, // and search the child class for the same enum. Iterator iterator = codegenProperties.iterator(); while (iterator.hasNext()) { CodegenProperty codegenProperty = iterator.next(); - if (codegenProperty.isEnum && codegenProperty.equals(parentModelCodegenPropery)) { + if (codegenProperty.isEnum && codegenProperty.equals(parentModelCodegenProperty)) { // We found an enum in the child class that is // a duplicate of the one in the parent, so remove it. iterator.remove(); diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/JavascriptClosureAngularClientCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/JavascriptClosureAngularClientCodegen.java index 5b8bf164a60..e66420e2635 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/JavascriptClosureAngularClientCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/JavascriptClosureAngularClientCodegen.java @@ -170,7 +170,7 @@ public class JavascriptClosureAngularClientCodegen extends DefaultCodegen implem // replace - with _ e.g. created-at => created_at name = name.replaceAll("-", "_"); - // if it's all uppper case, do nothing + // if it's all upper case, do nothing if (name.matches("^[A-Z_]*$")) return name; diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/K6ClientCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/K6ClientCodegen.java index 1af100364e9..dfc6efdd69b 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/K6ClientCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/K6ClientCodegen.java @@ -595,7 +595,7 @@ public class K6ClientCodegen extends DefaultCodegen implements CodegenConfig { name = "_u"; } - // if it's all uppper case, do nothing + // if it's all upper case, do nothing if (name.matches("^[A-Z_]*$")) { return name; } diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/KotlinClientCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/KotlinClientCodegen.java index 18609546f8f..39e2d1cfac8 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/KotlinClientCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/KotlinClientCodegen.java @@ -191,7 +191,7 @@ public class KotlinClientCodegen extends AbstractKotlinCodegen { CliOption requestDateConverter = new CliOption(REQUEST_DATE_CONVERTER, "JVM-Option. Defines in how to handle date-time objects that are used for a request (as query or parameter)"); Map requestDateConverterOptions = new HashMap<>(); - requestDateConverterOptions.put(RequestDateConverter.TO_JSON.value, "[DEFAULT] Date formater option using a json converter."); + requestDateConverterOptions.put(RequestDateConverter.TO_JSON.value, "[DEFAULT] Date formatter option using a json converter."); requestDateConverterOptions.put(RequestDateConverter.TO_STRING.value, "Use the 'toString'-method of the date-time object to retrieve the related string representation."); requestDateConverter.setEnum(requestDateConverterOptions); requestDateConverter.setDefault(this.requestDateConverter); diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/KtormSchemaCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/KtormSchemaCodegen.java index 043b4d64cc4..b3036c93ff0 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/KtormSchemaCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/KtormSchemaCodegen.java @@ -640,8 +640,8 @@ public class KtormSchemaCodegen extends AbstractKotlinCodegen { /** * Processes each model's property type arguments definitions * - * @param dataType the choosen sql type - * @param dataFormat the choosen sql format + * @param dataType the chosen sql type + * @param dataFormat the chosen sql format * @param min the minimum value, if specified, in the target type * @param max the maximum value, if specified, in the target type * @param columnDefinition resulting column definition dictionary @@ -1171,7 +1171,7 @@ public class KtormSchemaCodegen extends AbstractKotlinCodegen { } /** - * Sets primary key naming convenion + * Sets primary key naming convention * * @param name name */ @@ -1180,7 +1180,7 @@ public class KtormSchemaCodegen extends AbstractKotlinCodegen { } /** - * Returns primary key naming convenion + * Returns primary key naming convention * * @return name */ @@ -1189,7 +1189,7 @@ public class KtormSchemaCodegen extends AbstractKotlinCodegen { } /** - * Sets primary key naming convenion + * Sets primary key naming convention * * @param enable enable this option */ @@ -1198,7 +1198,7 @@ public class KtormSchemaCodegen extends AbstractKotlinCodegen { } /** - * Returns primary key naming convenion + * Returns primary key naming convention * * @return is enabled */ diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/LuaClientCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/LuaClientCodegen.java index 41aae956c97..40f2cb23c05 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/LuaClientCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/LuaClientCodegen.java @@ -238,7 +238,7 @@ public class LuaClientCodegen extends DefaultCodegen implements CodegenConfig { // replace - with _ e.g. created-at => created_at name = sanitizeName(name.replaceAll("-", "_")); - // if it's all uppper case, do nothing + // if it's all upper case, do nothing if (name.matches("^[A-Z_]*$")) return name; diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/NimClientCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/NimClientCodegen.java index b5ee1575bd7..c81bccd718a 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/NimClientCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/NimClientCodegen.java @@ -311,7 +311,7 @@ public class NimClientCodegen extends DefaultCodegen implements CodegenConfig { name = "`" + name + "`"; } - // if it's all uppper case, do nothing + // if it's all upper case, do nothing if (name.matches("^[A-Z0-9_]*$")) { return name; } diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/OCamlClientCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/OCamlClientCodegen.java index a1a7463937b..be2fd9634f8 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/OCamlClientCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/OCamlClientCodegen.java @@ -176,7 +176,7 @@ public class OCamlClientCodegen extends DefaultCodegen implements CodegenConfig typeMapping.put("UUID", "string"); typeMapping.put("URI", "string"); typeMapping.put("set", "`Set"); - typeMapping.put("passsword", "string"); + typeMapping.put("password", "string"); typeMapping.put("DateTime", "string"); // supportedLibraries.put(CO_HTTP, "HTTP client: CoHttp."); diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/ObjcClientCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/ObjcClientCodegen.java index 7ced61d9f4f..562f1a5b3fd 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/ObjcClientCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/ObjcClientCodegen.java @@ -60,7 +60,7 @@ public class ObjcClientCodegen extends DefaultCodegen implements CodegenConfig { protected boolean generateCoreData = false; - protected Set advancedMapingTypes = new HashSet(); + protected Set advancedMappingTypes = new HashSet(); public ObjcClientCodegen() { super(); @@ -117,15 +117,15 @@ public class ObjcClientCodegen extends DefaultCodegen implements CodegenConfig { defaultIncludes.add("NSManagedObject"); defaultIncludes.add("NSData"); - advancedMapingTypes.add("NSDictionary"); - advancedMapingTypes.add("NSArray"); - advancedMapingTypes.add("NSMutableArray"); - advancedMapingTypes.add("NSMutableDictionary"); - advancedMapingTypes.add("NSObject"); - advancedMapingTypes.add("NSNumber"); - advancedMapingTypes.add("NSURL"); - advancedMapingTypes.add("NSString"); - advancedMapingTypes.add("NSDate"); + advancedMappingTypes.add("NSDictionary"); + advancedMappingTypes.add("NSArray"); + advancedMappingTypes.add("NSMutableArray"); + advancedMappingTypes.add("NSMutableDictionary"); + advancedMappingTypes.add("NSObject"); + advancedMappingTypes.add("NSNumber"); + advancedMappingTypes.add("NSURL"); + advancedMappingTypes.add("NSString"); + advancedMappingTypes.add("NSDate"); languageSpecificPrimitives.clear(); languageSpecificPrimitives.add("NSNumber"); @@ -380,7 +380,7 @@ public class ObjcClientCodegen extends DefaultCodegen implements CodegenConfig { // In this condition, type of Schema p is array of model, // return container type combine inner type with pointer, e.g. `NSArray*' else { - for (String sd : advancedMapingTypes) { + for (String sd : advancedMappingTypes) { if (innerTypeDeclaration.startsWith(sd)) { return getSchemaType(p) + "<" + innerTypeDeclaration + "*>*"; } @@ -398,7 +398,7 @@ public class ObjcClientCodegen extends DefaultCodegen implements CodegenConfig { if (languageSpecificPrimitives.contains(innerTypeDeclaration)) { return getSchemaType(p) + "*"; } else { - for (String s : advancedMapingTypes) { + for (String s : advancedMappingTypes) { if (innerTypeDeclaration.startsWith(s)) { return getSchemaType(p) + "*"; } @@ -455,7 +455,7 @@ public class ObjcClientCodegen extends DefaultCodegen implements CodegenConfig { * Convert input to proper model name according to ObjC style guide * without checking for reserved words * - * @param type Model anme + * @param type Model name * @return model Name in ObjC style guide */ public String toModelNameWithoutReservedWordCheck(String type) { diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/PerlClientCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/PerlClientCodegen.java index b41bb590b36..7af1f4e36b3 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/PerlClientCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/PerlClientCodegen.java @@ -347,7 +347,7 @@ public class PerlClientCodegen extends DefaultCodegen implements CodegenConfig { name = "model_" + name; // e.g. 200Response => Model200Response (after camelize) } - // add prefix/suffic to model name + // add prefix/suffix to model name if (!StringUtils.isEmpty(modelNamePrefix)) { name = modelNamePrefix + "_" + name; } diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/PhpLaravelServerCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/PhpLaravelServerCodegen.java index c0f8c77f0f0..5dbaec3bbdd 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/PhpLaravelServerCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/PhpLaravelServerCodegen.java @@ -248,7 +248,7 @@ public class PhpLaravelServerCodegen extends AbstractPhpCodegen { } if (op.hasProduces) { - // need to escape */* values because they breakes current mustaches + // need to escape */* values because they breaks current mustaches List> c = op.produces; for (Map mediaType : c) { if ("*/*".equals(mediaType.get("mediaType"))) { @@ -258,7 +258,7 @@ public class PhpLaravelServerCodegen extends AbstractPhpCodegen { } } - // sort the endpoints in ascending to avoid the route priority issure. + // sort the endpoints in ascending to avoid the route priority issue. // https://github.com/swagger-api/swagger-codegen/issues/2643 Collections.sort(operations, new Comparator() { @Override diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/PhpLumenServerCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/PhpLumenServerCodegen.java index 07145fafa42..5d68510e9ae 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/PhpLumenServerCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/PhpLumenServerCodegen.java @@ -175,7 +175,7 @@ public class PhpLumenServerCodegen extends AbstractPhpCodegen { op.httpMethod = op.httpMethod.toLowerCase(Locale.ROOT); } - // sort the endpoints in ascending to avoid the route priority issure. + // sort the endpoints in ascending to avoid the route priority issue. Collections.sort(operations, new Comparator() { @Override public int compare(CodegenOperation lhs, CodegenOperation rhs) { diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/PhpSlim4ServerCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/PhpSlim4ServerCodegen.java index 727822a0254..474ca3cb162 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/PhpSlim4ServerCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/PhpSlim4ServerCodegen.java @@ -301,7 +301,7 @@ public class PhpSlim4ServerCodegen extends AbstractPhpCodegen { // remove \t, \n, \r // replace \ with \\ // replace " with \" - // outter unescape to retain the original multi-byte characters + // outer unescape to retain the original multi-byte characters // finally escalate characters avoiding code injection input = super.escapeUnsafeCharacters( StringEscapeUtils.unescapeJava( diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/PhpSlimServerCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/PhpSlimServerCodegen.java index 96452fec5c7..cd955144fda 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/PhpSlimServerCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/PhpSlimServerCodegen.java @@ -233,7 +233,7 @@ public class PhpSlimServerCodegen extends AbstractPhpCodegen { // remove \t, \n, \r // replace \ with \\ // replace " with \" - // outter unescape to retain the original multi-byte characters + // outer unescape to retain the original multi-byte characters // finally escalate characters avoiding code injection input = super.escapeUnsafeCharacters( StringEscapeUtils.unescapeJava( diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/PhpSymfonyServerCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/PhpSymfonyServerCodegen.java index 74490df3422..705185cf220 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/PhpSymfonyServerCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/PhpSymfonyServerCodegen.java @@ -304,7 +304,7 @@ public class PhpSymfonyServerCodegen extends AbstractPhpCodegen implements Codeg additionalProperties.put("modelTestsPackage", modelTestsPackage); additionalProperties.put("controllerTestsPackage", controllerTestsPackage); - // make Symonfy-specific properties available + // make Symfony-specific properties available additionalProperties.put("bundleName", bundleName); additionalProperties.put("bundleClassName", bundleClassName); additionalProperties.put("bundleExtensionName", bundleExtensionName); diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/PlantumlDocumentationCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/PlantumlDocumentationCodegen.java index 1741ef18b4a..ad63034acbe 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/PlantumlDocumentationCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/PlantumlDocumentationCodegen.java @@ -206,13 +206,13 @@ public class PlantumlDocumentationCodegen extends DefaultCodegen implements Code @Override public String escapeQuotationMark(String input) { - // to surpress the warning message + // to suppress the warning message return input; } @Override public String escapeUnsafeCharacters(String input) { - // to surpress the warning message + // to suppress the warning message return input; } } diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/PowerShellClientCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/PowerShellClientCodegen.java index 97c3b260375..ac4c8a01b19 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/PowerShellClientCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/PowerShellClientCodegen.java @@ -97,7 +97,7 @@ public class PowerShellClientCodegen extends DefaultCodegen implements CodegenCo .stability(Stability.BETA) .build(); - outputFolder = "generated-code" + File.separator + "powershell-expiermental"; + outputFolder = "generated-code" + File.separator + "powershell-experimental"; modelTemplateFiles.put("model.mustache", ".ps1"); apiTemplateFiles.put("api.mustache", ".ps1"); modelTestTemplateFiles.put("model_test.mustache", ".ps1"); @@ -825,7 +825,7 @@ public class PowerShellClientCodegen extends DefaultCodegen implements CodegenCo // remove \t, \n, \r // replace \ with \\ // replace " with \" - // outter unescape to retain the original multi-byte characters + // outer unescape to retain the original multi-byte characters // finally escalate characters avoiding code injection return escapeUnsafeCharacters( StringEscapeUtils.unescapeJava( @@ -1061,7 +1061,7 @@ public class PowerShellClientCodegen extends DefaultCodegen implements CodegenCo } } - // check if return type is oneOf/anyeOf model + // check if return type is oneOf/anyOf model for (CodegenOperation op : operationList) { if (op.returnType != null) { // look up the model to see if it's anyOf/oneOf diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/PythonClientCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/PythonClientCodegen.java index 7c1fcbe17c0..f413e6f7235 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/PythonClientCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/PythonClientCodegen.java @@ -99,7 +99,7 @@ public class PythonClientCodegen extends PythonLegacyClientCodegen { languageSpecificPrimitives.add("none_type"); // this generator does not use SORT_PARAMS_BY_REQUIRED_FLAG - // this generator uses the following order for endpoint paramters and model properties + // this generator uses the following order for endpoint parameters and model properties // required params/props with no enum of length one // required params/props with enum of length one (which is used to set a default value as a python named arg value) // optional params/props with **kwargs in python @@ -384,7 +384,7 @@ public class PythonClientCodegen extends PythonLegacyClientCodegen { * because they are not used we do not write them * - fix the model imports, go from model name to the full import string with toModelImport + globalImportFixer * - * @param objs a map going from the model name to a object hoding the model info + * @param objs a map going from the model name to an object holding the model info * @return the updated objs */ @Override @@ -494,7 +494,7 @@ public class PythonClientCodegen extends PythonLegacyClientCodegen { * We have a custom version of this method to produce links to models when they are * primitive type (not map, not array, not object) and include validations or are enums * - * @param body requesst body + * @param body request body * @param imports import collection * @param bodyParameterName body parameter name * @return the resultant CodegenParameter @@ -919,7 +919,7 @@ public class PythonClientCodegen extends PythonLegacyClientCodegen { public String getTypeDeclaration(Schema p) { // this is used to set dataType, which defines a python tuple of classes // in Python we will wrap this in () to make it a tuple but here we - // will omit the parens so the generated documentaion will not include + // will omit the parens so the generated documentation will not include // them return getTypeString(p, "", "", null); } @@ -1042,12 +1042,12 @@ public class PythonClientCodegen extends PythonLegacyClientCodegen { * @param schema the schema that we need an example for * @param objExample the example that applies to this schema, for now only string example are used * @param indentationLevel integer indentation level that we are currently at - * we assume the indentaion amount is 4 spaces times this integer + * we assume the indentation amount is 4 spaces times this integer * @param prefix the string prefix that we will use when assigning an example for this line * this is used when setting key: value, pairs "key: " is the prefix * and this is used when setting properties like some_property='some_property_example' - * @param exampleLine this is the current line that we are generatign an example for, starts at 0 - * we don't indentin the 0th line because using the example value looks like: + * @param exampleLine this is the current line that we are generating an example for, starts at 0 + * we don't indent the 0th line because using the example value looks like: * prop = ModelName( line 0 * some_property='some_property_example' line 1 * ) line 2 @@ -1299,8 +1299,8 @@ public class PythonClientCodegen extends PythonLegacyClientCodegen { CodegenProperty cp = new CodegenProperty(); cp.setName(disc.getPropertyName()); cp.setExample(discPropNameValue); - // Adds schema to seenSchemas before running example model function. romoves schema after running - // the function. It also doesnt keep track of any schemas within the ObjectModel. + // Adds schema to seenSchemas before running example model function. removes schema after running + // the function. It also doesn't keep track of any schemas within the ObjectModel. Set newSeenSchemas = new HashSet<>(seenSchemas); newSeenSchemas.add(schema); String exampleForObjectModel = exampleForObjectModel(modelSchema, fullPrefix, closeChars, cp, indentationLevel, exampleLine, closingIndentation, newSeenSchemas); diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/RClientCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/RClientCodegen.java index 5b34726bcbe..41cd2fea381 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/RClientCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/RClientCodegen.java @@ -262,7 +262,7 @@ public class RClientCodegen extends DefaultCodegen implements CodegenConfig { // replace - with _ e.g. created-at => created_at name = sanitizeName(name.replaceAll("-", "_")); - // if it's all uppper case, do nothing + // if it's all upper case, do nothing if (name.matches("^[A-Z_]*$")) return name; diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/RubyClientCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/RubyClientCodegen.java index 23f8fcd7cf5..95e874ca03f 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/RubyClientCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/RubyClientCodegen.java @@ -291,7 +291,7 @@ public class RubyClientCodegen extends AbstractRubyCodegen { * * @param gemName Ruby gem name * - * @return Ruby module naame + * @return Ruby module name */ @SuppressWarnings("static-method") public String generateModuleName(String gemName) { @@ -301,7 +301,7 @@ public class RubyClientCodegen extends AbstractRubyCodegen { /** * Generate Ruby gem name from the module name, e.g. use "openapi_client" for "OpenAPIClient". * - * @param moduleName Ruby module naame + * @param moduleName Ruby module name * * @return Ruby gem name */ diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/RubyOnRailsServerCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/RubyOnRailsServerCodegen.java index adcb79dc2f9..576216bbf01 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/RubyOnRailsServerCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/RubyOnRailsServerCodegen.java @@ -136,7 +136,7 @@ public class RubyOnRailsServerCodegen extends AbstractRubyCodegen { } else if ("mysql".equals(databaseAdapter)) { additionalProperties.put("isDBMySQL", Boolean.TRUE); } else { - LOGGER.warn("Unknown database {}. Defaul to 'sqlite'.", databaseAdapter); + LOGGER.warn("Unknown database {}. Default to 'sqlite'.", databaseAdapter); additionalProperties.put("isDBSQLite", Boolean.TRUE); } diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/RustClientCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/RustClientCodegen.java index 2d9e445838b..ef4757b18e8 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/RustClientCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/RustClientCodegen.java @@ -361,7 +361,7 @@ public class RustClientCodegen extends DefaultCodegen implements CodegenConfig { // replace - with _ e.g. created-at => created_at name = sanitizeName(name.replaceAll("-", "_")); - // if it's all uppper case, do nothing + // if it's all upper case, do nothing if (name.matches("^[A-Z_]*$")) return name; diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/ScalaFinchServerCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/ScalaFinchServerCodegen.java index 963e81a4cf4..6194ba802a0 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/ScalaFinchServerCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/ScalaFinchServerCodegen.java @@ -453,7 +453,7 @@ public class ScalaFinchServerCodegen extends DefaultCodegen implements CodegenCo } p.vendorExtensions.put("x-codegen-normalized-input-type", toInputParameter(p)); } else { - //Path paremeters are handled in generateScalaPath() + //Path parameters are handled in generateScalaPath() p.vendorExtensions.put("x-codegen-normalized-input-type", p.dataType); } if (p.vendorExtensions.get("x-codegen-normalized-path-type") != null) { 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 0ca30c31eac..e19eb0c5b22 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 @@ -345,7 +345,7 @@ public class ScalaGatlingCodegen extends AbstractScalaCodegen implements Codegen /** * Creates all the necessary openapi vendor extensions and feeder files for gatling * - * @param operation OpoenAPI Operation + * @param operation OpenAPI Operation * @param parameters OpenAPI Parameters * @param parameterType OpenAPI Parameter Type */ diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/ScalazClientCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/ScalazClientCodegen.java index a58deedc643..8f3971bd739 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/ScalazClientCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/ScalazClientCodegen.java @@ -86,7 +86,7 @@ public class ScalazClientCodegen extends AbstractScalaCodegen implements Codegen additionalProperties.put("apiPackage", apiPackage); - // Explicitly defining bulid.properties helps guarantee our sample remains compilable against the embedded target 2.11 scala + // Explicitly defining build.properties helps guarantee our sample remains compilable against the embedded target 2.11 scala supportingFiles.add(new SupportingFile("build.properties.mustache", "", "project/build.properties")); supportingFiles.add(new SupportingFile("build.sbt.mustache", "", "build.sbt")); supportingFiles.add(new SupportingFile("dateTimeCodecs.mustache", (sourceFolder + File.separator + apiPackage).replace(".", File.separator), "DateTimeCodecs.scala")); 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 fa94bcfa29b..a3c9efaab5e 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 @@ -179,7 +179,7 @@ public class StaticHtml2Generator extends DefaultCodegen implements CodegenConfi additionalProperties.put("jsProjectName", jsProjectName); additionalProperties.put("jsModuleName", jsModuleName); - preparHtmlForGlobalDescription(openAPI); + prepareHtmlForGlobalDescription(openAPI); Map vendorExtensions = openAPI.getExtensions(); if (vendorExtensions != null) { @@ -219,7 +219,7 @@ public class StaticHtml2Generator extends DefaultCodegen implements CodegenConfi * * @param openAPI The base object containing the global description through "Info" class */ - private void preparHtmlForGlobalDescription(OpenAPI openAPI) { + private void prepareHtmlForGlobalDescription(OpenAPI openAPI) { if (openAPI.getInfo() == null) { return; } @@ -237,7 +237,7 @@ public class StaticHtml2Generator extends DefaultCodegen implements CodegenConfi * Format to HTML the enums contained in every operations * * @param parameterList The whole parameters contained in one operation - * @return String | Html formated enum + * @return String | Html formatted enum */ public List postProcessParameterEnum(List parameterList) { String enumFormatted = ""; diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/Swift4Codegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/Swift4Codegen.java index 5992ab51560..c3efed94454 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/Swift4Codegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/Swift4Codegen.java @@ -691,7 +691,7 @@ public class Swift4Codegen extends DefaultCodegen implements CodegenConfig { // sanitize name name = sanitizeName(name); - // if it's all uppper case, do nothing + // if it's all upper case, do nothing if (name.matches("^[A-Z_]*$")) { return name; } @@ -716,7 +716,7 @@ public class Swift4Codegen extends DefaultCodegen implements CodegenConfig { // replace - with _ e.g. created-at => created_at name = name.replaceAll("-", "_"); - // if it's all uppper case, do nothing + // if it's all upper case, do nothing if (name.matches("^[A-Z_]*$")) { return name; } diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/Swift5ClientCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/Swift5ClientCodegen.java index 4b109700254..03c015b1f92 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/Swift5ClientCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/Swift5ClientCodegen.java @@ -802,7 +802,7 @@ public class Swift5ClientCodegen extends DefaultCodegen implements CodegenConfig // sanitize name name = sanitizeName(name); - // if it's all uppper case, do nothing + // if it's all upper case, do nothing if (name.matches("^[A-Z_]*$")) { return name; } @@ -832,7 +832,7 @@ public class Swift5ClientCodegen extends DefaultCodegen implements CodegenConfig // replace - with _ e.g. created-at => created_at name = name.replaceAll("-", "_"); - // if it's all uppper case, do nothing + // if it's all upper case, do nothing if (name.matches("^[A-Z_]*$")) { return name; } diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/TypeScriptAureliaClientCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/TypeScriptAureliaClientCodegen.java index c879a6bb541..544af6f3c68 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/TypeScriptAureliaClientCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/TypeScriptAureliaClientCodegen.java @@ -117,7 +117,7 @@ public class TypeScriptAureliaClientCodegen extends AbstractTypeScriptClientCode CodegenModel cm = (CodegenModel) mo.get("model"); cm.imports = new TreeSet(cm.imports); for (CodegenProperty var : cm.vars) { - // name enum with model name, e.g. StatuEnum => PetStatusEnum + // name enum with model name, e.g. StatusEnum => PetStatusEnum if (Boolean.TRUE.equals(var.isEnum)) { var.datatypeWithEnum = var.datatypeWithEnum.replace(var.enumName, cm.classname + var.enumName); var.enumName = cm.classname + var.enumName; diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/TypeScriptClientCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/TypeScriptClientCodegen.java index 38c009f47b3..0d0dbeb0e6c 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/TypeScriptClientCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/TypeScriptClientCodegen.java @@ -385,7 +385,7 @@ public class TypeScriptClientCodegen extends DefaultCodegen implements CodegenCo name = "_u"; } - // if it's all uppper case, do nothing + // if it's all upper case, do nothing if (name.matches("^[A-Z_]*$")) { return name; } @@ -430,7 +430,7 @@ public class TypeScriptClientCodegen extends DefaultCodegen implements CodegenCo sanName = camelize(sanName); // model name cannot use reserved keyword, e.g. return - // this is unlikely to happen, because we have just camelized the name, while reserved words are usually all lowcase + // this is unlikely to happen, because we have just camelized the name, while reserved words are usually all lowercase if (isReservedWord(sanName)) { String modelName = safePrefix + sanName; LOGGER.warn("{} (reserved word) cannot be used as model name. Renamed to {}", sanName, modelName); @@ -1032,12 +1032,12 @@ public class TypeScriptClientCodegen extends DefaultCodegen implements CodegenCo * @param schema the schema that we need an example for * @param objExample the example that applies to this schema, for now only string example are used * @param indentationLevel integer indentation level that we are currently at - * we assume the indentaion amount is 2 spaces times this integer + * we assume the indentation amount is 2 spaces times this integer * @param prefix the string prefix that we will use when assigning an example for this line * this is used when setting key: value, pairs "key: " is the prefix * and this is used when setting properties like some_property='some_property_example' - * @param exampleLine this is the current line that we are generatign an example for, starts at 0 - * we don't indentin the 0th line because using the example value looks like: + * @param exampleLine this is the current line that we are generating an example for, starts at 0 + * we don't indent the 0th line because using the example value looks like: * prop = ModelName( line 0 * some_property='some_property_example' line 1 * ) line 2 diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/TypeScriptFetchClientCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/TypeScriptFetchClientCodegen.java index c32bdcbb6cc..471ac31500f 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/TypeScriptFetchClientCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/TypeScriptFetchClientCodegen.java @@ -572,7 +572,7 @@ public class TypeScriptFetchClientCodegen extends AbstractTypeScriptClientCodege supportingFiles.add(new SupportingFile("models.index.mustache", modelPackage().replace('.', File.separatorChar), "index.ts")); } - this.addOperationModelImportInfomation(operations); + this.addOperationModelImportInformation(operations); this.updateOperationParameterForEnum(operations); if (this.getSagasAndRecords()) { this.updateOperationParameterForSagaAndRecords(operations); @@ -746,9 +746,9 @@ public class TypeScriptFetchClientCodegen extends AbstractTypeScriptClientCodege } } - private void addOperationModelImportInfomation(Map operations) { - // This method will add extra infomation to the operations.imports array. - // The api template uses this infomation to import all the required + private void addOperationModelImportInformation(Map operations) { + // This method will add extra information to the operations.imports array. + // The api template uses this information to import all the required // models for a given operation. List> imports = (List>) operations.get("imports"); List existingRecordClassNames = new ArrayList(); @@ -779,7 +779,7 @@ public class TypeScriptFetchClientCodegen extends AbstractTypeScriptClientCodege } private void updateOperationParameterForEnum(Map operations) { - // This method will add extra infomation as to whether or not we have enums and + // This method will add extra information as to whether or not we have enums and // update their names with the operation.id prefixed. // It will also set the uniqueId status if provided. Map _operations = (Map) operations.get("operations"); @@ -801,7 +801,7 @@ public class TypeScriptFetchClientCodegen extends AbstractTypeScriptClientCodege } private void updateOperationParameterForSagaAndRecords(Map operations) { - // This method will add extra infomation as to whether or not we have enums and + // This method will add extra information as to whether or not we have enums and // update their names with the operation.id prefixed. // It will also set the uniqueId status if provided. Map _operations = (Map) operations.get("operations"); @@ -842,8 +842,8 @@ public class TypeScriptFetchClientCodegen extends AbstractTypeScriptClientCodege } private void addOperationObjectResponseInformation(Map operations) { - // This method will modify the infomation on the operations' return type. - // The api template uses this infomation to know when to return a text + // This method will modify the information on the operations' return type. + // The api template uses this information to know when to return a text // response for a given simple response operation. Map _operations = (Map) operations.get("operations"); List operationList = (List) _operations.get("operation"); diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/TypeScriptInversifyClientCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/TypeScriptInversifyClientCodegen.java index b4b05924917..378facf89f0 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/TypeScriptInversifyClientCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/TypeScriptInversifyClientCodegen.java @@ -91,7 +91,7 @@ public class TypeScriptInversifyClientCodegen extends AbstractTypeScriptClientCo @Override public void processOpts() { super.processOpts(); - // HttpCliens + // HttpClient supportingFiles.add(new SupportingFile("IHttpClient.mustache", getIndexDirectory(), "IHttpClient.ts")); supportingFiles.add(new SupportingFile("IAPIConfiguration.mustache", getIndexDirectory(), "IAPIConfiguration.ts")); supportingFiles.add(new SupportingFile("HttpClient.mustache", getIndexDirectory(), "HttpClient.ts")); diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/WsdlSchemaCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/WsdlSchemaCodegen.java index 7bee8aee42a..49868be9971 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/WsdlSchemaCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/WsdlSchemaCodegen.java @@ -131,7 +131,7 @@ public class WsdlSchemaCodegen extends DefaultCodegen implements CodegenConfig { paramVendorExtensions.put("x-param-has-defaultvalue", true); } - // check if param has a minimum or maximum number or lenght + // check if param has a minimum or maximum number or length if (param.minimum != null || param.maximum != null || param.minLength != null @@ -223,7 +223,7 @@ public class WsdlSchemaCodegen extends DefaultCodegen implements CodegenConfig { propertyVendorExtensions.put("x-prop-has-defaultvalue", true); } - // check if model property has a minimum or maximum number or lenght + // check if model property has a minimum or maximum number or length if (var.minimum != null || var.maximum != null || var.minLength != null diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/templating/MustacheEngineAdapter.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/templating/MustacheEngineAdapter.java index 12ae4345b93..cc7d2a8b98d 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/templating/MustacheEngineAdapter.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/templating/MustacheEngineAdapter.java @@ -53,7 +53,7 @@ public class MustacheEngineAdapter implements TemplatingEngineAdapter { * @param bundle The map of values to pass to the template * @param templateFile The name of the template (e.g. model.mustache ) * @return the processed template result - * @throws IOException an error ocurred in the template processing + * @throws IOException an error occurred in the template processing */ @Override public String compileTemplate(TemplatingExecutor executor, Map bundle, String templateFile) throws IOException { diff --git a/modules/openapi-generator/src/main/resources/C-libcurl/CMakeLists.txt.mustache b/modules/openapi-generator/src/main/resources/C-libcurl/CMakeLists.txt.mustache index d71e28517c5..8de6a32971d 100644 --- a/modules/openapi-generator/src/main/resources/C-libcurl/CMakeLists.txt.mustache +++ b/modules/openapi-generator/src/main/resources/C-libcurl/CMakeLists.txt.mustache @@ -124,6 +124,6 @@ set(HDRS "") # string( REPLACE ".c" "" EXECUTABLE_FILE ${FILE_NAME_ONLY}) # # Add executable for every source file in SRCS # add_executable(unit-${EXECUTABLE_FILE} ${SOURCE_FILE}) -# # Link above created library to executable and dependent libary curl +# # Link above created library to executable and dependent library curl # target_link_libraries(unit-${EXECUTABLE_FILE} ${CURL_LIBRARIES} ${pkgName} ) #endforeach(SOURCE_FILE ${SRCS}) diff --git a/modules/openapi-generator/src/main/resources/C-libcurl/README.md.mustache b/modules/openapi-generator/src/main/resources/C-libcurl/README.md.mustache index 740f9b4c20d..9f67b537565 100644 --- a/modules/openapi-generator/src/main/resources/C-libcurl/README.md.mustache +++ b/modules/openapi-generator/src/main/resources/C-libcurl/README.md.mustache @@ -45,7 +45,7 @@ This will compile the generated code and create a library in the build folder wh mkdir build cd build // To install library to specific location, use following commands -cmake -DCMAKE_INSTALL_PREFIX=/pathtolocaiton .. +cmake -DCMAKE_INSTALL_PREFIX=/pathtolocation .. // for normal install use following command cmake .. make @@ -55,14 +55,14 @@ sudo make install Considering the test/source code which uses the API is written in main.c(respective api include is written and all objects necessary are defined and created) To compile main.c(considering the file is present in build folder) use following command --L - locaiton of the library(not required if cmake with normal installation is performed) +-L - location of the library(not required if cmake with normal installation is performed) -l library name ```bash gcc main.c -L. -l{{projectName}} -o main ``` Once compiled, you can run it with ``` ./main ``` -Note: You don't need to specify includes for models and include folder seperately as they are path linked. You just have to import the api.h file in your code, the include linking will work. +Note: You don't need to specify includes for models and include folder separately as they are path linked. You just have to import the api.h file in your code, the include linking will work. ## Documentation for API Endpoints diff --git a/modules/openapi-generator/src/main/resources/C-libcurl/api-body.mustache b/modules/openapi-generator/src/main/resources/C-libcurl/api-body.mustache index 49c73f86b91..9d73ff5591a 100644 --- a/modules/openapi-generator/src/main/resources/C-libcurl/api-body.mustache +++ b/modules/openapi-generator/src/main/resources/C-libcurl/api-body.mustache @@ -333,12 +333,12 @@ end: {{#returnType}} {{#returnTypeIsPrimitive}} {{#returnSimpleType}} - //primitive reutrn type simple + //primitive return type simple {{returnType}}* elementToReturn = strdup(({{returnType}}*)apiClient->dataReceived); {{/returnSimpleType}} {{^returnSimpleType}} - //primitive reutrn type not simple + //primitive return type not simple cJSON *{{paramName}}localVarJSON = cJSON_Parse(apiClient->dataReceived); cJSON *{{{paramName}}}VarJSON; list_t *elementToReturn = list_create(); diff --git a/modules/openapi-generator/src/main/resources/C-libcurl/cJSON.c.mustache b/modules/openapi-generator/src/main/resources/C-libcurl/cJSON.c.mustache index cbdec4132f1..2139b5efd93 100644 --- a/modules/openapi-generator/src/main/resources/C-libcurl/cJSON.c.mustache +++ b/modules/openapi-generator/src/main/resources/C-libcurl/cJSON.c.mustache @@ -493,7 +493,7 @@ static cJSON_bool print_number(const cJSON * const item, printbuffer * const out } else { - /* Try 15 decimal places of precision to avoid nonsignificant nonzero digits */ + /* Try 15 decimal places of precision to avoid insignificant nonzero digits */ length = sprintf((char*)number_buffer, "%1.15g", d); /* Check whether the original double can be recovered */ @@ -504,7 +504,7 @@ static cJSON_bool print_number(const cJSON * const item, printbuffer * const out } } - /* sprintf failed or buffer overrun occured */ + /* sprintf failed or buffer overrun occurred */ if ((length < 0) || (length > (int)(sizeof(number_buffer) - 1))) { return false; @@ -1555,7 +1555,7 @@ static cJSON_bool parse_object(cJSON * const item, parse_buffer * const input_bu buffer_skip_whitespace(input_buffer); if (!parse_string(current_item, input_buffer)) { - goto fail; /* faile to parse name */ + goto fail; /* fail to parse name */ } buffer_skip_whitespace(input_buffer); diff --git a/modules/openapi-generator/src/main/resources/C-libcurl/cJSON.h.mustache b/modules/openapi-generator/src/main/resources/C-libcurl/cJSON.h.mustache index 6e0bde93204..ab0d0fbaced 100644 --- a/modules/openapi-generator/src/main/resources/C-libcurl/cJSON.h.mustache +++ b/modules/openapi-generator/src/main/resources/C-libcurl/cJSON.h.mustache @@ -195,7 +195,7 @@ CJSON_PUBLIC(cJSON *) cJSON_CreateObject(void); /* Create a string where valuestring references a string so * it will not be freed by cJSON_Delete */ CJSON_PUBLIC(cJSON *) cJSON_CreateStringReference(const char *string); -/* Create an object/arrray that only references it's elements so +/* Create an object/array that only references it's elements so * they will not be freed by cJSON_Delete */ CJSON_PUBLIC(cJSON *) cJSON_CreateObjectReference(const cJSON *child); CJSON_PUBLIC(cJSON *) cJSON_CreateArrayReference(const cJSON *child); @@ -217,7 +217,7 @@ CJSON_PUBLIC(void) cJSON_AddItemToObjectCS(cJSON *object, const char *string, cJ CJSON_PUBLIC(void) cJSON_AddItemReferenceToArray(cJSON *array, cJSON *item); CJSON_PUBLIC(void) cJSON_AddItemReferenceToObject(cJSON *object, const char *string, cJSON *item); -/* Remove/Detatch items from Arrays/Objects. */ +/* Remove/Detach items from Arrays/Objects. */ CJSON_PUBLIC(cJSON *) cJSON_DetachItemViaPointer(cJSON *parent, cJSON * const item); CJSON_PUBLIC(cJSON *) cJSON_DetachItemFromArray(cJSON *array, int which); CJSON_PUBLIC(void) cJSON_DeleteItemFromArray(cJSON *array, int which); diff --git a/modules/openapi-generator/src/main/resources/C-libcurl/model_user_test.mustache b/modules/openapi-generator/src/main/resources/C-libcurl/model_user_test.mustache index 70781593563..c2ec92ee524 100644 --- a/modules/openapi-generator/src/main/resources/C-libcurl/model_user_test.mustache +++ b/modules/openapi-generator/src/main/resources/C-libcurl/model_user_test.mustache @@ -26,16 +26,16 @@ char *dataToPrint = cJSON_Print(JSONNODE); printf("Created User is: \n%s\n",dataToPrint); -user_t *pasrsedUser = user_parseFromJSON( dataToPrint); +user_t *parsedUser = user_parseFromJSON( dataToPrint); -cJSON *fromJSON = user_convertToJSON(pasrsedUser); +cJSON *fromJSON = user_convertToJSON(parsedUser); char *dataToPrintFromJSON = cJSON_Print(fromJSON); printf("Parsed User From JSON is: \n%s\n",dataToPrintFromJSON); user_free(newuser); -user_free(pasrsedUser); +user_free(parsedUser); cJSON_Delete(JSONNODE); cJSON_Delete(fromJSON); diff --git a/modules/openapi-generator/src/main/resources/Eiffel/api_client.mustache b/modules/openapi-generator/src/main/resources/Eiffel/api_client.mustache index 42899ca28c6..6bfe00c620d 100644 --- a/modules/openapi-generator/src/main/resources/Eiffel/api_client.mustache +++ b/modules/openapi-generator/src/main/resources/Eiffel/api_client.mustache @@ -34,7 +34,7 @@ feature -- Access -- base path. authentications: STRING_TABLE [AUTHENTICATION] - -- autentication table. + -- authentication table. feature -- Status Report @@ -124,7 +124,7 @@ feature -- Helper: OAuth Authentication feature -- Query Parameter Helpers parameter_to_tuple (a_collection_format, a_name: STRING; a_value: detachable ANY): LIST [TUPLE [name: STRING; value: STRING]] - -- A list of tuples with name and valule. + -- A list of tuples with name and value. -- collectionFormat collection format (e.g. csv, tsv) -- name Name -- value Value @@ -186,7 +186,7 @@ feature -- Query Parameter Helpers parameter_to_string (a_param: detachable ANY): STRING - -- return the string representation of the givien object `a_param'. + -- return the string representation of the given object `a_param'. do if a_param = Void then Result := "" @@ -233,7 +233,7 @@ feature -- Query Parameter Helpers -- dateTime string date-time As defined by date-time - RFC3339 Result := date_time.date.debug_output elseif attached {STRING_32} a_param as str_32 then - -- TODO check if this is a good convertion. + -- TODO check if this is a good conversion. Result := str_32.to_string_8 elseif attached {STRING_8} a_param as str_8 then Result := str_8 @@ -357,7 +357,7 @@ feature -- HTTP client: call api elseif l_content_type.is_case_insensitive_equal ("application/x-www-form-urlencoded") then add_form_data (l_context_executor, a_request.form_params) elseif l_content_type.is_case_insensitive_equal ("multipart/form-data") then - -- add_mulipart_data (l_context_executor, a_form_params, l_content_type) + -- add_multipart_data (l_context_executor, a_form_params, l_content_type) -- here we need a way to identify files. elseif a_request.body = Void then if a_method.is_case_insensitive_equal ("DELETE") then @@ -394,7 +394,7 @@ feature -- HTTP client: call api build_url (a_path: STRING_8; a_query_params: LIST [TUPLE [name: STRING; value: STRING]]): STRING_8 - -- Build a relatative url to `base_path' with `a_path' and a list of + -- Build a relative url to `base_path' with `a_path' and a list of -- query parameters `a_query_params'. local l_query: STRING diff --git a/modules/openapi-generator/src/main/resources/Eiffel/framework/auth/http_basic_auth.mustache b/modules/openapi-generator/src/main/resources/Eiffel/framework/auth/http_basic_auth.mustache index f3f6c126e63..953db136cd8 100644 --- a/modules/openapi-generator/src/main/resources/Eiffel/framework/auth/http_basic_auth.mustache +++ b/modules/openapi-generator/src/main/resources/Eiffel/framework/auth/http_basic_auth.mustache @@ -42,7 +42,7 @@ feature -- Access attached user_name as l_username and then attached password as l_password then - -- TODO check if this convertion it's ok. + -- TODO check if this conversion it's ok. a_header_params.force ("Basic " + (create {BASE64}).encoded_string (l_username.to_string_8 + ":" + l_password.to_string_8) , "Authorization") end end diff --git a/modules/openapi-generator/src/main/resources/Eiffel/framework/auth/oauth.mustache b/modules/openapi-generator/src/main/resources/Eiffel/framework/auth/oauth.mustache index 36b37543919..8c7f866c07c 100644 --- a/modules/openapi-generator/src/main/resources/Eiffel/framework/auth/oauth.mustache +++ b/modules/openapi-generator/src/main/resources/Eiffel/framework/auth/oauth.mustache @@ -24,7 +24,7 @@ feature -- Change Element -- . do if attached access_token as l_access_token then - -- TODO check if this convertion is ok. + -- TODO check if this conversion is ok. a_header_params.force ("Bearer " + l_access_token.to_string_8,"Authorization" ) end end diff --git a/modules/openapi-generator/src/main/resources/Eiffel/framework/serialization/api_deserializer.mustache b/modules/openapi-generator/src/main/resources/Eiffel/framework/serialization/api_deserializer.mustache index ada38d2c170..69cfbc5ee55 100644 --- a/modules/openapi-generator/src/main/resources/Eiffel/framework/serialization/api_deserializer.mustache +++ b/modules/openapi-generator/src/main/resources/Eiffel/framework/serialization/api_deserializer.mustache @@ -6,7 +6,7 @@ class feature -- Access deserializer (f: FUNCTION [TUPLE [content_type:READABLE_STRING_8; body:READABLE_STRING_8; type:TYPE [detachable ANY]], detachable ANY]; a_content_type: READABLE_STRING_8; a_body: READABLE_STRING_8; a_type:TYPE [detachable ANY]): detachable ANY - -- From a given response deserialize body `a_body' with conent_type `a_content_type' to a target object of type `a_type'. + -- From a given response deserialize body `a_body' with content_type `a_content_type' to a target object of type `a_type'. do Result := f.item ([a_content_type, a_body, a_type]) end diff --git a/modules/openapi-generator/src/main/resources/Eiffel/framework/serialization/api_json_custom_deserializer.mustache b/modules/openapi-generator/src/main/resources/Eiffel/framework/serialization/api_json_custom_deserializer.mustache index b8db90a81a5..274d0be2fbf 100644 --- a/modules/openapi-generator/src/main/resources/Eiffel/framework/serialization/api_json_custom_deserializer.mustache +++ b/modules/openapi-generator/src/main/resources/Eiffel/framework/serialization/api_json_custom_deserializer.mustache @@ -12,7 +12,7 @@ note conversion: First go to the feature from_json_to_`model' and then start to set - the object attibures as follow. + the object attributes as follow. STRING, INTEGER, etc use the following pattern diff --git a/modules/openapi-generator/src/main/resources/Eiffel/framework/serialization/api_serializer.mustache b/modules/openapi-generator/src/main/resources/Eiffel/framework/serialization/api_serializer.mustache index 070c9b6d8d4..2293d756282 100644 --- a/modules/openapi-generator/src/main/resources/Eiffel/framework/serialization/api_serializer.mustache +++ b/modules/openapi-generator/src/main/resources/Eiffel/framework/serialization/api_serializer.mustache @@ -9,7 +9,7 @@ feature -- Access serializer (f: FUNCTION [TUPLE [content_type:READABLE_STRING_8; type:ANY],READABLE_STRING_8]; a_content_type: READABLE_STRING_8; a_type: ANY): STRING_8 -- Serialize an object of type `a_type' using the content type `a_content_type'. do - -- TODO check if this convertion it's ok. + -- TODO check if this conversion it's ok. Result := f.item ([a_content_type, a_type]).to_string_8 end end diff --git a/modules/openapi-generator/src/main/resources/Eiffel/framework/serialization/json_basic_reflector_deserializer.mustache b/modules/openapi-generator/src/main/resources/Eiffel/framework/serialization/json_basic_reflector_deserializer.mustache index ebd05951b38..b11c6e819c7 100644 --- a/modules/openapi-generator/src/main/resources/Eiffel/framework/serialization/json_basic_reflector_deserializer.mustache +++ b/modules/openapi-generator/src/main/resources/Eiffel/framework/serialization/json_basic_reflector_deserializer.mustache @@ -282,7 +282,7 @@ feature {NONE} -- Helpers: Object l_field_static_types: like fields_infos do if Result = Void then - -- Updated to use the Type info insted of the type_field in JSON. + -- Updated to use the Type info instead of the type_field in JSON. -- fn.same_string ({JSON_REFLECTOR_SERIALIZER}.type_field_name if attached a_type then l_type_name := a_type.name.to_string_8 diff --git a/modules/openapi-generator/src/main/resources/Java/ServerConfiguration.mustache b/modules/openapi-generator/src/main/resources/Java/ServerConfiguration.mustache index f976c542b19..e21b63391e2 100644 --- a/modules/openapi-generator/src/main/resources/Java/ServerConfiguration.mustache +++ b/modules/openapi-generator/src/main/resources/Java/ServerConfiguration.mustache @@ -12,7 +12,7 @@ public class ServerConfiguration { /** * @param URL A URL to the target host. - * @param description A describtion of the host designated by the URL. + * @param description A description of the host designated by the URL. * @param variables A map between a variable name and its value. The value is used for substitution in the server's URL template. */ public ServerConfiguration(String URL, String description, Map variables) { diff --git a/modules/openapi-generator/src/main/resources/Java/git_push.sh.mustache b/modules/openapi-generator/src/main/resources/Java/git_push.sh.mustache index f0bed5bd841..305f9c115ce 100755 --- a/modules/openapi-generator/src/main/resources/Java/git_push.sh.mustache +++ b/modules/openapi-generator/src/main/resources/Java/git_push.sh.mustache @@ -1,7 +1,7 @@ #!/bin/sh # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" git_user_id=$1 git_repo_id=$2 diff --git a/modules/openapi-generator/src/main/resources/Java/libraries/apache/ApiClient.mustache b/modules/openapi-generator/src/main/resources/Java/libraries/apache/ApiClient.mustache index 122ad912c31..3115aafeb0d 100644 --- a/modules/openapi-generator/src/main/resources/Java/libraries/apache/ApiClient.mustache +++ b/modules/openapi-generator/src/main/resources/Java/libraries/apache/ApiClient.mustache @@ -286,7 +286,7 @@ public class ApiClient{{#jsr310}} extends JavaTimeFormatter{{/jsr310}} { /** * The path of temporary folder used to store downloaded files from endpoints * with file response. The default value is null, i.e. using - * the system's default tempopary folder. + * the system's default temporary folder. * * @return Temp folder path */ diff --git a/modules/openapi-generator/src/main/resources/Java/libraries/feign/ApiClient.mustache b/modules/openapi-generator/src/main/resources/Java/libraries/feign/ApiClient.mustache index 3166dda8432..0e9d13beab5 100644 --- a/modules/openapi-generator/src/main/resources/Java/libraries/feign/ApiClient.mustache +++ b/modules/openapi-generator/src/main/resources/Java/libraries/feign/ApiClient.mustache @@ -323,7 +323,7 @@ public class ApiClient { {{/hasOAuthMethods}} /** * Gets request interceptor based on authentication name - * @param authName Authentiation name + * @param authName Authentication name * @return Request Interceptor */ public RequestInterceptor getAuthorization(String authName) { diff --git a/modules/openapi-generator/src/main/resources/Java/libraries/jersey2/AbstractOpenApiSchema.mustache b/modules/openapi-generator/src/main/resources/Java/libraries/jersey2/AbstractOpenApiSchema.mustache index 734ef553e30..00253cceee2 100644 --- a/modules/openapi-generator/src/main/resources/Java/libraries/jersey2/AbstractOpenApiSchema.mustache +++ b/modules/openapi-generator/src/main/resources/Java/libraries/jersey2/AbstractOpenApiSchema.mustache @@ -121,7 +121,7 @@ public abstract class AbstractOpenApiSchema { } /** - * Is nullalble + * Is nullable * * @return true if it's nullable */ diff --git a/modules/openapi-generator/src/main/resources/Java/libraries/jersey2/ApiClient.mustache b/modules/openapi-generator/src/main/resources/Java/libraries/jersey2/ApiClient.mustache index abe9b208c60..e76f84bdff4 100644 --- a/modules/openapi-generator/src/main/resources/Java/libraries/jersey2/ApiClient.mustache +++ b/modules/openapi-generator/src/main/resources/Java/libraries/jersey2/ApiClient.mustache @@ -608,7 +608,7 @@ public class ApiClient{{#jsr310}} extends JavaTimeFormatter{{/jsr310}} { /** * The path of temporary folder used to store downloaded files from endpoints * with file response. The default value is null, i.e. using - * the system's default tempopary folder. + * the system's default temporary folder. * * @return Temp folder path */ @@ -1266,7 +1266,7 @@ public class ApiClient{{#jsr310}} extends JavaTimeFormatter{{/jsr310}} { /** * Customize the client builder. * - * This method can be overriden to customize the API client. For example, this can be used to: + * This method can be overridden to customize the API client. For example, this can be used to: * 1. Set the hostname verifier to be used by the client to verify the endpoint's hostname * against its identification information. * 2. Set the client-side key store. diff --git a/modules/openapi-generator/src/main/resources/Java/libraries/jersey2/anyof_model.mustache b/modules/openapi-generator/src/main/resources/Java/libraries/jersey2/anyof_model.mustache index 8d236677b00..d5b381987c0 100644 --- a/modules/openapi-generator/src/main/resources/Java/libraries/jersey2/anyof_model.mustache +++ b/modules/openapi-generator/src/main/resources/Java/libraries/jersey2/anyof_model.mustache @@ -69,7 +69,7 @@ public class {{classname}} extends AbstractOpenApiSchema{{#vendorExtensions.x-im } {{/discriminator}} {{#anyOf}} - // deserialzie {{{.}}} + // deserialize {{{.}}} try { deserialized = tree.traverse(jp.getCodec()).readValueAs({{{.}}}.class); {{classname}} ret = new {{classname}}(); @@ -188,7 +188,7 @@ public class {{classname}} extends AbstractOpenApiSchema{{#vendorExtensions.x-im {{#anyOf}} /** - * Get the actual instance of `{{{.}}}`. If the actual instanct is not `{{{.}}}`, + * Get the actual instance of `{{{.}}}`. If the actual instance is not `{{{.}}}`, * the ClassCastException will be thrown. * * @return The actual instance of `{{{.}}}` diff --git a/modules/openapi-generator/src/main/resources/Java/libraries/jersey2/api.mustache b/modules/openapi-generator/src/main/resources/Java/libraries/jersey2/api.mustache index ec4d939d2fc..e6fccb9a3a3 100644 --- a/modules/openapi-generator/src/main/resources/Java/libraries/jersey2/api.mustache +++ b/modules/openapi-generator/src/main/resources/Java/libraries/jersey2/api.mustache @@ -32,7 +32,7 @@ public class {{classname}} { } /** - * Get the API cilent + * Get the API client * * @return API client */ @@ -41,7 +41,7 @@ public class {{classname}} { } /** - * Set the API cilent + * Set the API client * * @param apiClient an instance of API client */ diff --git a/modules/openapi-generator/src/main/resources/Java/libraries/jersey2/oneof_model.mustache b/modules/openapi-generator/src/main/resources/Java/libraries/jersey2/oneof_model.mustache index eb47106559d..18bcbc5e1b5 100644 --- a/modules/openapi-generator/src/main/resources/Java/libraries/jersey2/oneof_model.mustache +++ b/modules/openapi-generator/src/main/resources/Java/libraries/jersey2/oneof_model.mustache @@ -221,7 +221,7 @@ public class {{classname}} extends AbstractOpenApiSchema{{#vendorExtensions.x-im {{#oneOf}} /** - * Get the actual instance of `{{{.}}}`. If the actual instanct is not `{{{.}}}`, + * Get the actual instance of `{{{.}}}`. If the actual instance is not `{{{.}}}`, * the ClassCastException will be thrown. * * @return The actual instance of `{{{.}}}` diff --git a/modules/openapi-generator/src/main/resources/Java/libraries/native/AbstractOpenApiSchema.mustache b/modules/openapi-generator/src/main/resources/Java/libraries/native/AbstractOpenApiSchema.mustache index 11429c69b46..19bf0a63473 100644 --- a/modules/openapi-generator/src/main/resources/Java/libraries/native/AbstractOpenApiSchema.mustache +++ b/modules/openapi-generator/src/main/resources/Java/libraries/native/AbstractOpenApiSchema.mustache @@ -120,7 +120,7 @@ public abstract class AbstractOpenApiSchema { } /** - * Is nullalble + * Is nullable * * @return true if it's nullable */ diff --git a/modules/openapi-generator/src/main/resources/Java/libraries/native/anyof_model.mustache b/modules/openapi-generator/src/main/resources/Java/libraries/native/anyof_model.mustache index 17568b34dc0..c87c932fe6d 100644 --- a/modules/openapi-generator/src/main/resources/Java/libraries/native/anyof_model.mustache +++ b/modules/openapi-generator/src/main/resources/Java/libraries/native/anyof_model.mustache @@ -184,7 +184,7 @@ public class {{classname}} extends AbstractOpenApiSchema{{#vendorExtensions.x-im {{#anyOf}} /** - * Get the actual instance of `{{{.}}}`. If the actual instanct is not `{{{.}}}`, + * Get the actual instance of `{{{.}}}`. If the actual instance is not `{{{.}}}`, * the ClassCastException will be thrown. * * @return The actual instance of `{{{.}}}` diff --git a/modules/openapi-generator/src/main/resources/Java/libraries/native/oneof_model.mustache b/modules/openapi-generator/src/main/resources/Java/libraries/native/oneof_model.mustache index ff1118ebdba..993961a6e84 100644 --- a/modules/openapi-generator/src/main/resources/Java/libraries/native/oneof_model.mustache +++ b/modules/openapi-generator/src/main/resources/Java/libraries/native/oneof_model.mustache @@ -217,7 +217,7 @@ public class {{classname}} extends AbstractOpenApiSchema{{#vendorExtensions.x-im {{#oneOf}} /** - * Get the actual instance of `{{{.}}}`. If the actual instanct is not `{{{.}}}`, + * Get the actual instance of `{{{.}}}`. If the actual instance is not `{{{.}}}`, * the ClassCastException will be thrown. * * @return The actual instance of `{{{.}}}` diff --git a/modules/openapi-generator/src/main/resources/Java/libraries/okhttp-gson/ApiCallback.mustache b/modules/openapi-generator/src/main/resources/Java/libraries/okhttp-gson/ApiCallback.mustache index 4cc99a76ec3..53b6a7b8e34 100644 --- a/modules/openapi-generator/src/main/resources/Java/libraries/okhttp-gson/ApiCallback.mustache +++ b/modules/openapi-generator/src/main/resources/Java/libraries/okhttp-gson/ApiCallback.mustache @@ -41,10 +41,10 @@ public interface ApiCallback { void onUploadProgress(long bytesWritten, long contentLength, boolean done); /** - * This is called when the API downlond processing. + * This is called when the API download processing. * * @param bytesRead bytes Read - * @param contentLength content lenngth of the response + * @param contentLength content length of the response * @param done Read end */ void onDownloadProgress(long bytesRead, long contentLength, boolean done); diff --git a/modules/openapi-generator/src/main/resources/Java/libraries/okhttp-gson/ApiClient.mustache b/modules/openapi-generator/src/main/resources/Java/libraries/okhttp-gson/ApiClient.mustache index 8b47536b9e8..ba47040542d 100644 --- a/modules/openapi-generator/src/main/resources/Java/libraries/okhttp-gson/ApiClient.mustache +++ b/modules/openapi-generator/src/main/resources/Java/libraries/okhttp-gson/ApiClient.mustache @@ -578,7 +578,7 @@ public class ApiClient { /** * The path of temporary folder used to store downloaded files from endpoints * with file response. The default value is null, i.e. using - * the system's default tempopary folder. + * the system's default temporary folder. * * @see createTempFile * @return Temporary folder path diff --git a/modules/openapi-generator/src/main/resources/Java/libraries/resteasy/ApiClient.mustache b/modules/openapi-generator/src/main/resources/Java/libraries/resteasy/ApiClient.mustache index 79ebc96d370..7bdb6e8e2a6 100644 --- a/modules/openapi-generator/src/main/resources/Java/libraries/resteasy/ApiClient.mustache +++ b/modules/openapi-generator/src/main/resources/Java/libraries/resteasy/ApiClient.mustache @@ -276,7 +276,7 @@ public class ApiClient{{#jsr310}} extends JavaTimeFormatter{{/jsr310}} { /** * The path of temporary folder used to store downloaded files from endpoints * with file response. The default value is null, i.e. using - * the system's default tempopary folder. + * the system's default temporary folder. * * @return the temporary folder path * @see createTempFile @@ -643,18 +643,18 @@ public class ApiClient{{#jsr310}} extends JavaTimeFormatter{{/jsr310}} { Invocation.Builder invocationBuilder = target.request().accept(accept); - for (Entry headerParamsEnrty : headerParams.entrySet()) { - String value = headerParamsEnrty.getValue(); + for (Entry headerParamsEntry : headerParams.entrySet()) { + String value = headerParamsEntry.getValue(); if (value != null) { - invocationBuilder = invocationBuilder.header(headerParamsEnrty.getKey(), value); + invocationBuilder = invocationBuilder.header(headerParamsEntry.getKey(), value); } } - for (Entry defaultHeaderEnrty: defaultHeaderMap.entrySet()) { - if (!headerParams.containsKey(defaultHeaderEnrty.getKey())) { - String value = defaultHeaderEnrty.getValue(); + for (Entry defaultHeaderEntry: defaultHeaderMap.entrySet()) { + if (!headerParams.containsKey(defaultHeaderEntry.getKey())) { + String value = defaultHeaderEntry.getValue(); if (value != null) { - invocationBuilder = invocationBuilder.header(defaultHeaderEnrty.getKey(), value); + invocationBuilder = invocationBuilder.header(defaultHeaderEntry.getKey(), value); } } } diff --git a/modules/openapi-generator/src/main/resources/Java/libraries/retrofit2/play26/Play26CallAdapterFactory.mustache b/modules/openapi-generator/src/main/resources/Java/libraries/retrofit2/play26/Play26CallAdapterFactory.mustache index efbc0ac298b..05c72547442 100644 --- a/modules/openapi-generator/src/main/resources/Java/libraries/retrofit2/play26/Play26CallAdapterFactory.mustache +++ b/modules/openapi-generator/src/main/resources/Java/libraries/retrofit2/play26/Play26CallAdapterFactory.mustache @@ -64,7 +64,7 @@ public class Play26CallAdapterFactory extends CallAdapter.Factory { } /** - * Adpater that coverts values returned by API interface into CompletionStage + * Adapter that coverts values returned by API interface into CompletionStage */ private static final class ValueAdapter implements CallAdapter> { diff --git a/modules/openapi-generator/src/main/resources/JavaJaxRS/cxf/server/pom.mustache b/modules/openapi-generator/src/main/resources/JavaJaxRS/cxf/server/pom.mustache index 4e161aaab80..7f8a635e216 100644 --- a/modules/openapi-generator/src/main/resources/JavaJaxRS/cxf/server/pom.mustache +++ b/modules/openapi-generator/src/main/resources/JavaJaxRS/cxf/server/pom.mustache @@ -215,7 +215,7 @@ {{/generateSpringApplication}} {{#generateSpringBootApplication}} - + org.springframework.boot spring-boot-starter-tomcat diff --git a/modules/openapi-generator/src/main/resources/JavaJaxRS/spec/libraries/helidon/logging.properties.mustache b/modules/openapi-generator/src/main/resources/JavaJaxRS/spec/libraries/helidon/logging.properties.mustache index 25a7c650954..fea543d4c33 100644 --- a/modules/openapi-generator/src/main/resources/JavaJaxRS/spec/libraries/helidon/logging.properties.mustache +++ b/modules/openapi-generator/src/main/resources/JavaJaxRS/spec/libraries/helidon/logging.properties.mustache @@ -4,7 +4,7 @@ # Send messages to the console handlers=java.util.logging.ConsoleHandler -# Global default logging level. Can be overriden by specific handlers and loggers +# Global default logging level. Can be overridden by specific handlers and loggers .level=INFO # Helidon Web Server has a custom log formatter that extends SimpleFormatter. diff --git a/modules/openapi-generator/src/main/resources/JavaPlayFramework/application.mustache b/modules/openapi-generator/src/main/resources/JavaPlayFramework/application.mustache index b8b51deda12..7c84b092943 100644 --- a/modules/openapi-generator/src/main/resources/JavaPlayFramework/application.mustache +++ b/modules/openapi-generator/src/main/resources/JavaPlayFramework/application.mustache @@ -11,7 +11,7 @@ # You can declare variables and substitute for them: #mykey = ${some.value} # -# And if an environment variable exists when there is no other subsitution, then +# And if an environment variable exists when there is no other substitution, then # HOCON will fall back to substituting environment variable: #mykey = ${JAVA_HOME} @@ -67,7 +67,7 @@ play.http.secret.key = "changeme" # Please see https://www.playframework.com/documentation/latest/GlobalSettings # for more information. # -# You can also extend Play functionality by using one of the publically available +# You can also extend Play functionality by using one of the publicly available # Play modules: https://playframework.com/documentation/latest/ModuleDirectory play.modules { # By default, Play will load any class called Module that is defined diff --git a/modules/openapi-generator/src/main/resources/JavaPlayFramework/openapiUtils.mustache b/modules/openapi-generator/src/main/resources/JavaPlayFramework/openapiUtils.mustache index e85eb571fe3..508a2bb1f11 100644 --- a/modules/openapi-generator/src/main/resources/JavaPlayFramework/openapiUtils.mustache +++ b/modules/openapi-generator/src/main/resources/JavaPlayFramework/openapiUtils.mustache @@ -33,11 +33,11 @@ public class OpenAPIUtils { Set> constraintViolations = validator.validate(obj); if (constraintViolations.size() > 0) { StringBuilder errors = new StringBuilder(); - for (ConstraintViolation contraintes : constraintViolations) { + for (ConstraintViolation constraints : constraintViolations) { errors.append(String.format("%s.%s %s\n", - contraintes.getRootBeanClass().getSimpleName(), - contraintes.getPropertyPath(), - contraintes.getMessage())); + constraints.getRootBeanClass().getSimpleName(), + constraints.getPropertyPath(), + constraints.getMessage())); } throw new RuntimeException("Bean validation : " + errors); } diff --git a/modules/openapi-generator/src/main/resources/JavaVertXServer/MainApiVerticle.mustache b/modules/openapi-generator/src/main/resources/JavaVertXServer/MainApiVerticle.mustache index 594d423d40b..22e7b4e7cba 100644 --- a/modules/openapi-generator/src/main/resources/JavaVertXServer/MainApiVerticle.mustache +++ b/modules/openapi-generator/src/main/resources/JavaVertXServer/MainApiVerticle.mustache @@ -47,7 +47,7 @@ public class MainApiVerticle extends AbstractVerticle { Swagger swagger = new SwaggerParser().parse(readFile.result().toString(Charset.forName("utf-8"))); Router swaggerRouter = SwaggerRouter.swaggerRouter(router, swagger, vertx.eventBus(), new OperationIdServiceIdResolver()); - deployVerticles(startFuture); + deployVerticals(startFuture); vertx.createHttpServer() .requestHandler(swaggerRouter::accept) @@ -64,7 +64,7 @@ public class MainApiVerticle extends AbstractVerticle { }); } - public void deployVerticles(Future startFuture) { + public void deployVerticals(Future startFuture) { {{#apiInfo}}{{#apis}} vertx.deployVerticle("{{apiPackage}}.{{classname}}Verticle", res -> { if (res.succeeded()) { diff --git a/modules/openapi-generator/src/main/resources/Javascript-Apollo/git_push.sh.mustache b/modules/openapi-generator/src/main/resources/Javascript-Apollo/git_push.sh.mustache index f0bed5bd841..305f9c115ce 100644 --- a/modules/openapi-generator/src/main/resources/Javascript-Apollo/git_push.sh.mustache +++ b/modules/openapi-generator/src/main/resources/Javascript-Apollo/git_push.sh.mustache @@ -1,7 +1,7 @@ #!/bin/sh # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" git_user_id=$1 git_repo_id=$2 diff --git a/modules/openapi-generator/src/main/resources/Javascript-Apollo/model_test.mustache b/modules/openapi-generator/src/main/resources/Javascript-Apollo/model_test.mustache index 05a03a83459..8b028d256d8 100644 --- a/modules/openapi-generator/src/main/resources/Javascript-Apollo/model_test.mustache +++ b/modules/openapi-generator/src/main/resources/Javascript-Apollo/model_test.mustache @@ -53,7 +53,7 @@ {{#vars}} it('should have the property {{name}} (base name: "{{baseName}}")', function() { // uncomment below and update the code to test the property {{name}} - //var instane = new {{moduleName}}.{{classname}}(); + //var instance = new {{moduleName}}.{{classname}}(); //expect(instance).to.be(); }); diff --git a/modules/openapi-generator/src/main/resources/Javascript/es6/git_push.sh.mustache b/modules/openapi-generator/src/main/resources/Javascript/es6/git_push.sh.mustache index f0bed5bd841..305f9c115ce 100644 --- a/modules/openapi-generator/src/main/resources/Javascript/es6/git_push.sh.mustache +++ b/modules/openapi-generator/src/main/resources/Javascript/es6/git_push.sh.mustache @@ -1,7 +1,7 @@ #!/bin/sh # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" git_user_id=$1 git_repo_id=$2 diff --git a/modules/openapi-generator/src/main/resources/Javascript/es6/model_test.mustache b/modules/openapi-generator/src/main/resources/Javascript/es6/model_test.mustache index ec7842a6722..8b028d256d8 100644 --- a/modules/openapi-generator/src/main/resources/Javascript/es6/model_test.mustache +++ b/modules/openapi-generator/src/main/resources/Javascript/es6/model_test.mustache @@ -44,7 +44,7 @@ describe('{{classname}}', function() { it('should create an instance of {{classname}}', function() { // uncomment below and update the code to test {{classname}} - //var instane = new {{moduleName}}.{{classname}}(); + //var instance = new {{moduleName}}.{{classname}}(); //expect(instance).to.be.a({{moduleName}}.{{classname}}); }); diff --git a/modules/openapi-generator/src/main/resources/Javascript/git_push.sh.mustache b/modules/openapi-generator/src/main/resources/Javascript/git_push.sh.mustache index f0bed5bd841..305f9c115ce 100755 --- a/modules/openapi-generator/src/main/resources/Javascript/git_push.sh.mustache +++ b/modules/openapi-generator/src/main/resources/Javascript/git_push.sh.mustache @@ -1,7 +1,7 @@ #!/bin/sh # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" git_user_id=$1 git_repo_id=$2 diff --git a/modules/openapi-generator/src/main/resources/android/git_push.sh.mustache b/modules/openapi-generator/src/main/resources/android/git_push.sh.mustache index f0bed5bd841..305f9c115ce 100755 --- a/modules/openapi-generator/src/main/resources/android/git_push.sh.mustache +++ b/modules/openapi-generator/src/main/resources/android/git_push.sh.mustache @@ -1,7 +1,7 @@ #!/bin/sh # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" git_user_id=$1 git_repo_id=$2 diff --git a/modules/openapi-generator/src/main/resources/android/libraries/volley/git_push.sh.mustache b/modules/openapi-generator/src/main/resources/android/libraries/volley/git_push.sh.mustache index f0bed5bd841..305f9c115ce 100644 --- a/modules/openapi-generator/src/main/resources/android/libraries/volley/git_push.sh.mustache +++ b/modules/openapi-generator/src/main/resources/android/libraries/volley/git_push.sh.mustache @@ -1,7 +1,7 @@ #!/bin/sh # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" git_user_id=$1 git_repo_id=$2 diff --git a/modules/openapi-generator/src/main/resources/apex/README_ant.mustache b/modules/openapi-generator/src/main/resources/apex/README_ant.mustache index a51ef6a1239..d3efc82e756 100644 --- a/modules/openapi-generator/src/main/resources/apex/README_ant.mustache +++ b/modules/openapi-generator/src/main/resources/apex/README_ant.mustache @@ -170,7 +170,7 @@ Class | Method | HTTP request | Description {{/isBasic}} {{#isOAuth}}- **Type**: OAuth - **Flow**: {{flow}} -- **Authorizatoin URL**: {{authorizationUrl}} +- **Authorization URL**: {{authorizationUrl}} - **Scopes**: {{^scopes}}N/A{{/scopes}} {{#scopes}} - {{scope}}: {{description}} {{/scopes}} diff --git a/modules/openapi-generator/src/main/resources/apex/build.properties b/modules/openapi-generator/src/main/resources/apex/build.properties index 93b38a78f55..27f36cb35d2 100644 --- a/modules/openapi-generator/src/main/resources/apex/build.properties +++ b/modules/openapi-generator/src/main/resources/apex/build.properties @@ -6,19 +6,19 @@ # have the "sf." prefix (e.g.: sf.serverurl) may only be specified in this file and not from # environment variables. -# Required if sessionId isnt specified. The Salesforce username for login. The username associated -# with this connection must have the Modify All Data permission. Typically, this is only enabled +# Required if sessionId isn't specified. The Salesforce username for login. The username associated +# with this connection must have the "Modify All Data" permission. Typically, this is only enabled # for System Administrator users. # # SF_USERNAME = username@example.com -# Required if sessionId isnt specified. The password you use to log in to the org associated with +# Required if sessionId isn't specified. The password you use to log in to the org associated with # this project. If you are using a security token, paste the 25-digit token value to the end of your # password. # # SF_PASSWORD = password123 -# Required if username and password arent specified. The ID of an active Salesforce session or the +# Required if username and password aren't specified. The ID of an active Salesforce session or the # OAuth access token. A session is created after a user logs in to Salesforce successfully with a # username and password. Use a session ID for logging in to an existing session instead of creating # a new session. Alternatively, use an access token for OAuth authentication. For more information, diff --git a/modules/openapi-generator/src/main/resources/apex/git_push.sh.mustache b/modules/openapi-generator/src/main/resources/apex/git_push.sh.mustache index f0bed5bd841..305f9c115ce 100644 --- a/modules/openapi-generator/src/main/resources/apex/git_push.sh.mustache +++ b/modules/openapi-generator/src/main/resources/apex/git_push.sh.mustache @@ -1,7 +1,7 @@ #!/bin/sh # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" git_user_id=$1 git_repo_id=$2 diff --git a/modules/openapi-generator/src/main/resources/aspnetcore/2.0/Filters/GeneratePathParamsValidationFilter.mustache b/modules/openapi-generator/src/main/resources/aspnetcore/2.0/Filters/GeneratePathParamsValidationFilter.mustache index e990e87db3b..e107b6f7393 100644 --- a/modules/openapi-generator/src/main/resources/aspnetcore/2.0/Filters/GeneratePathParamsValidationFilter.mustache +++ b/modules/openapi-generator/src/main/resources/aspnetcore/2.0/Filters/GeneratePathParamsValidationFilter.mustache @@ -47,13 +47,13 @@ namespace {{packageName}}.Filters } // String Length [StringLength] - int? minLenght = null, maxLength = null; + int? minLength = null, maxLength = null; var stringLengthAttr = attributes.FirstOrDefault(p => p.AttributeType == typeof(StringLengthAttribute)); if (stringLengthAttr != null) { if (stringLengthAttr.NamedArguments.Count == 1) { - minLenght = (int)stringLengthAttr.NamedArguments.Single(p => p.MemberName == "MinimumLength").TypedValue.Value; + minLength = (int)stringLengthAttr.NamedArguments.Single(p => p.MemberName == "MinimumLength").TypedValue.Value; } maxLength = (int)stringLengthAttr.ConstructorArguments[0].Value; } @@ -61,7 +61,7 @@ namespace {{packageName}}.Filters var minLengthAttr = attributes.FirstOrDefault(p => p.AttributeType == typeof(MinLengthAttribute)); if (minLengthAttr != null) { - minLenght = (int)minLengthAttr.ConstructorArguments[0].Value; + minLength = (int)minLengthAttr.ConstructorArguments[0].Value; } var maxLengthAttr = attributes.FirstOrDefault(p => p.AttributeType == typeof(MaxLengthAttribute)); @@ -72,7 +72,7 @@ namespace {{packageName}}.Filters if (swaggerParam is NonBodyParameter) { - ((NonBodyParameter)swaggerParam).MinLength = minLenght; + ((NonBodyParameter)swaggerParam).MinLength = minLength; ((NonBodyParameter)swaggerParam).MaxLength = maxLength; } diff --git a/modules/openapi-generator/src/main/resources/aspnetcore/2.1/Filters/GeneratePathParamsValidationFilter.mustache b/modules/openapi-generator/src/main/resources/aspnetcore/2.1/Filters/GeneratePathParamsValidationFilter.mustache index e990e87db3b..e107b6f7393 100644 --- a/modules/openapi-generator/src/main/resources/aspnetcore/2.1/Filters/GeneratePathParamsValidationFilter.mustache +++ b/modules/openapi-generator/src/main/resources/aspnetcore/2.1/Filters/GeneratePathParamsValidationFilter.mustache @@ -47,13 +47,13 @@ namespace {{packageName}}.Filters } // String Length [StringLength] - int? minLenght = null, maxLength = null; + int? minLength = null, maxLength = null; var stringLengthAttr = attributes.FirstOrDefault(p => p.AttributeType == typeof(StringLengthAttribute)); if (stringLengthAttr != null) { if (stringLengthAttr.NamedArguments.Count == 1) { - minLenght = (int)stringLengthAttr.NamedArguments.Single(p => p.MemberName == "MinimumLength").TypedValue.Value; + minLength = (int)stringLengthAttr.NamedArguments.Single(p => p.MemberName == "MinimumLength").TypedValue.Value; } maxLength = (int)stringLengthAttr.ConstructorArguments[0].Value; } @@ -61,7 +61,7 @@ namespace {{packageName}}.Filters var minLengthAttr = attributes.FirstOrDefault(p => p.AttributeType == typeof(MinLengthAttribute)); if (minLengthAttr != null) { - minLenght = (int)minLengthAttr.ConstructorArguments[0].Value; + minLength = (int)minLengthAttr.ConstructorArguments[0].Value; } var maxLengthAttr = attributes.FirstOrDefault(p => p.AttributeType == typeof(MaxLengthAttribute)); @@ -72,7 +72,7 @@ namespace {{packageName}}.Filters if (swaggerParam is NonBodyParameter) { - ((NonBodyParameter)swaggerParam).MinLength = minLenght; + ((NonBodyParameter)swaggerParam).MinLength = minLength; ((NonBodyParameter)swaggerParam).MaxLength = maxLength; } diff --git a/modules/openapi-generator/src/main/resources/bash/client.mustache b/modules/openapi-generator/src/main/resources/bash/client.mustache index 63457784268..8ed8c31663d 100644 --- a/modules/openapi-generator/src/main/resources/bash/client.mustache +++ b/modules/openapi-generator/src/main/resources/bash/client.mustache @@ -25,7 +25,7 @@ # {{#externalDocs}}{{url}}{{/externalDocs}} # -# For improved pattern matching in case statemets +# For improved pattern matching in case statements shopt -s extglob ############################################################################### @@ -66,7 +66,7 @@ declare -A header_arguments declare -A operation_parameters ## -# Declare colors with autodection if output is terminal +# Declare colors with autodetection if output is terminal if [ -t 1 ]; then RED="$(tput setaf 1)" GREEN="$(tput setaf 2)" @@ -454,7 +454,7 @@ build_request_path() { parameter_value+="${qparam}=${qvalue}" done # - # Append parameters specified as 'mutli' collections i.e. param=value1¶m=value2&... + # Append parameters specified as 'multi' collections i.e. param=value1¶m=value2&... # elif [[ "${collection_type}" == "multi" ]]; then local vcount=0 @@ -620,7 +620,7 @@ echo " $ops" | column -t -s ';' echo -e " \\t\\t\\t\\trequired parameters or wrong content type" echo -e " --dry-run\\t\\t\\t\\tPrint out the cURL command without" echo -e " \\t\\t\\t\\texecuting it" - echo -e " -nc,--no-colors\\t\\t\\tEnforce print without colors, otherwise autodected" + echo -e " -nc,--no-colors\\t\\t\\tEnforce print without colors, otherwise autodetected" echo -e " -ac,--accept ${YELLOW}${OFF}\\t\\tSet the 'Accept' header in the request" echo -e " -ct,--content-type ${YELLOW}${OFF}\\tSet the 'Content-type' header in " echo -e " \\tthe request" @@ -785,7 +785,7 @@ call_{{operationId}}() { # # Check if the user provided 'Content-type' headers in the # command line. If not try to set them based on the OpenAPI specification - # if values produces and consumes are defined unambigously + # if values produces and consumes are defined unambiguously # {{#hasConsumes}} {{#consumes}} @@ -971,7 +971,7 @@ case $key in ;; *:=*) # Parse body arguments and convert them into top level - # JSON properties passed in the body content without qoutes + # JSON properties passed in the body content without quotes if [[ "$operation" ]]; then # ignore error about 'sep' being unused # shellcheck disable=SC2034 diff --git a/modules/openapi-generator/src/main/resources/clojure/core.mustache b/modules/openapi-generator/src/main/resources/clojure/core.mustache index 912a1082f2d..31f2100549f 100644 --- a/modules/openapi-generator/src/main/resources/clojure/core.mustache +++ b/modules/openapi-generator/src/main/resources/clojure/core.mustache @@ -105,7 +105,7 @@ :else (str param))) (defn auth->opts - "Process the given auth to an option map that might conatin request options and parameters." + "Process the given auth to an option map that might contain request options and parameters." [{:keys [type in param-name]} value] (case type :basic {:req-opts {:basic-auth value}} @@ -126,7 +126,7 @@ opts)) (defn auths->opts - "Process the given auth names to an option map that might conatin request options and parameters." + "Process the given auth names to an option map that might contain request options and parameters." [auth-names] (reduce process-auth {} auth-names)) @@ -142,7 +142,7 @@ (str (:base-url *api-context*) path))) (defn normalize-array-param - "Normalize array paramater according to :collection-format specified in the parameter's meta data. + "Normalize array parameter according to :collection-format specified in the parameter's meta data. When the parameter contains File, a seq is returned so as to keep File parameters. For :multi collection format, a seq is returned which will be handled properly by clj-http. For other cases, a string is returned." diff --git a/modules/openapi-generator/src/main/resources/clojure/git_push.sh.mustache b/modules/openapi-generator/src/main/resources/clojure/git_push.sh.mustache index f0bed5bd841..305f9c115ce 100755 --- a/modules/openapi-generator/src/main/resources/clojure/git_push.sh.mustache +++ b/modules/openapi-generator/src/main/resources/clojure/git_push.sh.mustache @@ -1,7 +1,7 @@ #!/bin/sh # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" git_user_id=$1 git_repo_id=$2 diff --git a/modules/openapi-generator/src/main/resources/codegen/api.template b/modules/openapi-generator/src/main/resources/codegen/api.template index 62802f7f1e7..d61bde58c9d 100644 --- a/modules/openapi-generator/src/main/resources/codegen/api.template +++ b/modules/openapi-generator/src/main/resources/codegen/api.template @@ -1,5 +1,5 @@ -# This is a sample api mustache template. It is representing a ficticous +# This is a sample api mustache template. It is representing a fictitious # language and won't be usable or compile to anything without lots of changes. # Use it as an example. You can access the variables in the generator object # like such: diff --git a/modules/openapi-generator/src/main/resources/cpp-pistache-server/api-header.mustache b/modules/openapi-generator/src/main/resources/cpp-pistache-server/api-header.mustache index c79979173f4..e386ffb74c5 100644 --- a/modules/openapi-generator/src/main/resources/cpp-pistache-server/api-header.mustache +++ b/modules/openapi-generator/src/main/resources/cpp-pistache-server/api-header.mustache @@ -42,14 +42,14 @@ private: ///

/// Helper function to handle unexpected Exceptions during Parameter parsing and validation. - /// May be overriden to return custom error formats. This is called inside a catch block. + /// May be overridden to return custom error formats. This is called inside a catch block. /// Important: When overriding, do not call `throw ex;`, but instead use `throw;`. /// virtual std::pair handleParsingException(const std::exception& ex) const noexcept; /// /// Helper function to handle unexpected Exceptions during processing of the request in handler functions. - /// May be overriden to return custom error formats. This is called inside a catch block. + /// May be overridden to return custom error formats. This is called inside a catch block. /// Important: When overriding, do not call `throw ex;`, but instead use `throw;`. /// virtual std::pair handleOperationException(const std::exception& ex) const noexcept; diff --git a/modules/openapi-generator/src/main/resources/cpp-pistache-server/model-header.mustache b/modules/openapi-generator/src/main/resources/cpp-pistache-server/model-header.mustache index ccd8e876af3..0cb8de0ef85 100644 --- a/modules/openapi-generator/src/main/resources/cpp-pistache-server/model-header.mustache +++ b/modules/openapi-generator/src/main/resources/cpp-pistache-server/model-header.mustache @@ -27,7 +27,7 @@ public: {{#isEnum}}{{#allowableValues}} enum class e{{classname}} { // To have a valid default value. - // Avoiding nameclashes with user defined + // Avoiding name clashes with user defined // enum values INVALID_VALUE_OPENAPI_GENERATED = 0, {{#enumVars}} diff --git a/modules/openapi-generator/src/main/resources/cpp-qt-client/README.mustache b/modules/openapi-generator/src/main/resources/cpp-qt-client/README.mustache index 0460040d219..c354a828080 100644 --- a/modules/openapi-generator/src/main/resources/cpp-qt-client/README.mustache +++ b/modules/openapi-generator/src/main/resources/cpp-qt-client/README.mustache @@ -173,7 +173,7 @@ To change the default variable, use this function in each Api: ``` int setDefaultServerValue(int serverIndex,const QString &operation, const QString &variable,const QString &val); ``` -The parameter "serverIndex" will choose a server from the server list for each endpoint. There is always at least one server with index 0. The Paramter "operation" should be the desired endpoint operationid. +The parameter "serverIndex" will choose a server from the server list for each endpoint. There is always at least one server with index 0. The Parameter "operation" should be the desired endpoint operationid. Variable is the name of the variable you wish to change and the value is the new default Value. The function will return -1 when the variable does not exists, -2 if value is not defined in the variable enum and -3 if the operation is not found. diff --git a/modules/openapi-generator/src/main/resources/cpp-qt-qhttpengine-server/main.cpp.mustache b/modules/openapi-generator/src/main/resources/cpp-qt-qhttpengine-server/main.cpp.mustache index 87b94f71ec6..803f26ac2fe 100644 --- a/modules/openapi-generator/src/main/resources/cpp-qt-qhttpengine-server/main.cpp.mustache +++ b/modules/openapi-generator/src/main/resources/cpp-qt-qhttpengine-server/main.cpp.mustache @@ -18,7 +18,7 @@ #ifdef __linux__ void catchUnixSignals(QList quitSignals) { auto handler = [](int sig) -> void { - // blocking and not aysnc-signal-safe func are valid + // blocking and not async-signal-safe func are valid qDebug() << "\nquit the application by signal " << sig; QCoreApplication::quit(); }; diff --git a/modules/openapi-generator/src/main/resources/cpp-rest-sdk-client/git_push.sh.mustache b/modules/openapi-generator/src/main/resources/cpp-rest-sdk-client/git_push.sh.mustache index f0bed5bd841..305f9c115ce 100644 --- a/modules/openapi-generator/src/main/resources/cpp-rest-sdk-client/git_push.sh.mustache +++ b/modules/openapi-generator/src/main/resources/cpp-rest-sdk-client/git_push.sh.mustache @@ -1,7 +1,7 @@ #!/bin/sh # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" git_user_id=$1 git_repo_id=$2 diff --git a/modules/openapi-generator/src/main/resources/cpp-restbed-server/git_push.sh.mustache b/modules/openapi-generator/src/main/resources/cpp-restbed-server/git_push.sh.mustache index f0bed5bd841..305f9c115ce 100644 --- a/modules/openapi-generator/src/main/resources/cpp-restbed-server/git_push.sh.mustache +++ b/modules/openapi-generator/src/main/resources/cpp-restbed-server/git_push.sh.mustache @@ -1,7 +1,7 @@ #!/bin/sh # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" git_user_id=$1 git_repo_id=$2 diff --git a/modules/openapi-generator/src/main/resources/cpp-tiny/README.mustache b/modules/openapi-generator/src/main/resources/cpp-tiny/README.mustache index 2a47e520d3e..dc417d1e551 100644 --- a/modules/openapi-generator/src/main/resources/cpp-tiny/README.mustache +++ b/modules/openapi-generator/src/main/resources/cpp-tiny/README.mustache @@ -1,6 +1,6 @@ # Documentation for OpenAPI Petstore This is a client generator for microcontrollers on the Espressif32 platform and the Arduino framework -After the client have been generated, you have to change these following variablies: +After the client have been generated, you have to change these following variables: - root.cert | Provide your service root certificate. - src/main.cpp | Change wifi name - src/main.cpp | Change wifi password diff --git a/modules/openapi-generator/src/main/resources/cpp-ue4/helpers-source.mustache b/modules/openapi-generator/src/main/resources/cpp-ue4/helpers-source.mustache index 6c7842d825a..fdb6ade3e8e 100644 --- a/modules/openapi-generator/src/main/resources/cpp-ue4/helpers-source.mustache +++ b/modules/openapi-generator/src/main/resources/cpp-ue4/helpers-source.mustache @@ -62,7 +62,7 @@ const FString& HttpMultipartFormData::GetBoundary() const { if (Boundary.IsEmpty()) { - // Generate a random boundary with enough entropy, should avoid occurences of the boundary in the data. + // Generate a random boundary with enough entropy, should avoid occurrences of the boundary in the data. // Since the boundary is generated at every request, in case of failure, retries should succeed. Boundary = FGuid::NewGuid().ToString(EGuidFormats::Short); } diff --git a/modules/openapi-generator/src/main/resources/crystal/api_client.mustache b/modules/openapi-generator/src/main/resources/crystal/api_client.mustache index a22a0b196d9..7981d3f56f4 100644 --- a/modules/openapi-generator/src/main/resources/crystal/api_client.mustache +++ b/modules/openapi-generator/src/main/resources/crystal/api_client.mustache @@ -157,7 +157,7 @@ module {{moduleName}} @config.base_url(operation) + path end - # Update hearder and query params based on authentication settings. + # Update header and query params based on authentication settings. # # @param [Hash] header_params Header parameters # @param [Hash] query_params Query parameters @@ -281,7 +281,7 @@ module {{moduleName}} form_or_body = post_body else # use HTTP forms in the payload - # TDOD use HTTP form encoding + # TODO use HTTP form encoding form_or_body = form_params end diff --git a/modules/openapi-generator/src/main/resources/crystal/api_error.mustache b/modules/openapi-generator/src/main/resources/crystal/api_error.mustache index fd39b5bef27..3e4dc166855 100644 --- a/modules/openapi-generator/src/main/resources/crystal/api_error.mustache +++ b/modules/openapi-generator/src/main/resources/crystal/api_error.mustache @@ -22,7 +22,7 @@ module {{moduleName}} msg = msg + "\nHTTP status code: #{code}" if @code msg = msg + "\nResponse headers: #{response_headers}" if @response_headers if @message.nil? || @message.empty? - msg = msg + "\nError message: the server returns an error but the HTTP respone body is empty." + msg = msg + "\nError message: the server returns an error but the HTTP response body is empty." else msg = msg + "\nResponse body: #{@message}" end diff --git a/modules/openapi-generator/src/main/resources/crystal/git_push.sh.mustache b/modules/openapi-generator/src/main/resources/crystal/git_push.sh.mustache index f0bed5bd841..305f9c115ce 100755 --- a/modules/openapi-generator/src/main/resources/crystal/git_push.sh.mustache +++ b/modules/openapi-generator/src/main/resources/crystal/git_push.sh.mustache @@ -1,7 +1,7 @@ #!/bin/sh # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" git_user_id=$1 git_repo_id=$2 diff --git a/modules/openapi-generator/src/main/resources/crystal/partial_model_generic.mustache b/modules/openapi-generator/src/main/resources/crystal/partial_model_generic.mustache index 3109cec7914..2dfe0d7f17a 100644 --- a/modules/openapi-generator/src/main/resources/crystal/partial_model_generic.mustache +++ b/modules/openapi-generator/src/main/resources/crystal/partial_model_generic.mustache @@ -8,7 +8,7 @@ {{#description}} # {{{.}}} {{/description}} - @[JSON::Field(key: {{{baseName}}}, type: {{{dataType}}}{{#default}}, default: {{{.}}}{{/default}}{{#isNullable}}, nilable: true, emit_null: true{{/isNullable}})] + @[JSON::Field(key: {{{baseName}}}, type: {{{dataType}}}{{#default}}, default: {{{.}}}{{/default}}{{#isNullable}}, nillable: true, emit_null: true{{/isNullable}})] property {{{name}}} : {{{dataType}}} {{/vars}} diff --git a/modules/openapi-generator/src/main/resources/crystal/partial_oneof_module.mustache b/modules/openapi-generator/src/main/resources/crystal/partial_oneof_module.mustache index 024071e45a3..64c4e0e9c93 100644 --- a/modules/openapi-generator/src/main/resources/crystal/partial_oneof_module.mustache +++ b/modules/openapi-generator/src/main/resources/crystal/partial_oneof_module.mustache @@ -64,7 +64,7 @@ # - We do not attempt to check whether exactly one item matches. # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are defacto behaving as if they were nullable. + # - TODO: scalar values are de facto behaving as if they were nullable. # - TODO: logging when debugging is set. openapi_one_of.each do |klass| begin diff --git a/modules/openapi-generator/src/main/resources/csharp-dotnet2/ApiClient.mustache b/modules/openapi-generator/src/main/resources/csharp-dotnet2/ApiClient.mustache index 379bb5ac3e8..ba509dd1558 100644 --- a/modules/openapi-generator/src/main/resources/csharp-dotnet2/ApiClient.mustache +++ b/modules/openapi-generator/src/main/resources/csharp-dotnet2/ApiClient.mustache @@ -14,7 +14,7 @@ using RestSharp.Extensions; namespace {{clientPackage}} { /// - /// API client is mainly responible for making the HTTP call to the API backend. + /// API client is mainly responsible for making the HTTP call to the API backend. /// public class ApiClient { diff --git a/modules/openapi-generator/src/main/resources/csharp-nancyfx/parameters.mustache b/modules/openapi-generator/src/main/resources/csharp-nancyfx/parameters.mustache index f760dfec75f..61caaf25f56 100644 --- a/modules/openapi-generator/src/main/resources/csharp-nancyfx/parameters.mustache +++ b/modules/openapi-generator/src/main/resources/csharp-nancyfx/parameters.mustache @@ -126,7 +126,7 @@ namespace {{packageName}}.{{packageContext}}.Utils } catch (Exception e) { - throw new InvalidOperationException(string.Format("Could not get '{0}' value of '{1}' type dynamicly", + throw new InvalidOperationException(string.Format("Could not get '{0}' value of '{1}' type dynamically", name, typeof(TValue)), e); } } diff --git a/modules/openapi-generator/src/main/resources/csharp-netcore/ApiClient.mustache b/modules/openapi-generator/src/main/resources/csharp-netcore/ApiClient.mustache index 000f3ee6363..d533d30f901 100644 --- a/modules/openapi-generator/src/main/resources/csharp-netcore/ApiClient.mustache +++ b/modules/openapi-generator/src/main/resources/csharp-netcore/ApiClient.mustache @@ -158,7 +158,7 @@ namespace {{packageName}}.Client } {{! NOTE: Any changes related to RestSharp should be done in this class. All other client classes are for extensibility by consumers.}} /// - /// Provides a default implementation of an Api client (both synchronous and asynchronous implementatios), + /// Provides a default implementation of an Api client (both synchronous and asynchronous implementations), /// encapsulating general REST accessor use cases. /// {{>visibility}} partial class ApiClient : ISynchronousClient{{#supportsAsync}}, IAsynchronousClient{{/supportsAsync}} @@ -167,7 +167,7 @@ namespace {{packageName}}.Client /// /// Specifies the settings on a object. - /// These settings can be adjusted to accomodate custom serialization rules. + /// These settings can be adjusted to accommodate custom serialization rules. /// public JsonSerializerSettings SerializerSettings { get; set; } = new JsonSerializerSettings { diff --git a/modules/openapi-generator/src/main/resources/csharp-netcore/ClientUtils.mustache b/modules/openapi-generator/src/main/resources/csharp-netcore/ClientUtils.mustache index 3c04dcdbd0c..776be1b052f 100644 --- a/modules/openapi-generator/src/main/resources/csharp-netcore/ClientUtils.mustache +++ b/modules/openapi-generator/src/main/resources/csharp-netcore/ClientUtils.mustache @@ -25,7 +25,7 @@ namespace {{packageName}}.Client public static CompareLogic compareLogic; /// - /// Static contstructor to initialise compareLogic. + /// Static constructor to initialise compareLogic. /// static ClientUtils() { diff --git a/modules/openapi-generator/src/main/resources/csharp-netcore/Configuration.mustache b/modules/openapi-generator/src/main/resources/csharp-netcore/Configuration.mustache index fe7eeb0b580..6c810f89bc1 100644 --- a/modules/openapi-generator/src/main/resources/csharp-netcore/Configuration.mustache +++ b/modules/openapi-generator/src/main/resources/csharp-netcore/Configuration.mustache @@ -72,7 +72,7 @@ namespace {{packageName}}.Client /// /// Gets or sets the API key based on the authentication name. - /// This is the key and value comprising the "secret" for acessing an API. + /// This is the key and value comprising the "secret" for accessing an API. /// /// The API key. private IDictionary _apiKey; @@ -469,7 +469,7 @@ namespace {{packageName}}.Client } else { - // use defualt value + // use default value url = url.Replace("{" + variable.Key + "}", (string)serverVariables["default_value"]); } } @@ -480,7 +480,7 @@ namespace {{packageName}}.Client {{#hasHttpSignatureMethods}} /// - /// Gets and Sets the HttpSigningConfiuration + /// Gets and Sets the HttpSigningConfiguration /// public HttpSigningConfiguration HttpSigningConfiguration { diff --git a/modules/openapi-generator/src/main/resources/csharp-netcore/HttpSigningConfiguration.mustache b/modules/openapi-generator/src/main/resources/csharp-netcore/HttpSigningConfiguration.mustache index c762fda011f..aa788ad6224 100644 --- a/modules/openapi-generator/src/main/resources/csharp-netcore/HttpSigningConfiguration.mustache +++ b/modules/openapi-generator/src/main/resources/csharp-netcore/HttpSigningConfiguration.mustache @@ -18,7 +18,7 @@ namespace {{packageName}}.Client { #region /// - /// Initailize the HashAlgorithm and SigningAlgorithm to default value + /// Initialize the HashAlgorithm and SigningAlgorithm to default value /// public HttpSigningConfiguration() { @@ -59,7 +59,7 @@ namespace {{packageName}}.Client public string SigningAlgorithm { get; set; } /// - /// Gets the Signature validaty period in seconds + /// Gets the Signature validity period in seconds /// public int SignatureValidityPeriod { get; set; } @@ -238,7 +238,7 @@ namespace {{packageName}}.Client headerValuesList.Add(string.Format("{0}: {1}", keyVal.Key, keyVal.Value)); } - //Concatinate headers value separated by new line + //Concatenate headers value separated by new line var headerValuesString = string.Join("\n", headerValuesList); var signatureStringHash = GetStringHash(HashAlgorithm.ToString(), headerValuesString); string headerSignatureStr = null; @@ -361,7 +361,7 @@ namespace {{packageName}}.Client private byte[] ConvertToECDSAANS1Format(byte[] signedBytes) { var derBytes = new List(); - byte derLength = 68; //default lenght for ECDSA code signinged bit 0x44 + byte derLength = 68; //default length for ECDSA code signing bit 0x44 byte rbytesLength = 32; //R length 0x20 byte sbytesLength = 32; //S length 0x20 var rBytes = new List(); @@ -399,7 +399,7 @@ namespace {{packageName}}.Client } derBytes.Add(48); //start of the sequence 0x30 - derBytes.Add(derLength); //total length r lenth, type and r bytes + derBytes.Add(derLength); //total length r length, type and r bytes derBytes.Add(2); //tag for integer derBytes.Add(rbytesLength); //length of r @@ -411,7 +411,7 @@ namespace {{packageName}}.Client return derBytes.ToArray(); } - private RSACryptoServiceProvider GetRSAProviderFromPemFile(string pemfile, SecureString keyPassPharse = null) + private RSACryptoServiceProvider GetRSAProviderFromPemFile(string pemfile, SecureString keyPassPhrase = null) { const string pempubheader = "-----BEGIN PUBLIC KEY-----"; const string pempubfooter = "-----END PUBLIC KEY-----"; @@ -431,7 +431,7 @@ namespace {{packageName}}.Client if (isPrivateKeyFile) { - pemkey = ConvertPrivateKeyToBytes(pemstr, keyPassPharse); + pemkey = ConvertPrivateKeyToBytes(pemstr, keyPassPhrase); if (pemkey == null) { return null; @@ -441,7 +441,7 @@ namespace {{packageName}}.Client return null; } - private byte[] ConvertPrivateKeyToBytes(string instr, SecureString keyPassPharse = null) + private byte[] ConvertPrivateKeyToBytes(string instr, SecureString keyPassPhrase = null) { const string pemprivheader = "-----BEGIN RSA PRIVATE KEY-----"; const string pemprivfooter = "-----END RSA PRIVATE KEY-----"; @@ -494,11 +494,11 @@ namespace {{packageName}}.Client binkey = Convert.FromBase64String(encryptedstr); } catch (System.FormatException) - { //data is not in base64 fromat + { //data is not in base64 format return null; } - byte[] deskey = GetEncryptedKey(salt, keyPassPharse, 1, 2); // count=1 (for OpenSSL implementation); 2 iterations to get at least 24 bytes + byte[] deskey = GetEncryptedKey(salt, keyPassPhrase, 1, 2); // count=1 (for OpenSSL implementation); 2 iterations to get at least 24 bytes if (deskey == null) { return null; @@ -638,19 +638,19 @@ namespace {{packageName}}.Client { IntPtr unmanagedPswd = IntPtr.Zero; int HASHLENGTH = 16; //MD5 bytes - byte[] keymaterial = new byte[HASHLENGTH * miter]; //to store contatenated Mi hashed results + byte[] keymaterial = new byte[HASHLENGTH * miter]; //to store concatenated Mi hashed results byte[] psbytes = new byte[secpswd.Length]; unmanagedPswd = Marshal.SecureStringToGlobalAllocAnsi(secpswd); Marshal.Copy(unmanagedPswd, psbytes, 0, psbytes.Length); Marshal.ZeroFreeGlobalAllocAnsi(unmanagedPswd); - // --- contatenate salt and pswd bytes into fixed data array --- + // --- concatenate salt and pswd bytes into fixed data array --- byte[] data00 = new byte[psbytes.Length + salt.Length]; Array.Copy(psbytes, data00, psbytes.Length); //copy the pswd bytes Array.Copy(salt, 0, data00, psbytes.Length, salt.Length); //concatenate the salt bytes - // ---- do multi-hashing and contatenate results D1, D2 ... into keymaterial bytes ---- + // ---- do multi-hashing and concatenate results D1, D2 ... into keymaterial bytes ---- MD5 md5 = new MD5CryptoServiceProvider(); byte[] result = null; byte[] hashtarget = new byte[HASHLENGTH + data00.Length]; //fixed length initial hashtarget @@ -671,7 +671,7 @@ namespace {{packageName}}.Client for (int i = 0; i < count; i++) result = md5.ComputeHash(result); - Array.Copy(result, 0, keymaterial, j * HASHLENGTH, result.Length); //contatenate to keymaterial + Array.Copy(result, 0, keymaterial, j * HASHLENGTH, result.Length); //concatenate to keymaterial } byte[] deskey = new byte[24]; Array.Copy(keymaterial, deskey, deskey.Length); diff --git a/modules/openapi-generator/src/main/resources/csharp-netcore/IReadableConfiguration.mustache b/modules/openapi-generator/src/main/resources/csharp-netcore/IReadableConfiguration.mustache index 7c6487d92f8..bf142ffbac1 100644 --- a/modules/openapi-generator/src/main/resources/csharp-netcore/IReadableConfiguration.mustache +++ b/modules/openapi-generator/src/main/resources/csharp-netcore/IReadableConfiguration.mustache @@ -39,7 +39,7 @@ namespace {{packageName}}.Client /// /// Gets the date time format. /// - /// Date time foramt. + /// Date time format. string DateTimeFormat { get; } /// diff --git a/modules/openapi-generator/src/main/resources/csharp-netcore/JsonSubTypesTests.mustache b/modules/openapi-generator/src/main/resources/csharp-netcore/JsonSubTypesTests.mustache index 9b1f66624d7..55b1d51837d 100644 --- a/modules/openapi-generator/src/main/resources/csharp-netcore/JsonSubTypesTests.mustache +++ b/modules/openapi-generator/src/main/resources/csharp-netcore/JsonSubTypesTests.mustache @@ -17,17 +17,17 @@ namespace {{packageName}}.Test.Client [Test] public void TestSimpleJsonSubTypesExample() { - var annimal = + var animal = JsonConvert.DeserializeObject("{\"Kind\":\"Dog\",\"Breed\":\"Jack Russell Terrier\"}"); - Assert.AreEqual("Jack Russell Terrier", (annimal as Dog)?.Breed); + Assert.AreEqual("Jack Russell Terrier", (animal as Dog)?.Breed); } [Test] public void DeserializeObjectWithCustomMapping() { - var annimal = + var animal = JsonConvert.DeserializeObject("{\"Sound\":\"Bark\",\"Breed\":\"Jack Russell Terrier\"}"); - Assert.AreEqual("Jack Russell Terrier", (annimal as Dog2)?.Breed); + Assert.AreEqual("Jack Russell Terrier", (animal as Dog2)?.Breed); } [Test] diff --git a/modules/openapi-generator/src/main/resources/csharp-netcore/README.mustache b/modules/openapi-generator/src/main/resources/csharp-netcore/README.mustache index 1d1a37e16ae..fd872051c3c 100644 --- a/modules/openapi-generator/src/main/resources/csharp-netcore/README.mustache +++ b/modules/openapi-generator/src/main/resources/csharp-netcore/README.mustache @@ -104,9 +104,9 @@ c.Proxy = webProxy; {{#useHttpClient}} ### Connections -Each ApiClass (properly the ApiClient inside it) will create an istance of HttpClient. It will use that for the entire lifecycle and dispose it when called the Dispose method. +Each ApiClass (properly the ApiClient inside it) will create an instance of HttpClient. It will use that for the entire lifecycle and dispose it when called the Dispose method. -To better manager the connections it's a common practice to reuse the HttpClient and HttpClientHander (see [here](https://docs.microsoft.com/en-us/dotnet/architecture/microservices/implement-resilient-applications/use-httpclientfactory-to-implement-resilient-http-requests#issues-with-the-original-httpclient-class-available-in-net) for details). To use your own HttpClient instance just pass it to the ApiClass constructor. +To better manager the connections it's a common practice to reuse the HttpClient and HttpClientHandler (see [here](https://docs.microsoft.com/en-us/dotnet/architecture/microservices/implement-resilient-applications/use-httpclientfactory-to-implement-resilient-http-requests#issues-with-the-original-httpclient-class-available-in-net) for details). To use your own HttpClient instance just pass it to the ApiClass constructor. ```csharp HttpClientHandler yourHandler = new HttpClientHandler(); diff --git a/modules/openapi-generator/src/main/resources/csharp-netcore/git_push.sh.mustache b/modules/openapi-generator/src/main/resources/csharp-netcore/git_push.sh.mustache index f0bed5bd841..305f9c115ce 100644 --- a/modules/openapi-generator/src/main/resources/csharp-netcore/git_push.sh.mustache +++ b/modules/openapi-generator/src/main/resources/csharp-netcore/git_push.sh.mustache @@ -1,7 +1,7 @@ #!/bin/sh # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" git_user_id=$1 git_repo_id=$2 diff --git a/modules/openapi-generator/src/main/resources/csharp-netcore/libraries/httpclient/ApiClient.mustache b/modules/openapi-generator/src/main/resources/csharp-netcore/libraries/httpclient/ApiClient.mustache index fcc73e2ff8e..c94d7aaeae6 100644 --- a/modules/openapi-generator/src/main/resources/csharp-netcore/libraries/httpclient/ApiClient.mustache +++ b/modules/openapi-generator/src/main/resources/csharp-netcore/libraries/httpclient/ApiClient.mustache @@ -174,7 +174,7 @@ namespace {{packageName}}.Client /// /// Specifies the settings on a object. - /// These settings can be adjusted to accomodate custom serialization rules. + /// These settings can be adjusted to accommodate custom serialization rules. /// public JsonSerializerSettings SerializerSettings { get; set; } = new JsonSerializerSettings { @@ -191,8 +191,8 @@ namespace {{packageName}}.Client /// /// Initializes a new instance of the , defaulting to the global configurations' base url. - /// **IMPORTANT** This will also create an istance of HttpClient, which is less than ideal. - /// It's better to reuse the HttpClient and HttpClientHander. + /// **IMPORTANT** This will also create an instance of HttpClient, which is less than ideal. + /// It's better to reuse the HttpClient and HttpClientHandler. /// public ApiClient() : this({{packageName}}.Client.GlobalConfiguration.Instance.BasePath) @@ -201,8 +201,8 @@ namespace {{packageName}}.Client /// /// Initializes a new instance of the . - /// **IMPORTANT** This will also create an istance of HttpClient, which is less than ideal. - /// It's better to reuse the HttpClient and HttpClientHander. + /// **IMPORTANT** This will also create an instance of HttpClient, which is less than ideal. + /// It's better to reuse the HttpClient and HttpClientHandler. /// /// The target service's base path in URL format. /// diff --git a/modules/openapi-generator/src/main/resources/csharp-netcore/libraries/httpclient/api.mustache b/modules/openapi-generator/src/main/resources/csharp-netcore/libraries/httpclient/api.mustache index 7f85a719ddf..f1f8a890d3d 100644 --- a/modules/openapi-generator/src/main/resources/csharp-netcore/libraries/httpclient/api.mustache +++ b/modules/openapi-generator/src/main/resources/csharp-netcore/libraries/httpclient/api.mustache @@ -118,8 +118,8 @@ namespace {{packageName}}.{{apiPackage}} /// /// Initializes a new instance of the class. - /// **IMPORTANT** This will also create an istance of HttpClient, which is less than ideal. - /// It's better to reuse the HttpClient and HttpClientHander. + /// **IMPORTANT** This will also create an instance of HttpClient, which is less than ideal. + /// It's better to reuse the HttpClient and HttpClientHandler. /// /// public {{classname}}() : this((string)null) @@ -128,8 +128,8 @@ namespace {{packageName}}.{{apiPackage}} /// /// Initializes a new instance of the class. - /// **IMPORTANT** This will also create an istance of HttpClient, which is less than ideal. - /// It's better to reuse the HttpClient and HttpClientHander. + /// **IMPORTANT** This will also create an instance of HttpClient, which is less than ideal. + /// It's better to reuse the HttpClient and HttpClientHandler. /// /// The target service's base path in URL format. /// @@ -150,8 +150,8 @@ namespace {{packageName}}.{{apiPackage}} /// /// Initializes a new instance of the class using Configuration object. - /// **IMPORTANT** This will also create an istance of HttpClient, which is less than ideal. - /// It's better to reuse the HttpClient and HttpClientHander. + /// **IMPORTANT** This will also create an instance of HttpClient, which is less than ideal. + /// It's better to reuse the HttpClient and HttpClientHandler. /// /// An instance of Configuration. /// diff --git a/modules/openapi-generator/src/main/resources/csharp-netcore/modelAnyOf.mustache b/modules/openapi-generator/src/main/resources/csharp-netcore/modelAnyOf.mustache index 807aa3b47ef..7c3b0cc2d94 100644 --- a/modules/openapi-generator/src/main/resources/csharp-netcore/modelAnyOf.mustache +++ b/modules/openapi-generator/src/main/resources/csharp-netcore/modelAnyOf.mustache @@ -59,7 +59,7 @@ {{#anyOf}} /// - /// Get the actual instance of `{{{.}}}`. If the actual instanct is not `{{{.}}}`, + /// Get the actual instance of `{{{.}}}`. If the actual instance is not `{{{.}}}`, /// the InvalidClassException will be thrown /// /// An instance of {{{.}}} diff --git a/modules/openapi-generator/src/main/resources/csharp-netcore/modelOneOf.mustache b/modules/openapi-generator/src/main/resources/csharp-netcore/modelOneOf.mustache index 37f7a83880d..d99b82a1e9e 100644 --- a/modules/openapi-generator/src/main/resources/csharp-netcore/modelOneOf.mustache +++ b/modules/openapi-generator/src/main/resources/csharp-netcore/modelOneOf.mustache @@ -59,7 +59,7 @@ {{#oneOf}} /// - /// Get the actual instance of `{{{.}}}`. If the actual instanct is not `{{{.}}}`, + /// Get the actual instance of `{{{.}}}`. If the actual instance is not `{{{.}}}`, /// the InvalidClassException will be thrown /// /// An instance of {{{.}}} diff --git a/modules/openapi-generator/src/main/resources/csharp-netcore/nuspec.mustache b/modules/openapi-generator/src/main/resources/csharp-netcore/nuspec.mustache index 9370bb01d64..4ac44f8d347 100644 --- a/modules/openapi-generator/src/main/resources/csharp-netcore/nuspec.mustache +++ b/modules/openapi-generator/src/main/resources/csharp-netcore/nuspec.mustache @@ -12,7 +12,7 @@ $author$ + users to easily find other packages by the same owners. --> $author$ false false diff --git a/modules/openapi-generator/src/main/resources/csharp/IReadableConfiguration.mustache b/modules/openapi-generator/src/main/resources/csharp/IReadableConfiguration.mustache index ce165e0c81d..18d3382c5fd 100644 --- a/modules/openapi-generator/src/main/resources/csharp/IReadableConfiguration.mustache +++ b/modules/openapi-generator/src/main/resources/csharp/IReadableConfiguration.mustache @@ -36,7 +36,7 @@ namespace {{packageName}}.Client /// /// Gets the date time format. /// - /// Date time foramt. + /// Date time format. string DateTimeFormat { get; } /// diff --git a/modules/openapi-generator/src/main/resources/csharp/JsonSubTypesTests.mustache b/modules/openapi-generator/src/main/resources/csharp/JsonSubTypesTests.mustache index 9b1f66624d7..55b1d51837d 100644 --- a/modules/openapi-generator/src/main/resources/csharp/JsonSubTypesTests.mustache +++ b/modules/openapi-generator/src/main/resources/csharp/JsonSubTypesTests.mustache @@ -17,17 +17,17 @@ namespace {{packageName}}.Test.Client [Test] public void TestSimpleJsonSubTypesExample() { - var annimal = + var animal = JsonConvert.DeserializeObject("{\"Kind\":\"Dog\",\"Breed\":\"Jack Russell Terrier\"}"); - Assert.AreEqual("Jack Russell Terrier", (annimal as Dog)?.Breed); + Assert.AreEqual("Jack Russell Terrier", (animal as Dog)?.Breed); } [Test] public void DeserializeObjectWithCustomMapping() { - var annimal = + var animal = JsonConvert.DeserializeObject("{\"Sound\":\"Bark\",\"Breed\":\"Jack Russell Terrier\"}"); - Assert.AreEqual("Jack Russell Terrier", (annimal as Dog2)?.Breed); + Assert.AreEqual("Jack Russell Terrier", (animal as Dog2)?.Breed); } [Test] diff --git a/modules/openapi-generator/src/main/resources/csharp/api.mustache b/modules/openapi-generator/src/main/resources/csharp/api.mustache index d2dda8824f6..a14135ce4f5 100644 --- a/modules/openapi-generator/src/main/resources/csharp/api.mustache +++ b/modules/openapi-generator/src/main/resources/csharp/api.mustache @@ -307,7 +307,7 @@ namespace {{packageName}}.{{apiPackage}} } {{/isBasicBasic}} {{#isBasicBearer}} - // http beerer authentication required + // http bearer authentication required if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) { localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; diff --git a/modules/openapi-generator/src/main/resources/csharp/compile-mono.sh.mustache b/modules/openapi-generator/src/main/resources/csharp/compile-mono.sh.mustache index 06c5788a35e..011cc0f6d5f 100644 --- a/modules/openapi-generator/src/main/resources/csharp/compile-mono.sh.mustache +++ b/modules/openapi-generator/src/main/resources/csharp/compile-mono.sh.mustache @@ -5,7 +5,7 @@ frameworkVersion={{targetFrameworkNuget}} -# sdk must match installed framworks under PREFIX/lib/mono/[value] +# sdk must match installed frameworks under PREFIX/lib/mono/[value] sdk={{x-mcs-sdk}} # langversion refers to C# language features. see man mcs for details. diff --git a/modules/openapi-generator/src/main/resources/csharp/git_push.sh.mustache b/modules/openapi-generator/src/main/resources/csharp/git_push.sh.mustache index f0bed5bd841..305f9c115ce 100755 --- a/modules/openapi-generator/src/main/resources/csharp/git_push.sh.mustache +++ b/modules/openapi-generator/src/main/resources/csharp/git_push.sh.mustache @@ -1,7 +1,7 @@ #!/bin/sh # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" git_user_id=$1 git_repo_id=$2 diff --git a/modules/openapi-generator/src/main/resources/csharp/nuspec.mustache b/modules/openapi-generator/src/main/resources/csharp/nuspec.mustache index 623a37f9144..04599f39e08 100644 --- a/modules/openapi-generator/src/main/resources/csharp/nuspec.mustache +++ b/modules/openapi-generator/src/main/resources/csharp/nuspec.mustache @@ -12,7 +12,7 @@ $author$ + users to easily find other packages by the same owners. --> $author$ false false diff --git a/modules/openapi-generator/src/main/resources/dart-jaguar/git_push.sh.mustache b/modules/openapi-generator/src/main/resources/dart-jaguar/git_push.sh.mustache index f0bed5bd841..305f9c115ce 100755 --- a/modules/openapi-generator/src/main/resources/dart-jaguar/git_push.sh.mustache +++ b/modules/openapi-generator/src/main/resources/dart-jaguar/git_push.sh.mustache @@ -1,7 +1,7 @@ #!/bin/sh # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" git_user_id=$1 git_repo_id=$2 diff --git a/modules/openapi-generator/src/main/resources/dart2/git_push.sh.mustache b/modules/openapi-generator/src/main/resources/dart2/git_push.sh.mustache index f0bed5bd841..305f9c115ce 100755 --- a/modules/openapi-generator/src/main/resources/dart2/git_push.sh.mustache +++ b/modules/openapi-generator/src/main/resources/dart2/git_push.sh.mustache @@ -1,7 +1,7 @@ #!/bin/sh # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" git_user_id=$1 git_repo_id=$2 diff --git a/modules/openapi-generator/src/main/resources/go-deprecated/client.mustache b/modules/openapi-generator/src/main/resources/go-deprecated/client.mustache index a3723b68602..5df4f2a0b14 100644 --- a/modules/openapi-generator/src/main/resources/go-deprecated/client.mustache +++ b/modules/openapi-generator/src/main/resources/go-deprecated/client.mustache @@ -113,7 +113,7 @@ func selectHeaderAccept(accepts []string) string { return strings.Join(accepts, ",") } -// contains is a case insenstive match, finding needle in a haystack +// contains is a case insensitive match, finding needle in a haystack func contains(haystack []string, needle string) bool { for _, a := range haystack { if strings.ToLower(a) == strings.ToLower(needle) { diff --git a/modules/openapi-generator/src/main/resources/go-deprecated/git_push.sh.mustache b/modules/openapi-generator/src/main/resources/go-deprecated/git_push.sh.mustache index f0bed5bd841..305f9c115ce 100755 --- a/modules/openapi-generator/src/main/resources/go-deprecated/git_push.sh.mustache +++ b/modules/openapi-generator/src/main/resources/go-deprecated/git_push.sh.mustache @@ -1,7 +1,7 @@ #!/bin/sh # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" git_user_id=$1 git_repo_id=$2 diff --git a/modules/openapi-generator/src/main/resources/go-deprecated/response.mustache b/modules/openapi-generator/src/main/resources/go-deprecated/response.mustache index 1a8765bae8f..4691e8f428f 100644 --- a/modules/openapi-generator/src/main/resources/go-deprecated/response.mustache +++ b/modules/openapi-generator/src/main/resources/go-deprecated/response.mustache @@ -23,7 +23,7 @@ type APIResponse struct { Payload []byte `json:"-"` } -// NewAPIResponse returns a new APIResonse object. +// NewAPIResponse returns a new APIResponse object. func NewAPIResponse(r *http.Response) *APIResponse { response := &APIResponse{Response: r} diff --git a/modules/openapi-generator/src/main/resources/go-server/service.mustache b/modules/openapi-generator/src/main/resources/go-server/service.mustache index 6339027c099..baad4df800a 100644 --- a/modules/openapi-generator/src/main/resources/go-server/service.mustache +++ b/modules/openapi-generator/src/main/resources/go-server/service.mustache @@ -8,7 +8,7 @@ import ( "{{import}}"{{/imports}} ) -// {{classname}}Service is a service that implents the logic for the {{classname}}Servicer +// {{classname}}Service is a service that implements the logic for the {{classname}}Servicer // This service should implement the business logic for every endpoint for the {{classname}} API. // Include any external packages or services that will be required by this service. type {{classname}}Service struct { diff --git a/modules/openapi-generator/src/main/resources/go/README.mustache b/modules/openapi-generator/src/main/resources/go/README.mustache index 3eb9c387eb7..e6d140d28b2 100644 --- a/modules/openapi-generator/src/main/resources/go/README.mustache +++ b/modules/openapi-generator/src/main/resources/go/README.mustache @@ -66,7 +66,7 @@ Note, enum values are always validated and all unused variables are silently ign ### URLs Configuration per Operation Each operation can use different server URL defined using `OperationServers` map in the `Configuration`. -An operation is uniquely identifield by `"{classname}Service.{nickname}"` string. +An operation is uniquely identified by `"{classname}Service.{nickname}"` string. Similar rules for overriding default operation server index and variables applies by using `sw.ContextOperationServerIndices` and `sw.ContextOperationServerVariables` context maps. ``` diff --git a/modules/openapi-generator/src/main/resources/go/git_push.sh.mustache b/modules/openapi-generator/src/main/resources/go/git_push.sh.mustache index f0bed5bd841..305f9c115ce 100755 --- a/modules/openapi-generator/src/main/resources/go/git_push.sh.mustache +++ b/modules/openapi-generator/src/main/resources/go/git_push.sh.mustache @@ -1,7 +1,7 @@ #!/bin/sh # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" git_user_id=$1 git_repo_id=$2 diff --git a/modules/openapi-generator/src/main/resources/go/model_anyof.mustache b/modules/openapi-generator/src/main/resources/go/model_anyof.mustache index d0738523a2a..5bdefe2a9e2 100644 --- a/modules/openapi-generator/src/main/resources/go/model_anyof.mustache +++ b/modules/openapi-generator/src/main/resources/go/model_anyof.mustache @@ -22,7 +22,7 @@ func (dst *{{classname}}) UnmarshalJSON(data []byte) error { var jsonDict map[string]interface{} err := json.Unmarshal(data, &jsonDict) if err != nil { - return fmt.Errorf("Failed to unmarshal JSON into map for the discrimintor lookup.") + return fmt.Errorf("Failed to unmarshal JSON into map for the discriminator lookup.") } {{/-first}} diff --git a/modules/openapi-generator/src/main/resources/go/model_oneof.mustache b/modules/openapi-generator/src/main/resources/go/model_oneof.mustache index e67a172de67..45562dcc7c3 100644 --- a/modules/openapi-generator/src/main/resources/go/model_oneof.mustache +++ b/modules/openapi-generator/src/main/resources/go/model_oneof.mustache @@ -31,7 +31,7 @@ func (dst *{{classname}}) UnmarshalJSON(data []byte) error { var jsonDict map[string]interface{} err = json.Unmarshal(data, &jsonDict) if err != nil { - return fmt.Errorf("Failed to unmarshal JSON into map for the discrimintor lookup.") + return fmt.Errorf("Failed to unmarshal JSON into map for the discriminator lookup.") } {{/-first}} diff --git a/modules/openapi-generator/src/main/resources/go/signing.mustache b/modules/openapi-generator/src/main/resources/go/signing.mustache index 22477a06f38..d7171ca5350 100644 --- a/modules/openapi-generator/src/main/resources/go/signing.mustache +++ b/modules/openapi-generator/src/main/resources/go/signing.mustache @@ -208,7 +208,7 @@ func (h *HttpSignatureAuth) parsePrivateKey(priv []byte) error { privKey, err = x509.DecryptPEMBlock(pemBlock, []byte(h.Passphrase)) if err != nil { // Failed to decrypt PEM block. Because of deficiencies in the encrypted-PEM format, - // it's not always possibleto detect an incorrect password. + // it's not always possible to detect an incorrect password. return err } } else { diff --git a/modules/openapi-generator/src/main/resources/graphql-nodejs-express-server/README.mustache b/modules/openapi-generator/src/main/resources/graphql-nodejs-express-server/README.mustache index 522ed33b279..ceca1e97d34 100644 --- a/modules/openapi-generator/src/main/resources/graphql-nodejs-express-server/README.mustache +++ b/modules/openapi-generator/src/main/resources/graphql-nodejs-express-server/README.mustache @@ -8,7 +8,7 @@ - node 10+ -## Gettings started +## Getting started npm install npm run start diff --git a/modules/openapi-generator/src/main/resources/graphql-schema/git_push.sh.mustache b/modules/openapi-generator/src/main/resources/graphql-schema/git_push.sh.mustache index f0bed5bd841..305f9c115ce 100755 --- a/modules/openapi-generator/src/main/resources/graphql-schema/git_push.sh.mustache +++ b/modules/openapi-generator/src/main/resources/graphql-schema/git_push.sh.mustache @@ -1,7 +1,7 @@ #!/bin/sh # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" git_user_id=$1 git_repo_id=$2 diff --git a/modules/openapi-generator/src/main/resources/haskell-http-client/README.mustache b/modules/openapi-generator/src/main/resources/haskell-http-client/README.mustache index acd5efa0426..2fbd96b01de 100644 --- a/modules/openapi-generator/src/main/resources/haskell-http-client/README.mustache +++ b/modules/openapi-generator/src/main/resources/haskell-http-client/README.mustache @@ -112,7 +112,7 @@ This library is intended to be imported qualified. | MODULE | NOTES | | ------------------- | --------------------------------------------------- | | {{baseModule}}.Client | use the "dispatch" functions to send requests | -| {{baseModule}}.Core | core funcions, config and request types | +| {{baseModule}}.Core | core functions, config and request types | | {{baseModule}}.API | construct api requests | | {{baseModule}}.Model | describes api models | | {{baseModule}}.MimeTypes | encoding/decoding MIME types (content-types/accept) | diff --git a/modules/openapi-generator/src/main/resources/haskell-http-client/git_push.sh.mustache b/modules/openapi-generator/src/main/resources/haskell-http-client/git_push.sh.mustache index f0bed5bd841..305f9c115ce 100644 --- a/modules/openapi-generator/src/main/resources/haskell-http-client/git_push.sh.mustache +++ b/modules/openapi-generator/src/main/resources/haskell-http-client/git_push.sh.mustache @@ -1,7 +1,7 @@ #!/bin/sh # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" git_user_id=$1 git_repo_id=$2 diff --git a/modules/openapi-generator/src/main/resources/haskell-servant/Types.mustache b/modules/openapi-generator/src/main/resources/haskell-servant/Types.mustache index 99561f702f4..bd3e103a296 100644 --- a/modules/openapi-generator/src/main/resources/haskell-servant/Types.mustache +++ b/modules/openapi-generator/src/main/resources/haskell-servant/Types.mustache @@ -73,7 +73,7 @@ uncapitalize [] = [] -- The @forParsing@ parameter is to distinguish between the cases in which we're using this -- to power a @FromJSON@ or a @ToJSON@ instance. In the first case we're parsing, and we want -- to replace special characters with their quoted equivalents (because we cannot have special --- chars in identifier names), while we want to do viceversa when sending data instead. +-- chars in identifier names), while we want to do vice versa when sending data instead. removeFieldLabelPrefix :: Bool -> String -> Options removeFieldLabelPrefix forParsing prefix = defaultOptions diff --git a/modules/openapi-generator/src/main/resources/haskell-yesod/README.mustache b/modules/openapi-generator/src/main/resources/haskell-yesod/README.mustache index 27cd1c0b76c..972c57eda22 100644 --- a/modules/openapi-generator/src/main/resources/haskell-yesod/README.mustache +++ b/modules/openapi-generator/src/main/resources/haskell-yesod/README.mustache @@ -38,6 +38,6 @@ stack test --flag {{projectName}}:library-only --flag {{projectName}}:dev * Ask questions on [Stack Overflow, using the Yesod or Haskell tags](https://stackoverflow.com/questions/tagged/yesod+haskell) * Ask the [Yesod Google Group](https://groups.google.com/forum/#!forum/yesodweb) -* There are several chatrooms you can ask for help: +* There are several chat rooms you can ask for help: * For IRC, try Freenode#yesod and Freenode#haskell * [Functional Programming Slack](https://fpchat-invite.herokuapp.com/), in the #haskell, #haskell-beginners, or #yesod channels. diff --git a/modules/openapi-generator/src/main/resources/haskell-yesod/src/API/Types.mustache b/modules/openapi-generator/src/main/resources/haskell-yesod/src/API/Types.mustache index 3658d55833d..6c1a4e267ed 100644 --- a/modules/openapi-generator/src/main/resources/haskell-yesod/src/API/Types.mustache +++ b/modules/openapi-generator/src/main/resources/haskell-yesod/src/API/Types.mustache @@ -61,7 +61,7 @@ uncapitalize [] = [] -- The @forParsing@ parameter is to distinguish between the cases in which we're using this -- to power a @FromJSON@ or a @ToJSON@ instance. In the first case we're parsing, and we want -- to replace special characters with their quoted equivalents (because we cannot have special --- chars in identifier names), while we want to do viceversa when sending data instead. +-- chars in identifier names), while we want to do vice versa when sending data instead. removeFieldLabelPrefix :: Bool -> String -> Options removeFieldLabelPrefix forParsing prefix = defaultOptions diff --git a/modules/openapi-generator/src/main/resources/htmlDocs2/js_jsonformatter.mustache b/modules/openapi-generator/src/main/resources/htmlDocs2/js_jsonformatter.mustache index e3bcee88471..e40aa9fa8d6 100644 --- a/modules/openapi-generator/src/main/resources/htmlDocs2/js_jsonformatter.mustache +++ b/modules/openapi-generator/src/main/resources/htmlDocs2/js_jsonformatter.mustache @@ -68,7 +68,7 @@ return /******/ (function(modules) { // webpackBootstrap var DATE_STRING_REGEX = /(^\d{1,4}[\.|\\/|-]\d{1,2}[\.|\\/|-]\d{1,4})(\s*(?:0?[1-9]:[0-5]|1(?=[012])\d:[0-5])\d\s*[ap]m)?$/; var PARTIAL_DATE_REGEX = /\d{2}:\d{2}:\d{2} GMT-\d{4}/; var JSON_DATE_REGEX = /\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{3}Z/; - // When toggleing, don't animated removal or addition of more than a few items + // When toggling, don't animated removal or addition of more than a few items var MAX_ANIMATED_TOGGLE_ITEMS = 10; var requestAnimationFrame = window.requestAnimationFrame || function (cb) { cb(); return 0; }; ; diff --git a/modules/openapi-generator/src/main/resources/htmlDocs2/js_jsonschemaview.mustache b/modules/openapi-generator/src/main/resources/htmlDocs2/js_jsonschemaview.mustache index 937158502d3..0bf2ddd5e61 100644 --- a/modules/openapi-generator/src/main/resources/htmlDocs2/js_jsonschemaview.mustache +++ b/modules/openapi-generator/src/main/resources/htmlDocs2/js_jsonschemaview.mustache @@ -125,7 +125,7 @@ var JSONSchemaView = (function () { this.options = options; this.isCollapsed = open <= 0; - // if schema is an empty object which means any JOSN + // if schema is an empty object which means any JSON this.isAny = typeof schema === 'object' && !Array.isArray(schema) && !Object.keys(schema).filter(function (k) { return ['title', 'description'].indexOf(k) === -1; }).length; diff --git a/modules/openapi-generator/src/main/resources/htmlDocs2/styles.mustache b/modules/openapi-generator/src/main/resources/htmlDocs2/styles.mustache index 395aca4f833..4dcfbe8cd5a 100644 --- a/modules/openapi-generator/src/main/resources/htmlDocs2/styles.mustache +++ b/modules/openapi-generator/src/main/resources/htmlDocs2/styles.mustache @@ -462,7 +462,7 @@ ul.nav-tabs { .json-schema-view.collapsed .description, .json-schema-view.collapsed .property, json-schema-view.collapsed .description, json-schema-view.collapsed .property { display: none } -.json-schema-view.collapsed .closeing.brace, json-schema-view.collapsed .closeing.brace { +.json-schema-view.collapsed .closing.brace, json-schema-view.collapsed .closing.brace { display: inline-block } .json-schema-view.collapsed .toggle-handle, json-schema-view.collapsed .toggle-handle { @@ -527,7 +527,7 @@ ul.nav-tabs { .json-schema-view.json-schema-view-dark.collapsed .description, .json-schema-view.json-schema-view-dark.collapsed .property, json-schema-view[json-schema-view-dark].collapsed .description, json-schema-view[json-schema-view-dark].collapsed .property { display: none } -.json-schema-view.json-schema-view-dark.collapsed .closeing.brace, json-schema-view[json-schema-view-dark].collapsed .closeing.brace { +.json-schema-view.json-schema-view-dark.collapsed .closing.brace, json-schema-view[json-schema-view-dark].collapsed .closing.brace { display: inline-block } .json-schema-view.json-schema-view-dark.collapsed .toggle-handle, json-schema-view[json-schema-view-dark].collapsed .toggle-handle { diff --git a/modules/openapi-generator/src/main/resources/java-micronaut-client/configuration/git/git_push.sh.mustache b/modules/openapi-generator/src/main/resources/java-micronaut-client/configuration/git/git_push.sh.mustache index 8b3f689c912..228d338ebdb 100644 --- a/modules/openapi-generator/src/main/resources/java-micronaut-client/configuration/git/git_push.sh.mustache +++ b/modules/openapi-generator/src/main/resources/java-micronaut-client/configuration/git/git_push.sh.mustache @@ -1,7 +1,7 @@ #!/bin/sh # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" git_user_id=$1 git_repo_id=$2 diff --git a/modules/openapi-generator/src/main/resources/java-micronaut-client/doc/README.mustache b/modules/openapi-generator/src/main/resources/java-micronaut-client/doc/README.mustache index 96a3428b659..e3cb314d423 100644 --- a/modules/openapi-generator/src/main/resources/java-micronaut-client/doc/README.mustache +++ b/modules/openapi-generator/src/main/resources/java-micronaut-client/doc/README.mustache @@ -4,7 +4,7 @@ This is a generated client based on [Micronaut](https://micronaut.io/) framework ## Configuration -A Micronaut's application can be created by defyning a main class and running: +A Micronaut's application can be created by defining a main class and running: ```java import io.micronaut.runtime.Micronaut; import io.micronaut.context.ApplicationContext; diff --git a/modules/openapi-generator/src/main/resources/java-micronaut-client/query/QueryParam.mustache b/modules/openapi-generator/src/main/resources/java-micronaut-client/query/QueryParam.mustache index 343602f340b..4c3e845a1be 100644 --- a/modules/openapi-generator/src/main/resources/java-micronaut-client/query/QueryParam.mustache +++ b/modules/openapi-generator/src/main/resources/java-micronaut-client/query/QueryParam.mustache @@ -52,7 +52,7 @@ public @interface QueryParam { public static enum Format { /** * The values of iterator are comma-delimited. - * Ambiguity can arise if values of Iterator contain commas inside themselves. In such case, the MUTLI format + * Ambiguity can arise if values of Iterator contain commas inside themselves. In such case, the MULTI format * should be preferred. * Null values are not supported and will be removed during the conversion process. */ diff --git a/modules/openapi-generator/src/main/resources/java-micronaut-client/query/QueryParamBinder.mustache b/modules/openapi-generator/src/main/resources/java-micronaut-client/query/QueryParamBinder.mustache index 66ac28ad189..2a90b8b6658 100644 --- a/modules/openapi-generator/src/main/resources/java-micronaut-client/query/QueryParamBinder.mustache +++ b/modules/openapi-generator/src/main/resources/java-micronaut-client/query/QueryParamBinder.mustache @@ -78,7 +78,7 @@ public class QueryParamBinder implements AnnotatedClientArgumentRequestBinder context, Object value, String key, ClientRequestUriContext uriContext ) { if (value instanceof Iterable) { - // noinspection unechecked + // noinspection unchecked Iterable iterable = (Iterable) value; for (Object item : iterable) { @@ -136,7 +136,7 @@ public class QueryParamBinder implements AnnotatedClientArgumentRequestBinder iterable = (Iterable) value; boolean first = true; diff --git a/modules/openapi-generator/src/main/resources/java-pkmst/apiController.mustache b/modules/openapi-generator/src/main/resources/java-pkmst/apiController.mustache index 2f7db7ea7c6..622a703ef7e 100644 --- a/modules/openapi-generator/src/main/resources/java-pkmst/apiController.mustache +++ b/modules/openapi-generator/src/main/resources/java-pkmst/apiController.mustache @@ -36,7 +36,7 @@ import javax.validation.constraints.*; import javax.validation.Valid; {{/useBeanValidation}} /** - * Api implemention + * Api implementation * @author pkmst * */ diff --git a/modules/openapi-generator/src/main/resources/java-pkmst/readme.mustache b/modules/openapi-generator/src/main/resources/java-pkmst/readme.mustache index f15bc660fd2..bf0fa70643b 100644 --- a/modules/openapi-generator/src/main/resources/java-pkmst/readme.mustache +++ b/modules/openapi-generator/src/main/resources/java-pkmst/readme.mustache @@ -6,7 +6,7 @@ but can enable as your microservice capabilities needs to be extended to meet st PKMST feature set. a)Read the Swagger supplied and will create a maven project b)Create basic controller based on rest verb and path configured in swagger -c)generate default unit test cose using junit +c)generate default unit test case using junit d)generate all needed dependency needed to run the microservice on local e)generate a default manifest file that allows you to push code to cloudfoundry instance ( eg pcf , ibm bluemix etc) @@ -19,7 +19,7 @@ i)Allow you to configure Oauth2 security based authorization for your microservi Additional Features j)generate sample cucumber file and dependency to drive your Behaviour driven development. - k)generate gatling based performance test, which can be excuted via build pipeline like jenkins etc. + k)generate gatling based performance test, which can be executed via build pipeline like jenkins etc. Working: diff --git a/modules/openapi-generator/src/main/resources/jmeter-client/api.mustache b/modules/openapi-generator/src/main/resources/jmeter-client/api.mustache index 8a92846c5c1..bd0103c1ab5 100644 --- a/modules/openapi-generator/src/main/resources/jmeter-client/api.mustache +++ b/modules/openapi-generator/src/main/resources/jmeter-client/api.mustache @@ -170,7 +170,7 @@ - + ${httpStatusCode} Assertion.response_code diff --git a/modules/openapi-generator/src/main/resources/ktorm-schema/ktorm_schema.mustache b/modules/openapi-generator/src/main/resources/ktorm-schema/ktorm_schema.mustache index 83f603f2601..aecf4da0234 100644 --- a/modules/openapi-generator/src/main/resources/ktorm-schema/ktorm_schema.mustache +++ b/modules/openapi-generator/src/main/resources/ktorm-schema/ktorm_schema.mustache @@ -155,7 +155,7 @@ CREATE TABLE IF NOT EXISTS `oauth_jwt` ( CREATE TABLE IF NOT EXISTS `oauth_jti` ( `issuer` VARCHAR(80) NOT NULL, `subject` VARCHAR(80) DEFAULT NULL, - `audiance` VARCHAR(80) DEFAULT NULL, + `audience` VARCHAR(80) DEFAULT NULL, `expires` TIMESTAMP NOT NULL, `jti` VARCHAR(2000) NOT NULL ); diff --git a/modules/openapi-generator/src/main/resources/lua/git_push.sh.mustache b/modules/openapi-generator/src/main/resources/lua/git_push.sh.mustache index f0bed5bd841..305f9c115ce 100755 --- a/modules/openapi-generator/src/main/resources/lua/git_push.sh.mustache +++ b/modules/openapi-generator/src/main/resources/lua/git_push.sh.mustache @@ -1,7 +1,7 @@ #!/bin/sh # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" git_user_id=$1 git_repo_id=$2 diff --git a/modules/openapi-generator/src/main/resources/lua/luarocks.mustache b/modules/openapi-generator/src/main/resources/lua/luarocks.mustache index 2bfe81e78af..d3974c5ca3b 100644 --- a/modules/openapi-generator/src/main/resources/lua/luarocks.mustache +++ b/modules/openapi-generator/src/main/resources/lua/luarocks.mustache @@ -5,7 +5,7 @@ source = { } description = { - summary = "API client genreated by OpenAPI Generator", + summary = "API client generated by OpenAPI Generator", detailed = [[ {{{appDescription}}}]], homepage = "https://openapi-generator.tech", diff --git a/modules/openapi-generator/src/main/resources/mysql-schema/README.mustache b/modules/openapi-generator/src/main/resources/mysql-schema/README.mustache index ef01def2143..ecf11246690 100644 --- a/modules/openapi-generator/src/main/resources/mysql-schema/README.mustache +++ b/modules/openapi-generator/src/main/resources/mysql-schema/README.mustache @@ -49,7 +49,7 @@ Produced file(`mysql_schema.sql`) contains every table definition. Current imple ### Prepared SQL queries -[Model folder]({{modelSrcPath}}) contains SQL queries(`SELECT *`, `SELECT`, `INSERT`, `UPDATE`, `DELETE`) usually suggested by `PHPMyAdmin` when you hit `SQL` tab. They are absolutely useless without adaptation to your needs. Copypaste them then edit. +[Model folder]({{modelSrcPath}}) contains SQL queries(`SELECT *`, `SELECT`, `INSERT`, `UPDATE`, `DELETE`) usually suggested by `PHPMyAdmin` when you hit `SQL` tab. They are absolutely useless without adaptation to your needs. Copy-paste them then edit. Important! Some of SQLs(`INSERT`/`UPDATE`) contains {{#namedParametersEnabled}}named parameters eg. :namedParam{{/namedParametersEnabled}}{{^namedParametersEnabled}}question marks(`?`) which are parameter placeholders{{/namedParametersEnabled}}. You need to bind values to these params to execute query. diff --git a/modules/openapi-generator/src/main/resources/mysql-schema/mysql_schema.mustache b/modules/openapi-generator/src/main/resources/mysql-schema/mysql_schema.mustache index 6050b034680..8d303ece1ff 100644 --- a/modules/openapi-generator/src/main/resources/mysql-schema/mysql_schema.mustache +++ b/modules/openapi-generator/src/main/resources/mysql-schema/mysql_schema.mustache @@ -137,7 +137,7 @@ CREATE TABLE IF NOT EXISTS `oauth_jwt` ( CREATE TABLE IF NOT EXISTS `oauth_jti` ( `issuer` VARCHAR(80) NOT NULL, `subject` VARCHAR(80) DEFAULT NULL, - `audiance` VARCHAR(80) DEFAULT NULL, + `audience` VARCHAR(80) DEFAULT NULL, `expires` TIMESTAMP NOT NULL, `jti` VARCHAR(2000) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; diff --git a/modules/openapi-generator/src/main/resources/nodejs-express-server/README.mustache b/modules/openapi-generator/src/main/resources/nodejs-express-server/README.mustache index ed121114cc1..3ca3d1d93cd 100644 --- a/modules/openapi-generator/src/main/resources/nodejs-express-server/README.mustache +++ b/modules/openapi-generator/src/main/resources/nodejs-express-server/README.mustache @@ -36,7 +36,7 @@ Unfortunately, I have not written any unit-tests. Those will come in the future. 1. API documentation, and to check the available endpoints: http://localhost:3000/api-docs/. To -2. Download the oepnapi.yaml document: http://localhost:3000/openapi. +2. Download the openapi.yaml document: http://localhost:3000/openapi. 3. Every call to an endpoint that was defined in the openapi document will return a 200 and a list of all the parameters and objects that were sent in the request. 4. Endpoints that require security need to have security handlers configured before they can return a successful response. At this point they will return [ a response code of 401](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/401). 5. ##### At this stage the server does not support document body sent in xml format. @@ -87,4 +87,4 @@ Future tests should be written to ensure that the response of every request sent #### models/ -Currently a concept awaiting feedback. The idea is to have the objects defined in the openapi.yaml act as models which are passed between the different modules. This will conform the programmers to interact using defined objects, rather than loosley-defined JSON objects. Given the nature of JavaScript progrmmers, who want to work with their own bootstrapped parameters, this concept might not work. Keeping this here for future discussion and feedback. +Currently a concept awaiting feedback. The idea is to have the objects defined in the openapi.yaml act as models which are passed between the different modules. This will conform the programmers to interact using defined objects, rather than loosely-defined JSON objects. Given the nature of JavaScript programmers, who want to work with their own bootstrapped parameters, this concept might not work. Keeping this here for future discussion and feedback. diff --git a/modules/openapi-generator/src/main/resources/nodejs-express-server/controller.mustache b/modules/openapi-generator/src/main/resources/nodejs-express-server/controller.mustache index 66595f176e6..aa0f009dfc7 100644 --- a/modules/openapi-generator/src/main/resources/nodejs-express-server/controller.mustache +++ b/modules/openapi-generator/src/main/resources/nodejs-express-server/controller.mustache @@ -1,6 +1,6 @@ /** * The {{{classname}}}Controller file is a very simple one, which does not need to be changed manually, - * unless there's a case where business logic reoutes the request to an entity which is not + * unless there's a case where business logic routes the request to an entity which is not * the service. * The heavy lifting of the Controller item is done in Request.js - that is where request * parameters are extracted and sent to the service, and where response is handled. diff --git a/modules/openapi-generator/src/main/resources/nodejs-express-server/controllers/Controller.mustache b/modules/openapi-generator/src/main/resources/nodejs-express-server/controllers/Controller.mustache index c791a891587..a4115d01438 100644 --- a/modules/openapi-generator/src/main/resources/nodejs-express-server/controllers/Controller.mustache +++ b/modules/openapi-generator/src/main/resources/nodejs-express-server/controllers/Controller.mustache @@ -32,7 +32,7 @@ class Controller { /** * Files have been uploaded to the directory defined by config.js as upload directory * Files have a temporary name, that was saved as 'filename' of the file object that is - * referenced in reuquest.files array. + * referenced in request.files array. * This method finds the file and changes it to the file name that was originally called * when it was uploaded. To prevent files from being overwritten, a timestamp is added between * the filename and its extension diff --git a/modules/openapi-generator/src/main/resources/nodejs-express-server/utils/openapiRouter.mustache b/modules/openapi-generator/src/main/resources/nodejs-express-server/utils/openapiRouter.mustache index 1a77fec7b61..a0651549de3 100644 --- a/modules/openapi-generator/src/main/resources/nodejs-express-server/utils/openapiRouter.mustache +++ b/modules/openapi-generator/src/main/resources/nodejs-express-server/utils/openapiRouter.mustache @@ -16,14 +16,14 @@ function handleError(err, request, response, next) { /** * The purpose of this route is to collect the request variables as defined in the * OpenAPI document and pass them to the handling controller as another Express - * middleware. All parameters are collected in the requet.swagger.values key-value object + * middleware. All parameters are collected in the request.swagger.values key-value object * * The assumption is that security handlers have already verified and allowed access * to this path. If the business-logic of a particular path is dependant on authentication * parameters (e.g. scope checking) - it is recommended to define the authentication header * as one of the parameters expected in the OpenAPI/Swagger document. * - * Requests made to paths that are not in the OpernAPI scope + * Requests made to paths that are not in the OpenAPI scope * are passed on to the next middleware handler. * @returns {Function} */ diff --git a/modules/openapi-generator/src/main/resources/objc/ApiClient-body.mustache b/modules/openapi-generator/src/main/resources/objc/ApiClient-body.mustache index bb864825b56..fcb8e13379b 100644 --- a/modules/openapi-generator/src/main/resources/objc/ApiClient-body.mustache +++ b/modules/openapi-generator/src/main/resources/objc/ApiClient-body.mustache @@ -322,14 +322,14 @@ static NSString * {{classPrefix}}__fileNameForResponse(NSURLResponse *response) /** * Update header and query params based on authentication settings */ -- (void) updateHeaderParams:(NSDictionary * *)headers queryParams:(NSDictionary * *)querys WithAuthSettings:(NSArray *)authSettings { +- (void) updateHeaderParams:(NSDictionary * *)headers queryParams:(NSDictionary * *)queries WithAuthSettings:(NSArray *)authSettings { if ([authSettings count] == 0) { return; } NSMutableDictionary *headersWithAuth = [NSMutableDictionary dictionaryWithDictionary:*headers]; - NSMutableDictionary *querysWithAuth = [NSMutableDictionary dictionaryWithDictionary:*querys]; + NSMutableDictionary *queriesWithAuth = [NSMutableDictionary dictionaryWithDictionary:*queries]; id<{{classPrefix}}Configuration> config = self.configuration; for (NSString *auth in authSettings) { @@ -344,12 +344,12 @@ static NSString * {{classPrefix}}__fileNameForResponse(NSURLResponse *response) if ([type isEqualToString:@"header"] && [key length] > 0 ) { headersWithAuth[key] = value; } else if ([type isEqualToString:@"query"] && [key length] != 0) { - querysWithAuth[key] = value; + queriesWithAuth[key] = value; } } *headers = [NSDictionary dictionaryWithDictionary:headersWithAuth]; - *querys = [NSDictionary dictionaryWithDictionary:querysWithAuth]; + *queries = [NSDictionary dictionaryWithDictionary:queriesWithAuth]; } - (AFSecurityPolicy *) createSecurityPolicy { diff --git a/modules/openapi-generator/src/main/resources/objc/ApiClient-header.mustache b/modules/openapi-generator/src/main/resources/objc/ApiClient-header.mustache index 888f46759ac..573963770f8 100644 --- a/modules/openapi-generator/src/main/resources/objc/ApiClient-header.mustache +++ b/modules/openapi-generator/src/main/resources/objc/ApiClient-header.mustache @@ -56,10 +56,10 @@ extern NSString *const {{classPrefix}}ResponseObjectErrorKey; * Updates header parameters and query parameters for authentication * * @param headers The header parameter will be updated, passed by pointer to pointer. - * @param querys The query parameters will be updated, passed by pointer to pointer. + * @param queries The query parameters will be updated, passed by pointer to pointer. * @param authSettings The authentication names NSArray. */ -- (void) updateHeaderParams:(NSDictionary **)headers queryParams:(NSDictionary **)querys WithAuthSettings:(NSArray *)authSettings; +- (void) updateHeaderParams:(NSDictionary **)headers queryParams:(NSDictionary **)queries WithAuthSettings:(NSArray *)authSettings; /** diff --git a/modules/openapi-generator/src/main/resources/objc/git_push.sh.mustache b/modules/openapi-generator/src/main/resources/objc/git_push.sh.mustache index f0bed5bd841..305f9c115ce 100644 --- a/modules/openapi-generator/src/main/resources/objc/git_push.sh.mustache +++ b/modules/openapi-generator/src/main/resources/objc/git_push.sh.mustache @@ -1,7 +1,7 @@ #!/bin/sh # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" git_user_id=$1 git_repo_id=$2 diff --git a/modules/openapi-generator/src/main/resources/openapi-static/assets/css/style.css b/modules/openapi-generator/src/main/resources/openapi-static/assets/css/style.css index b596c11a535..62aa260ee91 100644 --- a/modules/openapi-generator/src/main/resources/openapi-static/assets/css/style.css +++ b/modules/openapi-generator/src/main/resources/openapi-static/assets/css/style.css @@ -78,7 +78,7 @@ padding-bottom: 5px; } -.model-detail-popup .param-reqiured-true { +.model-detail-popup .param-required-true { font-family: monospace; font-weight: bold; clear: left; diff --git a/modules/openapi-generator/src/main/resources/perl/git_push.sh.mustache b/modules/openapi-generator/src/main/resources/perl/git_push.sh.mustache index f0bed5bd841..305f9c115ce 100755 --- a/modules/openapi-generator/src/main/resources/perl/git_push.sh.mustache +++ b/modules/openapi-generator/src/main/resources/perl/git_push.sh.mustache @@ -1,7 +1,7 @@ #!/bin/sh # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" git_user_id=$1 git_repo_id=$2 diff --git a/modules/openapi-generator/src/main/resources/php-laravel/config/app.php b/modules/openapi-generator/src/main/resources/php-laravel/config/app.php index 8409e00ea9f..8e9ac940c30 100644 --- a/modules/openapi-generator/src/main/resources/php-laravel/config/app.php +++ b/modules/openapi-generator/src/main/resources/php-laravel/config/app.php @@ -113,7 +113,7 @@ return [ | Encryption Key |-------------------------------------------------------------------------- | - | This key is used by the Illuminate encrypter service and should be set + | This key is used by the Illuminate encryptor service and should be set | to a random, 32 character string, otherwise these encrypted strings | will not be safe. Please do this before deploying an application! | diff --git a/modules/openapi-generator/src/main/resources/php-slim-server/index.mustache b/modules/openapi-generator/src/main/resources/php-slim-server/index.mustache index b0258d2fb73..322fc8883d3 100644 --- a/modules/openapi-generator/src/main/resources/php-slim-server/index.mustache +++ b/modules/openapi-generator/src/main/resources/php-slim-server/index.mustache @@ -83,7 +83,7 @@ $config['settings'] = [ $config['tokenAuthenticationOptions'] = [ /** * Tokens are essentially passwords. You should treat them as such and you should always - * use HTTPS. If the middleware detects insecure usage over HTTP it will return unathorized + * use HTTPS. If the middleware detects insecure usage over HTTP it will return unauthorized * with a message Required HTTPS for token authentication. This rule is relaxed for requests * on localhost. To allow insecure usage you must enable it manually by setting secure to * false. @@ -98,7 +98,7 @@ $config['tokenAuthenticationOptions'] = [ // 'relaxed' => ['localhost', '127.0.0.1'], /** - * By default on ocurred a fail on authentication, is sent a response on json format with a + * By default on occurred a fail on authentication, is sent a response on json format with a * message (`Invalid Token` or `Not found Token`) and with the token (if found), with status * `401 Unauthorized`. You can customize it by setting a callable function on error option. * Default: null diff --git a/modules/openapi-generator/src/main/resources/php-slim4-server/config_example.mustache b/modules/openapi-generator/src/main/resources/php-slim4-server/config_example.mustache index 3060299af9c..52755f25385 100644 --- a/modules/openapi-generator/src/main/resources/php-slim4-server/config_example.mustache +++ b/modules/openapi-generator/src/main/resources/php-slim4-server/config_example.mustache @@ -42,7 +42,7 @@ return [ // 'relaxed' => ['localhost', '127.0.0.1'], /** - * By default on ocurred a fail on authentication, is sent a response on json format with a + * By default on occurred a fail on authentication, is sent a response on json format with a * message (`Invalid Token` or `Not found Token`) and with the token (if found), with status * `401 Unauthorized`. You can customize it by setting a callable function on error option. * Default: null diff --git a/modules/openapi-generator/src/main/resources/php-symfony/git_push.sh.mustache b/modules/openapi-generator/src/main/resources/php-symfony/git_push.sh.mustache index f0bed5bd841..305f9c115ce 100755 --- a/modules/openapi-generator/src/main/resources/php-symfony/git_push.sh.mustache +++ b/modules/openapi-generator/src/main/resources/php-symfony/git_push.sh.mustache @@ -1,7 +1,7 @@ #!/bin/sh # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" git_user_id=$1 git_repo_id=$2 diff --git a/modules/openapi-generator/src/main/resources/php/ApiException.mustache b/modules/openapi-generator/src/main/resources/php/ApiException.mustache index a69af300844..ade19b26538 100644 --- a/modules/openapi-generator/src/main/resources/php/ApiException.mustache +++ b/modules/openapi-generator/src/main/resources/php/ApiException.mustache @@ -88,7 +88,7 @@ class ApiException extends Exception } /** - * Sets the deseralized response object (during deserialization) + * Sets the deserialized response object (during deserialization) * * @param mixed $obj Deserialized response object * @@ -100,7 +100,7 @@ class ApiException extends Exception } /** - * Gets the deseralized response object (during deserialization) + * Gets the deserialized response object (during deserialization) * * @return mixed the deserialized response object */ diff --git a/modules/openapi-generator/src/main/resources/php/Configuration.mustache b/modules/openapi-generator/src/main/resources/php/Configuration.mustache index 8c3b92c2c9f..408740429ae 100644 --- a/modules/openapi-generator/src/main/resources/php/Configuration.mustache +++ b/modules/openapi-generator/src/main/resources/php/Configuration.mustache @@ -368,7 +368,7 @@ class Configuration } /** - * Sets the detault configuration instance + * Sets the default configuration instance * * @param Configuration $config An instance of the Configuration Object * diff --git a/modules/openapi-generator/src/main/resources/php/api.mustache b/modules/openapi-generator/src/main/resources/php/api.mustache index eda19cebd22..66934f56449 100644 --- a/modules/openapi-generator/src/main/resources/php/api.mustache +++ b/modules/openapi-generator/src/main/resources/php/api.mustache @@ -123,7 +123,7 @@ use {{invokerPackage}}\ObjectSerializer; {{/vendorExtensions.x-group-parameters}} {{#servers}} {{#-first}} - * This oepration contains host(s) defined in the OpenAP spec. Use 'hostIndex' to select the host. + * This operation contains host(s) defined in the OpenAP spec. Use 'hostIndex' to select the host. {{/-first}} * URL: {{{url}}} {{#-last}} @@ -164,7 +164,7 @@ use {{invokerPackage}}\ObjectSerializer; {{/vendorExtensions.x-group-parameters}} {{#servers}} {{#-first}} - * This oepration contains host(s) defined in the OpenAP spec. Use 'hostIndex' to select the host. + * This operation contains host(s) defined in the OpenAP spec. Use 'hostIndex' to select the host. {{/-first}} * URL: {{{url}}} {{#-last}} @@ -292,7 +292,7 @@ use {{invokerPackage}}\ObjectSerializer; {{/vendorExtensions.x-group-parameters}} {{#servers}} {{#-first}} - * This oepration contains host(s) defined in the OpenAP spec. Use 'hostIndex' to select the host. + * This operation contains host(s) defined in the OpenAP spec. Use 'hostIndex' to select the host. {{/-first}} * URL: {{{url}}} {{#-last}} @@ -336,7 +336,7 @@ use {{invokerPackage}}\ObjectSerializer; {{/vendorExtensions.x-group-parameters}} {{#servers}} {{#-first}} - * This oepration contains host(s) defined in the OpenAP spec. Use 'hostIndex' to select the host. + * This operation contains host(s) defined in the OpenAP spec. Use 'hostIndex' to select the host. {{/-first}} * URL: {{{url}}} {{#-last}} @@ -405,7 +405,7 @@ use {{invokerPackage}}\ObjectSerializer; {{/vendorExtensions.x-group-parameters}} {{#servers}} {{#-first}} - * This oepration contains host(s) defined in the OpenAP spec. Use 'hostIndex' to select the host. + * This operation contains host(s) defined in the OpenAP spec. Use 'hostIndex' to select the host. {{/-first}} * URL: {{{url}}} {{#-last}} diff --git a/modules/openapi-generator/src/main/resources/php/git_push.sh.mustache b/modules/openapi-generator/src/main/resources/php/git_push.sh.mustache index f0bed5bd841..305f9c115ce 100755 --- a/modules/openapi-generator/src/main/resources/php/git_push.sh.mustache +++ b/modules/openapi-generator/src/main/resources/php/git_push.sh.mustache @@ -1,7 +1,7 @@ #!/bin/sh # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" git_user_id=$1 git_repo_id=$2 diff --git a/modules/openapi-generator/src/main/resources/powershell/api_client.mustache b/modules/openapi-generator/src/main/resources/powershell/api_client.mustache index 7d45f071b1e..5c364247594 100644 --- a/modules/openapi-generator/src/main/resources/powershell/api_client.mustache +++ b/modules/openapi-generator/src/main/resources/powershell/api_client.mustache @@ -47,7 +47,7 @@ function Invoke-{{{apiNamePrefix}}}ApiClient { } } if ($CookieParameters -and $CookieParameters.Count -gt 1) { - Write-Warning "Multipe cookie parameters found. Curently only the first one is supported/used" + Write-Warning "Multiple cookie parameters found. Currently only the first one is supported/used" } # accept, content-type headers @@ -67,7 +67,7 @@ function Invoke-{{{apiNamePrefix}}}ApiClient { } - # constrcut URL query string + # construct URL query string $HttpValues = [System.Web.HttpUtility]::ParseQueryString([String]::Empty) foreach ($Parameter in $QueryParameters.GetEnumerator()) { if ($Parameter.Value.Count -gt 1) { // array diff --git a/modules/openapi-generator/src/main/resources/powershell/api_doc.mustache b/modules/openapi-generator/src/main/resources/powershell/api_doc.mustache index 6727741b28b..0ebb80e2ce8 100644 --- a/modules/openapi-generator/src/main/resources/powershell/api_doc.mustache +++ b/modules/openapi-generator/src/main/resources/powershell/api_doc.mustache @@ -80,7 +80,7 @@ ${{paramName}} = {{{vendorExtensions.x-powershell-example}}} # {{{dataType}}} | try { $Result = {{{vendorExtensions.x-powershell-method-name}}}{{#allParams}} -{{paramName}} ${{paramName}}{{/allParams}} } catch { - Write-Host ("Exception occured when calling {{{vendorExtensions.x-powershell-method-name}}}: {0}" -f ($_.ErrorDetails | ConvertFrom-Json)) + Write-Host ("Exception occurred when calling {{{vendorExtensions.x-powershell-method-name}}}: {0}" -f ($_.ErrorDetails | ConvertFrom-Json)) Write-Host ("Response headers: {0}" -f ($_.Exception.Response.Headers | ConvertTo-Json)) } ``` diff --git a/modules/openapi-generator/src/main/resources/powershell/configuration.mustache b/modules/openapi-generator/src/main/resources/powershell/configuration.mustache index 3298e702f1c..21762dbf5c4 100644 --- a/modules/openapi-generator/src/main/resources/powershell/configuration.mustache +++ b/modules/openapi-generator/src/main/resources/powershell/configuration.mustache @@ -72,7 +72,7 @@ Base URL of the HTTP endpoints .PARAMETER Username Username in HTTP basic authentication -.PARAMETER Passowrd +.PARAMETER Password Password in HTTP basic authentication .PARAMETER ApiKey @@ -425,7 +425,7 @@ SHOULD be included. If no headers are specified then '(created)' sets as default. .PARAMETER HashAlgorithm -HashAlgrithm to calculate the hash, Supported values are "sha256" and "sha512" +HashAlgorithm to calculate the hash, Supported values are "sha256" and "sha512" .PARAMETER SigningAlgorithm SigningAlgorithm specifies the signature algorithm, supported values are "RSASSA-PKCS1-v1_5" and "RSASSA-PSS" diff --git a/modules/openapi-generator/src/main/resources/powershell/http_signature_auth.mustache b/modules/openapi-generator/src/main/resources/powershell/http_signature_auth.mustache index a282997cf52..0206a18d7de 100644 --- a/modules/openapi-generator/src/main/resources/powershell/http_signature_auth.mustache +++ b/modules/openapi-generator/src/main/resources/powershell/http_signature_auth.mustache @@ -3,7 +3,7 @@ .SYNOPSIS Gets the headers for HTTP signature. .DESCRIPTION - Gets the headers for the http sigature. + Gets the headers for the http signature. .PARAMETER Method HTTP method .PARAMETER UriBuilder @@ -91,13 +91,13 @@ function Get-{{{apiNamePrefix}}}HttpSignedHeader { foreach ($item in $HttpSignatureHeader.GetEnumerator()) { $headerValuesList += [string]::Format("{0}: {1}", $item.Name, $item.Value) } - #Concatinate headers value separated by new line + #Concatenate headers value separated by new line $headerValuesString = $headerValuesList -join "`n" #Gets the hash of the headers value $signatureHashString = Get-{{{apiNamePrefix}}}StringHash -String $headerValuesString -HashName $httpSigningConfiguration.HashAlgorithm - #Gets the Key type to select the correct signing alogorithm + #Gets the Key type to select the correct signing algorithm $KeyType = Get-{{{apiNamePrefix}}}KeyTypeFromFile -KeyFilePath $httpSigningConfiguration.KeyFilePath if ($keyType -eq "RSA") { @@ -269,7 +269,7 @@ function Get-{{{apiNamePrefix}}}ECDSASignature { Specifies the string to calculate the hash .Parameter HashName Specifies the hash name to calculate the hash, Accepted values are "SHA1", "SHA256" and "SHA512" - It is recommneded not to use "SHA1" to calculate the Hash + It is recommended not to use "SHA1" to calculate the Hash .Outputs String #> @@ -282,8 +282,8 @@ Function Get-{{{apiNamePrefix}}}StringHash { [ValidateSet("SHA1", "SHA256", "SHA512")] $HashName ) - $hashAlogrithm = [System.Security.Cryptography.HashAlgorithm]::Create($HashName) - $hashAlogrithm.ComputeHash([System.Text.Encoding]::UTF8.GetBytes($String)) + $hashAlgorithm = [System.Security.Cryptography.HashAlgorithm]::Create($HashName) + $hashAlgorithm.ComputeHash([System.Text.Encoding]::UTF8.GetBytes($String)) } <# @@ -324,9 +324,9 @@ function Get-{{{apiNamePrefix}}}CryptographicScheme { [Parameter(Mandatory = $true)] [string]$HashAlgorithm ) - $rsaSigntureType = @("RSASSA-PKCS1-v1_5", "RSASSA-PSS") + $rsaSignatureType = @("RSASSA-PKCS1-v1_5", "RSASSA-PSS") $SigningAlgorithm = $null - if ($rsaSigntureType -contains $SigningAlgorithm) { + if ($rsaSignatureType -contains $SigningAlgorithm) { switch ($HashAlgorithm) { "sha256" { $SigningAlgorithm = "rsa-sha256" } "sha512" { $SigningAlgorithm = "rsa-sha512" } @@ -382,9 +382,9 @@ function Get-{{{apiNamePrefix}}}KeyTypeFromFile { <# .Synopsis - Converts sequence of R and S bytes to ANS1 format for ECDSASIgnature. + Converts sequence of R and S bytes to ANS1 format for ECDSASignature. .Description - Converts sequence of R and S bytes to ANS1 format for ECDSASIgnature. + Converts sequence of R and S bytes to ANS1 format for ECDSASignature. .Parameter RawBytes[] Specifies the R and S bytes of ECDSA signature. .Outputs @@ -396,7 +396,7 @@ function ConvertTo-ECDSAANS1Format{ [byte[]]$RawBytes ) - $derLength = 68 #default lenght for ECDSA code signinged bit 0x44 + $derLength = 68 #default length for ECDSA code signing bit 0x44 $rbytesLength = 32 #R length 0x20 $sbytesLength = 32 #S length 0x20 [byte[]]$rBytes = $signedBytes[0..31] @@ -417,7 +417,7 @@ function ConvertTo-ECDSAANS1Format{ [byte[]]$derBytes = @() $derBytes += 48 # start of the sequence 0x30 - $derBytes += $derLength # total length r lenth, type and r bytes + $derBytes += $derLength # total length r length, type and r bytes $derBytes += 2 # tag for integer $derBytes += $rbytesLength # length of r diff --git a/modules/openapi-generator/src/main/resources/powershell/model_anyof.mustache b/modules/openapi-generator/src/main/resources/powershell/model_anyof.mustache index 0b9d69dd490..1021ad5c862 100644 --- a/modules/openapi-generator/src/main/resources/powershell/model_anyof.mustache +++ b/modules/openapi-generator/src/main/resources/powershell/model_anyof.mustache @@ -28,7 +28,7 @@ function ConvertFrom-{{{apiNamePrefix}}}JsonTo{{{classname}}} { $matchInstance = $null {{#isNullable}} - # nullalble check + # nullable check if ([string]::IsNullOrEmpty($Json) -or $Json -eq "{}") { return [PSCustomObject]@{ "ActualType" = $null diff --git a/modules/openapi-generator/src/main/resources/powershell/model_oneof.mustache b/modules/openapi-generator/src/main/resources/powershell/model_oneof.mustache index e2433a866fe..66a01cbc911 100644 --- a/modules/openapi-generator/src/main/resources/powershell/model_oneof.mustache +++ b/modules/openapi-generator/src/main/resources/powershell/model_oneof.mustache @@ -28,7 +28,7 @@ function ConvertFrom-{{{apiNamePrefix}}}JsonTo{{{classname}}} { $matchInstance = $null {{#isNullable}} - # nullalble check + # nullable check if ([string]::IsNullOrEmpty($Json) -or $Json -eq "{}") { return [PSCustomObject]@{ "ActualType" = $null diff --git a/modules/openapi-generator/src/main/resources/powershell/rsa_provider.mustache b/modules/openapi-generator/src/main/resources/powershell/rsa_provider.mustache index 451221fd894..ab9be24df97 100644 --- a/modules/openapi-generator/src/main/resources/powershell/rsa_provider.mustache +++ b/modules/openapi-generator/src/main/resources/powershell/rsa_provider.mustache @@ -11,7 +11,7 @@ namespace RSAEncryption { public class RSAEncryptionProvider { - public static RSACryptoServiceProvider GetRSAProviderFromPemFile(String pemfile,SecureString keyPassPharse = null) + public static RSACryptoServiceProvider GetRSAProviderFromPemFile(String pemfile,SecureString keyPassPhrase = null) { const String pempubheader = "-----BEGIN PUBLIC KEY-----"; const String pempubfooter = "-----END PUBLIC KEY-----"; @@ -31,7 +31,7 @@ namespace RSAEncryption if (isPrivateKeyFile) { - pemkey = ConvertPrivateKeyToBytes(pemstr,keyPassPharse); + pemkey = ConvertPrivateKeyToBytes(pemstr,keyPassPhrase); if (pemkey == null) { return null; @@ -41,7 +41,7 @@ namespace RSAEncryption return null ; } - static byte[] ConvertPrivateKeyToBytes(String instr, SecureString keyPassPharse = null) + static byte[] ConvertPrivateKeyToBytes(String instr, SecureString keyPassPhrase = null) { const String pemprivheader = "-----BEGIN RSA PRIVATE KEY-----"; const String pemprivfooter = "-----END RSA PRIVATE KEY-----"; @@ -88,11 +88,11 @@ namespace RSAEncryption binkey = Convert.FromBase64String(encryptedstr); } catch (System.FormatException) - { //data is not in base64 fromat + { //data is not in base64 format return null; } - byte[] deskey = GetEncryptedKey(salt, keyPassPharse, 1, 2); // count=1 (for OpenSSL implementation); 2 iterations to get at least 24 bytes + byte[] deskey = GetEncryptedKey(salt, keyPassPhrase, 1, 2); // count=1 (for OpenSSL implementation); 2 iterations to get at least 24 bytes if (deskey == null) return null; @@ -213,19 +213,19 @@ namespace RSAEncryption { IntPtr unmanagedPswd = IntPtr.Zero; int HASHLENGTH = 16; //MD5 bytes - byte[] keymaterial = new byte[HASHLENGTH * miter]; //to store contatenated Mi hashed results + byte[] keymaterial = new byte[HASHLENGTH * miter]; //to store concatenated Mi hashed results byte[] psbytes = new byte[secpswd.Length]; unmanagedPswd = Marshal.SecureStringToGlobalAllocAnsi(secpswd); Marshal.Copy(unmanagedPswd, psbytes, 0, psbytes.Length); Marshal.ZeroFreeGlobalAllocAnsi(unmanagedPswd); - // --- contatenate salt and pswd bytes into fixed data array --- + // --- concatenate salt and pswd bytes into fixed data array --- byte[] data00 = new byte[psbytes.Length + salt.Length]; Array.Copy(psbytes, data00, psbytes.Length); //copy the pswd bytes Array.Copy(salt, 0, data00, psbytes.Length, salt.Length); //concatenate the salt bytes - // ---- do multi-hashing and contatenate results D1, D2 ... into keymaterial bytes ---- + // ---- do multi-hashing and concatenate results D1, D2 ... into keymaterial bytes ---- MD5 md5 = new MD5CryptoServiceProvider(); byte[] result = null; byte[] hashtarget = new byte[HASHLENGTH + data00.Length]; //fixed length initial hashtarget @@ -244,7 +244,7 @@ namespace RSAEncryption for (int i = 0; i < count; i++) result = md5.ComputeHash(result); - Array.Copy(result, 0, keymaterial, j * HASHLENGTH, result.Length); //contatenate to keymaterial + Array.Copy(result, 0, keymaterial, j * HASHLENGTH, result.Length); //concatenate to keymaterial } byte[] deskey = new byte[24]; Array.Copy(keymaterial, deskey, deskey.Length); diff --git a/modules/openapi-generator/src/main/resources/protobuf-schema/git_push.sh.mustache b/modules/openapi-generator/src/main/resources/protobuf-schema/git_push.sh.mustache index 90e9e063940..81aaba42129 100755 --- a/modules/openapi-generator/src/main/resources/protobuf-schema/git_push.sh.mustache +++ b/modules/openapi-generator/src/main/resources/protobuf-schema/git_push.sh.mustache @@ -1,7 +1,7 @@ #!/bin/sh # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" git_user_id=$1 git_repo_id=$2 diff --git a/modules/openapi-generator/src/main/resources/python-aiohttp/controller_test.mustache b/modules/openapi-generator/src/main/resources/python-aiohttp/controller_test.mustache index a00675fdb51..7b89e168eb7 100644 --- a/modules/openapi-generator/src/main/resources/python-aiohttp/controller_test.mustache +++ b/modules/openapi-generator/src/main/resources/python-aiohttp/controller_test.mustache @@ -31,9 +31,9 @@ async def test_{{operationId}}(client): {{#queryParams}} {{#-first}}params = [{{/-first}}{{^-first}} {{/-first}}('{{^vendorExtensions.x-python-connexion-openapi-name}}{{paramName}}{{/vendorExtensions.x-python-connexion-openapi-name}}{{#vendorExtensions.x-python-connexion-openapi-name}}{{vendorExtensions.x-python-connexion-openapi-name}}{{/vendorExtensions.x-python-connexion-openapi-name}}', {{{example}}}){{^-last}},{{/-last}}{{#-last}}]{{/-last}} {{/queryParams}} - headers = { {{#vendorExtensions.x-prefered-produce}} - 'Accept': '{{mediaType}}',{{/vendorExtensions.x-prefered-produce}}{{#vendorExtensions.x-prefered-consume}} - 'Content-Type': '{{mediaType}}',{{/vendorExtensions.x-prefered-consume}}{{#headerParams}} + headers = { {{#vendorExtensions.x-preferred-produce}} + 'Accept': '{{mediaType}}',{{/vendorExtensions.x-preferred-produce}}{{#vendorExtensions.x-preferred-consume}} + 'Content-Type': '{{mediaType}}',{{/vendorExtensions.x-preferred-consume}}{{#headerParams}} '{{paramName}}': {{{example}}},{{/headerParams}}{{#authMethods}} {{#isOAuth}}'Authorization': 'Bearer special-key',{{/isOAuth}}{{#isApiKey}}'{{name}}': 'special-key',{{/isApiKey}}{{#isBasicBasic}}'Authorization': 'BasicZm9vOmJhcg==',{{/isBasicBasic}}{{#isBasicBearer}}'Authorization': 'Bearer special-key',{{/isBasicBearer}}{{/authMethods}} } diff --git a/modules/openapi-generator/src/main/resources/python-blueplanet/solution/fig.mustache b/modules/openapi-generator/src/main/resources/python-blueplanet/solution/fig.mustache index 8de0cdfae46..5026e3c4952 100644 --- a/modules/openapi-generator/src/main/resources/python-blueplanet/solution/fig.mustache +++ b/modules/openapi-generator/src/main/resources/python-blueplanet/solution/fig.mustache @@ -24,7 +24,7 @@ docker_registry: registry.blueplanet.com solution_name: {{packageName}} # version is not read from this file, but coded in the Makefile -# the vendor and tag are provided by the Makefile as argumernts to solmaker +# the vendor and tag are provided by the Makefile as arguments to solmaker solution_version: {{packageVersion}} # ============ NOTE =============================================================================== diff --git a/modules/openapi-generator/src/main/resources/python-flask/controller_test.mustache b/modules/openapi-generator/src/main/resources/python-flask/controller_test.mustache index 1d16331325f..f8b8beff559 100644 --- a/modules/openapi-generator/src/main/resources/python-flask/controller_test.mustache +++ b/modules/openapi-generator/src/main/resources/python-flask/controller_test.mustache @@ -29,9 +29,9 @@ class {{#operations}}Test{{classname}}(BaseTestCase): {{#queryParams}} {{#-first}}query_string = [{{/-first}}{{^-first}} {{/-first}}('{{^vendorExtensions.x-python-connexion-openapi-name}}{{paramName}}{{/vendorExtensions.x-python-connexion-openapi-name}}{{#vendorExtensions.x-python-connexion-openapi-name}}{{vendorExtensions.x-python-connexion-openapi-name}}{{/vendorExtensions.x-python-connexion-openapi-name}}', {{{example}}}){{^-last}},{{/-last}}{{#-last}}]{{/-last}} {{/queryParams}} - headers = { {{#vendorExtensions.x-prefered-produce}} - 'Accept': '{{mediaType}}',{{/vendorExtensions.x-prefered-produce}}{{#vendorExtensions.x-prefered-consume}} - 'Content-Type': '{{mediaType}}',{{/vendorExtensions.x-prefered-consume}}{{#headerParams}} + headers = { {{#vendorExtensions.x-preferred-produce}} + 'Accept': '{{mediaType}}',{{/vendorExtensions.x-preferred-produce}}{{#vendorExtensions.x-preferred-consume}} + 'Content-Type': '{{mediaType}}',{{/vendorExtensions.x-preferred-consume}}{{#headerParams}} '{{paramName}}': {{{example}}},{{/headerParams}}{{#authMethods}} {{#isOAuth}}'Authorization': 'Bearer special-key',{{/isOAuth}}{{#isApiKey}}'{{name}}': 'special-key',{{/isApiKey}}{{#isBasicBasic}}'Authorization': 'Basic Zm9vOmJhcg==',{{/isBasicBasic}}{{#isBasicBearer}}'Authorization': 'Bearer special-key',{{/isBasicBearer}}{{/authMethods}} } diff --git a/modules/openapi-generator/src/main/resources/python-flask/git_push.sh.mustache b/modules/openapi-generator/src/main/resources/python-flask/git_push.sh.mustache index f0bed5bd841..305f9c115ce 100755 --- a/modules/openapi-generator/src/main/resources/python-flask/git_push.sh.mustache +++ b/modules/openapi-generator/src/main/resources/python-flask/git_push.sh.mustache @@ -1,7 +1,7 @@ #!/bin/sh # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" git_user_id=$1 git_repo_id=$2 diff --git a/modules/openapi-generator/src/main/resources/python-legacy/api_client.mustache b/modules/openapi-generator/src/main/resources/python-legacy/api_client.mustache index a11b17c39dd..daeb30ddc26 100644 --- a/modules/openapi-generator/src/main/resources/python-legacy/api_client.mustache +++ b/modules/openapi-generator/src/main/resources/python-legacy/api_client.mustache @@ -561,12 +561,12 @@ class ApiClient(object): else: return content_types[0] - def update_params_for_auth(self, headers, querys, auth_settings, + def update_params_for_auth(self, headers, queries, auth_settings, request_auth=None): """Updates header and query params based on authentication setting. :param headers: Header parameters dict to be updated. - :param querys: Query parameters tuple list to be updated. + :param queries: Query parameters tuple list to be updated. :param auth_settings: Authentication setting identifiers list. :param request_auth: if set, the provided settings will override the token in the configuration. @@ -575,19 +575,19 @@ class ApiClient(object): return if request_auth: - self._apply_auth_params(headers, querys, request_auth) + self._apply_auth_params(headers, queries, request_auth) return for auth in auth_settings: auth_setting = self.configuration.auth_settings().get(auth) if auth_setting: - self._apply_auth_params(headers, querys, auth_setting) + self._apply_auth_params(headers, queries, auth_setting) - def _apply_auth_params(self, headers, querys, auth_setting): + def _apply_auth_params(self, headers, queries, auth_setting): """Updates the request parameters based on a single auth_setting :param headers: Header parameters dict to be updated. - :param querys: Query parameters tuple list to be updated. + :param queries: Query parameters tuple list to be updated. :param auth_setting: auth settings for the endpoint """ if auth_setting['in'] == 'cookie': @@ -595,7 +595,7 @@ class ApiClient(object): elif auth_setting['in'] == 'header': headers[auth_setting['key']] = auth_setting['value'] elif auth_setting['in'] == 'query': - querys.append((auth_setting['key'], auth_setting['value'])) + queries.append((auth_setting['key'], auth_setting['value'])) else: raise ApiValueError( 'Authentication token must be in `query` or `header`' diff --git a/modules/openapi-generator/src/main/resources/python-legacy/configuration.mustache b/modules/openapi-generator/src/main/resources/python-legacy/configuration.mustache index e53d48184df..14604352cc3 100644 --- a/modules/openapi-generator/src/main/resources/python-legacy/configuration.mustache +++ b/modules/openapi-generator/src/main/resources/python-legacy/configuration.mustache @@ -138,7 +138,7 @@ conf = {{{packageName}}}.Configuration( 'Authorization' header, which is used to carry the signature. One may be tempted to sign all headers by default, but in practice it rarely works. - This is beccause explicit proxies, transparent proxies, TLS termination endpoints or + This is because explicit proxies, transparent proxies, TLS termination endpoints or load balancers may add/modify/remove headers. Include the HTTP headers that you know are not going to be modified in transit. @@ -334,7 +334,7 @@ conf = {{{packageName}}}.Configuration( self._disabled_client_side_validations = s {{#hasHttpSignatureMethods}} if name == "signing_info" and value is not None: - # Ensure the host paramater from signing info is the same as + # Ensure the host parameter from signing info is the same as # Configuration.host. value.host = self.host {{/hasHttpSignatureMethods}} diff --git a/modules/openapi-generator/src/main/resources/python-legacy/git_push.sh.mustache b/modules/openapi-generator/src/main/resources/python-legacy/git_push.sh.mustache index f0bed5bd841..305f9c115ce 100755 --- a/modules/openapi-generator/src/main/resources/python-legacy/git_push.sh.mustache +++ b/modules/openapi-generator/src/main/resources/python-legacy/git_push.sh.mustache @@ -1,7 +1,7 @@ #!/bin/sh # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" git_user_id=$1 git_repo_id=$2 diff --git a/modules/openapi-generator/src/main/resources/python/api_client.mustache b/modules/openapi-generator/src/main/resources/python/api_client.mustache index 8f07d0106d3..3c1c5eb8911 100644 --- a/modules/openapi-generator/src/main/resources/python/api_client.mustache +++ b/modules/openapi-generator/src/main/resources/python/api_client.mustache @@ -600,12 +600,12 @@ class ApiClient(object): else: return content_types[0] - def update_params_for_auth(self, headers, querys, auth_settings, + def update_params_for_auth(self, headers, queries, auth_settings, resource_path, method, body): """Updates header and query params based on authentication setting. :param headers: Header parameters dict to be updated. - :param querys: Query parameters tuple list to be updated. + :param queries: Query parameters tuple list to be updated. :param auth_settings: Authentication setting identifiers list. :param resource_path: A string representation of the HTTP request resource path. :param method: A string representation of the HTTP request method. @@ -629,11 +629,11 @@ class ApiClient(object): # that are calculated dynamically. signing_info = self.configuration.signing_info auth_headers = signing_info.get_http_signature_headers( - resource_path, method, headers, body, querys) + resource_path, method, headers, body, queries) headers.update(auth_headers) {{/hasHttpSignatureMethods}} elif auth_setting['in'] == 'query': - querys.append((auth_setting['key'], auth_setting['value'])) + queries.append((auth_setting['key'], auth_setting['value'])) else: raise ApiValueError( 'Authentication token must be in `query` or `header`' diff --git a/modules/openapi-generator/src/main/resources/python/configuration.mustache b/modules/openapi-generator/src/main/resources/python/configuration.mustache index ce5ba74667d..ac15aa430ea 100644 --- a/modules/openapi-generator/src/main/resources/python/configuration.mustache +++ b/modules/openapi-generator/src/main/resources/python/configuration.mustache @@ -133,7 +133,7 @@ conf = {{{packageName}}}.Configuration( 'Authorization' header, which is used to carry the signature. One may be tempted to sign all headers by default, but in practice it rarely works. - This is beccause explicit proxies, transparent proxies, TLS termination endpoints or + This is because explicit proxies, transparent proxies, TLS termination endpoints or load balancers may add/modify/remove headers. Include the HTTP headers that you know are not going to be modified in transit. @@ -318,7 +318,7 @@ conf = {{{packageName}}}.Configuration( self._disabled_client_side_validations = s {{#hasHttpSignatureMethods}} if name == "signing_info" and value is not None: - # Ensure the host paramater from signing info is the same as + # Ensure the host parameter from signing info is the same as # Configuration.host. value.host = self.host {{/hasHttpSignatureMethods}} diff --git a/modules/openapi-generator/src/main/resources/python/git_push.sh.mustache b/modules/openapi-generator/src/main/resources/python/git_push.sh.mustache index f0bed5bd841..305f9c115ce 100755 --- a/modules/openapi-generator/src/main/resources/python/git_push.sh.mustache +++ b/modules/openapi-generator/src/main/resources/python/git_push.sh.mustache @@ -1,7 +1,7 @@ #!/bin/sh # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" git_user_id=$1 git_repo_id=$2 diff --git a/modules/openapi-generator/src/main/resources/python/model_templates/methods_setattr_getattr_composed.mustache b/modules/openapi-generator/src/main/resources/python/model_templates/methods_setattr_getattr_composed.mustache index de7887ebdbd..ada739e7570 100644 --- a/modules/openapi-generator/src/main/resources/python/model_templates/methods_setattr_getattr_composed.mustache +++ b/modules/openapi-generator/src/main/resources/python/model_templates/methods_setattr_getattr_composed.mustache @@ -87,7 +87,7 @@ return value def __contains__(self, name): - """used by `in` operator to check if an attrbute value was set in an instance: `'attr' in instance`""" + """used by `in` operator to check if an attribute value was set in an instance: `'attr' in instance`""" if name in self.required_properties: return name in self.__dict__ diff --git a/modules/openapi-generator/src/main/resources/python/model_templates/methods_setattr_getattr_normal.mustache b/modules/openapi-generator/src/main/resources/python/model_templates/methods_setattr_getattr_normal.mustache index e700dad9536..8d2f48ea0df 100644 --- a/modules/openapi-generator/src/main/resources/python/model_templates/methods_setattr_getattr_normal.mustache +++ b/modules/openapi-generator/src/main/resources/python/model_templates/methods_setattr_getattr_normal.mustache @@ -25,7 +25,7 @@ ) def __contains__(self, name): - """used by `in` operator to check if an attrbute value was set in an instance: `'attr' in instance`""" + """used by `in` operator to check if an attribute value was set in an instance: `'attr' in instance`""" if name in self.required_properties: return name in self.__dict__ diff --git a/modules/openapi-generator/src/main/resources/python/model_templates/model_composed.mustache b/modules/openapi-generator/src/main/resources/python/model_templates/model_composed.mustache index 9a5ab0f66b6..a6d2277a733 100644 --- a/modules/openapi-generator/src/main/resources/python/model_templates/model_composed.mustache +++ b/modules/openapi-generator/src/main/resources/python/model_templates/model_composed.mustache @@ -46,7 +46,7 @@ class {{classname}}(ModelComposed): # we need this here to make our import statements work # we must store _composed_schemas in here so the code is only run # when we invoke this method. If we kept this at the class - # level we would get an error beause the class level + # level we would get an error because the class level # code would be run when this module is imported, and these composed # classes don't exist yet because their module has not finished # loading diff --git a/modules/openapi-generator/src/main/resources/python/signing.mustache b/modules/openapi-generator/src/main/resources/python/signing.mustache index 8dfbf5148f3..e39866a53df 100644 --- a/modules/openapi-generator/src/main/resources/python/signing.mustache +++ b/modules/openapi-generator/src/main/resources/python/signing.mustache @@ -333,7 +333,7 @@ class HttpSigningConfiguration(object): :return: A tuple of (digest, prefix). The digest is a hashing object that contains the cryptographic digest of the HTTP request. - The prefix is a string that identifies the cryptographc hash. It is used + The prefix is a string that identifies the cryptographic hash. It is used to generate the 'Digest' header as specified in RFC 3230. """ if self.hash_algorithm == HASH_SHA512: diff --git a/modules/openapi-generator/src/main/resources/r/git_push.sh.mustache b/modules/openapi-generator/src/main/resources/r/git_push.sh.mustache index f0bed5bd841..305f9c115ce 100755 --- a/modules/openapi-generator/src/main/resources/r/git_push.sh.mustache +++ b/modules/openapi-generator/src/main/resources/r/git_push.sh.mustache @@ -1,7 +1,7 @@ #!/bin/sh # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" git_user_id=$1 git_repo_id=$2 diff --git a/modules/openapi-generator/src/main/resources/ruby-client/api_client.mustache b/modules/openapi-generator/src/main/resources/ruby-client/api_client.mustache index a02c9957514..8c6b54ae151 100644 --- a/modules/openapi-generator/src/main/resources/ruby-client/api_client.mustache +++ b/modules/openapi-generator/src/main/resources/ruby-client/api_client.mustache @@ -170,7 +170,7 @@ module {{moduleName}} @config.base_url(opts[:operation]) + path end - # Update hearder and query params based on authentication settings. + # Update header and query params based on authentication settings. # # @param [Hash] header_params Header parameters # @param [Hash] query_params Query parameters diff --git a/modules/openapi-generator/src/main/resources/ruby-client/git_push.sh.mustache b/modules/openapi-generator/src/main/resources/ruby-client/git_push.sh.mustache index f0bed5bd841..305f9c115ce 100755 --- a/modules/openapi-generator/src/main/resources/ruby-client/git_push.sh.mustache +++ b/modules/openapi-generator/src/main/resources/ruby-client/git_push.sh.mustache @@ -1,7 +1,7 @@ #!/bin/sh # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" git_user_id=$1 git_repo_id=$2 diff --git a/modules/openapi-generator/src/main/resources/ruby-client/partial_oneof_module.mustache b/modules/openapi-generator/src/main/resources/ruby-client/partial_oneof_module.mustache index d79b003e0b0..50655f429b9 100644 --- a/modules/openapi-generator/src/main/resources/ruby-client/partial_oneof_module.mustache +++ b/modules/openapi-generator/src/main/resources/ruby-client/partial_oneof_module.mustache @@ -64,7 +64,7 @@ # - We do not attempt to check whether exactly one item matches. # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) # due to the way the deserialization is made in the base_object template (it just casts without verifying). - # - TODO: scalar values are defacto behaving as if they were nullable. + # - TODO: scalar values are de facto behaving as if they were nullable. # - TODO: logging when debugging is set. openapi_one_of.each do |klass| begin diff --git a/modules/openapi-generator/src/main/resources/rust-server/example-server-common.mustache b/modules/openapi-generator/src/main/resources/rust-server/example-server-common.mustache index 14545b26867..ce006321f6e 100644 --- a/modules/openapi-generator/src/main/resources/rust-server/example-server-common.mustache +++ b/modules/openapi-generator/src/main/resources/rust-server/example-server-common.mustache @@ -51,7 +51,7 @@ pub async fn create(addr: &str, https: bool) { // Server authentication ssl.set_private_key_file("examples/server-key.pem", SslFiletype::PEM).expect("Failed to set private key"); - ssl.set_certificate_chain_file("examples/server-chain.pem").expect("Failed to set cerificate chain"); + ssl.set_certificate_chain_file("examples/server-chain.pem").expect("Failed to set certificate chain"); ssl.check_private_key().expect("Failed to check private key"); let tls_acceptor = Arc::new(ssl.build()); diff --git a/modules/openapi-generator/src/main/resources/rust-server/example-server-operation.mustache b/modules/openapi-generator/src/main/resources/rust-server/example-server-operation.mustache index fbdc6f84479..a7f6a9e4ece 100644 --- a/modules/openapi-generator/src/main/resources/rust-server/example-server-operation.mustache +++ b/modules/openapi-generator/src/main/resources/rust-server/example-server-operation.mustache @@ -15,5 +15,5 @@ { let context = context.clone(); info!("{{#vendorExtensions}}{{{x-operation-id}}}{{/vendorExtensions}}({{#allParams}}{{#vendorExtensions}}{{{x-format-string}}}{{/vendorExtensions}}{{^-last}}, {{/-last}}{{/allParams}}) - X-Span-ID: {:?}"{{#allParams}}, {{{paramName}}}{{/allParams}}, context.get().0.clone()); - Err("Generic failuare".into()) + Err("Generic failure".into()) } diff --git a/modules/openapi-generator/src/main/resources/rust/git_push.sh.mustache b/modules/openapi-generator/src/main/resources/rust/git_push.sh.mustache index f0bed5bd841..305f9c115ce 100755 --- a/modules/openapi-generator/src/main/resources/rust/git_push.sh.mustache +++ b/modules/openapi-generator/src/main/resources/rust/git_push.sh.mustache @@ -1,7 +1,7 @@ #!/bin/sh # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" git_user_id=$1 git_repo_id=$2 diff --git a/modules/openapi-generator/src/main/resources/scala-akka-client/requests.mustache b/modules/openapi-generator/src/main/resources/scala-akka-client/requests.mustache index 727d88f1818..56177e11c30 100644 --- a/modules/openapi-generator/src/main/resources/scala-akka-client/requests.mustache +++ b/modules/openapi-generator/src/main/resources/scala-akka-client/requests.mustache @@ -64,7 +64,7 @@ object ApiMethods { trait ApiModel /** - * Single trait defining a credential that can be transformed to a paramName / paramValue tupple + * Single trait defining a credential that can be transformed to a paramName / paramValue tuple */ sealed trait Credentials { def asQueryParam: Option[(String, String)] = None @@ -159,7 +159,7 @@ object CollectionFormats { object ParametersMap { /** - * Pimp parameters maps (Map[String, Any]) in order to transform them in a sequence of String -> Any tupples, + * Pimp parameters maps (Map[String, Any]) in order to transform them in a sequence of String -> Any tuples, * with valid url-encoding, arrays handling, files preservation, ... */ implicit class ParametersMapImprovements(val m: Map[String, Any]) { diff --git a/modules/openapi-generator/src/main/resources/scala-httpclient/git_push.sh.mustache b/modules/openapi-generator/src/main/resources/scala-httpclient/git_push.sh.mustache index f0bed5bd841..305f9c115ce 100755 --- a/modules/openapi-generator/src/main/resources/scala-httpclient/git_push.sh.mustache +++ b/modules/openapi-generator/src/main/resources/scala-httpclient/git_push.sh.mustache @@ -1,7 +1,7 @@ #!/bin/sh # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" git_user_id=$1 git_repo_id=$2 diff --git a/modules/openapi-generator/src/main/resources/scala-lagom-server/api.mustache b/modules/openapi-generator/src/main/resources/scala-lagom-server/api.mustache index 7e0e0aa4f82..05ae4f9cd93 100644 --- a/modules/openapi-generator/src/main/resources/scala-lagom-server/api.mustache +++ b/modules/openapi-generator/src/main/resources/scala-lagom-server/api.mustache @@ -33,7 +33,7 @@ trait {{classname}} extends Service { {{#isFormParam}} // {{{paramName}}}:{{dataType}} -- not yet supported x-www-form-urlencoded{{/isFormParam}}{{/allParams}}{{/hasFormParams}}{{#hasHeaderParams}}{{#allParams}} {{#isHeaderParam}} - // {{{paramName}}}:{{dataType}} -- not yet supported heder params{{/isHeaderParam}}{{/allParams}}{{/hasHeaderParams}} + // {{{paramName}}}:{{dataType}} -- not yet supported header params{{/isHeaderParam}}{{/allParams}}{{/hasHeaderParams}} /** * {{summary}} * {{notes}} diff --git a/modules/openapi-generator/src/main/resources/swift4/git_push.sh.mustache b/modules/openapi-generator/src/main/resources/swift4/git_push.sh.mustache index f0bed5bd841..305f9c115ce 100755 --- a/modules/openapi-generator/src/main/resources/swift4/git_push.sh.mustache +++ b/modules/openapi-generator/src/main/resources/swift4/git_push.sh.mustache @@ -1,7 +1,7 @@ #!/bin/sh # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" git_user_id=$1 git_repo_id=$2 diff --git a/modules/openapi-generator/src/main/resources/swift5/git_push.sh.mustache b/modules/openapi-generator/src/main/resources/swift5/git_push.sh.mustache index f0bed5bd841..305f9c115ce 100755 --- a/modules/openapi-generator/src/main/resources/swift5/git_push.sh.mustache +++ b/modules/openapi-generator/src/main/resources/swift5/git_push.sh.mustache @@ -1,7 +1,7 @@ #!/bin/sh # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" git_user_id=$1 git_repo_id=$2 diff --git a/modules/openapi-generator/src/main/resources/typescript-angular/git_push.sh.mustache b/modules/openapi-generator/src/main/resources/typescript-angular/git_push.sh.mustache index f0bed5bd841..305f9c115ce 100755 --- a/modules/openapi-generator/src/main/resources/typescript-angular/git_push.sh.mustache +++ b/modules/openapi-generator/src/main/resources/typescript-angular/git_push.sh.mustache @@ -1,7 +1,7 @@ #!/bin/sh # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" git_user_id=$1 git_repo_id=$2 diff --git a/modules/openapi-generator/src/main/resources/typescript-angularjs/git_push.sh.mustache b/modules/openapi-generator/src/main/resources/typescript-angularjs/git_push.sh.mustache index f0bed5bd841..305f9c115ce 100755 --- a/modules/openapi-generator/src/main/resources/typescript-angularjs/git_push.sh.mustache +++ b/modules/openapi-generator/src/main/resources/typescript-angularjs/git_push.sh.mustache @@ -1,7 +1,7 @@ #!/bin/sh # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" git_user_id=$1 git_repo_id=$2 diff --git a/modules/openapi-generator/src/main/resources/typescript-aurelia/git_push.sh.mustache b/modules/openapi-generator/src/main/resources/typescript-aurelia/git_push.sh.mustache index f0bed5bd841..305f9c115ce 100755 --- a/modules/openapi-generator/src/main/resources/typescript-aurelia/git_push.sh.mustache +++ b/modules/openapi-generator/src/main/resources/typescript-aurelia/git_push.sh.mustache @@ -1,7 +1,7 @@ #!/bin/sh # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" git_user_id=$1 git_repo_id=$2 diff --git a/modules/openapi-generator/src/main/resources/typescript-axios/git_push.sh.mustache b/modules/openapi-generator/src/main/resources/typescript-axios/git_push.sh.mustache index f0bed5bd841..305f9c115ce 100755 --- a/modules/openapi-generator/src/main/resources/typescript-axios/git_push.sh.mustache +++ b/modules/openapi-generator/src/main/resources/typescript-axios/git_push.sh.mustache @@ -1,7 +1,7 @@ #!/bin/sh # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" git_user_id=$1 git_repo_id=$2 diff --git a/modules/openapi-generator/src/main/resources/typescript-inversify/HttpClient.mustache b/modules/openapi-generator/src/main/resources/typescript-inversify/HttpClient.mustache index ec584a0fe6d..35590c93b04 100644 --- a/modules/openapi-generator/src/main/resources/typescript-inversify/HttpClient.mustache +++ b/modules/openapi-generator/src/main/resources/typescript-inversify/HttpClient.mustache @@ -52,7 +52,7 @@ class HttpClient implements IHttpClient { private performNetworkCall(url: string, method: string, body?: any, headers?: Headers): Observable { - // when using fetch & a multipart upload, the requests content-type is handled by the browser, so should be left unset otherwise the multipart boundry is not added + // when using fetch & a multipart upload, the requests content-type is handled by the browser, so should be left unset otherwise the multipart boundary is not added if(headers && headers['Content-Type'] === 'multipart/form-data') { delete headers['Content-Type']; } diff --git a/modules/openapi-generator/src/main/resources/typescript-inversify/git_push.sh.mustache b/modules/openapi-generator/src/main/resources/typescript-inversify/git_push.sh.mustache index f0bed5bd841..305f9c115ce 100755 --- a/modules/openapi-generator/src/main/resources/typescript-inversify/git_push.sh.mustache +++ b/modules/openapi-generator/src/main/resources/typescript-inversify/git_push.sh.mustache @@ -1,7 +1,7 @@ #!/bin/sh # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" git_user_id=$1 git_repo_id=$2 diff --git a/modules/openapi-generator/src/main/resources/typescript-jquery/git_push.sh.mustache b/modules/openapi-generator/src/main/resources/typescript-jquery/git_push.sh.mustache index f0bed5bd841..305f9c115ce 100755 --- a/modules/openapi-generator/src/main/resources/typescript-jquery/git_push.sh.mustache +++ b/modules/openapi-generator/src/main/resources/typescript-jquery/git_push.sh.mustache @@ -1,7 +1,7 @@ #!/bin/sh # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" git_user_id=$1 git_repo_id=$2 diff --git a/modules/openapi-generator/src/main/resources/typescript-nestjs/git_push.sh.mustache b/modules/openapi-generator/src/main/resources/typescript-nestjs/git_push.sh.mustache index f0bed5bd841..305f9c115ce 100755 --- a/modules/openapi-generator/src/main/resources/typescript-nestjs/git_push.sh.mustache +++ b/modules/openapi-generator/src/main/resources/typescript-nestjs/git_push.sh.mustache @@ -1,7 +1,7 @@ #!/bin/sh # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" git_user_id=$1 git_repo_id=$2 diff --git a/modules/openapi-generator/src/main/resources/typescript-node/git_push.sh.mustache b/modules/openapi-generator/src/main/resources/typescript-node/git_push.sh.mustache index f0bed5bd841..305f9c115ce 100755 --- a/modules/openapi-generator/src/main/resources/typescript-node/git_push.sh.mustache +++ b/modules/openapi-generator/src/main/resources/typescript-node/git_push.sh.mustache @@ -1,7 +1,7 @@ #!/bin/sh # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" git_user_id=$1 git_repo_id=$2 diff --git a/modules/openapi-generator/src/main/resources/typescript-rxjs/runtime.mustache b/modules/openapi-generator/src/main/resources/typescript-rxjs/runtime.mustache index e4af4c84d3d..ac29358b9a3 100644 --- a/modules/openapi-generator/src/main/resources/typescript-rxjs/runtime.mustache +++ b/modules/openapi-generator/src/main/resources/typescript-rxjs/runtime.mustache @@ -75,7 +75,7 @@ export class BaseAPI { map((res) => { const { status, response } = res; if (status >= 200 && status < 300) { - return responseOpts?.respone === 'raw' ? res : response; + return responseOpts?.response === 'raw' ? res : response; } throw res; }) @@ -158,7 +158,7 @@ export interface RequestOpts extends AjaxRequest { } export interface ResponseOpts { - respone?: 'raw'; + response?: 'raw'; } export interface OperationOpts { diff --git a/modules/openapi-generator/src/main/resources/typescript/git_push.sh.mustache b/modules/openapi-generator/src/main/resources/typescript/git_push.sh.mustache index 90e9e063940..81aaba42129 100755 --- a/modules/openapi-generator/src/main/resources/typescript/git_push.sh.mustache +++ b/modules/openapi-generator/src/main/resources/typescript/git_push.sh.mustache @@ -1,7 +1,7 @@ #!/bin/sh # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" git_user_id=$1 git_repo_id=$2 diff --git a/modules/openapi-generator/src/test/java/org/openapitools/codegen/DefaultCodegenTest.java b/modules/openapi-generator/src/test/java/org/openapitools/codegen/DefaultCodegenTest.java index a007bb56fee..6d74693c21a 100644 --- a/modules/openapi-generator/src/test/java/org/openapitools/codegen/DefaultCodegenTest.java +++ b/modules/openapi-generator/src/test/java/org/openapitools/codegen/DefaultCodegenTest.java @@ -198,7 +198,7 @@ public class DefaultCodegenTest { } @Test - public void testArraySchemaIsNotIncluedInAliases() throws Exception { + public void testArraySchemaIsNotIncludedInAliases() throws Exception { final DefaultCodegen codegen = new DefaultCodegen(); Map schemas = new HashMap() { { @@ -261,12 +261,12 @@ public class DefaultCodegenTest { // https://github.com/swagger-api/swagger-parser/issues/1369, the swagger // converter does not retain the value of the additionalProperties. - Map modelPropSchems = schema.getProperties(); - Schema map_string_sc = modelPropSchems.get("map_string"); + Map modelPropSchemas = schema.getProperties(); + Schema map_string_sc = modelPropSchemas.get("map_string"); CodegenProperty map_string_cp = null; - Schema map_with_additional_properties_sc = modelPropSchems.get("map_with_additional_properties"); + Schema map_with_additional_properties_sc = modelPropSchemas.get("map_with_additional_properties"); CodegenProperty map_with_additional_properties_cp = null; - Schema map_without_additional_properties_sc = modelPropSchems.get("map_without_additional_properties"); + Schema map_without_additional_properties_sc = modelPropSchemas.get("map_without_additional_properties"); CodegenProperty map_without_additional_properties_cp = null; for(CodegenProperty cp: cm.vars) { @@ -350,12 +350,12 @@ public class DefaultCodegenTest { // https://github.com/swagger-api/swagger-parser/issues/1369, the swagger // converter does not retain the value of the additionalProperties. - Map modelPropSchems = schema.getProperties(); - Schema map_string_sc = modelPropSchems.get("map_string"); + Map modelPropSchemas = schema.getProperties(); + Schema map_string_sc = modelPropSchemas.get("map_string"); CodegenProperty map_string_cp = null; - Schema map_with_additional_properties_sc = modelPropSchems.get("map_with_additional_properties"); + Schema map_with_additional_properties_sc = modelPropSchemas.get("map_with_additional_properties"); CodegenProperty map_with_additional_properties_cp = null; - Schema map_without_additional_properties_sc = modelPropSchems.get("map_without_additional_properties"); + Schema map_without_additional_properties_sc = modelPropSchemas.get("map_without_additional_properties"); CodegenProperty map_without_additional_properties_cp = null; for(CodegenProperty cp: cm.vars) { @@ -426,16 +426,16 @@ public class DefaultCodegenTest { CodegenModel cm = codegen.fromModel("AdditionalPropertiesClass", componentSchema); Assert.assertNotNull(cm.getAdditionalProperties()); - Map modelPropSchems = componentSchema.getProperties(); - Schema map_with_undeclared_properties_string_sc = modelPropSchems.get("map_with_undeclared_properties_string"); + Map modelPropSchemas = componentSchema.getProperties(); + Schema map_with_undeclared_properties_string_sc = modelPropSchemas.get("map_with_undeclared_properties_string"); CodegenProperty map_with_undeclared_properties_string_cp = null; - Schema map_with_undeclared_properties_anytype_1_sc = modelPropSchems.get("map_with_undeclared_properties_anytype_1"); + Schema map_with_undeclared_properties_anytype_1_sc = modelPropSchemas.get("map_with_undeclared_properties_anytype_1"); CodegenProperty map_with_undeclared_properties_anytype_1_cp = null; - Schema map_with_undeclared_properties_anytype_2_sc = modelPropSchems.get("map_with_undeclared_properties_anytype_2"); + Schema map_with_undeclared_properties_anytype_2_sc = modelPropSchemas.get("map_with_undeclared_properties_anytype_2"); CodegenProperty map_with_undeclared_properties_anytype_2_cp = null; - Schema map_with_undeclared_properties_anytype_3_sc = modelPropSchems.get("map_with_undeclared_properties_anytype_3"); + Schema map_with_undeclared_properties_anytype_3_sc = modelPropSchemas.get("map_with_undeclared_properties_anytype_3"); CodegenProperty map_with_undeclared_properties_anytype_3_cp = null; - Schema empty_map_sc = modelPropSchems.get("empty_map"); + Schema empty_map_sc = modelPropSchemas.get("empty_map"); CodegenProperty empty_map_cp = null; for(CodegenProperty cp: cm.vars) { @@ -786,7 +786,7 @@ public class DefaultCodegenTest { } @Test - public void postProcessModelsEnumWithExtention() { + public void postProcessModelsEnumWithExtension() { final DefaultCodegen codegen = new DefaultCodegen(); Map objs = codegenModelWithXEnumVarName(); CodegenModel cm = (CodegenModel) ((Map) ((List) objs.get("models")).get(0)).get("model"); @@ -1529,12 +1529,12 @@ public class DefaultCodegenTest { cm = getModel(allModels, modelName); Assert.assertNotNull(cm); Assert.assertNotNull(cm.children); - List excpectedDiscriminatorValues = new ArrayList<>(Arrays.asList("daily", "sub-obj")); + List expectedDiscriminatorValues = new ArrayList<>(Arrays.asList("daily", "sub-obj")); ArrayList xDiscriminatorValues = new ArrayList<>(); for (CodegenModel child: cm.children) { xDiscriminatorValues.add((String) child.vendorExtensions.get("x-discriminator-value")); } - assertEquals(xDiscriminatorValues, excpectedDiscriminatorValues); + assertEquals(xDiscriminatorValues, expectedDiscriminatorValues); // check that the discriminator's MappedModels also contains the x-discriminator-values discriminator = new CodegenDiscriminator(); @@ -1723,8 +1723,8 @@ public class DefaultCodegenTest { new InlineModelResolver().flatten(openAPI); final DefaultCodegen codegen = new DefaultCodegen(); - CodegenModel codedenPetModel = codegen.fromModel("Pet", openAPI.getComponents().getSchemas().get("Pet")); - Assert.assertTrue(codedenPetModel.isDeprecated); + CodegenModel codegenPetModel = codegen.fromModel("Pet", openAPI.getComponents().getSchemas().get("Pet")); + Assert.assertTrue(codegenPetModel.isDeprecated); CodegenModel codegenFoodModel = codegen.fromModel("Food", openAPI.getComponents().getSchemas().get("Food")); Assert.assertTrue(codegenFoodModel.isDeprecated); @@ -1732,7 +1732,7 @@ public class DefaultCodegenTest { @Test public void testDeprecatedProperty() { - final OpenAPI openAPI = TestUtils.parseFlattenSpec("src/test/resources/3_0/property-deplicated.yaml"); + final OpenAPI openAPI = TestUtils.parseFlattenSpec("src/test/resources/3_0/property-deprecated.yaml"); new InlineModelResolver().flatten(openAPI); final DefaultCodegen codegen = new DefaultCodegen(); codegen.setOpenAPI(openAPI); @@ -1987,8 +1987,8 @@ public class DefaultCodegenTest { allowableValues.put("values", values); var.setAllowableValues(allowableValues); var.dataType = "String"; - Map extentions = Collections.singletonMap("x-enum-varnames", aliases); - var.setVendorExtensions(extentions); + Map extensions = Collections.singletonMap("x-enum-varnames", aliases); + var.setVendorExtensions(extensions); return var; } @@ -2012,10 +2012,10 @@ public class DefaultCodegenTest { cm.dataType = "String"; final List aliases = Arrays.asList("DOGVAR", "CATVAR"); final List descriptions = Arrays.asList("This is a dog", "This is a cat"); - Map extentions = new HashMap<>(); - extentions.put("x-enum-varnames", aliases); - extentions.put("x-enum-descriptions", descriptions); - cm.setVendorExtensions(extentions); + Map extensions = new HashMap<>(); + extensions.put("x-enum-varnames", aliases); + extensions.put("x-enum-descriptions", descriptions); + cm.setVendorExtensions(extensions); cm.setVars(Collections.emptyList()); Map objs = Collections.singletonMap("models", Collections.singletonList(Collections.singletonMap("model", cm))); return objs; diff --git a/modules/openapi-generator/src/test/java/org/openapitools/codegen/InlineModelResolverTest.java b/modules/openapi-generator/src/test/java/org/openapitools/codegen/InlineModelResolverTest.java index 36e8f2ab697..fb0109d84f4 100644 --- a/modules/openapi-generator/src/test/java/org/openapitools/codegen/InlineModelResolverTest.java +++ b/modules/openapi-generator/src/test/java/org/openapitools/codegen/InlineModelResolverTest.java @@ -708,8 +708,8 @@ public class InlineModelResolverTest { Schema referencedSchema = ModelUtils.getReferencedSchema(openAPI, schema.getItems()); assertTrue(referencedSchema.getProperties().get("arbitrary_object_response_array_inline") instanceof ObjectSchema); - ObjectSchema arbitaryObject = (ObjectSchema) referencedSchema.getProperties().get("arbitrary_object_response_array_inline"); - assertNull(arbitaryObject.getProperties()); + ObjectSchema arbitraryObject = (ObjectSchema) referencedSchema.getProperties().get("arbitrary_object_response_array_inline"); + assertNull(arbitraryObject.getProperties()); } @Test @@ -994,7 +994,7 @@ public class InlineModelResolverTest { } @Test - public void regresssion_6905() { + public void regression_6905() { } } \ No newline at end of file diff --git a/modules/openapi-generator/src/test/java/org/openapitools/codegen/config/CodegenConfiguratorTest.java b/modules/openapi-generator/src/test/java/org/openapitools/codegen/config/CodegenConfiguratorTest.java index 7055bff4659..50373d6ed95 100644 --- a/modules/openapi-generator/src/test/java/org/openapitools/codegen/config/CodegenConfiguratorTest.java +++ b/modules/openapi-generator/src/test/java/org/openapitools/codegen/config/CodegenConfiguratorTest.java @@ -36,7 +36,7 @@ public class CodegenConfiguratorTest { } @Test - public void shouldSetConfiglProperties() throws IOException { + public void shouldSetConfigProperties() throws IOException { // This tests that properties we set on CodegenConfigurator make it down into generator properties, // limiting to those managed in DefaultCodegen. Map properties = new HashMap() {{ diff --git a/modules/openapi-generator/src/test/java/org/openapitools/codegen/csharp/CsharpModelEnumTest.java b/modules/openapi-generator/src/test/java/org/openapitools/codegen/csharp/CsharpModelEnumTest.java index 77d81bd7f6b..aacdece2e4c 100644 --- a/modules/openapi-generator/src/test/java/org/openapitools/codegen/csharp/CsharpModelEnumTest.java +++ b/modules/openapi-generator/src/test/java/org/openapitools/codegen/csharp/CsharpModelEnumTest.java @@ -35,7 +35,7 @@ import java.util.Map; public class CsharpModelEnumTest { // TODO there's no parent/child method in ComposeSchema so we will need to revise the code - // before we can reeanble the test case below + // before we can re-enable the test case below @Test(description = "not override identical parent enums", enabled = false) public void overrideEnumTest() { final StringSchema identicalEnumProperty = new StringSchema(); diff --git a/modules/openapi-generator/src/test/java/org/openapitools/codegen/go/GoClientCodegenTest.java b/modules/openapi-generator/src/test/java/org/openapitools/codegen/go/GoClientCodegenTest.java index b6df5e72e00..8009e3e2c3d 100644 --- a/modules/openapi-generator/src/test/java/org/openapitools/codegen/go/GoClientCodegenTest.java +++ b/modules/openapi-generator/src/test/java/org/openapitools/codegen/go/GoClientCodegenTest.java @@ -72,7 +72,7 @@ public class GoClientCodegenTest { Assert.assertFalse(bp.isPrimitiveType); } - @Test(description = "test to ensrue the paramter names are unique") + @Test(description = "test to ensure the parameter names are unique") public void ensureParameterNameUniqueTest() { final OpenAPI openAPI = TestUtils.parseFlattenSpec("src/test/resources/3_0/conflictingParameter.yaml"); final GoClientCodegen codegen = new GoClientCodegen(); diff --git a/modules/openapi-generator/src/test/java/org/openapitools/codegen/html/StaticHtmlGeneratorTest.java b/modules/openapi-generator/src/test/java/org/openapitools/codegen/html/StaticHtmlGeneratorTest.java index 2f70262d7f6..14b1a9eab19 100644 --- a/modules/openapi-generator/src/test/java/org/openapitools/codegen/html/StaticHtmlGeneratorTest.java +++ b/modules/openapi-generator/src/test/java/org/openapitools/codegen/html/StaticHtmlGeneratorTest.java @@ -56,7 +56,7 @@ public class StaticHtmlGeneratorTest { Assert.assertEquals(openAPI.getInfo().getTitle(), "ping test"); } - @Test(description = "ensure that snake_case propery names wont be converted to snakeUnderscorecase") + @Test(description = "ensure that snake_case property names wont be converted to snakeUnderscorecase") public void testFromPropertyWithUnderscores() { final Schema schema = new Schema() .description("a sample model with property containing an underscore") diff --git a/modules/openapi-generator/src/test/java/org/openapitools/codegen/java/AbstractJavaCodegenTest.java b/modules/openapi-generator/src/test/java/org/openapitools/codegen/java/AbstractJavaCodegenTest.java index fe4259d2d67..65fc547fc23 100644 --- a/modules/openapi-generator/src/test/java/org/openapitools/codegen/java/AbstractJavaCodegenTest.java +++ b/modules/openapi-generator/src/test/java/org/openapitools/codegen/java/AbstractJavaCodegenTest.java @@ -341,7 +341,7 @@ public class AbstractJavaCodegenTest { } @Test(description = "tests if API version specification is used if no version is provided in additional properties") - public void openApiversionTest() { + public void openApiVersionTest() { final P_AbstractJavaCodegen codegen = new P_AbstractJavaCodegen(); OpenAPI api = TestUtils.createOpenAPI(); diff --git a/modules/openapi-generator/src/test/java/org/openapitools/codegen/java/jaxrs/JavaJAXRSSpecServerCodegenTest.java b/modules/openapi-generator/src/test/java/org/openapitools/codegen/java/jaxrs/JavaJAXRSSpecServerCodegenTest.java index 9d32f0929f7..3fe1133d755 100644 --- a/modules/openapi-generator/src/test/java/org/openapitools/codegen/java/jaxrs/JavaJAXRSSpecServerCodegenTest.java +++ b/modules/openapi-generator/src/test/java/org/openapitools/codegen/java/jaxrs/JavaJAXRSSpecServerCodegenTest.java @@ -317,7 +317,7 @@ public class JavaJAXRSSpecServerCodegenTest extends JavaJaxrsBaseTest { } @Test - public void testGenerateApiWithPreceedingPathParameter_issue1347() throws Exception { + public void testGenerateApiWithPrecedingPathParameter_issue1347() throws Exception { Map properties = new HashMap<>(); properties.put(JavaClientCodegen.JAVA8_MODE, true); properties.put(JavaJAXRSSpecServerCodegen.OPEN_API_SPEC_FILE_LOCATION, "openapi.yml"); diff --git a/modules/openapi-generator/src/test/java/org/openapitools/codegen/java/spring/SpringCodegenTest.java b/modules/openapi-generator/src/test/java/org/openapitools/codegen/java/spring/SpringCodegenTest.java index 3e8d8977209..6bdd0cc4836 100644 --- a/modules/openapi-generator/src/test/java/org/openapitools/codegen/java/spring/SpringCodegenTest.java +++ b/modules/openapi-generator/src/test/java/org/openapitools/codegen/java/spring/SpringCodegenTest.java @@ -224,7 +224,7 @@ public class SpringCodegenTest { } @Test - public void interfaceDefaultImplDisableWithReponseWrapper() { + public void interfaceDefaultImplDisableWithResponseWrapper() { final SpringCodegen codegen = new SpringCodegen(); codegen.additionalProperties().put(SpringCodegen.JAVA_8, true); codegen.additionalProperties().put(RESPONSE_WRAPPER, "aWrapper"); @@ -329,7 +329,7 @@ public class SpringCodegenTest { } @Test - public void springcloudWithJava8DisabeJdk8() { + public void springcloudWithJava8DisableJdk8() { final SpringCodegen codegen = new SpringCodegen(); codegen.additionalProperties().put(SpringCodegen.JAVA_8, true); codegen.additionalProperties().put(CodegenConstants.LIBRARY, "spring-cloud"); diff --git a/modules/openapi-generator/src/test/java/org/openapitools/codegen/javascript/JavascriptClientCodegenTest.java b/modules/openapi-generator/src/test/java/org/openapitools/codegen/javascript/JavascriptClientCodegenTest.java index c594cbb90bf..010634f197b 100644 --- a/modules/openapi-generator/src/test/java/org/openapitools/codegen/javascript/JavascriptClientCodegenTest.java +++ b/modules/openapi-generator/src/test/java/org/openapitools/codegen/javascript/JavascriptClientCodegenTest.java @@ -96,7 +96,7 @@ public class JavascriptClientCodegenTest { Assert.assertFalse(property2.isContainer); } - @Test(description = "test isDefualt in the response") + @Test(description = "test isDefault in the response") public void testResponseIsDefault() throws Exception { final OpenAPI openAPI = TestUtils.parseFlattenSpec("src/test/resources/2_0/petstore.yaml"); final DefaultCodegen codegen = new DefaultCodegen(); diff --git a/modules/openapi-generator/src/test/java/org/openapitools/codegen/kotlin/AbstractKotlinCodegenTest.java b/modules/openapi-generator/src/test/java/org/openapitools/codegen/kotlin/AbstractKotlinCodegenTest.java index ab7973fb75c..720143ee5c0 100644 --- a/modules/openapi-generator/src/test/java/org/openapitools/codegen/kotlin/AbstractKotlinCodegenTest.java +++ b/modules/openapi-generator/src/test/java/org/openapitools/codegen/kotlin/AbstractKotlinCodegenTest.java @@ -36,7 +36,7 @@ public class AbstractKotlinCodegenTest { } @Test - public void uppercasEnumConverter() { + public void uppercaseEnumConverter() { codegen.setEnumPropertyNaming(UPPERCASE.name()); assertEquals(codegen.toEnumVarName("long Name", null), "LONG_NAME"); assertEquals(codegen.toEnumVarName("1long Name", null), "_1LONG_NAME"); diff --git a/modules/openapi-generator/src/test/java/org/openapitools/codegen/ktorm/KtormSchemaCodegenTest.java b/modules/openapi-generator/src/test/java/org/openapitools/codegen/ktorm/KtormSchemaCodegenTest.java index bad3d2a3ccf..f8285da45c3 100644 --- a/modules/openapi-generator/src/test/java/org/openapitools/codegen/ktorm/KtormSchemaCodegenTest.java +++ b/modules/openapi-generator/src/test/java/org/openapitools/codegen/ktorm/KtormSchemaCodegenTest.java @@ -277,7 +277,7 @@ public class KtormSchemaCodegenTest { } @Test - public void testDontAddSorrogateKey() { + public void testDontAddSurrogateKey() { final Schema schema = new Schema() .description("a sample model") .addProperties("key" , new IntegerSchema()) @@ -291,7 +291,7 @@ public class KtormSchemaCodegenTest { } @Test - public void testAddSorrogateKey() { + public void testAddSurrogateKey() { final Schema schema = new Schema() .description("a sample model") .addProperties("key", new IntegerSchema()); diff --git a/modules/openapi-generator/src/test/java/org/openapitools/codegen/objc/ObjcModelTest.java b/modules/openapi-generator/src/test/java/org/openapitools/codegen/objc/ObjcModelTest.java index 03fe8e266ef..7881f8fbf00 100644 --- a/modules/openapi-generator/src/test/java/org/openapitools/codegen/objc/ObjcModelTest.java +++ b/modules/openapi-generator/src/test/java/org/openapitools/codegen/objc/ObjcModelTest.java @@ -295,8 +295,8 @@ public class ObjcModelTest { Assert.assertEquals(Sets.intersection(cm.imports, Sets.newHashSet("OAIChildren")).size(), 1); } - @Test(description = "test udid") - public void udidAndPasswordDataModelTest() { + @Test(description = "test uuid") + public void uuidAndPasswordDataModelTest() { final OpenAPI openAPI = TestUtils.parseFlattenSpec("src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml"); final DefaultCodegen codegen = new ObjcClientCodegen(); codegen.setOpenAPI(openAPI); diff --git a/modules/openapi-generator/src/test/java/org/openapitools/codegen/php/PhpModelTest.java b/modules/openapi-generator/src/test/java/org/openapitools/codegen/php/PhpModelTest.java index 06e3fc1cba5..ca12192f278 100644 --- a/modules/openapi-generator/src/test/java/org/openapitools/codegen/php/PhpModelTest.java +++ b/modules/openapi-generator/src/test/java/org/openapitools/codegen/php/PhpModelTest.java @@ -331,7 +331,7 @@ public class PhpModelTest { } @Test(description = "test enum model for values (numeric, string, etc)") - public void enumMdoelValueTest() { + public void enumModelValueTest() { final OpenAPI openAPI = TestUtils.parseFlattenSpec("src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml"); final DefaultCodegen codegen = new PhpClientCodegen(); codegen.setOpenAPI(openAPI); diff --git a/modules/openapi-generator/src/test/java/org/openapitools/codegen/ruby/RubyClientCodegenTest.java b/modules/openapi-generator/src/test/java/org/openapitools/codegen/ruby/RubyClientCodegenTest.java index f50f20ac135..d82abade09f 100644 --- a/modules/openapi-generator/src/test/java/org/openapitools/codegen/ruby/RubyClientCodegenTest.java +++ b/modules/openapi-generator/src/test/java/org/openapitools/codegen/ruby/RubyClientCodegenTest.java @@ -616,7 +616,7 @@ public class RubyClientCodegenTest { } - @Test(description = "test example string imported from x-example parameterr (OAS2)") + @Test(description = "test example string imported from x-example parameter (OAS2)") public void exampleStringFromExampleParameterOAS2Test() { final OpenAPI openAPI = TestUtils.parseFlattenSpec("src/test/resources/2_0/petstore-nullable.yaml"); final RubyClientCodegen codegen = new RubyClientCodegen(); diff --git a/modules/openapi-generator/src/test/java/org/openapitools/codegen/swift5/Swift5ClientCodegenTest.java b/modules/openapi-generator/src/test/java/org/openapitools/codegen/swift5/Swift5ClientCodegenTest.java index c56d675a663..8073f7065d8 100644 --- a/modules/openapi-generator/src/test/java/org/openapitools/codegen/swift5/Swift5ClientCodegenTest.java +++ b/modules/openapi-generator/src/test/java/org/openapitools/codegen/swift5/Swift5ClientCodegenTest.java @@ -192,7 +192,7 @@ public class Swift5ClientCodegenTest { .setGeneratorName("swift5") .setValidateSpec(false) // .setInputSpec("http://localhost:8080/api/openapi.yaml") - .setInputSpec("src/test/resources/bugs/Swift5CodeGenarationBug2.yaml") + .setInputSpec("src/test/resources/bugs/Swift5CodeGenerationBug2.yaml") //.setInputSpec("http://localhost:8080/api/openapi.yaml") .setEnablePostProcessFile(true) .setOutputDir(target.toAbsolutePath().toString()); diff --git a/modules/openapi-generator/src/test/java/org/openapitools/codegen/typescript/SharedTypeScriptTest.java b/modules/openapi-generator/src/test/java/org/openapitools/codegen/typescript/SharedTypeScriptTest.java index f4e024142a5..55d068f46cd 100644 --- a/modules/openapi-generator/src/test/java/org/openapitools/codegen/typescript/SharedTypeScriptTest.java +++ b/modules/openapi-generator/src/test/java/org/openapitools/codegen/typescript/SharedTypeScriptTest.java @@ -74,7 +74,7 @@ public class SharedTypeScriptTest { /* #8000 - Test that primatives are not returned by toModelImportMap + Test that primitives are not returned by toModelImportMap */ @Test public void toModelImportMapTest() { diff --git a/modules/openapi-generator/src/test/java/org/openapitools/codegen/typescript/typescriptangular/TypescriptAngularPestoreIntegrationTest.java b/modules/openapi-generator/src/test/java/org/openapitools/codegen/typescript/typescriptangular/TypescriptAngularPetstoreIntegrationTest.java similarity index 94% rename from modules/openapi-generator/src/test/java/org/openapitools/codegen/typescript/typescriptangular/TypescriptAngularPestoreIntegrationTest.java rename to modules/openapi-generator/src/test/java/org/openapitools/codegen/typescript/typescriptangular/TypescriptAngularPetstoreIntegrationTest.java index 83622bc589f..4a4fddf4c4a 100644 --- a/modules/openapi-generator/src/test/java/org/openapitools/codegen/typescript/typescriptangular/TypescriptAngularPestoreIntegrationTest.java +++ b/modules/openapi-generator/src/test/java/org/openapitools/codegen/typescript/typescriptangular/TypescriptAngularPetstoreIntegrationTest.java @@ -25,7 +25,7 @@ import org.openapitools.codegen.testutils.IntegrationTestPathsConfig; import java.util.HashMap; import java.util.Map; -public class TypescriptAngularPestoreIntegrationTest extends AbstractIntegrationTest { +public class TypescriptAngularPetstoreIntegrationTest extends AbstractIntegrationTest { @Override protected CodegenConfig getCodegenConfig() { diff --git a/modules/openapi-generator/src/test/java/org/openapitools/codegen/typescript/typescriptnestjs/TypescriptNestjsPestoreIntegrationTest.java b/modules/openapi-generator/src/test/java/org/openapitools/codegen/typescript/typescriptnestjs/TypescriptNestjsPetstoreIntegrationTest.java similarity index 94% rename from modules/openapi-generator/src/test/java/org/openapitools/codegen/typescript/typescriptnestjs/TypescriptNestjsPestoreIntegrationTest.java rename to modules/openapi-generator/src/test/java/org/openapitools/codegen/typescript/typescriptnestjs/TypescriptNestjsPetstoreIntegrationTest.java index b8cb270bec6..30e2e2cee79 100644 --- a/modules/openapi-generator/src/test/java/org/openapitools/codegen/typescript/typescriptnestjs/TypescriptNestjsPestoreIntegrationTest.java +++ b/modules/openapi-generator/src/test/java/org/openapitools/codegen/typescript/typescriptnestjs/TypescriptNestjsPetstoreIntegrationTest.java @@ -24,7 +24,7 @@ import org.openapitools.codegen.testutils.IntegrationTestPathsConfig; import java.util.HashMap; import java.util.Map; -public class TypescriptNestjsPestoreIntegrationTest extends AbstractIntegrationTest { +public class TypescriptNestjsPetstoreIntegrationTest extends AbstractIntegrationTest { @Override protected CodegenConfig getCodegenConfig() { diff --git a/modules/openapi-generator/src/test/java/org/openapitools/codegen/utils/ModelUtilsTest.java b/modules/openapi-generator/src/test/java/org/openapitools/codegen/utils/ModelUtilsTest.java index a8ed4e34bbe..51fdf297dec 100644 --- a/modules/openapi-generator/src/test/java/org/openapitools/codegen/utils/ModelUtilsTest.java +++ b/modules/openapi-generator/src/test/java/org/openapitools/codegen/utils/ModelUtilsTest.java @@ -34,7 +34,7 @@ public class ModelUtilsTest { public void testGetAllUsedSchemas() { final OpenAPI openAPI = TestUtils.parseFlattenSpec("src/test/resources/3_0/unusedSchemas.yaml"); List allUsedSchemas = ModelUtils.getAllUsedSchemas(openAPI); - List expectedallUsedSchemas = Arrays.asList( + List expectedAllUsedSchemas = Arrays.asList( "SomeObj1", "SomeObj2", "SomeObj3", @@ -78,8 +78,8 @@ public class ModelUtilsTest { "AChild30", "BChild30" ); - Assert.assertEquals(allUsedSchemas.size(), expectedallUsedSchemas.size()); - Assert.assertTrue(allUsedSchemas.containsAll(expectedallUsedSchemas)); + Assert.assertEquals(allUsedSchemas.size(), expectedAllUsedSchemas.size()); + Assert.assertTrue(allUsedSchemas.containsAll(expectedAllUsedSchemas)); } @Test diff --git a/modules/openapi-generator/src/test/java/org/openapitools/codegen/wsdl/WsdlSchemaCodegenTest.java b/modules/openapi-generator/src/test/java/org/openapitools/codegen/wsdl/WsdlSchemaCodegenTest.java index 6cb452dae1c..3be15490bd7 100644 --- a/modules/openapi-generator/src/test/java/org/openapitools/codegen/wsdl/WsdlSchemaCodegenTest.java +++ b/modules/openapi-generator/src/test/java/org/openapitools/codegen/wsdl/WsdlSchemaCodegenTest.java @@ -65,7 +65,7 @@ public class WsdlSchemaCodegenTest { Assert.assertEquals(newOperationIdWithoutId, "PostStoreOrder"); } - @Test(description = "Ensure that passed strings are processed correcly by this method") + @Test(description = "Ensure that passed strings are processed correctly by this method") public void testLowerCaseStringExceptFirstLetter() { WsdlSchemaCodegen codegen = new WsdlSchemaCodegen(); String value = codegen.lowerCaseStringExceptFirstLetter("uploadPetByPathId"); @@ -180,7 +180,7 @@ public class WsdlSchemaCodegenTest { } @Test(description = "Check if portType tag and portType operation has been generated") - public void testIfPorttypeOperationExists() { + public void testIfPortTypeOperationExists() { String portType = ""; String portTypeOperation = diff --git a/modules/openapi-generator/src/test/resources/2_0/long_description_issue_7839.json b/modules/openapi-generator/src/test/resources/2_0/long_description_issue_7839.json index 62925ca77a0..99265c90dce 100644 --- a/modules/openapi-generator/src/test/resources/2_0/long_description_issue_7839.json +++ b/modules/openapi-generator/src/test/resources/2_0/long_description_issue_7839.json @@ -1,7 +1,7 @@ { "swagger" : "2.0", "info" : { - "description" : "Are creatures of the cosmos Rig Veda? Trillion! Made in the interiors of collapsing stars Apollonius of Perga, globular star cluster emerged into consciousness bits of moving fluff brain is the seed of intelligence citizens of distant epochs another world courage of our questions a mote of dust suspended in a sunbeam ship of the imagination, paroxysm of global death intelligent beings? Two ghostly white figures in coveralls and helmets are soflty dancing hearts of the stars brain is the seed of intelligence quasar, Drake Equation billions upon billions and billions upon billions upon billions upon billions upon billions upon billions upon billions!\n", + "description" : "Are creatures of the cosmos Rig Veda? Trillion! Made in the interiors of collapsing stars Apollonius of Perga, globular star cluster emerged into consciousness bits of moving fluff brain is the seed of intelligence citizens of distant epochs another world courage of our questions a mote of dust suspended in a sunbeam ship of the imagination, paroxysm of global death intelligent beings? Two ghostly white figures in coveralls and helmets are softly dancing hearts of the stars brain is the seed of intelligence quasar, Drake Equation billions upon billions and billions upon billions upon billions upon billions upon billions upon billions upon billions!\n", "version" : "1.0.0", "title" : "OpenAPI Petstore", "license" : { @@ -130,7 +130,7 @@ "get" : { "tags" : [ "pet" ], "summary" : "Finds Pets by tags", - "description" : "Muliple tags can be provided with comma separated strings. Use\\ \\ tag1, tag2, tag3 for testing.", + "description" : "Multiple tags can be provided with comma separated strings. Use\\ \\ tag1, tag2, tag3 for testing.", "operationId" : "findPetsByTags", "produces" : [ "application/json", "application/xml" ], "parameters" : [ { diff --git a/modules/openapi-generator/src/test/resources/2_0/markdown.yaml b/modules/openapi-generator/src/test/resources/2_0/markdown.yaml index 2edf63a9bd5..276aa726cc5 100644 --- a/modules/openapi-generator/src/test/resources/2_0/markdown.yaml +++ b/modules/openapi-generator/src/test/resources/2_0/markdown.yaml @@ -4,7 +4,7 @@ info: version: '0.1.0' title: An *API* with more **Markdown** in summary, description, and other text description: > - Not really a *pseudo-randum* number generator API. + Not really a *pseudo-random* number generator API. This API uses [Markdown](http://daringfireball.net/projects/markdown/syntax) in text: diff --git a/modules/openapi-generator/src/test/resources/2_0/petstore-nullable.yaml b/modules/openapi-generator/src/test/resources/2_0/petstore-nullable.yaml index 8eb2a289f79..9a7e2e9c5f9 100644 --- a/modules/openapi-generator/src/test/resources/2_0/petstore-nullable.yaml +++ b/modules/openapi-generator/src/test/resources/2_0/petstore-nullable.yaml @@ -465,7 +465,7 @@ paths: X-Expires-After: type: string format: date-time - description: date in UTC when toekn expires + description: date in UTC when token expires '400': description: Invalid username/password supplied /user/logout: diff --git a/modules/openapi-generator/src/test/resources/2_0/petstore-proto.yaml b/modules/openapi-generator/src/test/resources/2_0/petstore-proto.yaml index 77ab1e0e793..f6d9efaa4c9 100644 --- a/modules/openapi-generator/src/test/resources/2_0/petstore-proto.yaml +++ b/modules/openapi-generator/src/test/resources/2_0/petstore-proto.yaml @@ -466,7 +466,7 @@ paths: X-Expires-After: type: string format: date-time - description: date in UTC when toekn expires + description: date in UTC when token expires '400': description: Invalid username/password supplied /user/logout: diff --git a/modules/openapi-generator/src/test/resources/2_0/petstore-vendor-mime.yaml b/modules/openapi-generator/src/test/resources/2_0/petstore-vendor-mime.yaml index 546884daff9..4bf2f04d968 100644 --- a/modules/openapi-generator/src/test/resources/2_0/petstore-vendor-mime.yaml +++ b/modules/openapi-generator/src/test/resources/2_0/petstore-vendor-mime.yaml @@ -461,7 +461,7 @@ paths: X-Expires-After: type: string format: date-time - description: date in UTC when toekn expires + description: date in UTC when token expires '400': description: Invalid username/password supplied /user/logout: diff --git a/modules/openapi-generator/src/test/resources/2_0/petstore-with-date-field.yaml b/modules/openapi-generator/src/test/resources/2_0/petstore-with-date-field.yaml index 3f7942f6745..017e66b427e 100644 --- a/modules/openapi-generator/src/test/resources/2_0/petstore-with-date-field.yaml +++ b/modules/openapi-generator/src/test/resources/2_0/petstore-with-date-field.yaml @@ -88,7 +88,7 @@ paths: parameters: - name: lastUpdated in: query - description: "When this endpoint was hit last to help indentify if the client already has the latest copy." + description: "When this endpoint was hit last to help identify if the client already has the latest copy." required: false type: "string" format: "date-time" @@ -455,7 +455,7 @@ paths: X-Expires-After: type: string format: date-time - description: date in UTC when toekn expires + description: date in UTC when token expires '400': description: Invalid username/password supplied /user/logout: diff --git a/modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing-saga-and-records.yaml b/modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing-saga-and-records.yaml index 81124e9578e..6455e05eebb 100644 --- a/modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing-saga-and-records.yaml +++ b/modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing-saga-and-records.yaml @@ -612,7 +612,7 @@ paths: X-Expires-After: type: string format: date-time - description: date in UTC when toekn expires + description: date in UTC when token expires '400': description: Invalid username/password supplied /user/logout: diff --git a/modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing-with-spring-pageable.yaml b/modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing-with-spring-pageable.yaml index dfd5f381a40..ad0619d8219 100644 --- a/modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing-with-spring-pageable.yaml +++ b/modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing-with-spring-pageable.yaml @@ -1043,7 +1043,7 @@ paths: responses: '200': description: Success - /fake/test-query-paramters: + /fake/test-query-parameters: put: tags: - fake diff --git a/modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml b/modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml index 65be255ab75..5c9ae2bab70 100644 --- a/modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml +++ b/modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml @@ -1041,7 +1041,7 @@ paths: responses: '200': description: Success - /fake/test-query-paramters: + /fake/test-query-parameters: put: tags: - fake diff --git a/modules/openapi-generator/src/test/resources/2_0/petstore-with-operations-without-required-params.yaml b/modules/openapi-generator/src/test/resources/2_0/petstore-with-operations-without-required-params.yaml index 23cc94c587c..a0b89db0313 100644 --- a/modules/openapi-generator/src/test/resources/2_0/petstore-with-operations-without-required-params.yaml +++ b/modules/openapi-generator/src/test/resources/2_0/petstore-with-operations-without-required-params.yaml @@ -462,7 +462,7 @@ paths: X-Expires-After: type: string format: date-time - description: date in UTC when toekn expires + description: date in UTC when token expires '400': description: Invalid username/password supplied /user/logout: diff --git a/modules/openapi-generator/src/test/resources/2_0/petstore-with-spring-pageable.yaml b/modules/openapi-generator/src/test/resources/2_0/petstore-with-spring-pageable.yaml index a0cb3d27d2f..e102f7dc11f 100644 --- a/modules/openapi-generator/src/test/resources/2_0/petstore-with-spring-pageable.yaml +++ b/modules/openapi-generator/src/test/resources/2_0/petstore-with-spring-pageable.yaml @@ -464,7 +464,7 @@ paths: X-Expires-After: type: string format: date-time - description: date in UTC when toekn expires + description: date in UTC when token expires '400': description: Invalid username/password supplied /user/logout: diff --git a/modules/openapi-generator/src/test/resources/2_0/petstore.yaml b/modules/openapi-generator/src/test/resources/2_0/petstore.yaml index b5584d8dac3..5cc2f3becb9 100644 --- a/modules/openapi-generator/src/test/resources/2_0/petstore.yaml +++ b/modules/openapi-generator/src/test/resources/2_0/petstore.yaml @@ -462,7 +462,7 @@ paths: X-Expires-After: type: string format: date-time - description: date in UTC when toekn expires + description: date in UTC when token expires '400': description: Invalid username/password supplied /user/logout: diff --git a/modules/openapi-generator/src/test/resources/2_0/swift4Test.json b/modules/openapi-generator/src/test/resources/2_0/swift4Test.json index 9cb77020b42..a885e35c68a 100644 --- a/modules/openapi-generator/src/test/resources/2_0/swift4Test.json +++ b/modules/openapi-generator/src/test/resources/2_0/swift4Test.json @@ -278,7 +278,7 @@ "type": "object", "properties": { "example_name": { - "description": "This snake-case examle_name property name should be converted to a camelCase variable name like exampleName", + "description": "This snake-case example_name property name should be converted to a camelCase variable name like exampleName", "type": "string" }, "for": { @@ -389,7 +389,7 @@ } }, "SampleSubClass": { - "description": "This is a subclass defived from the SampleBase class.", + "description": "This is a subclass derived from the SampleBase class.", "allOf": [ { "$ref": "#/definitions/SampleBase" diff --git a/modules/openapi-generator/src/test/resources/2_0/swift5Test.json b/modules/openapi-generator/src/test/resources/2_0/swift5Test.json index 54673cb1a9d..cd21d4d244c 100644 --- a/modules/openapi-generator/src/test/resources/2_0/swift5Test.json +++ b/modules/openapi-generator/src/test/resources/2_0/swift5Test.json @@ -278,7 +278,7 @@ "type": "object", "properties": { "example_name": { - "description": "This snake-case examle_name property name should be converted to a camelCase variable name like exampleName", + "description": "This snake-case example_name property name should be converted to a camelCase variable name like exampleName", "type": "string" }, "for": { @@ -389,7 +389,7 @@ } }, "SampleSubClass": { - "description": "This is a subclass defived from the SampleBase class.", + "description": "This is a subclass derived from the SampleBase class.", "allOf": [ { "$ref": "#/definitions/SampleBase" diff --git a/modules/openapi-generator/src/test/resources/2_0/templates/Java/libraries/jersey2/ApiClient.mustache b/modules/openapi-generator/src/test/resources/2_0/templates/Java/libraries/jersey2/ApiClient.mustache index 65494e8ea04..f8a121d1ade 100644 --- a/modules/openapi-generator/src/test/resources/2_0/templates/Java/libraries/jersey2/ApiClient.mustache +++ b/modules/openapi-generator/src/test/resources/2_0/templates/Java/libraries/jersey2/ApiClient.mustache @@ -608,7 +608,7 @@ public class ApiClient{{#jsr310}} extends JavaTimeFormatter{{/jsr310}} { /** * The path of temporary folder used to store downloaded files from endpoints * with file response. The default value is null, i.e. using - * the system's default tempopary folder. + * the system's default temporary folder. * * @return Temp folder path */ @@ -1266,7 +1266,7 @@ public class ApiClient{{#jsr310}} extends JavaTimeFormatter{{/jsr310}} { /** * Customize the client builder. * - * This method can be overriden to customize the API client. For example, this can be used to: + * This method can be overridden to customize the API client. For example, this can be used to: * 1. Set the hostname verifier to be used by the client to verify the endpoint's hostname * against its identification information. * 2. Set the client-side key store. diff --git a/modules/openapi-generator/src/test/resources/2_0/templates/Java/libraries/jersey2/api.mustache b/modules/openapi-generator/src/test/resources/2_0/templates/Java/libraries/jersey2/api.mustache index 666430c834e..3bc22f36a3b 100644 --- a/modules/openapi-generator/src/test/resources/2_0/templates/Java/libraries/jersey2/api.mustache +++ b/modules/openapi-generator/src/test/resources/2_0/templates/Java/libraries/jersey2/api.mustache @@ -32,7 +32,7 @@ public class {{classname}} { } /** - * Get the API cilent + * Get the API client * * @return API client */ @@ -41,7 +41,7 @@ public class {{classname}} { } /** - * Set the API cilent + * Set the API client * * @param apiClient an instance of API client */ diff --git a/modules/openapi-generator/src/test/resources/3_0/asciidoc/api-docs.json b/modules/openapi-generator/src/test/resources/3_0/asciidoc/api-docs.json index 8f128626937..5c7b2ce7aeb 100644 --- a/modules/openapi-generator/src/test/resources/3_0/asciidoc/api-docs.json +++ b/modules/openapi-generator/src/test/resources/3_0/asciidoc/api-docs.json @@ -1407,7 +1407,7 @@ "securitySchemes": { "Authentication": { "type": "apiKey", - "description": "auth with jwt bearer token in 'Authentication' header of proctected requests.", + "description": "auth with jwt bearer token in 'Authentication' header of protected requests.", "name": "Authentication", "in": "header" } diff --git a/modules/openapi-generator/src/test/resources/3_0/issue_7361.yaml b/modules/openapi-generator/src/test/resources/3_0/issue_7361.yaml index bceca2c25f7..778a7f451fe 100644 --- a/modules/openapi-generator/src/test/resources/3_0/issue_7361.yaml +++ b/modules/openapi-generator/src/test/resources/3_0/issue_7361.yaml @@ -11,7 +11,7 @@ paths: {} components: schemas: FreeForm: - description: this will not be generated because a map will be used when othe componenets or endpoints ref this schema + description: this will not be generated because a map will be used when othe components or endpoints ref this schema type: object FreeFormInterface: type: object diff --git a/modules/openapi-generator/src/test/resources/3_0/java/petstore-with-fake-endpoints-models-for-testing-with-http-signature.yaml b/modules/openapi-generator/src/test/resources/3_0/java/petstore-with-fake-endpoints-models-for-testing-with-http-signature.yaml index 74c5926c22c..455a11dbe59 100644 --- a/modules/openapi-generator/src/test/resources/3_0/java/petstore-with-fake-endpoints-models-for-testing-with-http-signature.yaml +++ b/modules/openapi-generator/src/test/resources/3_0/java/petstore-with-fake-endpoints-models-for-testing-with-http-signature.yaml @@ -996,7 +996,7 @@ paths: schema: $ref: '#/components/schemas/FileSchemaTestClass' required: true - /fake/test-query-paramters: + /fake/test-query-parameters: put: tags: - fake diff --git a/modules/openapi-generator/src/test/resources/3_0/petstore-with-complex-headers.yaml b/modules/openapi-generator/src/test/resources/3_0/petstore-with-complex-headers.yaml index fb6161981de..2233d4e2006 100644 --- a/modules/openapi-generator/src/test/resources/3_0/petstore-with-complex-headers.yaml +++ b/modules/openapi-generator/src/test/resources/3_0/petstore-with-complex-headers.yaml @@ -446,7 +446,7 @@ paths: type: integer format: int32 X-Expires-After: - description: date in UTC when toekn expires + description: date in UTC when token expires schema: type: string format: date-time diff --git a/modules/openapi-generator/src/test/resources/3_0/petstore-with-depreacted-fields.yaml b/modules/openapi-generator/src/test/resources/3_0/petstore-with-depreacted-fields.yaml index 5d89e40df1a..b88deaac3ee 100644 --- a/modules/openapi-generator/src/test/resources/3_0/petstore-with-depreacted-fields.yaml +++ b/modules/openapi-generator/src/test/resources/3_0/petstore-with-depreacted-fields.yaml @@ -447,7 +447,7 @@ paths: type: integer format: int32 X-Expires-After: - description: date in UTC when toekn expires + description: date in UTC when token expires schema: type: string format: date-time diff --git a/modules/openapi-generator/src/test/resources/3_0/petstore-with-fake-endpoints-models-for-testing-with-http-signature.yaml b/modules/openapi-generator/src/test/resources/3_0/petstore-with-fake-endpoints-models-for-testing-with-http-signature.yaml index e293460f604..31b34ae4e19 100644 --- a/modules/openapi-generator/src/test/resources/3_0/petstore-with-fake-endpoints-models-for-testing-with-http-signature.yaml +++ b/modules/openapi-generator/src/test/resources/3_0/petstore-with-fake-endpoints-models-for-testing-with-http-signature.yaml @@ -1012,7 +1012,7 @@ paths: schema: $ref: '#/components/schemas/FileSchemaTestClass' required: true - /fake/test-query-paramters: + /fake/test-query-parameters: put: tags: - fake @@ -1063,7 +1063,7 @@ paths: responses: "200": description: Success - /fake/test-unique-paramters: + /fake/test-unique-parameters: put: tags: - fake diff --git a/modules/openapi-generator/src/test/resources/3_0/petstore-with-fake-endpoints-models-for-testing.yaml b/modules/openapi-generator/src/test/resources/3_0/petstore-with-fake-endpoints-models-for-testing.yaml index 96dd4450210..941db12d9ab 100644 --- a/modules/openapi-generator/src/test/resources/3_0/petstore-with-fake-endpoints-models-for-testing.yaml +++ b/modules/openapi-generator/src/test/resources/3_0/petstore-with-fake-endpoints-models-for-testing.yaml @@ -1040,7 +1040,7 @@ paths: format: binary description: image to upload required: true - /fake/test-query-paramters: + /fake/test-query-parameters: put: tags: - fake diff --git a/modules/openapi-generator/src/test/resources/3_0/petstore-with-nullable-required.yaml b/modules/openapi-generator/src/test/resources/3_0/petstore-with-nullable-required.yaml index 12bd4be60ce..e0471993d5d 100644 --- a/modules/openapi-generator/src/test/resources/3_0/petstore-with-nullable-required.yaml +++ b/modules/openapi-generator/src/test/resources/3_0/petstore-with-nullable-required.yaml @@ -447,7 +447,7 @@ paths: type: integer format: int32 X-Expires-After: - description: date in UTC when toekn expires + description: date in UTC when token expires schema: type: string format: date-time diff --git a/modules/openapi-generator/src/test/resources/3_0/petstore-with-object-as-parameter.yaml b/modules/openapi-generator/src/test/resources/3_0/petstore-with-object-as-parameter.yaml index 0cfbd1b0f9d..86e397c820b 100644 --- a/modules/openapi-generator/src/test/resources/3_0/petstore-with-object-as-parameter.yaml +++ b/modules/openapi-generator/src/test/resources/3_0/petstore-with-object-as-parameter.yaml @@ -455,7 +455,7 @@ paths: type: integer format: int32 X-Expires-After: - description: date in UTC when toekn expires + description: date in UTC when token expires schema: type: string format: date-time diff --git a/modules/openapi-generator/src/test/resources/3_0/petstore.yaml b/modules/openapi-generator/src/test/resources/3_0/petstore.yaml index c95d6dd6f55..9184e9c8064 100644 --- a/modules/openapi-generator/src/test/resources/3_0/petstore.yaml +++ b/modules/openapi-generator/src/test/resources/3_0/petstore.yaml @@ -466,7 +466,7 @@ paths: type: integer format: int32 X-Expires-After: - description: date in UTC when toekn expires + description: date in UTC when token expires schema: type: string format: date-time diff --git a/modules/openapi-generator/src/test/resources/3_0/petstore_oas3_test.yaml b/modules/openapi-generator/src/test/resources/3_0/petstore_oas3_test.yaml index 287faa531e2..d57fd4e4f08 100644 --- a/modules/openapi-generator/src/test/resources/3_0/petstore_oas3_test.yaml +++ b/modules/openapi-generator/src/test/resources/3_0/petstore_oas3_test.yaml @@ -437,7 +437,7 @@ paths: type: integer format: int32 X-Expires-After: - description: date in UTC when toekn expires + description: date in UTC when token expires schema: type: string format: date-time diff --git a/modules/openapi-generator/src/test/resources/3_0/powershell/petstore.yaml b/modules/openapi-generator/src/test/resources/3_0/powershell/petstore.yaml index b3a0dfd3c11..025d072c763 100644 --- a/modules/openapi-generator/src/test/resources/3_0/powershell/petstore.yaml +++ b/modules/openapi-generator/src/test/resources/3_0/powershell/petstore.yaml @@ -487,7 +487,7 @@ paths: type: integer format: int32 X-Expires-After: - description: date in UTC when toekn expires + description: date in UTC when token expires schema: type: string format: date-time diff --git a/modules/openapi-generator/src/test/resources/3_0/property-deplicated.yaml b/modules/openapi-generator/src/test/resources/3_0/property-deprecated.yaml similarity index 100% rename from modules/openapi-generator/src/test/resources/3_0/property-deplicated.yaml rename to modules/openapi-generator/src/test/resources/3_0/property-deprecated.yaml diff --git a/modules/openapi-generator/src/test/resources/3_0/python/petstore-with-fake-endpoints-models-for-testing-with-http-signature.yaml b/modules/openapi-generator/src/test/resources/3_0/python/petstore-with-fake-endpoints-models-for-testing-with-http-signature.yaml index 9e347d3d33f..7f848086554 100644 --- a/modules/openapi-generator/src/test/resources/3_0/python/petstore-with-fake-endpoints-models-for-testing-with-http-signature.yaml +++ b/modules/openapi-generator/src/test/resources/3_0/python/petstore-with-fake-endpoints-models-for-testing-with-http-signature.yaml @@ -1119,7 +1119,7 @@ paths: schema: $ref: '#/components/schemas/FileSchemaTestClass' required: true - /fake/test-query-paramters: + /fake/test-query-parameters: put: tags: - fake diff --git a/modules/openapi-generator/src/test/resources/3_0/scala-akka/petstore.yaml b/modules/openapi-generator/src/test/resources/3_0/scala-akka/petstore.yaml index fe228bf4447..1b354403e94 100644 --- a/modules/openapi-generator/src/test/resources/3_0/scala-akka/petstore.yaml +++ b/modules/openapi-generator/src/test/resources/3_0/scala-akka/petstore.yaml @@ -467,7 +467,7 @@ paths: type: integer format: int32 X-Expires-After: - description: date in UTC when toekn expires + description: date in UTC when token expires schema: type: string format: date-time diff --git a/modules/openapi-generator/src/test/resources/3_0/server-required.yaml b/modules/openapi-generator/src/test/resources/3_0/server-required.yaml index 5ced38f18d3..b6458d3da14 100644 --- a/modules/openapi-generator/src/test/resources/3_0/server-required.yaml +++ b/modules/openapi-generator/src/test/resources/3_0/server-required.yaml @@ -465,7 +465,7 @@ paths: type: integer format: int32 X-Expires-After: - description: date in UTC when toekn expires + description: date in UTC when token expires schema: type: string format: date-time diff --git a/modules/openapi-generator/src/test/resources/3_0/wsdl/petstore.yaml b/modules/openapi-generator/src/test/resources/3_0/wsdl/petstore.yaml index 83ccdf1c611..deb33e89a36 100644 --- a/modules/openapi-generator/src/test/resources/3_0/wsdl/petstore.yaml +++ b/modules/openapi-generator/src/test/resources/3_0/wsdl/petstore.yaml @@ -135,7 +135,7 @@ paths: tags: - pet summary: Finds Pets by tags - description: Muliple tags can be provided with comma separated strings. Use tag1, + description: Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing. operationId: findPetsByTags parameters: diff --git a/modules/openapi-generator/src/test/resources/bugs/Swift5CodeGenarationBug2.yaml b/modules/openapi-generator/src/test/resources/bugs/Swift5CodeGenerationBug2.yaml similarity index 100% rename from modules/openapi-generator/src/test/resources/bugs/Swift5CodeGenarationBug2.yaml rename to modules/openapi-generator/src/test/resources/bugs/Swift5CodeGenerationBug2.yaml diff --git a/modules/openapi-generator/src/test/resources/integrationtests/typescript/additional-properties-expected/.openapi-generator-ignore b/modules/openapi-generator/src/test/resources/integrationtests/typescript/additional-properties-expected/.openapi-generator-ignore index c5fa491b4c5..deed424f8a1 100644 --- a/modules/openapi-generator/src/test/resources/integrationtests/typescript/additional-properties-expected/.openapi-generator-ignore +++ b/modules/openapi-generator/src/test/resources/integrationtests/typescript/additional-properties-expected/.openapi-generator-ignore @@ -5,7 +5,7 @@ # The patterns follow closely to .gitignore or .dockerignore. # As an example, the C# client generator defines ApiClient.cs. -# You can make changes and tell Swagger Codgen to ignore just this file by uncommenting the following line: +# You can make changes and tell Swagger Codegen to ignore just this file by uncommenting the following line: #ApiClient.cs # You can match any string of characters against a directory, file or extension with a single asterisk (*): diff --git a/modules/openapi-generator/src/test/resources/integrationtests/typescript/additional-properties-expected/git_push.sh b/modules/openapi-generator/src/test/resources/integrationtests/typescript/additional-properties-expected/git_push.sh index 6ca091b49d9..da84dcdab3b 100644 --- a/modules/openapi-generator/src/test/resources/integrationtests/typescript/additional-properties-expected/git_push.sh +++ b/modules/openapi-generator/src/test/resources/integrationtests/typescript/additional-properties-expected/git_push.sh @@ -36,7 +36,7 @@ git_remote=`git remote` if [ "$git_remote" = "" ]; then # git remote not defined if [ "$GIT_TOKEN" = "" ]; then - echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git crediential in your environment." + echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment." git remote add origin https://github.com/${git_user_id}/${git_repo_id}.git else git remote add origin https://${git_user_id}:${GIT_TOKEN}@github.com/${git_user_id}/${git_repo_id}.git diff --git a/modules/openapi-generator/src/test/resources/integrationtests/typescript/array-and-object-expected/.openapi-generator-ignore b/modules/openapi-generator/src/test/resources/integrationtests/typescript/array-and-object-expected/.openapi-generator-ignore index c5fa491b4c5..deed424f8a1 100644 --- a/modules/openapi-generator/src/test/resources/integrationtests/typescript/array-and-object-expected/.openapi-generator-ignore +++ b/modules/openapi-generator/src/test/resources/integrationtests/typescript/array-and-object-expected/.openapi-generator-ignore @@ -5,7 +5,7 @@ # The patterns follow closely to .gitignore or .dockerignore. # As an example, the C# client generator defines ApiClient.cs. -# You can make changes and tell Swagger Codgen to ignore just this file by uncommenting the following line: +# You can make changes and tell Swagger Codegen to ignore just this file by uncommenting the following line: #ApiClient.cs # You can match any string of characters against a directory, file or extension with a single asterisk (*): diff --git a/modules/openapi-generator/src/test/resources/integrationtests/typescript/array-and-object-expected/git_push.sh b/modules/openapi-generator/src/test/resources/integrationtests/typescript/array-and-object-expected/git_push.sh index 6ca091b49d9..da84dcdab3b 100644 --- a/modules/openapi-generator/src/test/resources/integrationtests/typescript/array-and-object-expected/git_push.sh +++ b/modules/openapi-generator/src/test/resources/integrationtests/typescript/array-and-object-expected/git_push.sh @@ -36,7 +36,7 @@ git_remote=`git remote` if [ "$git_remote" = "" ]; then # git remote not defined if [ "$GIT_TOKEN" = "" ]; then - echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git crediential in your environment." + echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment." git remote add origin https://github.com/${git_user_id}/${git_repo_id}.git else git remote add origin https://${git_user_id}:${GIT_TOKEN}@github.com/${git_user_id}/${git_repo_id}.git diff --git a/modules/openapi-generator/src/test/resources/integrationtests/typescript/node-es5-expected/.openapi-generator-ignore b/modules/openapi-generator/src/test/resources/integrationtests/typescript/node-es5-expected/.openapi-generator-ignore index c5fa491b4c5..deed424f8a1 100644 --- a/modules/openapi-generator/src/test/resources/integrationtests/typescript/node-es5-expected/.openapi-generator-ignore +++ b/modules/openapi-generator/src/test/resources/integrationtests/typescript/node-es5-expected/.openapi-generator-ignore @@ -5,7 +5,7 @@ # The patterns follow closely to .gitignore or .dockerignore. # As an example, the C# client generator defines ApiClient.cs. -# You can make changes and tell Swagger Codgen to ignore just this file by uncommenting the following line: +# You can make changes and tell Swagger Codegen to ignore just this file by uncommenting the following line: #ApiClient.cs # You can match any string of characters against a directory, file or extension with a single asterisk (*): diff --git a/modules/openapi-generator/src/test/resources/integrationtests/typescript/node-es5-expected/git_push.sh b/modules/openapi-generator/src/test/resources/integrationtests/typescript/node-es5-expected/git_push.sh index 6ca091b49d9..da84dcdab3b 100644 --- a/modules/openapi-generator/src/test/resources/integrationtests/typescript/node-es5-expected/git_push.sh +++ b/modules/openapi-generator/src/test/resources/integrationtests/typescript/node-es5-expected/git_push.sh @@ -36,7 +36,7 @@ git_remote=`git remote` if [ "$git_remote" = "" ]; then # git remote not defined if [ "$GIT_TOKEN" = "" ]; then - echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git crediential in your environment." + echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment." git remote add origin https://github.com/${git_user_id}/${git_repo_id}.git else git remote add origin https://${git_user_id}:${GIT_TOKEN}@github.com/${git_user_id}/${git_repo_id}.git diff --git a/modules/openapi-generator/src/test/resources/integrationtests/typescript/objectsWithEnums-expected/git_push.sh b/modules/openapi-generator/src/test/resources/integrationtests/typescript/objectsWithEnums-expected/git_push.sh index 26bdd7ca696..8d7f76ddf28 100644 --- a/modules/openapi-generator/src/test/resources/integrationtests/typescript/objectsWithEnums-expected/git_push.sh +++ b/modules/openapi-generator/src/test/resources/integrationtests/typescript/objectsWithEnums-expected/git_push.sh @@ -1,7 +1,7 @@ #!/bin/sh # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" git_user_id=$1 git_repo_id=$2 diff --git a/modules/openapi-generator/src/test/resources/integrationtests/typescript/petstore-expected/.openapi-generator-ignore b/modules/openapi-generator/src/test/resources/integrationtests/typescript/petstore-expected/.openapi-generator-ignore index c5fa491b4c5..deed424f8a1 100644 --- a/modules/openapi-generator/src/test/resources/integrationtests/typescript/petstore-expected/.openapi-generator-ignore +++ b/modules/openapi-generator/src/test/resources/integrationtests/typescript/petstore-expected/.openapi-generator-ignore @@ -5,7 +5,7 @@ # The patterns follow closely to .gitignore or .dockerignore. # As an example, the C# client generator defines ApiClient.cs. -# You can make changes and tell Swagger Codgen to ignore just this file by uncommenting the following line: +# You can make changes and tell Swagger Codegen to ignore just this file by uncommenting the following line: #ApiClient.cs # You can match any string of characters against a directory, file or extension with a single asterisk (*): diff --git a/modules/openapi-generator/src/test/resources/integrationtests/typescript/petstore-expected/git_push.sh b/modules/openapi-generator/src/test/resources/integrationtests/typescript/petstore-expected/git_push.sh index 6ca091b49d9..da84dcdab3b 100644 --- a/modules/openapi-generator/src/test/resources/integrationtests/typescript/petstore-expected/git_push.sh +++ b/modules/openapi-generator/src/test/resources/integrationtests/typescript/petstore-expected/git_push.sh @@ -36,7 +36,7 @@ git_remote=`git remote` if [ "$git_remote" = "" ]; then # git remote not defined if [ "$GIT_TOKEN" = "" ]; then - echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git crediential in your environment." + echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment." git remote add origin https://github.com/${git_user_id}/${git_repo_id}.git else git remote add origin https://${git_user_id}:${GIT_TOKEN}@github.com/${git_user_id}/${git_repo_id}.git diff --git a/modules/openapi-generator/src/test/resources/integrationtests/typescript/petstore-spec.json b/modules/openapi-generator/src/test/resources/integrationtests/typescript/petstore-spec.json index 0265c9524c1..2120a1a2f4e 100644 --- a/modules/openapi-generator/src/test/resources/integrationtests/typescript/petstore-spec.json +++ b/modules/openapi-generator/src/test/resources/integrationtests/typescript/petstore-spec.json @@ -689,7 +689,7 @@ "X-Expires-After": { "type": "string", "format": "date-time", - "description": "date in UTC when toekn expires" + "description": "date in UTC when token expires" } } }, diff --git a/modules/openapi-generator/src/test/resources/templating/templates/jmeter/api.hbs b/modules/openapi-generator/src/test/resources/templating/templates/jmeter/api.hbs index 95ebcdcd251..ac4530655d1 100644 --- a/modules/openapi-generator/src/test/resources/templating/templates/jmeter/api.hbs +++ b/modules/openapi-generator/src/test/resources/templating/templates/jmeter/api.hbs @@ -133,7 +133,7 @@ - + ${httpStatusCode} Assertion.response_code diff --git a/pom.xml b/pom.xml index 996c6e6f758..db2f0e08eee 100644 --- a/pom.xml +++ b/pom.xml @@ -1211,7 +1211,7 @@ samples/client/petstore/bash--> samples/client/petstore/ruby-faraday samples/client/petstore/ruby - samples/client/petstore/cpp-qt @@ -1488,7 +1488,7 @@ samples/client/petstore/swift5/rxswiftLibrary samples/client/petstore/swift5/urlsessionLibrary - + users to easily find other packages by the same owners. --> $author$ false false diff --git a/samples/client/petstore/csharp/OpenAPIClientNet35/README.md b/samples/client/petstore/csharp/OpenAPIClientNet35/README.md index 2e2e37841c4..4a48304fa4b 100644 --- a/samples/client/petstore/csharp/OpenAPIClientNet35/README.md +++ b/samples/client/petstore/csharp/OpenAPIClientNet35/README.md @@ -119,7 +119,7 @@ Class | Method | HTTP request | Description *FakeApi* | [**TestGroupParameters**](docs/FakeApi.md#testgroupparameters) | **DELETE** /fake | Fake endpoint to test group parameters (optional) *FakeApi* | [**TestInlineAdditionalProperties**](docs/FakeApi.md#testinlineadditionalproperties) | **POST** /fake/inline-additionalProperties | test inline additionalProperties *FakeApi* | [**TestJsonFormData**](docs/FakeApi.md#testjsonformdata) | **GET** /fake/jsonFormData | test json serialization of form data -*FakeApi* | [**TestQueryParameterCollectionFormat**](docs/FakeApi.md#testqueryparametercollectionformat) | **PUT** /fake/test-query-paramters | +*FakeApi* | [**TestQueryParameterCollectionFormat**](docs/FakeApi.md#testqueryparametercollectionformat) | **PUT** /fake/test-query-parameters | *FakeClassnameTags123Api* | [**TestClassname**](docs/FakeClassnameTags123Api.md#testclassname) | **PATCH** /fake_classname_test | To test class name in snake case *PetApi* | [**AddPet**](docs/PetApi.md#addpet) | **POST** /pet | Add a new pet to the store *PetApi* | [**DeletePet**](docs/PetApi.md#deletepet) | **DELETE** /pet/{petId} | Deletes a pet diff --git a/samples/client/petstore/csharp/OpenAPIClientNet35/docs/FakeApi.md b/samples/client/petstore/csharp/OpenAPIClientNet35/docs/FakeApi.md index 661c2cba6ab..2953700acb8 100644 --- a/samples/client/petstore/csharp/OpenAPIClientNet35/docs/FakeApi.md +++ b/samples/client/petstore/csharp/OpenAPIClientNet35/docs/FakeApi.md @@ -17,7 +17,7 @@ Method | HTTP request | Description [**TestGroupParameters**](FakeApi.md#testgroupparameters) | **DELETE** /fake | Fake endpoint to test group parameters (optional) [**TestInlineAdditionalProperties**](FakeApi.md#testinlineadditionalproperties) | **POST** /fake/inline-additionalProperties | test inline additionalProperties [**TestJsonFormData**](FakeApi.md#testjsonformdata) | **GET** /fake/jsonFormData | test json serialization of form data -[**TestQueryParameterCollectionFormat**](FakeApi.md#testqueryparametercollectionformat) | **PUT** /fake/test-query-paramters | +[**TestQueryParameterCollectionFormat**](FakeApi.md#testqueryparametercollectionformat) | **PUT** /fake/test-query-parameters | diff --git a/samples/client/petstore/csharp/OpenAPIClientNet35/src/Org.OpenAPITools/Api/FakeApi.cs b/samples/client/petstore/csharp/OpenAPIClientNet35/src/Org.OpenAPITools/Api/FakeApi.cs index ed0f0ced795..3db950b4ee2 100644 --- a/samples/client/petstore/csharp/OpenAPIClientNet35/src/Org.OpenAPITools/Api/FakeApi.cs +++ b/samples/client/petstore/csharp/OpenAPIClientNet35/src/Org.OpenAPITools/Api/FakeApi.cs @@ -1546,7 +1546,7 @@ namespace Org.OpenAPITools.Api if (context == null) throw new ApiException(400, "Missing required parameter 'context' when calling FakeApi->TestQueryParameterCollectionFormat"); - var localVarPath = "/fake/test-query-paramters"; + var localVarPath = "/fake/test-query-parameters"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); diff --git a/samples/client/petstore/csharp/OpenAPIClientNet40/README.md b/samples/client/petstore/csharp/OpenAPIClientNet40/README.md index 2e2e37841c4..4a48304fa4b 100644 --- a/samples/client/petstore/csharp/OpenAPIClientNet40/README.md +++ b/samples/client/petstore/csharp/OpenAPIClientNet40/README.md @@ -119,7 +119,7 @@ Class | Method | HTTP request | Description *FakeApi* | [**TestGroupParameters**](docs/FakeApi.md#testgroupparameters) | **DELETE** /fake | Fake endpoint to test group parameters (optional) *FakeApi* | [**TestInlineAdditionalProperties**](docs/FakeApi.md#testinlineadditionalproperties) | **POST** /fake/inline-additionalProperties | test inline additionalProperties *FakeApi* | [**TestJsonFormData**](docs/FakeApi.md#testjsonformdata) | **GET** /fake/jsonFormData | test json serialization of form data -*FakeApi* | [**TestQueryParameterCollectionFormat**](docs/FakeApi.md#testqueryparametercollectionformat) | **PUT** /fake/test-query-paramters | +*FakeApi* | [**TestQueryParameterCollectionFormat**](docs/FakeApi.md#testqueryparametercollectionformat) | **PUT** /fake/test-query-parameters | *FakeClassnameTags123Api* | [**TestClassname**](docs/FakeClassnameTags123Api.md#testclassname) | **PATCH** /fake_classname_test | To test class name in snake case *PetApi* | [**AddPet**](docs/PetApi.md#addpet) | **POST** /pet | Add a new pet to the store *PetApi* | [**DeletePet**](docs/PetApi.md#deletepet) | **DELETE** /pet/{petId} | Deletes a pet diff --git a/samples/client/petstore/csharp/OpenAPIClientNet40/docs/FakeApi.md b/samples/client/petstore/csharp/OpenAPIClientNet40/docs/FakeApi.md index 661c2cba6ab..2953700acb8 100644 --- a/samples/client/petstore/csharp/OpenAPIClientNet40/docs/FakeApi.md +++ b/samples/client/petstore/csharp/OpenAPIClientNet40/docs/FakeApi.md @@ -17,7 +17,7 @@ Method | HTTP request | Description [**TestGroupParameters**](FakeApi.md#testgroupparameters) | **DELETE** /fake | Fake endpoint to test group parameters (optional) [**TestInlineAdditionalProperties**](FakeApi.md#testinlineadditionalproperties) | **POST** /fake/inline-additionalProperties | test inline additionalProperties [**TestJsonFormData**](FakeApi.md#testjsonformdata) | **GET** /fake/jsonFormData | test json serialization of form data -[**TestQueryParameterCollectionFormat**](FakeApi.md#testqueryparametercollectionformat) | **PUT** /fake/test-query-paramters | +[**TestQueryParameterCollectionFormat**](FakeApi.md#testqueryparametercollectionformat) | **PUT** /fake/test-query-parameters | diff --git a/samples/client/petstore/csharp/OpenAPIClientNet40/src/Org.OpenAPITools/Api/FakeApi.cs b/samples/client/petstore/csharp/OpenAPIClientNet40/src/Org.OpenAPITools/Api/FakeApi.cs index 8d2b08278ac..d4ea2c2e6d3 100644 --- a/samples/client/petstore/csharp/OpenAPIClientNet40/src/Org.OpenAPITools/Api/FakeApi.cs +++ b/samples/client/petstore/csharp/OpenAPIClientNet40/src/Org.OpenAPITools/Api/FakeApi.cs @@ -1546,7 +1546,7 @@ namespace Org.OpenAPITools.Api if (context == null) throw new ApiException(400, "Missing required parameter 'context' when calling FakeApi->TestQueryParameterCollectionFormat"); - var localVarPath = "/fake/test-query-paramters"; + var localVarPath = "/fake/test-query-parameters"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); diff --git a/samples/client/petstore/csharp/OpenAPIClientNetCoreProject/README.md b/samples/client/petstore/csharp/OpenAPIClientNetCoreProject/README.md index 19c69aa88d0..569d82c8e20 100644 --- a/samples/client/petstore/csharp/OpenAPIClientNetCoreProject/README.md +++ b/samples/client/petstore/csharp/OpenAPIClientNetCoreProject/README.md @@ -95,7 +95,7 @@ Class | Method | HTTP request | Description *FakeApi* | [**TestGroupParameters**](docs/FakeApi.md#testgroupparameters) | **DELETE** /fake | Fake endpoint to test group parameters (optional) *FakeApi* | [**TestInlineAdditionalProperties**](docs/FakeApi.md#testinlineadditionalproperties) | **POST** /fake/inline-additionalProperties | test inline additionalProperties *FakeApi* | [**TestJsonFormData**](docs/FakeApi.md#testjsonformdata) | **GET** /fake/jsonFormData | test json serialization of form data -*FakeApi* | [**TestQueryParameterCollectionFormat**](docs/FakeApi.md#testqueryparametercollectionformat) | **PUT** /fake/test-query-paramters | +*FakeApi* | [**TestQueryParameterCollectionFormat**](docs/FakeApi.md#testqueryparametercollectionformat) | **PUT** /fake/test-query-parameters | *FakeClassnameTags123Api* | [**TestClassname**](docs/FakeClassnameTags123Api.md#testclassname) | **PATCH** /fake_classname_test | To test class name in snake case *PetApi* | [**AddPet**](docs/PetApi.md#addpet) | **POST** /pet | Add a new pet to the store *PetApi* | [**DeletePet**](docs/PetApi.md#deletepet) | **DELETE** /pet/{petId} | Deletes a pet diff --git a/samples/client/petstore/csharp/OpenAPIClientNetCoreProject/docs/FakeApi.md b/samples/client/petstore/csharp/OpenAPIClientNetCoreProject/docs/FakeApi.md index 661c2cba6ab..2953700acb8 100644 --- a/samples/client/petstore/csharp/OpenAPIClientNetCoreProject/docs/FakeApi.md +++ b/samples/client/petstore/csharp/OpenAPIClientNetCoreProject/docs/FakeApi.md @@ -17,7 +17,7 @@ Method | HTTP request | Description [**TestGroupParameters**](FakeApi.md#testgroupparameters) | **DELETE** /fake | Fake endpoint to test group parameters (optional) [**TestInlineAdditionalProperties**](FakeApi.md#testinlineadditionalproperties) | **POST** /fake/inline-additionalProperties | test inline additionalProperties [**TestJsonFormData**](FakeApi.md#testjsonformdata) | **GET** /fake/jsonFormData | test json serialization of form data -[**TestQueryParameterCollectionFormat**](FakeApi.md#testqueryparametercollectionformat) | **PUT** /fake/test-query-paramters | +[**TestQueryParameterCollectionFormat**](FakeApi.md#testqueryparametercollectionformat) | **PUT** /fake/test-query-parameters | diff --git a/samples/client/petstore/csharp/OpenAPIClientNetCoreProject/src/Org.OpenAPITools/Api/FakeApi.cs b/samples/client/petstore/csharp/OpenAPIClientNetCoreProject/src/Org.OpenAPITools/Api/FakeApi.cs index 8676341d606..88b9ccf2692 100644 --- a/samples/client/petstore/csharp/OpenAPIClientNetCoreProject/src/Org.OpenAPITools/Api/FakeApi.cs +++ b/samples/client/petstore/csharp/OpenAPIClientNetCoreProject/src/Org.OpenAPITools/Api/FakeApi.cs @@ -2982,7 +2982,7 @@ namespace Org.OpenAPITools.Api if (context == null) throw new ApiException(400, "Missing required parameter 'context' when calling FakeApi->TestQueryParameterCollectionFormat"); - var localVarPath = "./fake/test-query-paramters"; + var localVarPath = "./fake/test-query-parameters"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); @@ -3073,7 +3073,7 @@ namespace Org.OpenAPITools.Api if (context == null) throw new ApiException(400, "Missing required parameter 'context' when calling FakeApi->TestQueryParameterCollectionFormat"); - var localVarPath = "./fake/test-query-paramters"; + var localVarPath = "./fake/test-query-parameters"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); diff --git a/samples/client/petstore/csharp/OpenAPIClientNetStandard/README.md b/samples/client/petstore/csharp/OpenAPIClientNetStandard/README.md index 19c69aa88d0..569d82c8e20 100644 --- a/samples/client/petstore/csharp/OpenAPIClientNetStandard/README.md +++ b/samples/client/petstore/csharp/OpenAPIClientNetStandard/README.md @@ -95,7 +95,7 @@ Class | Method | HTTP request | Description *FakeApi* | [**TestGroupParameters**](docs/FakeApi.md#testgroupparameters) | **DELETE** /fake | Fake endpoint to test group parameters (optional) *FakeApi* | [**TestInlineAdditionalProperties**](docs/FakeApi.md#testinlineadditionalproperties) | **POST** /fake/inline-additionalProperties | test inline additionalProperties *FakeApi* | [**TestJsonFormData**](docs/FakeApi.md#testjsonformdata) | **GET** /fake/jsonFormData | test json serialization of form data -*FakeApi* | [**TestQueryParameterCollectionFormat**](docs/FakeApi.md#testqueryparametercollectionformat) | **PUT** /fake/test-query-paramters | +*FakeApi* | [**TestQueryParameterCollectionFormat**](docs/FakeApi.md#testqueryparametercollectionformat) | **PUT** /fake/test-query-parameters | *FakeClassnameTags123Api* | [**TestClassname**](docs/FakeClassnameTags123Api.md#testclassname) | **PATCH** /fake_classname_test | To test class name in snake case *PetApi* | [**AddPet**](docs/PetApi.md#addpet) | **POST** /pet | Add a new pet to the store *PetApi* | [**DeletePet**](docs/PetApi.md#deletepet) | **DELETE** /pet/{petId} | Deletes a pet diff --git a/samples/client/petstore/csharp/OpenAPIClientNetStandard/docs/FakeApi.md b/samples/client/petstore/csharp/OpenAPIClientNetStandard/docs/FakeApi.md index 661c2cba6ab..2953700acb8 100644 --- a/samples/client/petstore/csharp/OpenAPIClientNetStandard/docs/FakeApi.md +++ b/samples/client/petstore/csharp/OpenAPIClientNetStandard/docs/FakeApi.md @@ -17,7 +17,7 @@ Method | HTTP request | Description [**TestGroupParameters**](FakeApi.md#testgroupparameters) | **DELETE** /fake | Fake endpoint to test group parameters (optional) [**TestInlineAdditionalProperties**](FakeApi.md#testinlineadditionalproperties) | **POST** /fake/inline-additionalProperties | test inline additionalProperties [**TestJsonFormData**](FakeApi.md#testjsonformdata) | **GET** /fake/jsonFormData | test json serialization of form data -[**TestQueryParameterCollectionFormat**](FakeApi.md#testqueryparametercollectionformat) | **PUT** /fake/test-query-paramters | +[**TestQueryParameterCollectionFormat**](FakeApi.md#testqueryparametercollectionformat) | **PUT** /fake/test-query-parameters | diff --git a/samples/client/petstore/csharp/OpenAPIClientNetStandard/src/Org.OpenAPITools/Api/FakeApi.cs b/samples/client/petstore/csharp/OpenAPIClientNetStandard/src/Org.OpenAPITools/Api/FakeApi.cs index 8676341d606..88b9ccf2692 100644 --- a/samples/client/petstore/csharp/OpenAPIClientNetStandard/src/Org.OpenAPITools/Api/FakeApi.cs +++ b/samples/client/petstore/csharp/OpenAPIClientNetStandard/src/Org.OpenAPITools/Api/FakeApi.cs @@ -2982,7 +2982,7 @@ namespace Org.OpenAPITools.Api if (context == null) throw new ApiException(400, "Missing required parameter 'context' when calling FakeApi->TestQueryParameterCollectionFormat"); - var localVarPath = "./fake/test-query-paramters"; + var localVarPath = "./fake/test-query-parameters"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); @@ -3073,7 +3073,7 @@ namespace Org.OpenAPITools.Api if (context == null) throw new ApiException(400, "Missing required parameter 'context' when calling FakeApi->TestQueryParameterCollectionFormat"); - var localVarPath = "./fake/test-query-paramters"; + var localVarPath = "./fake/test-query-parameters"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); diff --git a/samples/client/petstore/csharp/OpenAPIClientWithPropertyChanged/README.md b/samples/client/petstore/csharp/OpenAPIClientWithPropertyChanged/README.md index 2e2e37841c4..4a48304fa4b 100644 --- a/samples/client/petstore/csharp/OpenAPIClientWithPropertyChanged/README.md +++ b/samples/client/petstore/csharp/OpenAPIClientWithPropertyChanged/README.md @@ -119,7 +119,7 @@ Class | Method | HTTP request | Description *FakeApi* | [**TestGroupParameters**](docs/FakeApi.md#testgroupparameters) | **DELETE** /fake | Fake endpoint to test group parameters (optional) *FakeApi* | [**TestInlineAdditionalProperties**](docs/FakeApi.md#testinlineadditionalproperties) | **POST** /fake/inline-additionalProperties | test inline additionalProperties *FakeApi* | [**TestJsonFormData**](docs/FakeApi.md#testjsonformdata) | **GET** /fake/jsonFormData | test json serialization of form data -*FakeApi* | [**TestQueryParameterCollectionFormat**](docs/FakeApi.md#testqueryparametercollectionformat) | **PUT** /fake/test-query-paramters | +*FakeApi* | [**TestQueryParameterCollectionFormat**](docs/FakeApi.md#testqueryparametercollectionformat) | **PUT** /fake/test-query-parameters | *FakeClassnameTags123Api* | [**TestClassname**](docs/FakeClassnameTags123Api.md#testclassname) | **PATCH** /fake_classname_test | To test class name in snake case *PetApi* | [**AddPet**](docs/PetApi.md#addpet) | **POST** /pet | Add a new pet to the store *PetApi* | [**DeletePet**](docs/PetApi.md#deletepet) | **DELETE** /pet/{petId} | Deletes a pet diff --git a/samples/client/petstore/csharp/OpenAPIClientWithPropertyChanged/docs/FakeApi.md b/samples/client/petstore/csharp/OpenAPIClientWithPropertyChanged/docs/FakeApi.md index 661c2cba6ab..2953700acb8 100644 --- a/samples/client/petstore/csharp/OpenAPIClientWithPropertyChanged/docs/FakeApi.md +++ b/samples/client/petstore/csharp/OpenAPIClientWithPropertyChanged/docs/FakeApi.md @@ -17,7 +17,7 @@ Method | HTTP request | Description [**TestGroupParameters**](FakeApi.md#testgroupparameters) | **DELETE** /fake | Fake endpoint to test group parameters (optional) [**TestInlineAdditionalProperties**](FakeApi.md#testinlineadditionalproperties) | **POST** /fake/inline-additionalProperties | test inline additionalProperties [**TestJsonFormData**](FakeApi.md#testjsonformdata) | **GET** /fake/jsonFormData | test json serialization of form data -[**TestQueryParameterCollectionFormat**](FakeApi.md#testqueryparametercollectionformat) | **PUT** /fake/test-query-paramters | +[**TestQueryParameterCollectionFormat**](FakeApi.md#testqueryparametercollectionformat) | **PUT** /fake/test-query-parameters | diff --git a/samples/client/petstore/csharp/OpenAPIClientWithPropertyChanged/src/Org.OpenAPITools/Api/FakeApi.cs b/samples/client/petstore/csharp/OpenAPIClientWithPropertyChanged/src/Org.OpenAPITools/Api/FakeApi.cs index 5a84bc878f9..9ea5a109792 100644 --- a/samples/client/petstore/csharp/OpenAPIClientWithPropertyChanged/src/Org.OpenAPITools/Api/FakeApi.cs +++ b/samples/client/petstore/csharp/OpenAPIClientWithPropertyChanged/src/Org.OpenAPITools/Api/FakeApi.cs @@ -2982,7 +2982,7 @@ namespace Org.OpenAPITools.Api if (context == null) throw new ApiException(400, "Missing required parameter 'context' when calling FakeApi->TestQueryParameterCollectionFormat"); - var localVarPath = "/fake/test-query-paramters"; + var localVarPath = "/fake/test-query-parameters"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); @@ -3073,7 +3073,7 @@ namespace Org.OpenAPITools.Api if (context == null) throw new ApiException(400, "Missing required parameter 'context' when calling FakeApi->TestQueryParameterCollectionFormat"); - var localVarPath = "/fake/test-query-paramters"; + var localVarPath = "/fake/test-query-parameters"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); diff --git a/samples/client/petstore/eiffel/README.md b/samples/client/petstore/eiffel/README.md index eaa85495f27..5c085821dfa 100644 --- a/samples/client/petstore/eiffel/README.md +++ b/samples/client/petstore/eiffel/README.md @@ -35,7 +35,7 @@ Class | Method | HTTP request | Description *FAKE_API* | [**test_group_parameters**](docs/FAKE_API.md#test_group_parameters) | **Delete** /fake | Fake endpoint to test group parameters (optional) *FAKE_API* | [**test_inline_additional_properties**](docs/FAKE_API.md#test_inline_additional_properties) | **Post** /fake/inline-additionalProperties | test inline additionalProperties *FAKE_API* | [**test_json_form_data**](docs/FAKE_API.md#test_json_form_data) | **Get** /fake/jsonFormData | test json serialization of form data -*FAKE_API* | [**test_query_parameter_collection_format**](docs/FAKE_API.md#test_query_parameter_collection_format) | **Put** /fake/test-query-paramters | +*FAKE_API* | [**test_query_parameter_collection_format**](docs/FAKE_API.md#test_query_parameter_collection_format) | **Put** /fake/test-query-parameters | *FAKECLASSNAMETAGS123_API* | [**test_classname**](docs/FAKECLASSNAMETAGS123_API.md#test_classname) | **Patch** /fake_classname_test | To test class name in snake case *PET_API* | [**add_pet**](docs/PET_API.md#add_pet) | **Post** /pet | Add a new pet to the store *PET_API* | [**delete_pet**](docs/PET_API.md#delete_pet) | **Delete** /pet/{petId} | Deletes a pet diff --git a/samples/client/petstore/eiffel/docs/FAKE_API.md b/samples/client/petstore/eiffel/docs/FAKE_API.md index e682cd41891..2aba2a4d283 100644 --- a/samples/client/petstore/eiffel/docs/FAKE_API.md +++ b/samples/client/petstore/eiffel/docs/FAKE_API.md @@ -17,7 +17,7 @@ Feature | HTTP request | Description [**test_group_parameters**](FAKE_API.md#test_group_parameters) | **Delete** /fake | Fake endpoint to test group parameters (optional) [**test_inline_additional_properties**](FAKE_API.md#test_inline_additional_properties) | **Post** /fake/inline-additionalProperties | test inline additionalProperties [**test_json_form_data**](FAKE_API.md#test_json_form_data) | **Get** /fake/jsonFormData | test json serialization of form data -[**test_query_parameter_collection_format**](FAKE_API.md#test_query_parameter_collection_format) | **Put** /fake/test-query-paramters | +[**test_query_parameter_collection_format**](FAKE_API.md#test_query_parameter_collection_format) | **Put** /fake/test-query-parameters | # **create_xml_item** diff --git a/samples/client/petstore/eiffel/src/api/fake_api.e b/samples/client/petstore/eiffel/src/api/fake_api.e index f5e049fdef2..fc71f154a8d 100644 --- a/samples/client/petstore/eiffel/src/api/fake_api.e +++ b/samples/client/petstore/eiffel/src/api/fake_api.e @@ -601,7 +601,7 @@ feature -- API Access reset_error create l_request - l_path := "/fake/test-query-paramters" + l_path := "/fake/test-query-parameters" l_request.fill_query_params(api_client.parameter_to_tuple("csv", "pipe", pipe)); l_request.fill_query_params(api_client.parameter_to_tuple("csv", "ioutil", ioutil)); l_request.fill_query_params(api_client.parameter_to_tuple("ssv", "http", http)); diff --git a/samples/client/petstore/elixir/lib/openapi_petstore/api/fake.ex b/samples/client/petstore/elixir/lib/openapi_petstore/api/fake.ex index 80d0a9e2191..428b2261e8a 100644 --- a/samples/client/petstore/elixir/lib/openapi_petstore/api/fake.ex +++ b/samples/client/petstore/elixir/lib/openapi_petstore/api/fake.ex @@ -541,7 +541,7 @@ defmodule OpenapiPetstore.Api.Fake do } %{} |> method(:put) - |> url("/fake/test-query-paramters") + |> url("/fake/test-query-parameters") |> add_param(:query, :"pipe", pipe) |> add_param(:query, :"ioutil", ioutil) |> add_param(:query, :"http", http) diff --git a/samples/client/petstore/go/go-petstore/README.md b/samples/client/petstore/go/go-petstore/README.md index b2978af836d..d462bd1be83 100644 --- a/samples/client/petstore/go/go-petstore/README.md +++ b/samples/client/petstore/go/go-petstore/README.md @@ -58,7 +58,7 @@ Note, enum values are always validated and all unused variables are silently ign ### URLs Configuration per Operation Each operation can use different server URL defined using `OperationServers` map in the `Configuration`. -An operation is uniquely identifield by `"{classname}Service.{nickname}"` string. +An operation is uniquely identified by `"{classname}Service.{nickname}"` string. Similar rules for overriding default operation server index and variables applies by using `sw.ContextOperationServerIndices` and `sw.ContextOperationServerVariables` context maps. ``` @@ -92,7 +92,7 @@ Class | Method | HTTP request | Description *FakeApi* | [**TestGroupParameters**](docs/FakeApi.md#testgroupparameters) | **Delete** /fake | Fake endpoint to test group parameters (optional) *FakeApi* | [**TestInlineAdditionalProperties**](docs/FakeApi.md#testinlineadditionalproperties) | **Post** /fake/inline-additionalProperties | test inline additionalProperties *FakeApi* | [**TestJsonFormData**](docs/FakeApi.md#testjsonformdata) | **Get** /fake/jsonFormData | test json serialization of form data -*FakeApi* | [**TestQueryParameterCollectionFormat**](docs/FakeApi.md#testqueryparametercollectionformat) | **Put** /fake/test-query-paramters | +*FakeApi* | [**TestQueryParameterCollectionFormat**](docs/FakeApi.md#testqueryparametercollectionformat) | **Put** /fake/test-query-parameters | *FakeClassnameTags123Api* | [**TestClassname**](docs/FakeClassnameTags123Api.md#testclassname) | **Patch** /fake_classname_test | To test class name in snake case *PetApi* | [**AddPet**](docs/PetApi.md#addpet) | **Post** /pet | Add a new pet to the store *PetApi* | [**DeletePet**](docs/PetApi.md#deletepet) | **Delete** /pet/{petId} | Deletes a pet diff --git a/samples/client/petstore/go/go-petstore/api/openapi.yaml b/samples/client/petstore/go/go-petstore/api/openapi.yaml index 4c7dda7a3b8..969da54c6c8 100644 --- a/samples/client/petstore/go/go-petstore/api/openapi.yaml +++ b/samples/client/petstore/go/go-petstore/api/openapi.yaml @@ -1104,7 +1104,7 @@ paths: tags: - fake x-codegen-request-body-name: body - /fake/test-query-paramters: + /fake/test-query-parameters: put: description: To test the collection format in query parameters operationId: testQueryParameterCollectionFormat diff --git a/samples/client/petstore/go/go-petstore/api_fake.go b/samples/client/petstore/go/go-petstore/api_fake.go index 1ac3eb496a1..92bd64eaa92 100644 --- a/samples/client/petstore/go/go-petstore/api_fake.go +++ b/samples/client/petstore/go/go-petstore/api_fake.go @@ -1909,7 +1909,7 @@ func (a *FakeApiService) TestQueryParameterCollectionFormatExecute(r ApiTestQuer return nil, GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/fake/test-query-paramters" + localVarPath := localBasePath + "/fake/test-query-parameters" localVarHeaderParams := make(map[string]string) localVarQueryParams := _neturl.Values{} diff --git a/samples/client/petstore/go/go-petstore/docs/FakeApi.md b/samples/client/petstore/go/go-petstore/docs/FakeApi.md index 382058dc4db..9a4a2bbd5ff 100644 --- a/samples/client/petstore/go/go-petstore/docs/FakeApi.md +++ b/samples/client/petstore/go/go-petstore/docs/FakeApi.md @@ -17,7 +17,7 @@ Method | HTTP request | Description [**TestGroupParameters**](FakeApi.md#TestGroupParameters) | **Delete** /fake | Fake endpoint to test group parameters (optional) [**TestInlineAdditionalProperties**](FakeApi.md#TestInlineAdditionalProperties) | **Post** /fake/inline-additionalProperties | test inline additionalProperties [**TestJsonFormData**](FakeApi.md#TestJsonFormData) | **Get** /fake/jsonFormData | test json serialization of form data -[**TestQueryParameterCollectionFormat**](FakeApi.md#TestQueryParameterCollectionFormat) | **Put** /fake/test-query-paramters | +[**TestQueryParameterCollectionFormat**](FakeApi.md#TestQueryParameterCollectionFormat) | **Put** /fake/test-query-parameters | diff --git a/samples/client/petstore/go/go-petstore/git_push.sh b/samples/client/petstore/go/go-petstore/git_push.sh index 9405f72e950..18f86b99e82 100644 --- a/samples/client/petstore/go/go-petstore/git_push.sh +++ b/samples/client/petstore/go/go-petstore/git_push.sh @@ -1,7 +1,7 @@ #!/bin/sh # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" git_user_id=$1 git_repo_id=$2 diff --git a/samples/client/petstore/haskell-http-client/README.md b/samples/client/petstore/haskell-http-client/README.md index 83b6c1fd9bf..ebdc1a07669 100644 --- a/samples/client/petstore/haskell-http-client/README.md +++ b/samples/client/petstore/haskell-http-client/README.md @@ -112,7 +112,7 @@ This library is intended to be imported qualified. | MODULE | NOTES | | ------------------- | --------------------------------------------------- | | OpenAPIPetstore.Client | use the "dispatch" functions to send requests | -| OpenAPIPetstore.Core | core funcions, config and request types | +| OpenAPIPetstore.Core | core functions, config and request types | | OpenAPIPetstore.API | construct api requests | | OpenAPIPetstore.Model | describes api models | | OpenAPIPetstore.MimeTypes | encoding/decoding MIME types (content-types/accept) | diff --git a/samples/client/petstore/haskell-http-client/docs/OpenAPIPetstore-API-Fake.html b/samples/client/petstore/haskell-http-client/docs/OpenAPIPetstore-API-Fake.html index 57c9dea6bd4..4fd1fc1173a 100644 --- a/samples/client/petstore/haskell-http-client/docs/OpenAPIPetstore-API-Fake.html +++ b/samples/client/petstore/haskell-http-client/docs/OpenAPIPetstore-API-Fake.html @@ -1 +1 @@ -OpenAPIPetstore.API.Fake

openapi-petstore-0.1.0.0: Auto-generated openapi-petstore API Client

Safe HaskellNone
LanguageHaskell2010

OpenAPIPetstore.API.Fake

Description

 
Synopsis

Operations

Fake

createXmlItem

createXmlItem Source #

Arguments

:: (Consumes CreateXmlItem contentType, MimeRender contentType XmlItem) 
=> ContentType contentType

request content-type (MimeType)

-> XmlItem

"xmlItem" - XmlItem Body

-> OpenAPIPetstoreRequest CreateXmlItem contentType NoContent MimeNoContent 
POST /fake/create_xml_item

creates an XmlItem

this route creates an XmlItem

data CreateXmlItem Source #

Instances
Produces CreateXmlItem MimeNoContent Source # 
Instance details

Defined in OpenAPIPetstore.API.Fake

Consumes CreateXmlItem MimeTextXmlCharsetutf8 Source #
text/xml; charset=utf-8
Instance details

Defined in OpenAPIPetstore.API.Fake

Consumes CreateXmlItem MimeTextXmlCharsetutf16 Source #
text/xml; charset=utf-16
Instance details

Defined in OpenAPIPetstore.API.Fake

Consumes CreateXmlItem MimeTextXml Source #
text/xml
Instance details

Defined in OpenAPIPetstore.API.Fake

Consumes CreateXmlItem MimeXmlCharsetutf8 Source #
application/xml; charset=utf-8
Instance details

Defined in OpenAPIPetstore.API.Fake

Consumes CreateXmlItem MimeXmlCharsetutf16 Source #
application/xml; charset=utf-16
Instance details

Defined in OpenAPIPetstore.API.Fake

Consumes CreateXmlItem MimeXML Source #
application/xml
Instance details

Defined in OpenAPIPetstore.API.Fake

HasBodyParam CreateXmlItem XmlItem Source #

Body Param XmlItem - XmlItem Body

Instance details

Defined in OpenAPIPetstore.API.Fake

Methods

setBodyParam :: (Consumes CreateXmlItem contentType, MimeRender contentType XmlItem) => OpenAPIPetstoreRequest CreateXmlItem contentType res accept -> XmlItem -> OpenAPIPetstoreRequest CreateXmlItem contentType res accept Source #

fakeOuterBooleanSerialize

fakeOuterBooleanSerialize Source #

Arguments

:: Consumes FakeOuterBooleanSerialize contentType 
=> ContentType contentType

request content-type (MimeType)

-> Accept accept

request accept (MimeType)

-> OpenAPIPetstoreRequest FakeOuterBooleanSerialize contentType Bool accept 
POST /fake/outer/boolean

Test serialization of outer boolean types

data FakeOuterBooleanSerialize Source #

Instances
MimeType mtype => Produces FakeOuterBooleanSerialize mtype Source #
*/*
Instance details

Defined in OpenAPIPetstore.API.Fake

MimeType mtype => Consumes FakeOuterBooleanSerialize mtype Source #
*/*
Instance details

Defined in OpenAPIPetstore.API.Fake

HasBodyParam FakeOuterBooleanSerialize BodyBool Source #

Body Param "body" - Input boolean as post body

Instance details

Defined in OpenAPIPetstore.API.Fake

fakeOuterCompositeSerialize

fakeOuterCompositeSerialize Source #

Arguments

:: Consumes FakeOuterCompositeSerialize contentType 
=> ContentType contentType

request content-type (MimeType)

-> Accept accept

request accept (MimeType)

-> OpenAPIPetstoreRequest FakeOuterCompositeSerialize contentType OuterComposite accept 
POST /fake/outer/composite

Test serialization of object with outer number type

fakeOuterNumberSerialize

fakeOuterNumberSerialize Source #

Arguments

:: Consumes FakeOuterNumberSerialize contentType 
=> ContentType contentType

request content-type (MimeType)

-> Accept accept

request accept (MimeType)

-> OpenAPIPetstoreRequest FakeOuterNumberSerialize contentType Double accept 
POST /fake/outer/number

Test serialization of outer number types

data FakeOuterNumberSerialize Source #

Instances
MimeType mtype => Produces FakeOuterNumberSerialize mtype Source #
*/*
Instance details

Defined in OpenAPIPetstore.API.Fake

MimeType mtype => Consumes FakeOuterNumberSerialize mtype Source #
*/*
Instance details

Defined in OpenAPIPetstore.API.Fake

HasBodyParam FakeOuterNumberSerialize BodyDouble Source #

Body Param "body" - Input number as post body

Instance details

Defined in OpenAPIPetstore.API.Fake

fakeOuterStringSerialize

fakeOuterStringSerialize Source #

Arguments

:: Consumes FakeOuterStringSerialize contentType 
=> ContentType contentType

request content-type (MimeType)

-> Accept accept

request accept (MimeType)

-> OpenAPIPetstoreRequest FakeOuterStringSerialize contentType Text accept 
POST /fake/outer/string

Test serialization of outer string types

data FakeOuterStringSerialize Source #

Instances
MimeType mtype => Produces FakeOuterStringSerialize mtype Source #
*/*
Instance details

Defined in OpenAPIPetstore.API.Fake

MimeType mtype => Consumes FakeOuterStringSerialize mtype Source #
*/*
Instance details

Defined in OpenAPIPetstore.API.Fake

HasBodyParam FakeOuterStringSerialize BodyText Source #

Body Param "body" - Input string as post body

Instance details

Defined in OpenAPIPetstore.API.Fake

testBodyWithFileSchema

testBodyWithFileSchema Source #

PUT /fake/body-with-file-schema

For this test, the body for this request much reference a schema named File.

testBodyWithQueryParams

testClientModel

testClientModel Source #

PATCH /fake

To test "client" model

To test "client" model

data TestClientModel Source #

Instances
Produces TestClientModel MimeJSON Source #
application/json
Instance details

Defined in OpenAPIPetstore.API.Fake

Consumes TestClientModel MimeJSON Source #
application/json
Instance details

Defined in OpenAPIPetstore.API.Fake

HasBodyParam TestClientModel Client Source #

Body Param "body" - client model

Instance details

Defined in OpenAPIPetstore.API.Fake

Methods

setBodyParam :: (Consumes TestClientModel contentType, MimeRender contentType Client) => OpenAPIPetstoreRequest TestClientModel contentType res accept -> Client -> OpenAPIPetstoreRequest TestClientModel contentType res accept Source #

testEndpointParameters

testEndpointParameters Source #

POST /fake

Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트

Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트

AuthMethod: AuthBasicHttpBasicTest

data TestEndpointParameters Source #

Instances
Produces TestEndpointParameters MimeNoContent Source # 
Instance details

Defined in OpenAPIPetstore.API.Fake

Consumes TestEndpointParameters MimeFormUrlEncoded Source #
application/x-www-form-urlencoded
Instance details

Defined in OpenAPIPetstore.API.Fake

HasOptionalParam TestEndpointParameters Password Source #

Optional Param "password" - None

Instance details

Defined in OpenAPIPetstore.API.Fake

HasOptionalParam TestEndpointParameters ParamString Source #

Optional Param "string" - None

Instance details

Defined in OpenAPIPetstore.API.Fake

HasOptionalParam TestEndpointParameters ParamInteger Source #

Optional Param "integer" - None

Instance details

Defined in OpenAPIPetstore.API.Fake

HasOptionalParam TestEndpointParameters ParamFloat Source #

Optional Param "float" - None

Instance details

Defined in OpenAPIPetstore.API.Fake

HasOptionalParam TestEndpointParameters ParamDateTime Source #

Optional Param "dateTime" - None

Instance details

Defined in OpenAPIPetstore.API.Fake

HasOptionalParam TestEndpointParameters ParamDate Source #

Optional Param "date" - None

Instance details

Defined in OpenAPIPetstore.API.Fake

HasOptionalParam TestEndpointParameters ParamBinary Source #

Optional Param "binary" - None

Instance details

Defined in OpenAPIPetstore.API.Fake

HasOptionalParam TestEndpointParameters Int64 Source #

Optional Param "int64" - None

Instance details

Defined in OpenAPIPetstore.API.Fake

HasOptionalParam TestEndpointParameters Int32 Source #

Optional Param "int32" - None

Instance details

Defined in OpenAPIPetstore.API.Fake

HasOptionalParam TestEndpointParameters Callback Source #

Optional Param "callback" - None

Instance details

Defined in OpenAPIPetstore.API.Fake

testEnumParameters

data TestEnumParameters Source #

Instances
Produces TestEnumParameters MimeNoContent Source # 
Instance details

Defined in OpenAPIPetstore.API.Fake

Consumes TestEnumParameters MimeFormUrlEncoded Source #
application/x-www-form-urlencoded
Instance details

Defined in OpenAPIPetstore.API.Fake

HasOptionalParam TestEnumParameters EnumQueryStringArray Source #

Optional Param "enum_query_string_array" - Query parameter enum test (string array)

Instance details

Defined in OpenAPIPetstore.API.Fake

HasOptionalParam TestEnumParameters EnumQueryString Source #

Optional Param "enum_query_string" - Query parameter enum test (string)

Instance details

Defined in OpenAPIPetstore.API.Fake

HasOptionalParam TestEnumParameters EnumQueryInteger Source #

Optional Param "enum_query_integer" - Query parameter enum test (double)

Instance details

Defined in OpenAPIPetstore.API.Fake

HasOptionalParam TestEnumParameters EnumQueryDouble Source #

Optional Param "enum_query_double" - Query parameter enum test (double)

Instance details

Defined in OpenAPIPetstore.API.Fake

HasOptionalParam TestEnumParameters EnumHeaderStringArray Source #

Optional Param "enum_header_string_array" - Header parameter enum test (string array)

Instance details

Defined in OpenAPIPetstore.API.Fake

HasOptionalParam TestEnumParameters EnumHeaderString Source #

Optional Param "enum_header_string" - Header parameter enum test (string)

Instance details

Defined in OpenAPIPetstore.API.Fake

HasOptionalParam TestEnumParameters EnumFormStringArray Source #

Optional Param "enum_form_string_array" - Form parameter enum test (string array)

Instance details

Defined in OpenAPIPetstore.API.Fake

HasOptionalParam TestEnumParameters EnumFormString Source #

Optional Param "enum_form_string" - Form parameter enum test (string)

Instance details

Defined in OpenAPIPetstore.API.Fake

testGroupParameters

testGroupParameters Source #

Arguments

:: RequiredStringGroup

"requiredStringGroup" - Required String in group parameters

-> RequiredBooleanGroup

"requiredBooleanGroup" - Required Boolean in group parameters

-> RequiredInt64Group

"requiredInt64Group" - Required Integer in group parameters

-> OpenAPIPetstoreRequest TestGroupParameters MimeNoContent NoContent MimeNoContent 
DELETE /fake

Fake endpoint to test group parameters (optional)

Fake endpoint to test group parameters (optional)

data TestGroupParameters Source #

Instances
Produces TestGroupParameters MimeNoContent Source # 
Instance details

Defined in OpenAPIPetstore.API.Fake

HasOptionalParam TestGroupParameters StringGroup Source #

Optional Param "string_group" - String in group parameters

Instance details

Defined in OpenAPIPetstore.API.Fake

HasOptionalParam TestGroupParameters Int64Group Source #

Optional Param "int64_group" - Integer in group parameters

Instance details

Defined in OpenAPIPetstore.API.Fake

HasOptionalParam TestGroupParameters BooleanGroup Source #

Optional Param "boolean_group" - Boolean in group parameters

Instance details

Defined in OpenAPIPetstore.API.Fake

testInlineAdditionalProperties

testJsonFormData

testJsonFormData Source #

GET /fake/jsonFormData

test json serialization of form data

data TestJsonFormData Source #

Instances
Produces TestJsonFormData MimeNoContent Source # 
Instance details

Defined in OpenAPIPetstore.API.Fake

Consumes TestJsonFormData MimeFormUrlEncoded Source #
application/x-www-form-urlencoded
Instance details

Defined in OpenAPIPetstore.API.Fake

testQueryParameterCollectionFormat

testQueryParameterCollectionFormat Source #

PUT /fake/test-query-paramters

To test the collection format in query parameters

\ No newline at end of file +OpenAPIPetstore.API.Fake

openapi-petstore-0.1.0.0: Auto-generated openapi-petstore API Client

Safe HaskellNone
LanguageHaskell2010

OpenAPIPetstore.API.Fake

Description

 
Synopsis

Operations

Fake

createXmlItem

createXmlItem Source #

Arguments

:: (Consumes CreateXmlItem contentType, MimeRender contentType XmlItem) 
=> ContentType contentType

request content-type (MimeType)

-> XmlItem

"xmlItem" - XmlItem Body

-> OpenAPIPetstoreRequest CreateXmlItem contentType NoContent MimeNoContent 
POST /fake/create_xml_item

creates an XmlItem

this route creates an XmlItem

data CreateXmlItem Source #

Instances
Produces CreateXmlItem MimeNoContent Source # 
Instance details

Defined in OpenAPIPetstore.API.Fake

Consumes CreateXmlItem MimeTextXmlCharsetutf8 Source #
text/xml; charset=utf-8
Instance details

Defined in OpenAPIPetstore.API.Fake

Consumes CreateXmlItem MimeTextXmlCharsetutf16 Source #
text/xml; charset=utf-16
Instance details

Defined in OpenAPIPetstore.API.Fake

Consumes CreateXmlItem MimeTextXml Source #
text/xml
Instance details

Defined in OpenAPIPetstore.API.Fake

Consumes CreateXmlItem MimeXmlCharsetutf8 Source #
application/xml; charset=utf-8
Instance details

Defined in OpenAPIPetstore.API.Fake

Consumes CreateXmlItem MimeXmlCharsetutf16 Source #
application/xml; charset=utf-16
Instance details

Defined in OpenAPIPetstore.API.Fake

Consumes CreateXmlItem MimeXML Source #
application/xml
Instance details

Defined in OpenAPIPetstore.API.Fake

HasBodyParam CreateXmlItem XmlItem Source #

Body Param XmlItem - XmlItem Body

Instance details

Defined in OpenAPIPetstore.API.Fake

Methods

setBodyParam :: (Consumes CreateXmlItem contentType, MimeRender contentType XmlItem) => OpenAPIPetstoreRequest CreateXmlItem contentType res accept -> XmlItem -> OpenAPIPetstoreRequest CreateXmlItem contentType res accept Source #

fakeOuterBooleanSerialize

fakeOuterBooleanSerialize Source #

Arguments

:: Consumes FakeOuterBooleanSerialize contentType 
=> ContentType contentType

request content-type (MimeType)

-> Accept accept

request accept (MimeType)

-> OpenAPIPetstoreRequest FakeOuterBooleanSerialize contentType Bool accept 
POST /fake/outer/boolean

Test serialization of outer boolean types

data FakeOuterBooleanSerialize Source #

Instances
MimeType mtype => Produces FakeOuterBooleanSerialize mtype Source #
*/*
Instance details

Defined in OpenAPIPetstore.API.Fake

MimeType mtype => Consumes FakeOuterBooleanSerialize mtype Source #
*/*
Instance details

Defined in OpenAPIPetstore.API.Fake

HasBodyParam FakeOuterBooleanSerialize BodyBool Source #

Body Param "body" - Input boolean as post body

Instance details

Defined in OpenAPIPetstore.API.Fake

fakeOuterCompositeSerialize

fakeOuterCompositeSerialize Source #

Arguments

:: Consumes FakeOuterCompositeSerialize contentType 
=> ContentType contentType

request content-type (MimeType)

-> Accept accept

request accept (MimeType)

-> OpenAPIPetstoreRequest FakeOuterCompositeSerialize contentType OuterComposite accept 
POST /fake/outer/composite

Test serialization of object with outer number type

fakeOuterNumberSerialize

fakeOuterNumberSerialize Source #

Arguments

:: Consumes FakeOuterNumberSerialize contentType 
=> ContentType contentType

request content-type (MimeType)

-> Accept accept

request accept (MimeType)

-> OpenAPIPetstoreRequest FakeOuterNumberSerialize contentType Double accept 
POST /fake/outer/number

Test serialization of outer number types

data FakeOuterNumberSerialize Source #

Instances
MimeType mtype => Produces FakeOuterNumberSerialize mtype Source #
*/*
Instance details

Defined in OpenAPIPetstore.API.Fake

MimeType mtype => Consumes FakeOuterNumberSerialize mtype Source #
*/*
Instance details

Defined in OpenAPIPetstore.API.Fake

HasBodyParam FakeOuterNumberSerialize BodyDouble Source #

Body Param "body" - Input number as post body

Instance details

Defined in OpenAPIPetstore.API.Fake

fakeOuterStringSerialize

fakeOuterStringSerialize Source #

Arguments

:: Consumes FakeOuterStringSerialize contentType 
=> ContentType contentType

request content-type (MimeType)

-> Accept accept

request accept (MimeType)

-> OpenAPIPetstoreRequest FakeOuterStringSerialize contentType Text accept 
POST /fake/outer/string

Test serialization of outer string types

data FakeOuterStringSerialize Source #

Instances
MimeType mtype => Produces FakeOuterStringSerialize mtype Source #
*/*
Instance details

Defined in OpenAPIPetstore.API.Fake

MimeType mtype => Consumes FakeOuterStringSerialize mtype Source #
*/*
Instance details

Defined in OpenAPIPetstore.API.Fake

HasBodyParam FakeOuterStringSerialize BodyText Source #

Body Param "body" - Input string as post body

Instance details

Defined in OpenAPIPetstore.API.Fake

testBodyWithFileSchema

testBodyWithFileSchema Source #

PUT /fake/body-with-file-schema

For this test, the body for this request much reference a schema named File.

testBodyWithQueryParams

testClientModel

testClientModel Source #

PATCH /fake

To test "client" model

To test "client" model

data TestClientModel Source #

Instances
Produces TestClientModel MimeJSON Source #
application/json
Instance details

Defined in OpenAPIPetstore.API.Fake

Consumes TestClientModel MimeJSON Source #
application/json
Instance details

Defined in OpenAPIPetstore.API.Fake

HasBodyParam TestClientModel Client Source #

Body Param "body" - client model

Instance details

Defined in OpenAPIPetstore.API.Fake

Methods

setBodyParam :: (Consumes TestClientModel contentType, MimeRender contentType Client) => OpenAPIPetstoreRequest TestClientModel contentType res accept -> Client -> OpenAPIPetstoreRequest TestClientModel contentType res accept Source #

testEndpointParameters

testEndpointParameters Source #

POST /fake

Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트

Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트

AuthMethod: AuthBasicHttpBasicTest

data TestEndpointParameters Source #

Instances
Produces TestEndpointParameters MimeNoContent Source # 
Instance details

Defined in OpenAPIPetstore.API.Fake

Consumes TestEndpointParameters MimeFormUrlEncoded Source #
application/x-www-form-urlencoded
Instance details

Defined in OpenAPIPetstore.API.Fake

HasOptionalParam TestEndpointParameters Password Source #

Optional Param "password" - None

Instance details

Defined in OpenAPIPetstore.API.Fake

HasOptionalParam TestEndpointParameters ParamString Source #

Optional Param "string" - None

Instance details

Defined in OpenAPIPetstore.API.Fake

HasOptionalParam TestEndpointParameters ParamInteger Source #

Optional Param "integer" - None

Instance details

Defined in OpenAPIPetstore.API.Fake

HasOptionalParam TestEndpointParameters ParamFloat Source #

Optional Param "float" - None

Instance details

Defined in OpenAPIPetstore.API.Fake

HasOptionalParam TestEndpointParameters ParamDateTime Source #

Optional Param "dateTime" - None

Instance details

Defined in OpenAPIPetstore.API.Fake

HasOptionalParam TestEndpointParameters ParamDate Source #

Optional Param "date" - None

Instance details

Defined in OpenAPIPetstore.API.Fake

HasOptionalParam TestEndpointParameters ParamBinary Source #

Optional Param "binary" - None

Instance details

Defined in OpenAPIPetstore.API.Fake

HasOptionalParam TestEndpointParameters Int64 Source #

Optional Param "int64" - None

Instance details

Defined in OpenAPIPetstore.API.Fake

HasOptionalParam TestEndpointParameters Int32 Source #

Optional Param "int32" - None

Instance details

Defined in OpenAPIPetstore.API.Fake

HasOptionalParam TestEndpointParameters Callback Source #

Optional Param "callback" - None

Instance details

Defined in OpenAPIPetstore.API.Fake

testEnumParameters

data TestEnumParameters Source #

Instances
Produces TestEnumParameters MimeNoContent Source # 
Instance details

Defined in OpenAPIPetstore.API.Fake

Consumes TestEnumParameters MimeFormUrlEncoded Source #
application/x-www-form-urlencoded
Instance details

Defined in OpenAPIPetstore.API.Fake

HasOptionalParam TestEnumParameters EnumQueryStringArray Source #

Optional Param "enum_query_string_array" - Query parameter enum test (string array)

Instance details

Defined in OpenAPIPetstore.API.Fake

HasOptionalParam TestEnumParameters EnumQueryString Source #

Optional Param "enum_query_string" - Query parameter enum test (string)

Instance details

Defined in OpenAPIPetstore.API.Fake

HasOptionalParam TestEnumParameters EnumQueryInteger Source #

Optional Param "enum_query_integer" - Query parameter enum test (double)

Instance details

Defined in OpenAPIPetstore.API.Fake

HasOptionalParam TestEnumParameters EnumQueryDouble Source #

Optional Param "enum_query_double" - Query parameter enum test (double)

Instance details

Defined in OpenAPIPetstore.API.Fake

HasOptionalParam TestEnumParameters EnumHeaderStringArray Source #

Optional Param "enum_header_string_array" - Header parameter enum test (string array)

Instance details

Defined in OpenAPIPetstore.API.Fake

HasOptionalParam TestEnumParameters EnumHeaderString Source #

Optional Param "enum_header_string" - Header parameter enum test (string)

Instance details

Defined in OpenAPIPetstore.API.Fake

HasOptionalParam TestEnumParameters EnumFormStringArray Source #

Optional Param "enum_form_string_array" - Form parameter enum test (string array)

Instance details

Defined in OpenAPIPetstore.API.Fake

HasOptionalParam TestEnumParameters EnumFormString Source #

Optional Param "enum_form_string" - Form parameter enum test (string)

Instance details

Defined in OpenAPIPetstore.API.Fake

testGroupParameters

testGroupParameters Source #

Arguments

:: RequiredStringGroup

"requiredStringGroup" - Required String in group parameters

-> RequiredBooleanGroup

"requiredBooleanGroup" - Required Boolean in group parameters

-> RequiredInt64Group

"requiredInt64Group" - Required Integer in group parameters

-> OpenAPIPetstoreRequest TestGroupParameters MimeNoContent NoContent MimeNoContent 
DELETE /fake

Fake endpoint to test group parameters (optional)

Fake endpoint to test group parameters (optional)

data TestGroupParameters Source #

Instances
Produces TestGroupParameters MimeNoContent Source # 
Instance details

Defined in OpenAPIPetstore.API.Fake

HasOptionalParam TestGroupParameters StringGroup Source #

Optional Param "string_group" - String in group parameters

Instance details

Defined in OpenAPIPetstore.API.Fake

HasOptionalParam TestGroupParameters Int64Group Source #

Optional Param "int64_group" - Integer in group parameters

Instance details

Defined in OpenAPIPetstore.API.Fake

HasOptionalParam TestGroupParameters BooleanGroup Source #

Optional Param "boolean_group" - Boolean in group parameters

Instance details

Defined in OpenAPIPetstore.API.Fake

testInlineAdditionalProperties

testJsonFormData

testJsonFormData Source #

GET /fake/jsonFormData

test json serialization of form data

data TestJsonFormData Source #

Instances
Produces TestJsonFormData MimeNoContent Source # 
Instance details

Defined in OpenAPIPetstore.API.Fake

Consumes TestJsonFormData MimeFormUrlEncoded Source #
application/x-www-form-urlencoded
Instance details

Defined in OpenAPIPetstore.API.Fake

testQueryParameterCollectionFormat

testQueryParameterCollectionFormat Source #

PUT /fake/test-query-parameters

To test the collection format in query parameters

\ No newline at end of file diff --git a/samples/client/petstore/haskell-http-client/docs/openapi-petstore.txt b/samples/client/petstore/haskell-http-client/docs/openapi-petstore.txt index 0662fba03a1..ac4e4d576bf 100644 --- a/samples/client/petstore/haskell-http-client/docs/openapi-petstore.txt +++ b/samples/client/petstore/haskell-http-client/docs/openapi-petstore.txt @@ -2716,7 +2716,7 @@ testJsonFormData :: Consumes TestJsonFormData MimeFormUrlEncoded => Param -> Par data TestJsonFormData -- |
---   PUT /fake/test-query-paramters
+--   PUT /fake/test-query-parameters
 --   
-- -- To test the collection format in query parameters diff --git a/samples/client/petstore/haskell-http-client/docs/src/OpenAPIPetstore.API.Fake.html b/samples/client/petstore/haskell-http-client/docs/src/OpenAPIPetstore.API.Fake.html index 89f3300e5cd..f97be0ee744 100644 --- a/samples/client/petstore/haskell-http-client/docs/src/OpenAPIPetstore.API.Fake.html +++ b/samples/client/petstore/haskell-http-client/docs/src/OpenAPIPetstore.API.Fake.html @@ -507,7 +507,7 @@ Module : OpenAPIPetstore.API.Fake -- *** testQueryParameterCollectionFormat --- | @PUT \/fake\/test-query-paramters@ +-- | @PUT \/fake\/test-query-parameters@ -- -- To test the collection format in query parameters -- @@ -519,7 +519,7 @@ Module : OpenAPIPetstore.API.Fake -> Context -- ^ "context" -> OpenAPIPetstoreRequest TestQueryParameterCollectionFormat MimeNoContent NoContent MimeNoContent testQueryParameterCollectionFormat (Pipe pipe) (Ioutil ioutil) (Http http) (Url url) (Context context) = - _mkRequest "PUT" ["/fake/test-query-paramters"] + _mkRequest "PUT" ["/fake/test-query-parameters"] `addQuery` toQueryColl CommaSeparated ("pipe", Just pipe) `addQuery` toQueryColl CommaSeparated ("ioutil", Just ioutil) `addQuery` toQueryColl SpaceSeparated ("http", Just http) diff --git a/samples/client/petstore/haskell-http-client/git_push.sh b/samples/client/petstore/haskell-http-client/git_push.sh index 9405f72e950..18f86b99e82 100644 --- a/samples/client/petstore/haskell-http-client/git_push.sh +++ b/samples/client/petstore/haskell-http-client/git_push.sh @@ -1,7 +1,7 @@ #!/bin/sh # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" git_user_id=$1 git_repo_id=$2 diff --git a/samples/client/petstore/haskell-http-client/lib/OpenAPIPetstore/API/Fake.hs b/samples/client/petstore/haskell-http-client/lib/OpenAPIPetstore/API/Fake.hs index a953d5ccdbb..cc44baac924 100644 --- a/samples/client/petstore/haskell-http-client/lib/OpenAPIPetstore/API/Fake.hs +++ b/samples/client/petstore/haskell-http-client/lib/OpenAPIPetstore/API/Fake.hs @@ -507,7 +507,7 @@ instance Produces TestJsonFormData MimeNoContent -- *** testQueryParameterCollectionFormat --- | @PUT \/fake\/test-query-paramters@ +-- | @PUT \/fake\/test-query-parameters@ -- -- To test the collection format in query parameters -- @@ -519,7 +519,7 @@ testQueryParameterCollectionFormat -> Context -- ^ "context" -> OpenAPIPetstoreRequest TestQueryParameterCollectionFormat MimeNoContent NoContent MimeNoContent testQueryParameterCollectionFormat (Pipe pipe) (Ioutil ioutil) (Http http) (Url url) (Context context) = - _mkRequest "PUT" ["/fake/test-query-paramters"] + _mkRequest "PUT" ["/fake/test-query-parameters"] `addQuery` toQueryColl CommaSeparated ("pipe", Just pipe) `addQuery` toQueryColl CommaSeparated ("ioutil", Just ioutil) `addQuery` toQueryColl SpaceSeparated ("http", Just http) diff --git a/samples/client/petstore/haskell-http-client/openapi.yaml b/samples/client/petstore/haskell-http-client/openapi.yaml index 4c7dda7a3b8..969da54c6c8 100644 --- a/samples/client/petstore/haskell-http-client/openapi.yaml +++ b/samples/client/petstore/haskell-http-client/openapi.yaml @@ -1104,7 +1104,7 @@ paths: tags: - fake x-codegen-request-body-name: body - /fake/test-query-paramters: + /fake/test-query-parameters: put: description: To test the collection format in query parameters operationId: testQueryParameterCollectionFormat diff --git a/samples/client/petstore/java-micronaut-client/README.md b/samples/client/petstore/java-micronaut-client/README.md index a61167f1d20..9ed69e201d3 100644 --- a/samples/client/petstore/java-micronaut-client/README.md +++ b/samples/client/petstore/java-micronaut-client/README.md @@ -4,7 +4,7 @@ This is a generated client based on [Micronaut](https://micronaut.io/) framework ## Configuration -A Micronaut's application can be created by defyning a main class and running: +A Micronaut's application can be created by defining a main class and running: ```java import io.micronaut.runtime.Micronaut; import io.micronaut.context.ApplicationContext; diff --git a/samples/client/petstore/java-micronaut-client/docs/FakeApi.md b/samples/client/petstore/java-micronaut-client/docs/FakeApi.md index 5baa181a600..3b9f98a4ed7 100644 --- a/samples/client/petstore/java-micronaut-client/docs/FakeApi.md +++ b/samples/client/petstore/java-micronaut-client/docs/FakeApi.md @@ -17,7 +17,7 @@ Method | HTTP request | Description [**testGroupParameters**](FakeApi.md#testGroupParameters) | **DELETE** /fake | Fake endpoint to test group parameters (optional) [**testInlineAdditionalProperties**](FakeApi.md#testInlineAdditionalProperties) | **POST** /fake/inline-additionalProperties | test inline additionalProperties [**testJsonFormData**](FakeApi.md#testJsonFormData) | **GET** /fake/jsonFormData | test json serialization of form data -[**testQueryParameterCollectionFormat**](FakeApi.md#testQueryParameterCollectionFormat) | **PUT** /fake/test-query-paramters | +[**testQueryParameterCollectionFormat**](FakeApi.md#testQueryParameterCollectionFormat) | **PUT** /fake/test-query-parameters | ## Creating FakeApi diff --git a/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/api/FakeApi.java b/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/api/FakeApi.java index 3f2bb9df3da..1a5913a842c 100644 --- a/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/api/FakeApi.java @@ -268,7 +268,7 @@ public interface FakeApi { * @param url (required) * @param context (required) */ - @Put(uri="/fake/test-query-paramters") + @Put(uri="/fake/test-query-parameters") @Consumes(value={"application/json"}) Mono testQueryParameterCollectionFormat( @QueryParam(name="pipe", format=QueryParam.Format.CSV) @NotNull List pipe, diff --git a/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/query/QueryParam.java b/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/query/QueryParam.java index f6b153387d8..503a36056cf 100644 --- a/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/query/QueryParam.java +++ b/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/query/QueryParam.java @@ -63,7 +63,7 @@ public @interface QueryParam { public static enum Format { /** * The values of iterator are comma-delimited. - * Ambiguity can arise if values of Iterator contain commas inside themselves. In such case, the MUTLI format + * Ambiguity can arise if values of Iterator contain commas inside themselves. In such case, the MULTI format * should be preferred. * Null values are not supported and will be removed during the conversion process. */ diff --git a/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/query/QueryParamBinder.java b/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/query/QueryParamBinder.java index 302b4bfabe5..08c737e2c01 100644 --- a/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/query/QueryParamBinder.java +++ b/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/query/QueryParamBinder.java @@ -89,7 +89,7 @@ public class QueryParamBinder implements AnnotatedClientArgumentRequestBinder context, Object value, String key, ClientRequestUriContext uriContext ) { if (value instanceof Iterable) { - // noinspection unechecked + // noinspection unchecked Iterable iterable = (Iterable) value; for (Object item : iterable) { @@ -147,7 +147,7 @@ public class QueryParamBinder implements AnnotatedClientArgumentRequestBinder iterable = (Iterable) value; boolean first = true; diff --git a/samples/client/petstore/java/apache-httpclient/README.md b/samples/client/petstore/java/apache-httpclient/README.md index ee7678e271f..e02a1831a5a 100644 --- a/samples/client/petstore/java/apache-httpclient/README.md +++ b/samples/client/petstore/java/apache-httpclient/README.md @@ -120,7 +120,7 @@ Class | Method | HTTP request | Description *FakeApi* | [**testGroupParameters**](docs/FakeApi.md#testGroupParameters) | **DELETE** /fake | Fake endpoint to test group parameters (optional) *FakeApi* | [**testInlineAdditionalProperties**](docs/FakeApi.md#testInlineAdditionalProperties) | **POST** /fake/inline-additionalProperties | test inline additionalProperties *FakeApi* | [**testJsonFormData**](docs/FakeApi.md#testJsonFormData) | **GET** /fake/jsonFormData | test json serialization of form data -*FakeApi* | [**testQueryParameterCollectionFormat**](docs/FakeApi.md#testQueryParameterCollectionFormat) | **PUT** /fake/test-query-paramters | +*FakeApi* | [**testQueryParameterCollectionFormat**](docs/FakeApi.md#testQueryParameterCollectionFormat) | **PUT** /fake/test-query-parameters | *FakeClassnameTags123Api* | [**testClassname**](docs/FakeClassnameTags123Api.md#testClassname) | **PATCH** /fake_classname_test | To test class name in snake case *PetApi* | [**addPet**](docs/PetApi.md#addPet) | **POST** /pet | Add a new pet to the store *PetApi* | [**deletePet**](docs/PetApi.md#deletePet) | **DELETE** /pet/{petId} | Deletes a pet diff --git a/samples/client/petstore/java/apache-httpclient/api/openapi.yaml b/samples/client/petstore/java/apache-httpclient/api/openapi.yaml index 0b3ef3a11c9..1f1a369ece5 100644 --- a/samples/client/petstore/java/apache-httpclient/api/openapi.yaml +++ b/samples/client/petstore/java/apache-httpclient/api/openapi.yaml @@ -1162,7 +1162,7 @@ paths: x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json - /fake/test-query-paramters: + /fake/test-query-parameters: put: description: To test the collection format in query parameters operationId: testQueryParameterCollectionFormat diff --git a/samples/client/petstore/java/apache-httpclient/docs/FakeApi.md b/samples/client/petstore/java/apache-httpclient/docs/FakeApi.md index a71dd8aa4a7..4f81e527a10 100644 --- a/samples/client/petstore/java/apache-httpclient/docs/FakeApi.md +++ b/samples/client/petstore/java/apache-httpclient/docs/FakeApi.md @@ -17,7 +17,7 @@ Method | HTTP request | Description [**testGroupParameters**](FakeApi.md#testGroupParameters) | **DELETE** /fake | Fake endpoint to test group parameters (optional) [**testInlineAdditionalProperties**](FakeApi.md#testInlineAdditionalProperties) | **POST** /fake/inline-additionalProperties | test inline additionalProperties [**testJsonFormData**](FakeApi.md#testJsonFormData) | **GET** /fake/jsonFormData | test json serialization of form data -[**testQueryParameterCollectionFormat**](FakeApi.md#testQueryParameterCollectionFormat) | **PUT** /fake/test-query-paramters | +[**testQueryParameterCollectionFormat**](FakeApi.md#testQueryParameterCollectionFormat) | **PUT** /fake/test-query-parameters | diff --git a/samples/client/petstore/java/apache-httpclient/git_push.sh b/samples/client/petstore/java/apache-httpclient/git_push.sh index 9405f72e950..18f86b99e82 100644 --- a/samples/client/petstore/java/apache-httpclient/git_push.sh +++ b/samples/client/petstore/java/apache-httpclient/git_push.sh @@ -1,7 +1,7 @@ #!/bin/sh # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" git_user_id=$1 git_repo_id=$2 diff --git a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/ServerConfiguration.java b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/ServerConfiguration.java index a1107a8690e..e08da9aac7d 100644 --- a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/ServerConfiguration.java +++ b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/ServerConfiguration.java @@ -12,7 +12,7 @@ public class ServerConfiguration { /** * @param URL A URL to the target host. - * @param description A describtion of the host designated by the URL. + * @param description A description of the host designated by the URL. * @param variables A map between a variable name and its value. The value is used for substitution in the server's URL template. */ public ServerConfiguration(String URL, String description, Map variables) { diff --git a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/api/FakeApi.java b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/api/FakeApi.java index 159f6abace3..e44804bc382 100644 --- a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/api/FakeApi.java +++ b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/api/FakeApi.java @@ -749,7 +749,7 @@ if (param2 != null) } // create path and map variables - String localVarPath = "/fake/test-query-paramters"; + String localVarPath = "/fake/test-query-parameters"; // query params List localVarQueryParams = new ArrayList(); diff --git a/samples/client/petstore/java/feign-no-nullable/api/openapi.yaml b/samples/client/petstore/java/feign-no-nullable/api/openapi.yaml index 0b3ef3a11c9..1f1a369ece5 100644 --- a/samples/client/petstore/java/feign-no-nullable/api/openapi.yaml +++ b/samples/client/petstore/java/feign-no-nullable/api/openapi.yaml @@ -1162,7 +1162,7 @@ paths: x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json - /fake/test-query-paramters: + /fake/test-query-parameters: put: description: To test the collection format in query parameters operationId: testQueryParameterCollectionFormat diff --git a/samples/client/petstore/java/feign-no-nullable/git_push.sh b/samples/client/petstore/java/feign-no-nullable/git_push.sh index 9405f72e950..18f86b99e82 100644 --- a/samples/client/petstore/java/feign-no-nullable/git_push.sh +++ b/samples/client/petstore/java/feign-no-nullable/git_push.sh @@ -1,7 +1,7 @@ #!/bin/sh # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" git_user_id=$1 git_repo_id=$2 diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/ApiClient.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/ApiClient.java index 0bbcbbbb455..19d32c4e314 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/ApiClient.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/ApiClient.java @@ -278,7 +278,7 @@ public class ApiClient { /** * Gets request interceptor based on authentication name - * @param authName Authentiation name + * @param authName Authentication name * @return Request Interceptor */ public RequestInterceptor getAuthorization(String authName) { diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/ServerConfiguration.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/ServerConfiguration.java index a1107a8690e..e08da9aac7d 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/ServerConfiguration.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/ServerConfiguration.java @@ -12,7 +12,7 @@ public class ServerConfiguration { /** * @param URL A URL to the target host. - * @param description A describtion of the host designated by the URL. + * @param description A description of the host designated by the URL. * @param variables A map between a variable name and its value. The value is used for substitution in the server's URL template. */ public ServerConfiguration(String URL, String description, Map variables) { diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/api/FakeApi.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/api/FakeApi.java index d1d0e6ed88e..9029ef9ffe7 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/api/FakeApi.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/api/FakeApi.java @@ -363,7 +363,7 @@ public interface FakeApi extends ApiClient.Api { * @param url (required) * @param context (required) */ - @RequestLine("PUT /fake/test-query-paramters?pipe={pipe}&ioutil={ioutil}&http={http}&url={url}&context={context}") + @RequestLine("PUT /fake/test-query-parameters?pipe={pipe}&ioutil={ioutil}&http={http}&url={url}&context={context}") @Headers({ "Accept: application/json", }) @@ -387,7 +387,7 @@ public interface FakeApi extends ApiClient.Api { *
  • context - (required)
  • * */ - @RequestLine("PUT /fake/test-query-paramters?pipe={pipe}&ioutil={ioutil}&http={http}&url={url}&context={context}") + @RequestLine("PUT /fake/test-query-parameters?pipe={pipe}&ioutil={ioutil}&http={http}&url={url}&context={context}") @Headers({ "Accept: application/json", }) diff --git a/samples/client/petstore/java/feign/api/openapi.yaml b/samples/client/petstore/java/feign/api/openapi.yaml index dc8e53d7729..d40c88329eb 100644 --- a/samples/client/petstore/java/feign/api/openapi.yaml +++ b/samples/client/petstore/java/feign/api/openapi.yaml @@ -1172,7 +1172,7 @@ paths: - fake x-contentType: image/png x-accepts: application/json - /fake/test-query-paramters: + /fake/test-query-parameters: put: description: To test the collection format in query parameters operationId: testQueryParameterCollectionFormat diff --git a/samples/client/petstore/java/feign/feign10x/api/openapi.yaml b/samples/client/petstore/java/feign/feign10x/api/openapi.yaml index 00cc0f2f4c2..d9ad8bac2b6 100644 --- a/samples/client/petstore/java/feign/feign10x/api/openapi.yaml +++ b/samples/client/petstore/java/feign/feign10x/api/openapi.yaml @@ -1162,7 +1162,7 @@ paths: x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json - /fake/test-query-paramters: + /fake/test-query-parameters: put: description: To test the collection format in query parameters operationId: testQueryParameterCollectionFormat diff --git a/samples/client/petstore/java/feign/feign10x/src/main/java/org/openapitools/client/api/FakeApi.java b/samples/client/petstore/java/feign/feign10x/src/main/java/org/openapitools/client/api/FakeApi.java index d1d0e6ed88e..9029ef9ffe7 100644 --- a/samples/client/petstore/java/feign/feign10x/src/main/java/org/openapitools/client/api/FakeApi.java +++ b/samples/client/petstore/java/feign/feign10x/src/main/java/org/openapitools/client/api/FakeApi.java @@ -363,7 +363,7 @@ public interface FakeApi extends ApiClient.Api { * @param url (required) * @param context (required) */ - @RequestLine("PUT /fake/test-query-paramters?pipe={pipe}&ioutil={ioutil}&http={http}&url={url}&context={context}") + @RequestLine("PUT /fake/test-query-parameters?pipe={pipe}&ioutil={ioutil}&http={http}&url={url}&context={context}") @Headers({ "Accept: application/json", }) @@ -387,7 +387,7 @@ public interface FakeApi extends ApiClient.Api { *
  • context - (required)
  • * */ - @RequestLine("PUT /fake/test-query-paramters?pipe={pipe}&ioutil={ioutil}&http={http}&url={url}&context={context}") + @RequestLine("PUT /fake/test-query-parameters?pipe={pipe}&ioutil={ioutil}&http={http}&url={url}&context={context}") @Headers({ "Accept: application/json", }) diff --git a/samples/client/petstore/java/feign/git_push.sh b/samples/client/petstore/java/feign/git_push.sh index 9405f72e950..18f86b99e82 100644 --- a/samples/client/petstore/java/feign/git_push.sh +++ b/samples/client/petstore/java/feign/git_push.sh @@ -1,7 +1,7 @@ #!/bin/sh # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" git_user_id=$1 git_repo_id=$2 diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/ApiClient.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/ApiClient.java index 151e595c51b..38890aba17e 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/ApiClient.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/ApiClient.java @@ -285,7 +285,7 @@ public class ApiClient { /** * Gets request interceptor based on authentication name - * @param authName Authentiation name + * @param authName Authentication name * @return Request Interceptor */ public RequestInterceptor getAuthorization(String authName) { diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/ServerConfiguration.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/ServerConfiguration.java index a1107a8690e..e08da9aac7d 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/ServerConfiguration.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/ServerConfiguration.java @@ -12,7 +12,7 @@ public class ServerConfiguration { /** * @param URL A URL to the target host. - * @param description A describtion of the host designated by the URL. + * @param description A description of the host designated by the URL. * @param variables A map between a variable name and its value. The value is used for substitution in the server's URL template. */ public ServerConfiguration(String URL, String description, Map variables) { diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/api/FakeApi.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/api/FakeApi.java index 5a38f8b72e5..2980e7a0050 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/api/FakeApi.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/api/FakeApi.java @@ -440,7 +440,7 @@ public interface FakeApi extends ApiClient.Api { * @param context (required) * @param language (optional) */ - @RequestLine("PUT /fake/test-query-paramters?pipe={pipe}&ioutil={ioutil}&http={http}&url={url}&context={context}&language={language}") + @RequestLine("PUT /fake/test-query-parameters?pipe={pipe}&ioutil={ioutil}&http={http}&url={url}&context={context}&language={language}") @Headers({ "Accept: application/json", }) @@ -465,7 +465,7 @@ public interface FakeApi extends ApiClient.Api { *
  • language - (optional)
  • * */ - @RequestLine("PUT /fake/test-query-paramters?pipe={pipe}&ioutil={ioutil}&http={http}&url={url}&context={context}&language={language}") + @RequestLine("PUT /fake/test-query-parameters?pipe={pipe}&ioutil={ioutil}&http={http}&url={url}&context={context}&language={language}") @Headers({ "Accept: application/json", }) diff --git a/samples/client/petstore/java/google-api-client/README.md b/samples/client/petstore/java/google-api-client/README.md index a72fd4e4740..28d54d37dd3 100644 --- a/samples/client/petstore/java/google-api-client/README.md +++ b/samples/client/petstore/java/google-api-client/README.md @@ -120,7 +120,7 @@ Class | Method | HTTP request | Description *FakeApi* | [**testGroupParameters**](docs/FakeApi.md#testGroupParameters) | **DELETE** /fake | Fake endpoint to test group parameters (optional) *FakeApi* | [**testInlineAdditionalProperties**](docs/FakeApi.md#testInlineAdditionalProperties) | **POST** /fake/inline-additionalProperties | test inline additionalProperties *FakeApi* | [**testJsonFormData**](docs/FakeApi.md#testJsonFormData) | **GET** /fake/jsonFormData | test json serialization of form data -*FakeApi* | [**testQueryParameterCollectionFormat**](docs/FakeApi.md#testQueryParameterCollectionFormat) | **PUT** /fake/test-query-paramters | +*FakeApi* | [**testQueryParameterCollectionFormat**](docs/FakeApi.md#testQueryParameterCollectionFormat) | **PUT** /fake/test-query-parameters | *FakeClassnameTags123Api* | [**testClassname**](docs/FakeClassnameTags123Api.md#testClassname) | **PATCH** /fake_classname_test | To test class name in snake case *PetApi* | [**addPet**](docs/PetApi.md#addPet) | **POST** /pet | Add a new pet to the store *PetApi* | [**deletePet**](docs/PetApi.md#deletePet) | **DELETE** /pet/{petId} | Deletes a pet diff --git a/samples/client/petstore/java/google-api-client/api/openapi.yaml b/samples/client/petstore/java/google-api-client/api/openapi.yaml index 0b3ef3a11c9..1f1a369ece5 100644 --- a/samples/client/petstore/java/google-api-client/api/openapi.yaml +++ b/samples/client/petstore/java/google-api-client/api/openapi.yaml @@ -1162,7 +1162,7 @@ paths: x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json - /fake/test-query-paramters: + /fake/test-query-parameters: put: description: To test the collection format in query parameters operationId: testQueryParameterCollectionFormat diff --git a/samples/client/petstore/java/google-api-client/docs/FakeApi.md b/samples/client/petstore/java/google-api-client/docs/FakeApi.md index a71dd8aa4a7..4f81e527a10 100644 --- a/samples/client/petstore/java/google-api-client/docs/FakeApi.md +++ b/samples/client/petstore/java/google-api-client/docs/FakeApi.md @@ -17,7 +17,7 @@ Method | HTTP request | Description [**testGroupParameters**](FakeApi.md#testGroupParameters) | **DELETE** /fake | Fake endpoint to test group parameters (optional) [**testInlineAdditionalProperties**](FakeApi.md#testInlineAdditionalProperties) | **POST** /fake/inline-additionalProperties | test inline additionalProperties [**testJsonFormData**](FakeApi.md#testJsonFormData) | **GET** /fake/jsonFormData | test json serialization of form data -[**testQueryParameterCollectionFormat**](FakeApi.md#testQueryParameterCollectionFormat) | **PUT** /fake/test-query-paramters | +[**testQueryParameterCollectionFormat**](FakeApi.md#testQueryParameterCollectionFormat) | **PUT** /fake/test-query-parameters | diff --git a/samples/client/petstore/java/google-api-client/git_push.sh b/samples/client/petstore/java/google-api-client/git_push.sh index 9405f72e950..18f86b99e82 100644 --- a/samples/client/petstore/java/google-api-client/git_push.sh +++ b/samples/client/petstore/java/google-api-client/git_push.sh @@ -1,7 +1,7 @@ #!/bin/sh # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" git_user_id=$1 git_repo_id=$2 diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/ServerConfiguration.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/ServerConfiguration.java index a1107a8690e..e08da9aac7d 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/ServerConfiguration.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/ServerConfiguration.java @@ -12,7 +12,7 @@ public class ServerConfiguration { /** * @param URL A URL to the target host. - * @param description A describtion of the host designated by the URL. + * @param description A description of the host designated by the URL. * @param variables A map between a variable name and its value. The value is used for substitution in the server's URL template. */ public ServerConfiguration(String URL, String description, Map variables) { diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/api/FakeApi.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/api/FakeApi.java index e3e4d58cd19..0ba78a734da 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/api/FakeApi.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/api/FakeApi.java @@ -1307,7 +1307,7 @@ public class FakeApi { if (context == null) { throw new IllegalArgumentException("Missing the required parameter 'context' when calling testQueryParameterCollectionFormat"); } - UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/fake/test-query-paramters"); + UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/fake/test-query-parameters"); if (pipe != null) { String key = "pipe"; Object value = pipe; @@ -1384,7 +1384,7 @@ public class FakeApi { if (context == null) { throw new IllegalArgumentException("Missing the required parameter 'context' when calling testQueryParameterCollectionFormat"); } - UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/fake/test-query-paramters"); + UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/fake/test-query-parameters"); // Copy the params argument if present, to allow passing in immutable maps Map allParams = params == null ? new HashMap() : new HashMap(params); diff --git a/samples/client/petstore/java/jersey1/README.md b/samples/client/petstore/java/jersey1/README.md index f57457ded31..1b77ba89cf8 100644 --- a/samples/client/petstore/java/jersey1/README.md +++ b/samples/client/petstore/java/jersey1/README.md @@ -120,7 +120,7 @@ Class | Method | HTTP request | Description *FakeApi* | [**testGroupParameters**](docs/FakeApi.md#testGroupParameters) | **DELETE** /fake | Fake endpoint to test group parameters (optional) *FakeApi* | [**testInlineAdditionalProperties**](docs/FakeApi.md#testInlineAdditionalProperties) | **POST** /fake/inline-additionalProperties | test inline additionalProperties *FakeApi* | [**testJsonFormData**](docs/FakeApi.md#testJsonFormData) | **GET** /fake/jsonFormData | test json serialization of form data -*FakeApi* | [**testQueryParameterCollectionFormat**](docs/FakeApi.md#testQueryParameterCollectionFormat) | **PUT** /fake/test-query-paramters | +*FakeApi* | [**testQueryParameterCollectionFormat**](docs/FakeApi.md#testQueryParameterCollectionFormat) | **PUT** /fake/test-query-parameters | *FakeClassnameTags123Api* | [**testClassname**](docs/FakeClassnameTags123Api.md#testClassname) | **PATCH** /fake_classname_test | To test class name in snake case *PetApi* | [**addPet**](docs/PetApi.md#addPet) | **POST** /pet | Add a new pet to the store *PetApi* | [**deletePet**](docs/PetApi.md#deletePet) | **DELETE** /pet/{petId} | Deletes a pet diff --git a/samples/client/petstore/java/jersey1/api/openapi.yaml b/samples/client/petstore/java/jersey1/api/openapi.yaml index 0b3ef3a11c9..1f1a369ece5 100644 --- a/samples/client/petstore/java/jersey1/api/openapi.yaml +++ b/samples/client/petstore/java/jersey1/api/openapi.yaml @@ -1162,7 +1162,7 @@ paths: x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json - /fake/test-query-paramters: + /fake/test-query-parameters: put: description: To test the collection format in query parameters operationId: testQueryParameterCollectionFormat diff --git a/samples/client/petstore/java/jersey1/docs/FakeApi.md b/samples/client/petstore/java/jersey1/docs/FakeApi.md index a71dd8aa4a7..4f81e527a10 100644 --- a/samples/client/petstore/java/jersey1/docs/FakeApi.md +++ b/samples/client/petstore/java/jersey1/docs/FakeApi.md @@ -17,7 +17,7 @@ Method | HTTP request | Description [**testGroupParameters**](FakeApi.md#testGroupParameters) | **DELETE** /fake | Fake endpoint to test group parameters (optional) [**testInlineAdditionalProperties**](FakeApi.md#testInlineAdditionalProperties) | **POST** /fake/inline-additionalProperties | test inline additionalProperties [**testJsonFormData**](FakeApi.md#testJsonFormData) | **GET** /fake/jsonFormData | test json serialization of form data -[**testQueryParameterCollectionFormat**](FakeApi.md#testQueryParameterCollectionFormat) | **PUT** /fake/test-query-paramters | +[**testQueryParameterCollectionFormat**](FakeApi.md#testQueryParameterCollectionFormat) | **PUT** /fake/test-query-parameters | diff --git a/samples/client/petstore/java/jersey1/git_push.sh b/samples/client/petstore/java/jersey1/git_push.sh index 9405f72e950..18f86b99e82 100644 --- a/samples/client/petstore/java/jersey1/git_push.sh +++ b/samples/client/petstore/java/jersey1/git_push.sh @@ -1,7 +1,7 @@ #!/bin/sh # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" git_user_id=$1 git_repo_id=$2 diff --git a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/ServerConfiguration.java b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/ServerConfiguration.java index a1107a8690e..e08da9aac7d 100644 --- a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/ServerConfiguration.java +++ b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/ServerConfiguration.java @@ -12,7 +12,7 @@ public class ServerConfiguration { /** * @param URL A URL to the target host. - * @param description A describtion of the host designated by the URL. + * @param description A description of the host designated by the URL. * @param variables A map between a variable name and its value. The value is used for substitution in the server's URL template. */ public ServerConfiguration(String URL, String description, Map variables) { diff --git a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/api/FakeApi.java b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/api/FakeApi.java index 159f6abace3..e44804bc382 100644 --- a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/api/FakeApi.java +++ b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/api/FakeApi.java @@ -749,7 +749,7 @@ if (param2 != null) } // create path and map variables - String localVarPath = "/fake/test-query-paramters"; + String localVarPath = "/fake/test-query-parameters"; // query params List localVarQueryParams = new ArrayList(); diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/README.md b/samples/client/petstore/java/jersey2-java8-localdatetime/README.md index 290284ac5db..352959892aa 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/README.md +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/README.md @@ -145,7 +145,7 @@ Class | Method | HTTP request | Description *FakeApi* | [**testGroupParameters**](docs/FakeApi.md#testGroupParameters) | **DELETE** /fake | Fake endpoint to test group parameters (optional) *FakeApi* | [**testInlineAdditionalProperties**](docs/FakeApi.md#testInlineAdditionalProperties) | **POST** /fake/inline-additionalProperties | test inline additionalProperties *FakeApi* | [**testJsonFormData**](docs/FakeApi.md#testJsonFormData) | **GET** /fake/jsonFormData | test json serialization of form data -*FakeApi* | [**testQueryParameterCollectionFormat**](docs/FakeApi.md#testQueryParameterCollectionFormat) | **PUT** /fake/test-query-paramters | +*FakeApi* | [**testQueryParameterCollectionFormat**](docs/FakeApi.md#testQueryParameterCollectionFormat) | **PUT** /fake/test-query-parameters | *FakeClassnameTags123Api* | [**testClassname**](docs/FakeClassnameTags123Api.md#testClassname) | **PATCH** /fake_classname_test | To test class name in snake case *PetApi* | [**addPet**](docs/PetApi.md#addPet) | **POST** /pet | Add a new pet to the store *PetApi* | [**deletePet**](docs/PetApi.md#deletePet) | **DELETE** /pet/{petId} | Deletes a pet diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/api/openapi.yaml b/samples/client/petstore/java/jersey2-java8-localdatetime/api/openapi.yaml index 0b3ef3a11c9..1f1a369ece5 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/api/openapi.yaml +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/api/openapi.yaml @@ -1162,7 +1162,7 @@ paths: x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json - /fake/test-query-paramters: + /fake/test-query-parameters: put: description: To test the collection format in query parameters operationId: testQueryParameterCollectionFormat diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/docs/FakeApi.md b/samples/client/petstore/java/jersey2-java8-localdatetime/docs/FakeApi.md index e84c1e7b285..9b87b7538f6 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/docs/FakeApi.md +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/docs/FakeApi.md @@ -17,7 +17,7 @@ Method | HTTP request | Description [**testGroupParameters**](FakeApi.md#testGroupParameters) | **DELETE** /fake | Fake endpoint to test group parameters (optional) [**testInlineAdditionalProperties**](FakeApi.md#testInlineAdditionalProperties) | **POST** /fake/inline-additionalProperties | test inline additionalProperties [**testJsonFormData**](FakeApi.md#testJsonFormData) | **GET** /fake/jsonFormData | test json serialization of form data -[**testQueryParameterCollectionFormat**](FakeApi.md#testQueryParameterCollectionFormat) | **PUT** /fake/test-query-paramters | +[**testQueryParameterCollectionFormat**](FakeApi.md#testQueryParameterCollectionFormat) | **PUT** /fake/test-query-parameters | diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/git_push.sh b/samples/client/petstore/java/jersey2-java8-localdatetime/git_push.sh index 9405f72e950..18f86b99e82 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/git_push.sh +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/git_push.sh @@ -1,7 +1,7 @@ #!/bin/sh # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" git_user_id=$1 git_repo_id=$2 diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/ApiClient.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/ApiClient.java index 32fedf9b732..43d4978c6ee 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/ApiClient.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/ApiClient.java @@ -524,7 +524,7 @@ public class ApiClient extends JavaTimeFormatter { /** * The path of temporary folder used to store downloaded files from endpoints * with file response. The default value is null, i.e. using - * the system's default tempopary folder. + * the system's default temporary folder. * * @return Temp folder path */ @@ -1180,7 +1180,7 @@ public class ApiClient extends JavaTimeFormatter { /** * Customize the client builder. * - * This method can be overriden to customize the API client. For example, this can be used to: + * This method can be overridden to customize the API client. For example, this can be used to: * 1. Set the hostname verifier to be used by the client to verify the endpoint's hostname * against its identification information. * 2. Set the client-side key store. diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/ServerConfiguration.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/ServerConfiguration.java index a1107a8690e..e08da9aac7d 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/ServerConfiguration.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/ServerConfiguration.java @@ -12,7 +12,7 @@ public class ServerConfiguration { /** * @param URL A URL to the target host. - * @param description A describtion of the host designated by the URL. + * @param description A description of the host designated by the URL. * @param variables A map between a variable name and its value. The value is used for substitution in the server's URL template. */ public ServerConfiguration(String URL, String description, Map variables) { diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/api/AnotherFakeApi.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/api/AnotherFakeApi.java index 00a2e3fcd4b..98b6a534086 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/api/AnotherFakeApi.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/api/AnotherFakeApi.java @@ -28,7 +28,7 @@ public class AnotherFakeApi { } /** - * Get the API cilent + * Get the API client * * @return API client */ @@ -37,7 +37,7 @@ public class AnotherFakeApi { } /** - * Set the API cilent + * Set the API client * * @param apiClient an instance of API client */ diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/api/FakeApi.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/api/FakeApi.java index 0d5d84b44fa..6c1055a81fe 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/api/FakeApi.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/api/FakeApi.java @@ -36,7 +36,7 @@ public class FakeApi { } /** - * Get the API cilent + * Get the API client * * @return API client */ @@ -45,7 +45,7 @@ public class FakeApi { } /** - * Set the API cilent + * Set the API client * * @param apiClient an instance of API client */ @@ -1164,7 +1164,7 @@ if (param2 != null) } // create path and map variables - String localVarPath = "/fake/test-query-paramters"; + String localVarPath = "/fake/test-query-parameters"; // query params List localVarQueryParams = new ArrayList(); diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java index 1694d007f19..3123826e28a 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java @@ -28,7 +28,7 @@ public class FakeClassnameTags123Api { } /** - * Get the API cilent + * Get the API client * * @return API client */ @@ -37,7 +37,7 @@ public class FakeClassnameTags123Api { } /** - * Set the API cilent + * Set the API client * * @param apiClient an instance of API client */ diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/api/PetApi.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/api/PetApi.java index 71fe54b109e..f48925ed2a3 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/api/PetApi.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/api/PetApi.java @@ -31,7 +31,7 @@ public class PetApi { } /** - * Get the API cilent + * Get the API client * * @return API client */ @@ -40,7 +40,7 @@ public class PetApi { } /** - * Set the API cilent + * Set the API client * * @param apiClient an instance of API client */ diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/api/StoreApi.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/api/StoreApi.java index 0d259914167..9a85fb7c745 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/api/StoreApi.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/api/StoreApi.java @@ -28,7 +28,7 @@ public class StoreApi { } /** - * Get the API cilent + * Get the API client * * @return API client */ @@ -37,7 +37,7 @@ public class StoreApi { } /** - * Set the API cilent + * Set the API client * * @param apiClient an instance of API client */ diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/api/UserApi.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/api/UserApi.java index cf1f8c79407..c016f258f89 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/api/UserApi.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/api/UserApi.java @@ -28,7 +28,7 @@ public class UserApi { } /** - * Get the API cilent + * Get the API client * * @return API client */ @@ -37,7 +37,7 @@ public class UserApi { } /** - * Set the API cilent + * Set the API client * * @param apiClient an instance of API client */ diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java index 9ff714899ff..2cbb534c514 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java @@ -132,7 +132,7 @@ public abstract class AbstractOpenApiSchema { } /** - * Is nullalble + * Is nullable * * @return true if it's nullable */ diff --git a/samples/client/petstore/java/jersey2-java8/README.md b/samples/client/petstore/java/jersey2-java8/README.md index 72ffb62b3e4..21010fa5412 100644 --- a/samples/client/petstore/java/jersey2-java8/README.md +++ b/samples/client/petstore/java/jersey2-java8/README.md @@ -145,7 +145,7 @@ Class | Method | HTTP request | Description *FakeApi* | [**testGroupParameters**](docs/FakeApi.md#testGroupParameters) | **DELETE** /fake | Fake endpoint to test group parameters (optional) *FakeApi* | [**testInlineAdditionalProperties**](docs/FakeApi.md#testInlineAdditionalProperties) | **POST** /fake/inline-additionalProperties | test inline additionalProperties *FakeApi* | [**testJsonFormData**](docs/FakeApi.md#testJsonFormData) | **GET** /fake/jsonFormData | test json serialization of form data -*FakeApi* | [**testQueryParameterCollectionFormat**](docs/FakeApi.md#testQueryParameterCollectionFormat) | **PUT** /fake/test-query-paramters | +*FakeApi* | [**testQueryParameterCollectionFormat**](docs/FakeApi.md#testQueryParameterCollectionFormat) | **PUT** /fake/test-query-parameters | *FakeClassnameTags123Api* | [**testClassname**](docs/FakeClassnameTags123Api.md#testClassname) | **PATCH** /fake_classname_test | To test class name in snake case *PetApi* | [**addPet**](docs/PetApi.md#addPet) | **POST** /pet | Add a new pet to the store *PetApi* | [**deletePet**](docs/PetApi.md#deletePet) | **DELETE** /pet/{petId} | Deletes a pet diff --git a/samples/client/petstore/java/jersey2-java8/api/openapi.yaml b/samples/client/petstore/java/jersey2-java8/api/openapi.yaml index 0b3ef3a11c9..1f1a369ece5 100644 --- a/samples/client/petstore/java/jersey2-java8/api/openapi.yaml +++ b/samples/client/petstore/java/jersey2-java8/api/openapi.yaml @@ -1162,7 +1162,7 @@ paths: x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json - /fake/test-query-paramters: + /fake/test-query-parameters: put: description: To test the collection format in query parameters operationId: testQueryParameterCollectionFormat diff --git a/samples/client/petstore/java/jersey2-java8/docs/FakeApi.md b/samples/client/petstore/java/jersey2-java8/docs/FakeApi.md index 7a40f905450..a5c59d91e0b 100644 --- a/samples/client/petstore/java/jersey2-java8/docs/FakeApi.md +++ b/samples/client/petstore/java/jersey2-java8/docs/FakeApi.md @@ -17,7 +17,7 @@ Method | HTTP request | Description [**testGroupParameters**](FakeApi.md#testGroupParameters) | **DELETE** /fake | Fake endpoint to test group parameters (optional) [**testInlineAdditionalProperties**](FakeApi.md#testInlineAdditionalProperties) | **POST** /fake/inline-additionalProperties | test inline additionalProperties [**testJsonFormData**](FakeApi.md#testJsonFormData) | **GET** /fake/jsonFormData | test json serialization of form data -[**testQueryParameterCollectionFormat**](FakeApi.md#testQueryParameterCollectionFormat) | **PUT** /fake/test-query-paramters | +[**testQueryParameterCollectionFormat**](FakeApi.md#testQueryParameterCollectionFormat) | **PUT** /fake/test-query-parameters | diff --git a/samples/client/petstore/java/jersey2-java8/git_push.sh b/samples/client/petstore/java/jersey2-java8/git_push.sh index 9405f72e950..18f86b99e82 100644 --- a/samples/client/petstore/java/jersey2-java8/git_push.sh +++ b/samples/client/petstore/java/jersey2-java8/git_push.sh @@ -1,7 +1,7 @@ #!/bin/sh # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" git_user_id=$1 git_repo_id=$2 diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/ApiClient.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/ApiClient.java index 32fedf9b732..43d4978c6ee 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/ApiClient.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/ApiClient.java @@ -524,7 +524,7 @@ public class ApiClient extends JavaTimeFormatter { /** * The path of temporary folder used to store downloaded files from endpoints * with file response. The default value is null, i.e. using - * the system's default tempopary folder. + * the system's default temporary folder. * * @return Temp folder path */ @@ -1180,7 +1180,7 @@ public class ApiClient extends JavaTimeFormatter { /** * Customize the client builder. * - * This method can be overriden to customize the API client. For example, this can be used to: + * This method can be overridden to customize the API client. For example, this can be used to: * 1. Set the hostname verifier to be used by the client to verify the endpoint's hostname * against its identification information. * 2. Set the client-side key store. diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/ServerConfiguration.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/ServerConfiguration.java index a1107a8690e..e08da9aac7d 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/ServerConfiguration.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/ServerConfiguration.java @@ -12,7 +12,7 @@ public class ServerConfiguration { /** * @param URL A URL to the target host. - * @param description A describtion of the host designated by the URL. + * @param description A description of the host designated by the URL. * @param variables A map between a variable name and its value. The value is used for substitution in the server's URL template. */ public ServerConfiguration(String URL, String description, Map variables) { diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/api/AnotherFakeApi.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/api/AnotherFakeApi.java index 00a2e3fcd4b..98b6a534086 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/api/AnotherFakeApi.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/api/AnotherFakeApi.java @@ -28,7 +28,7 @@ public class AnotherFakeApi { } /** - * Get the API cilent + * Get the API client * * @return API client */ @@ -37,7 +37,7 @@ public class AnotherFakeApi { } /** - * Set the API cilent + * Set the API client * * @param apiClient an instance of API client */ diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/api/FakeApi.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/api/FakeApi.java index 7f9cd512d30..a7709eb0284 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/api/FakeApi.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/api/FakeApi.java @@ -36,7 +36,7 @@ public class FakeApi { } /** - * Get the API cilent + * Get the API client * * @return API client */ @@ -45,7 +45,7 @@ public class FakeApi { } /** - * Set the API cilent + * Set the API client * * @param apiClient an instance of API client */ @@ -1164,7 +1164,7 @@ if (param2 != null) } // create path and map variables - String localVarPath = "/fake/test-query-paramters"; + String localVarPath = "/fake/test-query-parameters"; // query params List localVarQueryParams = new ArrayList(); diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java index 1694d007f19..3123826e28a 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java @@ -28,7 +28,7 @@ public class FakeClassnameTags123Api { } /** - * Get the API cilent + * Get the API client * * @return API client */ @@ -37,7 +37,7 @@ public class FakeClassnameTags123Api { } /** - * Set the API cilent + * Set the API client * * @param apiClient an instance of API client */ diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/api/PetApi.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/api/PetApi.java index 71fe54b109e..f48925ed2a3 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/api/PetApi.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/api/PetApi.java @@ -31,7 +31,7 @@ public class PetApi { } /** - * Get the API cilent + * Get the API client * * @return API client */ @@ -40,7 +40,7 @@ public class PetApi { } /** - * Set the API cilent + * Set the API client * * @param apiClient an instance of API client */ diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/api/StoreApi.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/api/StoreApi.java index 0d259914167..9a85fb7c745 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/api/StoreApi.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/api/StoreApi.java @@ -28,7 +28,7 @@ public class StoreApi { } /** - * Get the API cilent + * Get the API client * * @return API client */ @@ -37,7 +37,7 @@ public class StoreApi { } /** - * Set the API cilent + * Set the API client * * @param apiClient an instance of API client */ diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/api/UserApi.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/api/UserApi.java index cf1f8c79407..c016f258f89 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/api/UserApi.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/api/UserApi.java @@ -28,7 +28,7 @@ public class UserApi { } /** - * Get the API cilent + * Get the API client * * @return API client */ @@ -37,7 +37,7 @@ public class UserApi { } /** - * Set the API cilent + * Set the API client * * @param apiClient an instance of API client */ diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java index 9ff714899ff..2cbb534c514 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java @@ -132,7 +132,7 @@ public abstract class AbstractOpenApiSchema { } /** - * Is nullalble + * Is nullable * * @return true if it's nullable */ diff --git a/samples/client/petstore/java/microprofile-rest-client/docs/UserApi.md b/samples/client/petstore/java/microprofile-rest-client/docs/UserApi.md index eac383c5d11..71d6c6ded6f 100644 --- a/samples/client/petstore/java/microprofile-rest-client/docs/UserApi.md +++ b/samples/client/petstore/java/microprofile-rest-client/docs/UserApi.md @@ -405,7 +405,7 @@ No authorization required ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | successful operation | * X-Rate-Limit - calls per hour allowed by the user
    * X-Expires-After - date in UTC when toekn expires
    | +| **200** | successful operation | * X-Rate-Limit - calls per hour allowed by the user
    * X-Expires-After - date in UTC when token expires
    | | **400** | Invalid username/password supplied | - | diff --git a/samples/client/petstore/java/native-async/README.md b/samples/client/petstore/java/native-async/README.md index 7442f818ad7..f8bf7418b87 100644 --- a/samples/client/petstore/java/native-async/README.md +++ b/samples/client/petstore/java/native-async/README.md @@ -134,8 +134,8 @@ Class | Method | HTTP request | Description *FakeApi* | [**testInlineAdditionalPropertiesWithHttpInfo**](docs/FakeApi.md#testInlineAdditionalPropertiesWithHttpInfo) | **POST** /fake/inline-additionalProperties | test inline additionalProperties *FakeApi* | [**testJsonFormData**](docs/FakeApi.md#testJsonFormData) | **GET** /fake/jsonFormData | test json serialization of form data *FakeApi* | [**testJsonFormDataWithHttpInfo**](docs/FakeApi.md#testJsonFormDataWithHttpInfo) | **GET** /fake/jsonFormData | test json serialization of form data -*FakeApi* | [**testQueryParameterCollectionFormat**](docs/FakeApi.md#testQueryParameterCollectionFormat) | **PUT** /fake/test-query-paramters | -*FakeApi* | [**testQueryParameterCollectionFormatWithHttpInfo**](docs/FakeApi.md#testQueryParameterCollectionFormatWithHttpInfo) | **PUT** /fake/test-query-paramters | +*FakeApi* | [**testQueryParameterCollectionFormat**](docs/FakeApi.md#testQueryParameterCollectionFormat) | **PUT** /fake/test-query-parameters | +*FakeApi* | [**testQueryParameterCollectionFormatWithHttpInfo**](docs/FakeApi.md#testQueryParameterCollectionFormatWithHttpInfo) | **PUT** /fake/test-query-parameters | *FakeClassnameTags123Api* | [**testClassname**](docs/FakeClassnameTags123Api.md#testClassname) | **PATCH** /fake_classname_test | To test class name in snake case *FakeClassnameTags123Api* | [**testClassnameWithHttpInfo**](docs/FakeClassnameTags123Api.md#testClassnameWithHttpInfo) | **PATCH** /fake_classname_test | To test class name in snake case *PetApi* | [**addPet**](docs/PetApi.md#addPet) | **POST** /pet | Add a new pet to the store diff --git a/samples/client/petstore/java/native-async/api/openapi.yaml b/samples/client/petstore/java/native-async/api/openapi.yaml index 0b3ef3a11c9..1f1a369ece5 100644 --- a/samples/client/petstore/java/native-async/api/openapi.yaml +++ b/samples/client/petstore/java/native-async/api/openapi.yaml @@ -1162,7 +1162,7 @@ paths: x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json - /fake/test-query-paramters: + /fake/test-query-parameters: put: description: To test the collection format in query parameters operationId: testQueryParameterCollectionFormat diff --git a/samples/client/petstore/java/native-async/docs/FakeApi.md b/samples/client/petstore/java/native-async/docs/FakeApi.md index 63c991b4b15..40a35f715d8 100644 --- a/samples/client/petstore/java/native-async/docs/FakeApi.md +++ b/samples/client/petstore/java/native-async/docs/FakeApi.md @@ -30,8 +30,8 @@ Method | HTTP request | Description [**testInlineAdditionalPropertiesWithHttpInfo**](FakeApi.md#testInlineAdditionalPropertiesWithHttpInfo) | **POST** /fake/inline-additionalProperties | test inline additionalProperties [**testJsonFormData**](FakeApi.md#testJsonFormData) | **GET** /fake/jsonFormData | test json serialization of form data [**testJsonFormDataWithHttpInfo**](FakeApi.md#testJsonFormDataWithHttpInfo) | **GET** /fake/jsonFormData | test json serialization of form data -[**testQueryParameterCollectionFormat**](FakeApi.md#testQueryParameterCollectionFormat) | **PUT** /fake/test-query-paramters | -[**testQueryParameterCollectionFormatWithHttpInfo**](FakeApi.md#testQueryParameterCollectionFormatWithHttpInfo) | **PUT** /fake/test-query-paramters | +[**testQueryParameterCollectionFormat**](FakeApi.md#testQueryParameterCollectionFormat) | **PUT** /fake/test-query-parameters | +[**testQueryParameterCollectionFormatWithHttpInfo**](FakeApi.md#testQueryParameterCollectionFormatWithHttpInfo) | **PUT** /fake/test-query-parameters | diff --git a/samples/client/petstore/java/native-async/git_push.sh b/samples/client/petstore/java/native-async/git_push.sh index 9405f72e950..18f86b99e82 100644 --- a/samples/client/petstore/java/native-async/git_push.sh +++ b/samples/client/petstore/java/native-async/git_push.sh @@ -1,7 +1,7 @@ #!/bin/sh # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" git_user_id=$1 git_repo_id=$2 diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/ServerConfiguration.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/ServerConfiguration.java index a1107a8690e..e08da9aac7d 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/ServerConfiguration.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/ServerConfiguration.java @@ -12,7 +12,7 @@ public class ServerConfiguration { /** * @param URL A URL to the target host. - * @param description A describtion of the host designated by the URL. + * @param description A description of the host designated by the URL. * @param variables A map between a variable name and its value. The value is used for substitution in the server's URL template. */ public ServerConfiguration(String URL, String description, Map variables) { diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/api/FakeApi.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/api/FakeApi.java index 86ae8d10980..69e4b4562c5 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/api/FakeApi.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/api/FakeApi.java @@ -1497,7 +1497,7 @@ public class FakeApi { HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); - String localVarPath = "/fake/test-query-paramters"; + String localVarPath = "/fake/test-query-parameters"; List localVarQueryParams = new ArrayList<>(); localVarQueryParams.addAll(ApiClient.parameterToPairs("csv", "pipe", pipe)); diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java index 882bf6fc3af..4183097992e 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java @@ -131,7 +131,7 @@ public abstract class AbstractOpenApiSchema { } /** - * Is nullalble + * Is nullable * * @return true if it's nullable */ diff --git a/samples/client/petstore/java/native/README.md b/samples/client/petstore/java/native/README.md index 5d8677f378e..d2b673970dc 100644 --- a/samples/client/petstore/java/native/README.md +++ b/samples/client/petstore/java/native/README.md @@ -133,8 +133,8 @@ Class | Method | HTTP request | Description *FakeApi* | [**testInlineAdditionalPropertiesWithHttpInfo**](docs/FakeApi.md#testInlineAdditionalPropertiesWithHttpInfo) | **POST** /fake/inline-additionalProperties | test inline additionalProperties *FakeApi* | [**testJsonFormData**](docs/FakeApi.md#testJsonFormData) | **GET** /fake/jsonFormData | test json serialization of form data *FakeApi* | [**testJsonFormDataWithHttpInfo**](docs/FakeApi.md#testJsonFormDataWithHttpInfo) | **GET** /fake/jsonFormData | test json serialization of form data -*FakeApi* | [**testQueryParameterCollectionFormat**](docs/FakeApi.md#testQueryParameterCollectionFormat) | **PUT** /fake/test-query-paramters | -*FakeApi* | [**testQueryParameterCollectionFormatWithHttpInfo**](docs/FakeApi.md#testQueryParameterCollectionFormatWithHttpInfo) | **PUT** /fake/test-query-paramters | +*FakeApi* | [**testQueryParameterCollectionFormat**](docs/FakeApi.md#testQueryParameterCollectionFormat) | **PUT** /fake/test-query-parameters | +*FakeApi* | [**testQueryParameterCollectionFormatWithHttpInfo**](docs/FakeApi.md#testQueryParameterCollectionFormatWithHttpInfo) | **PUT** /fake/test-query-parameters | *FakeClassnameTags123Api* | [**testClassname**](docs/FakeClassnameTags123Api.md#testClassname) | **PATCH** /fake_classname_test | To test class name in snake case *FakeClassnameTags123Api* | [**testClassnameWithHttpInfo**](docs/FakeClassnameTags123Api.md#testClassnameWithHttpInfo) | **PATCH** /fake_classname_test | To test class name in snake case *PetApi* | [**addPet**](docs/PetApi.md#addPet) | **POST** /pet | Add a new pet to the store diff --git a/samples/client/petstore/java/native/api/openapi.yaml b/samples/client/petstore/java/native/api/openapi.yaml index 0b3ef3a11c9..1f1a369ece5 100644 --- a/samples/client/petstore/java/native/api/openapi.yaml +++ b/samples/client/petstore/java/native/api/openapi.yaml @@ -1162,7 +1162,7 @@ paths: x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json - /fake/test-query-paramters: + /fake/test-query-parameters: put: description: To test the collection format in query parameters operationId: testQueryParameterCollectionFormat diff --git a/samples/client/petstore/java/native/docs/FakeApi.md b/samples/client/petstore/java/native/docs/FakeApi.md index ef82fb3dc69..64ac73b2bbc 100644 --- a/samples/client/petstore/java/native/docs/FakeApi.md +++ b/samples/client/petstore/java/native/docs/FakeApi.md @@ -30,8 +30,8 @@ Method | HTTP request | Description [**testInlineAdditionalPropertiesWithHttpInfo**](FakeApi.md#testInlineAdditionalPropertiesWithHttpInfo) | **POST** /fake/inline-additionalProperties | test inline additionalProperties [**testJsonFormData**](FakeApi.md#testJsonFormData) | **GET** /fake/jsonFormData | test json serialization of form data [**testJsonFormDataWithHttpInfo**](FakeApi.md#testJsonFormDataWithHttpInfo) | **GET** /fake/jsonFormData | test json serialization of form data -[**testQueryParameterCollectionFormat**](FakeApi.md#testQueryParameterCollectionFormat) | **PUT** /fake/test-query-paramters | -[**testQueryParameterCollectionFormatWithHttpInfo**](FakeApi.md#testQueryParameterCollectionFormatWithHttpInfo) | **PUT** /fake/test-query-paramters | +[**testQueryParameterCollectionFormat**](FakeApi.md#testQueryParameterCollectionFormat) | **PUT** /fake/test-query-parameters | +[**testQueryParameterCollectionFormatWithHttpInfo**](FakeApi.md#testQueryParameterCollectionFormatWithHttpInfo) | **PUT** /fake/test-query-parameters | diff --git a/samples/client/petstore/java/native/git_push.sh b/samples/client/petstore/java/native/git_push.sh index 9405f72e950..18f86b99e82 100644 --- a/samples/client/petstore/java/native/git_push.sh +++ b/samples/client/petstore/java/native/git_push.sh @@ -1,7 +1,7 @@ #!/bin/sh # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" git_user_id=$1 git_repo_id=$2 diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/ServerConfiguration.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/ServerConfiguration.java index a1107a8690e..e08da9aac7d 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/ServerConfiguration.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/ServerConfiguration.java @@ -12,7 +12,7 @@ public class ServerConfiguration { /** * @param URL A URL to the target host. - * @param description A describtion of the host designated by the URL. + * @param description A description of the host designated by the URL. * @param variables A map between a variable name and its value. The value is used for substitution in the server's URL template. */ public ServerConfiguration(String URL, String description, Map variables) { diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/api/FakeApi.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/api/FakeApi.java index eca563f7668..36f4539d7cc 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/api/FakeApi.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/api/FakeApi.java @@ -1296,7 +1296,7 @@ public class FakeApi { HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); - String localVarPath = "/fake/test-query-paramters"; + String localVarPath = "/fake/test-query-parameters"; List localVarQueryParams = new ArrayList<>(); localVarQueryParams.addAll(ApiClient.parameterToPairs("csv", "pipe", pipe)); diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java index 882bf6fc3af..4183097992e 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java @@ -131,7 +131,7 @@ public abstract class AbstractOpenApiSchema { } /** - * Is nullalble + * Is nullable * * @return true if it's nullable */ diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/README.md b/samples/client/petstore/java/okhttp-gson-dynamicOperations/README.md index 55885745728..b45b974dee3 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/README.md +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/README.md @@ -120,7 +120,7 @@ Class | Method | HTTP request | Description *FakeApi* | [**testGroupParameters**](docs/FakeApi.md#testGroupParameters) | **DELETE** /fake | Fake endpoint to test group parameters (optional) *FakeApi* | [**testInlineAdditionalProperties**](docs/FakeApi.md#testInlineAdditionalProperties) | **POST** /fake/inline-additionalProperties | test inline additionalProperties *FakeApi* | [**testJsonFormData**](docs/FakeApi.md#testJsonFormData) | **GET** /fake/jsonFormData | test json serialization of form data -*FakeApi* | [**testQueryParameterCollectionFormat**](docs/FakeApi.md#testQueryParameterCollectionFormat) | **PUT** /fake/test-query-paramters | +*FakeApi* | [**testQueryParameterCollectionFormat**](docs/FakeApi.md#testQueryParameterCollectionFormat) | **PUT** /fake/test-query-parameters | *FakeClassnameTags123Api* | [**testClassname**](docs/FakeClassnameTags123Api.md#testClassname) | **PATCH** /fake_classname_test | To test class name in snake case *PetApi* | [**addPet**](docs/PetApi.md#addPet) | **POST** /pet | Add a new pet to the store *PetApi* | [**deletePet**](docs/PetApi.md#deletePet) | **DELETE** /pet/{petId} | Deletes a pet diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/docs/FakeApi.md b/samples/client/petstore/java/okhttp-gson-dynamicOperations/docs/FakeApi.md index e1daf9b0e7f..6a47638bab7 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/docs/FakeApi.md +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/docs/FakeApi.md @@ -17,7 +17,7 @@ Method | HTTP request | Description [**testGroupParameters**](FakeApi.md#testGroupParameters) | **DELETE** /fake | Fake endpoint to test group parameters (optional) [**testInlineAdditionalProperties**](FakeApi.md#testInlineAdditionalProperties) | **POST** /fake/inline-additionalProperties | test inline additionalProperties [**testJsonFormData**](FakeApi.md#testJsonFormData) | **GET** /fake/jsonFormData | test json serialization of form data -[**testQueryParameterCollectionFormat**](FakeApi.md#testQueryParameterCollectionFormat) | **PUT** /fake/test-query-paramters | +[**testQueryParameterCollectionFormat**](FakeApi.md#testQueryParameterCollectionFormat) | **PUT** /fake/test-query-parameters | diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/git_push.sh b/samples/client/petstore/java/okhttp-gson-dynamicOperations/git_push.sh index 9405f72e950..18f86b99e82 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/git_push.sh +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/git_push.sh @@ -1,7 +1,7 @@ #!/bin/sh # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" git_user_id=$1 git_repo_id=$2 diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/ApiCallback.java b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/ApiCallback.java index c10438d3c5b..e9ab7a8d7a6 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/ApiCallback.java +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/ApiCallback.java @@ -52,10 +52,10 @@ public interface ApiCallback { void onUploadProgress(long bytesWritten, long contentLength, boolean done); /** - * This is called when the API downlond processing. + * This is called when the API download processing. * * @param bytesRead bytes Read - * @param contentLength content lenngth of the response + * @param contentLength content length of the response * @param done Read end */ void onDownloadProgress(long bytesRead, long contentLength, boolean done); diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/ApiClient.java b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/ApiClient.java index 70270b1a620..e9e3861cdae 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/ApiClient.java +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/ApiClient.java @@ -524,7 +524,7 @@ public class ApiClient { /** * The path of temporary folder used to store downloaded files from endpoints * with file response. The default value is null, i.e. using - * the system's default tempopary folder. + * the system's default temporary folder. * * @see createTempFile * @return Temporary folder path diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/ServerConfiguration.java b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/ServerConfiguration.java index a1107a8690e..e08da9aac7d 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/ServerConfiguration.java +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/ServerConfiguration.java @@ -12,7 +12,7 @@ public class ServerConfiguration { /** * @param URL A URL to the target host. - * @param description A describtion of the host designated by the URL. + * @param description A description of the host designated by the URL. * @param variables A map between a variable name and its value. The value is used for substitution in the server's URL template. */ public ServerConfiguration(String URL, String description, Map variables) { diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/resources/openapi/openapi.yaml b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/resources/openapi/openapi.yaml index 0b3ef3a11c9..1f1a369ece5 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/resources/openapi/openapi.yaml +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/resources/openapi/openapi.yaml @@ -1162,7 +1162,7 @@ paths: x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json - /fake/test-query-paramters: + /fake/test-query-parameters: put: description: To test the collection format in query parameters operationId: testQueryParameterCollectionFormat diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/README.md b/samples/client/petstore/java/okhttp-gson-parcelableModel/README.md index 940c1f16203..906bc302af8 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/README.md +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/README.md @@ -120,7 +120,7 @@ Class | Method | HTTP request | Description *FakeApi* | [**testGroupParameters**](docs/FakeApi.md#testGroupParameters) | **DELETE** /fake | Fake endpoint to test group parameters (optional) *FakeApi* | [**testInlineAdditionalProperties**](docs/FakeApi.md#testInlineAdditionalProperties) | **POST** /fake/inline-additionalProperties | test inline additionalProperties *FakeApi* | [**testJsonFormData**](docs/FakeApi.md#testJsonFormData) | **GET** /fake/jsonFormData | test json serialization of form data -*FakeApi* | [**testQueryParameterCollectionFormat**](docs/FakeApi.md#testQueryParameterCollectionFormat) | **PUT** /fake/test-query-paramters | +*FakeApi* | [**testQueryParameterCollectionFormat**](docs/FakeApi.md#testQueryParameterCollectionFormat) | **PUT** /fake/test-query-parameters | *FakeClassnameTags123Api* | [**testClassname**](docs/FakeClassnameTags123Api.md#testClassname) | **PATCH** /fake_classname_test | To test class name in snake case *PetApi* | [**addPet**](docs/PetApi.md#addPet) | **POST** /pet | Add a new pet to the store *PetApi* | [**deletePet**](docs/PetApi.md#deletePet) | **DELETE** /pet/{petId} | Deletes a pet diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/api/openapi.yaml b/samples/client/petstore/java/okhttp-gson-parcelableModel/api/openapi.yaml index 0b3ef3a11c9..1f1a369ece5 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/api/openapi.yaml +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/api/openapi.yaml @@ -1162,7 +1162,7 @@ paths: x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json - /fake/test-query-paramters: + /fake/test-query-parameters: put: description: To test the collection format in query parameters operationId: testQueryParameterCollectionFormat diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/docs/FakeApi.md b/samples/client/petstore/java/okhttp-gson-parcelableModel/docs/FakeApi.md index e1daf9b0e7f..6a47638bab7 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/docs/FakeApi.md +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/docs/FakeApi.md @@ -17,7 +17,7 @@ Method | HTTP request | Description [**testGroupParameters**](FakeApi.md#testGroupParameters) | **DELETE** /fake | Fake endpoint to test group parameters (optional) [**testInlineAdditionalProperties**](FakeApi.md#testInlineAdditionalProperties) | **POST** /fake/inline-additionalProperties | test inline additionalProperties [**testJsonFormData**](FakeApi.md#testJsonFormData) | **GET** /fake/jsonFormData | test json serialization of form data -[**testQueryParameterCollectionFormat**](FakeApi.md#testQueryParameterCollectionFormat) | **PUT** /fake/test-query-paramters | +[**testQueryParameterCollectionFormat**](FakeApi.md#testQueryParameterCollectionFormat) | **PUT** /fake/test-query-parameters | diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/git_push.sh b/samples/client/petstore/java/okhttp-gson-parcelableModel/git_push.sh index 9405f72e950..18f86b99e82 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/git_push.sh +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/git_push.sh @@ -1,7 +1,7 @@ #!/bin/sh # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" git_user_id=$1 git_repo_id=$2 diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/ApiCallback.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/ApiCallback.java index c10438d3c5b..e9ab7a8d7a6 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/ApiCallback.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/ApiCallback.java @@ -52,10 +52,10 @@ public interface ApiCallback { void onUploadProgress(long bytesWritten, long contentLength, boolean done); /** - * This is called when the API downlond processing. + * This is called when the API download processing. * * @param bytesRead bytes Read - * @param contentLength content lenngth of the response + * @param contentLength content length of the response * @param done Read end */ void onDownloadProgress(long bytesRead, long contentLength, boolean done); diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/ApiClient.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/ApiClient.java index db6556491d4..dfe8cf3a0c2 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/ApiClient.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/ApiClient.java @@ -513,7 +513,7 @@ public class ApiClient { /** * The path of temporary folder used to store downloaded files from endpoints * with file response. The default value is null, i.e. using - * the system's default tempopary folder. + * the system's default temporary folder. * * @see createTempFile * @return Temporary folder path diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/ServerConfiguration.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/ServerConfiguration.java index a1107a8690e..e08da9aac7d 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/ServerConfiguration.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/ServerConfiguration.java @@ -12,7 +12,7 @@ public class ServerConfiguration { /** * @param URL A URL to the target host. - * @param description A describtion of the host designated by the URL. + * @param description A description of the host designated by the URL. * @param variables A map between a variable name and its value. The value is used for substitution in the server's URL template. */ public ServerConfiguration(String URL, String description, Map variables) { diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/api/FakeApi.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/api/FakeApi.java index 243fd18d16b..5f9df636b4c 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/api/FakeApi.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/api/FakeApi.java @@ -1791,7 +1791,7 @@ public class FakeApi { Object localVarPostBody = null; // create path and map variables - String localVarPath = "/fake/test-query-paramters"; + String localVarPath = "/fake/test-query-parameters"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); diff --git a/samples/client/petstore/java/okhttp-gson/README.md b/samples/client/petstore/java/okhttp-gson/README.md index 68964ee2453..516d98bed0a 100644 --- a/samples/client/petstore/java/okhttp-gson/README.md +++ b/samples/client/petstore/java/okhttp-gson/README.md @@ -120,7 +120,7 @@ Class | Method | HTTP request | Description *FakeApi* | [**testGroupParameters**](docs/FakeApi.md#testGroupParameters) | **DELETE** /fake | Fake endpoint to test group parameters (optional) *FakeApi* | [**testInlineAdditionalProperties**](docs/FakeApi.md#testInlineAdditionalProperties) | **POST** /fake/inline-additionalProperties | test inline additionalProperties *FakeApi* | [**testJsonFormData**](docs/FakeApi.md#testJsonFormData) | **GET** /fake/jsonFormData | test json serialization of form data -*FakeApi* | [**testQueryParameterCollectionFormat**](docs/FakeApi.md#testQueryParameterCollectionFormat) | **PUT** /fake/test-query-paramters | +*FakeApi* | [**testQueryParameterCollectionFormat**](docs/FakeApi.md#testQueryParameterCollectionFormat) | **PUT** /fake/test-query-parameters | *FakeClassnameTags123Api* | [**testClassname**](docs/FakeClassnameTags123Api.md#testClassname) | **PATCH** /fake_classname_test | To test class name in snake case *PetApi* | [**addPet**](docs/PetApi.md#addPet) | **POST** /pet | Add a new pet to the store *PetApi* | [**deletePet**](docs/PetApi.md#deletePet) | **DELETE** /pet/{petId} | Deletes a pet diff --git a/samples/client/petstore/java/okhttp-gson/api/openapi.yaml b/samples/client/petstore/java/okhttp-gson/api/openapi.yaml index 0b3ef3a11c9..1f1a369ece5 100644 --- a/samples/client/petstore/java/okhttp-gson/api/openapi.yaml +++ b/samples/client/petstore/java/okhttp-gson/api/openapi.yaml @@ -1162,7 +1162,7 @@ paths: x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json - /fake/test-query-paramters: + /fake/test-query-parameters: put: description: To test the collection format in query parameters operationId: testQueryParameterCollectionFormat diff --git a/samples/client/petstore/java/okhttp-gson/docs/FakeApi.md b/samples/client/petstore/java/okhttp-gson/docs/FakeApi.md index e1daf9b0e7f..6a47638bab7 100644 --- a/samples/client/petstore/java/okhttp-gson/docs/FakeApi.md +++ b/samples/client/petstore/java/okhttp-gson/docs/FakeApi.md @@ -17,7 +17,7 @@ Method | HTTP request | Description [**testGroupParameters**](FakeApi.md#testGroupParameters) | **DELETE** /fake | Fake endpoint to test group parameters (optional) [**testInlineAdditionalProperties**](FakeApi.md#testInlineAdditionalProperties) | **POST** /fake/inline-additionalProperties | test inline additionalProperties [**testJsonFormData**](FakeApi.md#testJsonFormData) | **GET** /fake/jsonFormData | test json serialization of form data -[**testQueryParameterCollectionFormat**](FakeApi.md#testQueryParameterCollectionFormat) | **PUT** /fake/test-query-paramters | +[**testQueryParameterCollectionFormat**](FakeApi.md#testQueryParameterCollectionFormat) | **PUT** /fake/test-query-parameters | diff --git a/samples/client/petstore/java/okhttp-gson/git_push.sh b/samples/client/petstore/java/okhttp-gson/git_push.sh index 9405f72e950..18f86b99e82 100644 --- a/samples/client/petstore/java/okhttp-gson/git_push.sh +++ b/samples/client/petstore/java/okhttp-gson/git_push.sh @@ -1,7 +1,7 @@ #!/bin/sh # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" git_user_id=$1 git_repo_id=$2 diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/ApiCallback.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/ApiCallback.java index c10438d3c5b..e9ab7a8d7a6 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/ApiCallback.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/ApiCallback.java @@ -52,10 +52,10 @@ public interface ApiCallback { void onUploadProgress(long bytesWritten, long contentLength, boolean done); /** - * This is called when the API downlond processing. + * This is called when the API download processing. * * @param bytesRead bytes Read - * @param contentLength content lenngth of the response + * @param contentLength content length of the response * @param done Read end */ void onDownloadProgress(long bytesRead, long contentLength, boolean done); diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/ApiClient.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/ApiClient.java index db6556491d4..dfe8cf3a0c2 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/ApiClient.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/ApiClient.java @@ -513,7 +513,7 @@ public class ApiClient { /** * The path of temporary folder used to store downloaded files from endpoints * with file response. The default value is null, i.e. using - * the system's default tempopary folder. + * the system's default temporary folder. * * @see createTempFile * @return Temporary folder path diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/ServerConfiguration.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/ServerConfiguration.java index a1107a8690e..e08da9aac7d 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/ServerConfiguration.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/ServerConfiguration.java @@ -12,7 +12,7 @@ public class ServerConfiguration { /** * @param URL A URL to the target host. - * @param description A describtion of the host designated by the URL. + * @param description A description of the host designated by the URL. * @param variables A map between a variable name and its value. The value is used for substitution in the server's URL template. */ public ServerConfiguration(String URL, String description, Map variables) { diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/api/FakeApi.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/api/FakeApi.java index 243fd18d16b..5f9df636b4c 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/api/FakeApi.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/api/FakeApi.java @@ -1791,7 +1791,7 @@ public class FakeApi { Object localVarPostBody = null; // create path and map variables - String localVarPath = "/fake/test-query-paramters"; + String localVarPath = "/fake/test-query-parameters"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); diff --git a/samples/client/petstore/java/rest-assured-jackson/api/openapi.yaml b/samples/client/petstore/java/rest-assured-jackson/api/openapi.yaml index 0b3ef3a11c9..1f1a369ece5 100644 --- a/samples/client/petstore/java/rest-assured-jackson/api/openapi.yaml +++ b/samples/client/petstore/java/rest-assured-jackson/api/openapi.yaml @@ -1162,7 +1162,7 @@ paths: x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json - /fake/test-query-paramters: + /fake/test-query-parameters: put: description: To test the collection format in query parameters operationId: testQueryParameterCollectionFormat diff --git a/samples/client/petstore/java/rest-assured-jackson/docs/FakeApi.md b/samples/client/petstore/java/rest-assured-jackson/docs/FakeApi.md index 0c242cad681..9e36bee7aae 100644 --- a/samples/client/petstore/java/rest-assured-jackson/docs/FakeApi.md +++ b/samples/client/petstore/java/rest-assured-jackson/docs/FakeApi.md @@ -17,7 +17,7 @@ Method | HTTP request | Description [**testGroupParameters**](FakeApi.md#testGroupParameters) | **DELETE** /fake | Fake endpoint to test group parameters (optional) [**testInlineAdditionalProperties**](FakeApi.md#testInlineAdditionalProperties) | **POST** /fake/inline-additionalProperties | test inline additionalProperties [**testJsonFormData**](FakeApi.md#testJsonFormData) | **GET** /fake/jsonFormData | test json serialization of form data -[**testQueryParameterCollectionFormat**](FakeApi.md#testQueryParameterCollectionFormat) | **PUT** /fake/test-query-paramters | +[**testQueryParameterCollectionFormat**](FakeApi.md#testQueryParameterCollectionFormat) | **PUT** /fake/test-query-parameters | diff --git a/samples/client/petstore/java/rest-assured-jackson/git_push.sh b/samples/client/petstore/java/rest-assured-jackson/git_push.sh index 9405f72e950..18f86b99e82 100644 --- a/samples/client/petstore/java/rest-assured-jackson/git_push.sh +++ b/samples/client/petstore/java/rest-assured-jackson/git_push.sh @@ -1,7 +1,7 @@ #!/bin/sh # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" git_user_id=$1 git_repo_id=$2 diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/ServerConfiguration.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/ServerConfiguration.java index a1107a8690e..e08da9aac7d 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/ServerConfiguration.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/ServerConfiguration.java @@ -12,7 +12,7 @@ public class ServerConfiguration { /** * @param URL A URL to the target host. - * @param description A describtion of the host designated by the URL. + * @param description A description of the host designated by the URL. * @param variables A map between a variable name and its value. The value is used for substitution in the server's URL template. */ public ServerConfiguration(String URL, String description, Map variables) { diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/api/FakeApi.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/api/FakeApi.java index 546fd263842..502babbe4be 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/api/FakeApi.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/api/FakeApi.java @@ -1427,7 +1427,7 @@ public class FakeApi { public static class TestQueryParameterCollectionFormatOper implements Oper { public static final Method REQ_METHOD = PUT; - public static final String REQ_URI = "/fake/test-query-paramters"; + public static final String REQ_URI = "/fake/test-query-parameters"; private RequestSpecBuilder reqSpec; private ResponseSpecBuilder respSpec; @@ -1439,7 +1439,7 @@ public class FakeApi { } /** - * PUT /fake/test-query-paramters + * PUT /fake/test-query-parameters * @param handler handler * @param type * @return type diff --git a/samples/client/petstore/java/rest-assured/api/openapi.yaml b/samples/client/petstore/java/rest-assured/api/openapi.yaml index 0b3ef3a11c9..1f1a369ece5 100644 --- a/samples/client/petstore/java/rest-assured/api/openapi.yaml +++ b/samples/client/petstore/java/rest-assured/api/openapi.yaml @@ -1162,7 +1162,7 @@ paths: x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json - /fake/test-query-paramters: + /fake/test-query-parameters: put: description: To test the collection format in query parameters operationId: testQueryParameterCollectionFormat diff --git a/samples/client/petstore/java/rest-assured/docs/FakeApi.md b/samples/client/petstore/java/rest-assured/docs/FakeApi.md index 0c242cad681..9e36bee7aae 100644 --- a/samples/client/petstore/java/rest-assured/docs/FakeApi.md +++ b/samples/client/petstore/java/rest-assured/docs/FakeApi.md @@ -17,7 +17,7 @@ Method | HTTP request | Description [**testGroupParameters**](FakeApi.md#testGroupParameters) | **DELETE** /fake | Fake endpoint to test group parameters (optional) [**testInlineAdditionalProperties**](FakeApi.md#testInlineAdditionalProperties) | **POST** /fake/inline-additionalProperties | test inline additionalProperties [**testJsonFormData**](FakeApi.md#testJsonFormData) | **GET** /fake/jsonFormData | test json serialization of form data -[**testQueryParameterCollectionFormat**](FakeApi.md#testQueryParameterCollectionFormat) | **PUT** /fake/test-query-paramters | +[**testQueryParameterCollectionFormat**](FakeApi.md#testQueryParameterCollectionFormat) | **PUT** /fake/test-query-parameters | diff --git a/samples/client/petstore/java/rest-assured/git_push.sh b/samples/client/petstore/java/rest-assured/git_push.sh index 9405f72e950..18f86b99e82 100644 --- a/samples/client/petstore/java/rest-assured/git_push.sh +++ b/samples/client/petstore/java/rest-assured/git_push.sh @@ -1,7 +1,7 @@ #!/bin/sh # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" git_user_id=$1 git_repo_id=$2 diff --git a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/ServerConfiguration.java b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/ServerConfiguration.java index a1107a8690e..e08da9aac7d 100644 --- a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/ServerConfiguration.java +++ b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/ServerConfiguration.java @@ -12,7 +12,7 @@ public class ServerConfiguration { /** * @param URL A URL to the target host. - * @param description A describtion of the host designated by the URL. + * @param description A description of the host designated by the URL. * @param variables A map between a variable name and its value. The value is used for substitution in the server's URL template. */ public ServerConfiguration(String URL, String description, Map variables) { diff --git a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/api/FakeApi.java b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/api/FakeApi.java index 2fa7ccade47..574330f55e9 100644 --- a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/api/FakeApi.java +++ b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/api/FakeApi.java @@ -1428,7 +1428,7 @@ public class FakeApi { public static class TestQueryParameterCollectionFormatOper implements Oper { public static final Method REQ_METHOD = PUT; - public static final String REQ_URI = "/fake/test-query-paramters"; + public static final String REQ_URI = "/fake/test-query-parameters"; private RequestSpecBuilder reqSpec; private ResponseSpecBuilder respSpec; @@ -1440,7 +1440,7 @@ public class FakeApi { } /** - * PUT /fake/test-query-paramters + * PUT /fake/test-query-parameters * @param handler handler * @param type * @return type diff --git a/samples/client/petstore/java/resteasy/README.md b/samples/client/petstore/java/resteasy/README.md index 35b1b3e8770..76e72e161d4 100644 --- a/samples/client/petstore/java/resteasy/README.md +++ b/samples/client/petstore/java/resteasy/README.md @@ -120,7 +120,7 @@ Class | Method | HTTP request | Description *FakeApi* | [**testGroupParameters**](docs/FakeApi.md#testGroupParameters) | **DELETE** /fake | Fake endpoint to test group parameters (optional) *FakeApi* | [**testInlineAdditionalProperties**](docs/FakeApi.md#testInlineAdditionalProperties) | **POST** /fake/inline-additionalProperties | test inline additionalProperties *FakeApi* | [**testJsonFormData**](docs/FakeApi.md#testJsonFormData) | **GET** /fake/jsonFormData | test json serialization of form data -*FakeApi* | [**testQueryParameterCollectionFormat**](docs/FakeApi.md#testQueryParameterCollectionFormat) | **PUT** /fake/test-query-paramters | +*FakeApi* | [**testQueryParameterCollectionFormat**](docs/FakeApi.md#testQueryParameterCollectionFormat) | **PUT** /fake/test-query-parameters | *FakeClassnameTags123Api* | [**testClassname**](docs/FakeClassnameTags123Api.md#testClassname) | **PATCH** /fake_classname_test | To test class name in snake case *PetApi* | [**addPet**](docs/PetApi.md#addPet) | **POST** /pet | Add a new pet to the store *PetApi* | [**deletePet**](docs/PetApi.md#deletePet) | **DELETE** /pet/{petId} | Deletes a pet diff --git a/samples/client/petstore/java/resteasy/api/openapi.yaml b/samples/client/petstore/java/resteasy/api/openapi.yaml index 0b3ef3a11c9..1f1a369ece5 100644 --- a/samples/client/petstore/java/resteasy/api/openapi.yaml +++ b/samples/client/petstore/java/resteasy/api/openapi.yaml @@ -1162,7 +1162,7 @@ paths: x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json - /fake/test-query-paramters: + /fake/test-query-parameters: put: description: To test the collection format in query parameters operationId: testQueryParameterCollectionFormat diff --git a/samples/client/petstore/java/resteasy/docs/FakeApi.md b/samples/client/petstore/java/resteasy/docs/FakeApi.md index a71dd8aa4a7..4f81e527a10 100644 --- a/samples/client/petstore/java/resteasy/docs/FakeApi.md +++ b/samples/client/petstore/java/resteasy/docs/FakeApi.md @@ -17,7 +17,7 @@ Method | HTTP request | Description [**testGroupParameters**](FakeApi.md#testGroupParameters) | **DELETE** /fake | Fake endpoint to test group parameters (optional) [**testInlineAdditionalProperties**](FakeApi.md#testInlineAdditionalProperties) | **POST** /fake/inline-additionalProperties | test inline additionalProperties [**testJsonFormData**](FakeApi.md#testJsonFormData) | **GET** /fake/jsonFormData | test json serialization of form data -[**testQueryParameterCollectionFormat**](FakeApi.md#testQueryParameterCollectionFormat) | **PUT** /fake/test-query-paramters | +[**testQueryParameterCollectionFormat**](FakeApi.md#testQueryParameterCollectionFormat) | **PUT** /fake/test-query-parameters | diff --git a/samples/client/petstore/java/resteasy/git_push.sh b/samples/client/petstore/java/resteasy/git_push.sh index 9405f72e950..18f86b99e82 100644 --- a/samples/client/petstore/java/resteasy/git_push.sh +++ b/samples/client/petstore/java/resteasy/git_push.sh @@ -1,7 +1,7 @@ #!/bin/sh # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" git_user_id=$1 git_repo_id=$2 diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/ApiClient.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/ApiClient.java index 132bdc8834d..f206e1a562f 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/ApiClient.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/ApiClient.java @@ -265,7 +265,7 @@ public class ApiClient extends JavaTimeFormatter { /** * The path of temporary folder used to store downloaded files from endpoints * with file response. The default value is null, i.e. using - * the system's default tempopary folder. + * the system's default temporary folder. * * @return the temporary folder path * @see createTempFile @@ -632,18 +632,18 @@ public class ApiClient extends JavaTimeFormatter { Invocation.Builder invocationBuilder = target.request().accept(accept); - for (Entry headerParamsEnrty : headerParams.entrySet()) { - String value = headerParamsEnrty.getValue(); + for (Entry headerParamsEntry : headerParams.entrySet()) { + String value = headerParamsEntry.getValue(); if (value != null) { - invocationBuilder = invocationBuilder.header(headerParamsEnrty.getKey(), value); + invocationBuilder = invocationBuilder.header(headerParamsEntry.getKey(), value); } } - for (Entry defaultHeaderEnrty: defaultHeaderMap.entrySet()) { - if (!headerParams.containsKey(defaultHeaderEnrty.getKey())) { - String value = defaultHeaderEnrty.getValue(); + for (Entry defaultHeaderEntry: defaultHeaderMap.entrySet()) { + if (!headerParams.containsKey(defaultHeaderEntry.getKey())) { + String value = defaultHeaderEntry.getValue(); if (value != null) { - invocationBuilder = invocationBuilder.header(defaultHeaderEnrty.getKey(), value); + invocationBuilder = invocationBuilder.header(defaultHeaderEntry.getKey(), value); } } } diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/ServerConfiguration.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/ServerConfiguration.java index a1107a8690e..e08da9aac7d 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/ServerConfiguration.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/ServerConfiguration.java @@ -12,7 +12,7 @@ public class ServerConfiguration { /** * @param URL A URL to the target host. - * @param description A describtion of the host designated by the URL. + * @param description A description of the host designated by the URL. * @param variables A map between a variable name and its value. The value is used for substitution in the server's URL template. */ public ServerConfiguration(String URL, String description, Map variables) { diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/api/FakeApi.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/api/FakeApi.java index 160d1f30fa0..bc44d2e3990 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/api/FakeApi.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/api/FakeApi.java @@ -722,7 +722,7 @@ if (param2 != null) } // create path and map variables - String localVarPath = "/fake/test-query-paramters".replaceAll("\\{format\\}","json"); + String localVarPath = "/fake/test-query-parameters".replaceAll("\\{format\\}","json"); // query params List localVarQueryParams = new ArrayList(); diff --git a/samples/client/petstore/java/resttemplate-withXml/README.md b/samples/client/petstore/java/resttemplate-withXml/README.md index 9824bb25a38..79f62ec9e8a 100644 --- a/samples/client/petstore/java/resttemplate-withXml/README.md +++ b/samples/client/petstore/java/resttemplate-withXml/README.md @@ -120,7 +120,7 @@ Class | Method | HTTP request | Description *FakeApi* | [**testGroupParameters**](docs/FakeApi.md#testGroupParameters) | **DELETE** /fake | Fake endpoint to test group parameters (optional) *FakeApi* | [**testInlineAdditionalProperties**](docs/FakeApi.md#testInlineAdditionalProperties) | **POST** /fake/inline-additionalProperties | test inline additionalProperties *FakeApi* | [**testJsonFormData**](docs/FakeApi.md#testJsonFormData) | **GET** /fake/jsonFormData | test json serialization of form data -*FakeApi* | [**testQueryParameterCollectionFormat**](docs/FakeApi.md#testQueryParameterCollectionFormat) | **PUT** /fake/test-query-paramters | +*FakeApi* | [**testQueryParameterCollectionFormat**](docs/FakeApi.md#testQueryParameterCollectionFormat) | **PUT** /fake/test-query-parameters | *FakeClassnameTags123Api* | [**testClassname**](docs/FakeClassnameTags123Api.md#testClassname) | **PATCH** /fake_classname_test | To test class name in snake case *PetApi* | [**addPet**](docs/PetApi.md#addPet) | **POST** /pet | Add a new pet to the store *PetApi* | [**deletePet**](docs/PetApi.md#deletePet) | **DELETE** /pet/{petId} | Deletes a pet diff --git a/samples/client/petstore/java/resttemplate-withXml/api/openapi.yaml b/samples/client/petstore/java/resttemplate-withXml/api/openapi.yaml index 0b3ef3a11c9..1f1a369ece5 100644 --- a/samples/client/petstore/java/resttemplate-withXml/api/openapi.yaml +++ b/samples/client/petstore/java/resttemplate-withXml/api/openapi.yaml @@ -1162,7 +1162,7 @@ paths: x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json - /fake/test-query-paramters: + /fake/test-query-parameters: put: description: To test the collection format in query parameters operationId: testQueryParameterCollectionFormat diff --git a/samples/client/petstore/java/resttemplate-withXml/docs/FakeApi.md b/samples/client/petstore/java/resttemplate-withXml/docs/FakeApi.md index a71dd8aa4a7..4f81e527a10 100644 --- a/samples/client/petstore/java/resttemplate-withXml/docs/FakeApi.md +++ b/samples/client/petstore/java/resttemplate-withXml/docs/FakeApi.md @@ -17,7 +17,7 @@ Method | HTTP request | Description [**testGroupParameters**](FakeApi.md#testGroupParameters) | **DELETE** /fake | Fake endpoint to test group parameters (optional) [**testInlineAdditionalProperties**](FakeApi.md#testInlineAdditionalProperties) | **POST** /fake/inline-additionalProperties | test inline additionalProperties [**testJsonFormData**](FakeApi.md#testJsonFormData) | **GET** /fake/jsonFormData | test json serialization of form data -[**testQueryParameterCollectionFormat**](FakeApi.md#testQueryParameterCollectionFormat) | **PUT** /fake/test-query-paramters | +[**testQueryParameterCollectionFormat**](FakeApi.md#testQueryParameterCollectionFormat) | **PUT** /fake/test-query-parameters | diff --git a/samples/client/petstore/java/resttemplate-withXml/git_push.sh b/samples/client/petstore/java/resttemplate-withXml/git_push.sh index 9405f72e950..18f86b99e82 100644 --- a/samples/client/petstore/java/resttemplate-withXml/git_push.sh +++ b/samples/client/petstore/java/resttemplate-withXml/git_push.sh @@ -1,7 +1,7 @@ #!/bin/sh # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" git_user_id=$1 git_repo_id=$2 diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/ServerConfiguration.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/ServerConfiguration.java index a1107a8690e..e08da9aac7d 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/ServerConfiguration.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/ServerConfiguration.java @@ -12,7 +12,7 @@ public class ServerConfiguration { /** * @param URL A URL to the target host. - * @param description A describtion of the host designated by the URL. + * @param description A description of the host designated by the URL. * @param variables A map between a variable name and its value. The value is used for substitution in the server's URL template. */ public ServerConfiguration(String URL, String description, Map variables) { diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/api/FakeApi.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/api/FakeApi.java index 50e61e043c4..0d2c015de23 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/api/FakeApi.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/api/FakeApi.java @@ -849,6 +849,6 @@ public class FakeApi { String[] authNames = new String[] { }; ParameterizedTypeReference returnType = new ParameterizedTypeReference() {}; - return apiClient.invokeAPI("/fake/test-query-paramters", HttpMethod.PUT, Collections.emptyMap(), queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, authNames, returnType); + return apiClient.invokeAPI("/fake/test-query-parameters", HttpMethod.PUT, Collections.emptyMap(), queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, authNames, returnType); } } diff --git a/samples/client/petstore/java/resttemplate/README.md b/samples/client/petstore/java/resttemplate/README.md index 09b5beca47b..87cb5a0cc9c 100644 --- a/samples/client/petstore/java/resttemplate/README.md +++ b/samples/client/petstore/java/resttemplate/README.md @@ -120,7 +120,7 @@ Class | Method | HTTP request | Description *FakeApi* | [**testGroupParameters**](docs/FakeApi.md#testGroupParameters) | **DELETE** /fake | Fake endpoint to test group parameters (optional) *FakeApi* | [**testInlineAdditionalProperties**](docs/FakeApi.md#testInlineAdditionalProperties) | **POST** /fake/inline-additionalProperties | test inline additionalProperties *FakeApi* | [**testJsonFormData**](docs/FakeApi.md#testJsonFormData) | **GET** /fake/jsonFormData | test json serialization of form data -*FakeApi* | [**testQueryParameterCollectionFormat**](docs/FakeApi.md#testQueryParameterCollectionFormat) | **PUT** /fake/test-query-paramters | +*FakeApi* | [**testQueryParameterCollectionFormat**](docs/FakeApi.md#testQueryParameterCollectionFormat) | **PUT** /fake/test-query-parameters | *FakeClassnameTags123Api* | [**testClassname**](docs/FakeClassnameTags123Api.md#testClassname) | **PATCH** /fake_classname_test | To test class name in snake case *PetApi* | [**addPet**](docs/PetApi.md#addPet) | **POST** /pet | Add a new pet to the store *PetApi* | [**deletePet**](docs/PetApi.md#deletePet) | **DELETE** /pet/{petId} | Deletes a pet diff --git a/samples/client/petstore/java/resttemplate/api/openapi.yaml b/samples/client/petstore/java/resttemplate/api/openapi.yaml index 0b3ef3a11c9..1f1a369ece5 100644 --- a/samples/client/petstore/java/resttemplate/api/openapi.yaml +++ b/samples/client/petstore/java/resttemplate/api/openapi.yaml @@ -1162,7 +1162,7 @@ paths: x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json - /fake/test-query-paramters: + /fake/test-query-parameters: put: description: To test the collection format in query parameters operationId: testQueryParameterCollectionFormat diff --git a/samples/client/petstore/java/resttemplate/docs/FakeApi.md b/samples/client/petstore/java/resttemplate/docs/FakeApi.md index a71dd8aa4a7..4f81e527a10 100644 --- a/samples/client/petstore/java/resttemplate/docs/FakeApi.md +++ b/samples/client/petstore/java/resttemplate/docs/FakeApi.md @@ -17,7 +17,7 @@ Method | HTTP request | Description [**testGroupParameters**](FakeApi.md#testGroupParameters) | **DELETE** /fake | Fake endpoint to test group parameters (optional) [**testInlineAdditionalProperties**](FakeApi.md#testInlineAdditionalProperties) | **POST** /fake/inline-additionalProperties | test inline additionalProperties [**testJsonFormData**](FakeApi.md#testJsonFormData) | **GET** /fake/jsonFormData | test json serialization of form data -[**testQueryParameterCollectionFormat**](FakeApi.md#testQueryParameterCollectionFormat) | **PUT** /fake/test-query-paramters | +[**testQueryParameterCollectionFormat**](FakeApi.md#testQueryParameterCollectionFormat) | **PUT** /fake/test-query-parameters | diff --git a/samples/client/petstore/java/resttemplate/git_push.sh b/samples/client/petstore/java/resttemplate/git_push.sh index 9405f72e950..18f86b99e82 100644 --- a/samples/client/petstore/java/resttemplate/git_push.sh +++ b/samples/client/petstore/java/resttemplate/git_push.sh @@ -1,7 +1,7 @@ #!/bin/sh # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" git_user_id=$1 git_repo_id=$2 diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/ServerConfiguration.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/ServerConfiguration.java index a1107a8690e..e08da9aac7d 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/ServerConfiguration.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/ServerConfiguration.java @@ -12,7 +12,7 @@ public class ServerConfiguration { /** * @param URL A URL to the target host. - * @param description A describtion of the host designated by the URL. + * @param description A description of the host designated by the URL. * @param variables A map between a variable name and its value. The value is used for substitution in the server's URL template. */ public ServerConfiguration(String URL, String description, Map variables) { diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/api/FakeApi.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/api/FakeApi.java index 50e61e043c4..0d2c015de23 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/api/FakeApi.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/api/FakeApi.java @@ -849,6 +849,6 @@ public class FakeApi { String[] authNames = new String[] { }; ParameterizedTypeReference returnType = new ParameterizedTypeReference() {}; - return apiClient.invokeAPI("/fake/test-query-paramters", HttpMethod.PUT, Collections.emptyMap(), queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, authNames, returnType); + return apiClient.invokeAPI("/fake/test-query-parameters", HttpMethod.PUT, Collections.emptyMap(), queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, authNames, returnType); } } diff --git a/samples/client/petstore/java/retrofit2-play26/api/openapi.yaml b/samples/client/petstore/java/retrofit2-play26/api/openapi.yaml index 0b3ef3a11c9..1f1a369ece5 100644 --- a/samples/client/petstore/java/retrofit2-play26/api/openapi.yaml +++ b/samples/client/petstore/java/retrofit2-play26/api/openapi.yaml @@ -1162,7 +1162,7 @@ paths: x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json - /fake/test-query-paramters: + /fake/test-query-parameters: put: description: To test the collection format in query parameters operationId: testQueryParameterCollectionFormat diff --git a/samples/client/petstore/java/retrofit2-play26/docs/FakeApi.md b/samples/client/petstore/java/retrofit2-play26/docs/FakeApi.md index fbeee306c40..740c810f28b 100644 --- a/samples/client/petstore/java/retrofit2-play26/docs/FakeApi.md +++ b/samples/client/petstore/java/retrofit2-play26/docs/FakeApi.md @@ -17,7 +17,7 @@ Method | HTTP request | Description [**testGroupParameters**](FakeApi.md#testGroupParameters) | **DELETE** fake | Fake endpoint to test group parameters (optional) [**testInlineAdditionalProperties**](FakeApi.md#testInlineAdditionalProperties) | **POST** fake/inline-additionalProperties | test inline additionalProperties [**testJsonFormData**](FakeApi.md#testJsonFormData) | **GET** fake/jsonFormData | test json serialization of form data -[**testQueryParameterCollectionFormat**](FakeApi.md#testQueryParameterCollectionFormat) | **PUT** fake/test-query-paramters | +[**testQueryParameterCollectionFormat**](FakeApi.md#testQueryParameterCollectionFormat) | **PUT** fake/test-query-parameters | diff --git a/samples/client/petstore/java/retrofit2-play26/git_push.sh b/samples/client/petstore/java/retrofit2-play26/git_push.sh index 9405f72e950..18f86b99e82 100644 --- a/samples/client/petstore/java/retrofit2-play26/git_push.sh +++ b/samples/client/petstore/java/retrofit2-play26/git_push.sh @@ -1,7 +1,7 @@ #!/bin/sh # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" git_user_id=$1 git_repo_id=$2 diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/Play26CallAdapterFactory.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/Play26CallAdapterFactory.java index e3777b8eb7c..f485a0c5554 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/Play26CallAdapterFactory.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/Play26CallAdapterFactory.java @@ -64,7 +64,7 @@ public class Play26CallAdapterFactory extends CallAdapter.Factory { } /** - * Adpater that coverts values returned by API interface into CompletionStage + * Adapter that coverts values returned by API interface into CompletionStage */ private static final class ValueAdapter implements CallAdapter> { diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/ServerConfiguration.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/ServerConfiguration.java index a1107a8690e..e08da9aac7d 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/ServerConfiguration.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/ServerConfiguration.java @@ -12,7 +12,7 @@ public class ServerConfiguration { /** * @param URL A URL to the target host. - * @param description A describtion of the host designated by the URL. + * @param description A description of the host designated by the URL. * @param variables A map between a variable name and its value. The value is used for substitution in the server's URL template. */ public ServerConfiguration(String URL, String description, Map variables) { diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/api/FakeApi.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/api/FakeApi.java index b91dba59192..29c894d5661 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/api/FakeApi.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/api/FakeApi.java @@ -228,7 +228,7 @@ public interface FakeApi { * @param context (required) * @return Call<Void> */ - @PUT("fake/test-query-paramters") + @PUT("fake/test-query-parameters") CompletionStage> testQueryParameterCollectionFormat( @retrofit2.http.Query("pipe") CSVParams pipe, @retrofit2.http.Query("ioutil") CSVParams ioutil, @retrofit2.http.Query("http") SSVParams http, @retrofit2.http.Query("url") CSVParams url, @retrofit2.http.Query("context") List context ); diff --git a/samples/client/petstore/java/retrofit2/api/openapi.yaml b/samples/client/petstore/java/retrofit2/api/openapi.yaml index 0b3ef3a11c9..1f1a369ece5 100644 --- a/samples/client/petstore/java/retrofit2/api/openapi.yaml +++ b/samples/client/petstore/java/retrofit2/api/openapi.yaml @@ -1162,7 +1162,7 @@ paths: x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json - /fake/test-query-paramters: + /fake/test-query-parameters: put: description: To test the collection format in query parameters operationId: testQueryParameterCollectionFormat diff --git a/samples/client/petstore/java/retrofit2/docs/FakeApi.md b/samples/client/petstore/java/retrofit2/docs/FakeApi.md index fbeee306c40..740c810f28b 100644 --- a/samples/client/petstore/java/retrofit2/docs/FakeApi.md +++ b/samples/client/petstore/java/retrofit2/docs/FakeApi.md @@ -17,7 +17,7 @@ Method | HTTP request | Description [**testGroupParameters**](FakeApi.md#testGroupParameters) | **DELETE** fake | Fake endpoint to test group parameters (optional) [**testInlineAdditionalProperties**](FakeApi.md#testInlineAdditionalProperties) | **POST** fake/inline-additionalProperties | test inline additionalProperties [**testJsonFormData**](FakeApi.md#testJsonFormData) | **GET** fake/jsonFormData | test json serialization of form data -[**testQueryParameterCollectionFormat**](FakeApi.md#testQueryParameterCollectionFormat) | **PUT** fake/test-query-paramters | +[**testQueryParameterCollectionFormat**](FakeApi.md#testQueryParameterCollectionFormat) | **PUT** fake/test-query-parameters | diff --git a/samples/client/petstore/java/retrofit2/git_push.sh b/samples/client/petstore/java/retrofit2/git_push.sh index 9405f72e950..18f86b99e82 100644 --- a/samples/client/petstore/java/retrofit2/git_push.sh +++ b/samples/client/petstore/java/retrofit2/git_push.sh @@ -1,7 +1,7 @@ #!/bin/sh # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" git_user_id=$1 git_repo_id=$2 diff --git a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/ServerConfiguration.java b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/ServerConfiguration.java index a1107a8690e..e08da9aac7d 100644 --- a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/ServerConfiguration.java +++ b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/ServerConfiguration.java @@ -12,7 +12,7 @@ public class ServerConfiguration { /** * @param URL A URL to the target host. - * @param description A describtion of the host designated by the URL. + * @param description A description of the host designated by the URL. * @param variables A map between a variable name and its value. The value is used for substitution in the server's URL template. */ public ServerConfiguration(String URL, String description, Map variables) { diff --git a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/api/FakeApi.java b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/api/FakeApi.java index 2f3c2705520..21149ceff11 100644 --- a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/api/FakeApi.java +++ b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/api/FakeApi.java @@ -223,7 +223,7 @@ public interface FakeApi { * @param context (required) * @return Call<Void> */ - @PUT("fake/test-query-paramters") + @PUT("fake/test-query-parameters") Call testQueryParameterCollectionFormat( @retrofit2.http.Query("pipe") CSVParams pipe, @retrofit2.http.Query("ioutil") CSVParams ioutil, @retrofit2.http.Query("http") SSVParams http, @retrofit2.http.Query("url") CSVParams url, @retrofit2.http.Query("context") List context ); diff --git a/samples/client/petstore/java/retrofit2rx2/api/openapi.yaml b/samples/client/petstore/java/retrofit2rx2/api/openapi.yaml index 0b3ef3a11c9..1f1a369ece5 100644 --- a/samples/client/petstore/java/retrofit2rx2/api/openapi.yaml +++ b/samples/client/petstore/java/retrofit2rx2/api/openapi.yaml @@ -1162,7 +1162,7 @@ paths: x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json - /fake/test-query-paramters: + /fake/test-query-parameters: put: description: To test the collection format in query parameters operationId: testQueryParameterCollectionFormat diff --git a/samples/client/petstore/java/retrofit2rx2/docs/FakeApi.md b/samples/client/petstore/java/retrofit2rx2/docs/FakeApi.md index fbeee306c40..740c810f28b 100644 --- a/samples/client/petstore/java/retrofit2rx2/docs/FakeApi.md +++ b/samples/client/petstore/java/retrofit2rx2/docs/FakeApi.md @@ -17,7 +17,7 @@ Method | HTTP request | Description [**testGroupParameters**](FakeApi.md#testGroupParameters) | **DELETE** fake | Fake endpoint to test group parameters (optional) [**testInlineAdditionalProperties**](FakeApi.md#testInlineAdditionalProperties) | **POST** fake/inline-additionalProperties | test inline additionalProperties [**testJsonFormData**](FakeApi.md#testJsonFormData) | **GET** fake/jsonFormData | test json serialization of form data -[**testQueryParameterCollectionFormat**](FakeApi.md#testQueryParameterCollectionFormat) | **PUT** fake/test-query-paramters | +[**testQueryParameterCollectionFormat**](FakeApi.md#testQueryParameterCollectionFormat) | **PUT** fake/test-query-parameters | diff --git a/samples/client/petstore/java/retrofit2rx2/git_push.sh b/samples/client/petstore/java/retrofit2rx2/git_push.sh index 9405f72e950..18f86b99e82 100644 --- a/samples/client/petstore/java/retrofit2rx2/git_push.sh +++ b/samples/client/petstore/java/retrofit2rx2/git_push.sh @@ -1,7 +1,7 @@ #!/bin/sh # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" git_user_id=$1 git_repo_id=$2 diff --git a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/ServerConfiguration.java b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/ServerConfiguration.java index a1107a8690e..e08da9aac7d 100644 --- a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/ServerConfiguration.java +++ b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/ServerConfiguration.java @@ -12,7 +12,7 @@ public class ServerConfiguration { /** * @param URL A URL to the target host. - * @param description A describtion of the host designated by the URL. + * @param description A description of the host designated by the URL. * @param variables A map between a variable name and its value. The value is used for substitution in the server's URL template. */ public ServerConfiguration(String URL, String description, Map variables) { diff --git a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/api/FakeApi.java b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/api/FakeApi.java index 057b1843ef2..2732fb61f51 100644 --- a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/api/FakeApi.java +++ b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/api/FakeApi.java @@ -224,7 +224,7 @@ public interface FakeApi { * @param context (required) * @return Completable */ - @PUT("fake/test-query-paramters") + @PUT("fake/test-query-parameters") Completable testQueryParameterCollectionFormat( @retrofit2.http.Query("pipe") CSVParams pipe, @retrofit2.http.Query("ioutil") CSVParams ioutil, @retrofit2.http.Query("http") SSVParams http, @retrofit2.http.Query("url") CSVParams url, @retrofit2.http.Query("context") List context ); diff --git a/samples/client/petstore/java/retrofit2rx3/api/openapi.yaml b/samples/client/petstore/java/retrofit2rx3/api/openapi.yaml index 0b3ef3a11c9..1f1a369ece5 100644 --- a/samples/client/petstore/java/retrofit2rx3/api/openapi.yaml +++ b/samples/client/petstore/java/retrofit2rx3/api/openapi.yaml @@ -1162,7 +1162,7 @@ paths: x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json - /fake/test-query-paramters: + /fake/test-query-parameters: put: description: To test the collection format in query parameters operationId: testQueryParameterCollectionFormat diff --git a/samples/client/petstore/java/retrofit2rx3/docs/FakeApi.md b/samples/client/petstore/java/retrofit2rx3/docs/FakeApi.md index fbeee306c40..740c810f28b 100644 --- a/samples/client/petstore/java/retrofit2rx3/docs/FakeApi.md +++ b/samples/client/petstore/java/retrofit2rx3/docs/FakeApi.md @@ -17,7 +17,7 @@ Method | HTTP request | Description [**testGroupParameters**](FakeApi.md#testGroupParameters) | **DELETE** fake | Fake endpoint to test group parameters (optional) [**testInlineAdditionalProperties**](FakeApi.md#testInlineAdditionalProperties) | **POST** fake/inline-additionalProperties | test inline additionalProperties [**testJsonFormData**](FakeApi.md#testJsonFormData) | **GET** fake/jsonFormData | test json serialization of form data -[**testQueryParameterCollectionFormat**](FakeApi.md#testQueryParameterCollectionFormat) | **PUT** fake/test-query-paramters | +[**testQueryParameterCollectionFormat**](FakeApi.md#testQueryParameterCollectionFormat) | **PUT** fake/test-query-parameters | diff --git a/samples/client/petstore/java/retrofit2rx3/git_push.sh b/samples/client/petstore/java/retrofit2rx3/git_push.sh index 9405f72e950..18f86b99e82 100644 --- a/samples/client/petstore/java/retrofit2rx3/git_push.sh +++ b/samples/client/petstore/java/retrofit2rx3/git_push.sh @@ -1,7 +1,7 @@ #!/bin/sh # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" git_user_id=$1 git_repo_id=$2 diff --git a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/ServerConfiguration.java b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/ServerConfiguration.java index a1107a8690e..e08da9aac7d 100644 --- a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/ServerConfiguration.java +++ b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/ServerConfiguration.java @@ -12,7 +12,7 @@ public class ServerConfiguration { /** * @param URL A URL to the target host. - * @param description A describtion of the host designated by the URL. + * @param description A description of the host designated by the URL. * @param variables A map between a variable name and its value. The value is used for substitution in the server's URL template. */ public ServerConfiguration(String URL, String description, Map variables) { diff --git a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/api/FakeApi.java b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/api/FakeApi.java index 9eb8cb7dfb2..dcd343c7b3a 100644 --- a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/api/FakeApi.java +++ b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/api/FakeApi.java @@ -224,7 +224,7 @@ public interface FakeApi { * @param context (required) * @return Completable */ - @PUT("fake/test-query-paramters") + @PUT("fake/test-query-parameters") Completable testQueryParameterCollectionFormat( @retrofit2.http.Query("pipe") CSVParams pipe, @retrofit2.http.Query("ioutil") CSVParams ioutil, @retrofit2.http.Query("http") SSVParams http, @retrofit2.http.Query("url") CSVParams url, @retrofit2.http.Query("context") List context ); diff --git a/samples/client/petstore/java/vertx-no-nullable/README.md b/samples/client/petstore/java/vertx-no-nullable/README.md index 9c82dfe1117..14a2bd16e11 100644 --- a/samples/client/petstore/java/vertx-no-nullable/README.md +++ b/samples/client/petstore/java/vertx-no-nullable/README.md @@ -120,7 +120,7 @@ Class | Method | HTTP request | Description *FakeApi* | [**testGroupParameters**](docs/FakeApi.md#testGroupParameters) | **DELETE** /fake | Fake endpoint to test group parameters (optional) *FakeApi* | [**testInlineAdditionalProperties**](docs/FakeApi.md#testInlineAdditionalProperties) | **POST** /fake/inline-additionalProperties | test inline additionalProperties *FakeApi* | [**testJsonFormData**](docs/FakeApi.md#testJsonFormData) | **GET** /fake/jsonFormData | test json serialization of form data -*FakeApi* | [**testQueryParameterCollectionFormat**](docs/FakeApi.md#testQueryParameterCollectionFormat) | **PUT** /fake/test-query-paramters | +*FakeApi* | [**testQueryParameterCollectionFormat**](docs/FakeApi.md#testQueryParameterCollectionFormat) | **PUT** /fake/test-query-parameters | *FakeClassnameTags123Api* | [**testClassname**](docs/FakeClassnameTags123Api.md#testClassname) | **PATCH** /fake_classname_test | To test class name in snake case *PetApi* | [**addPet**](docs/PetApi.md#addPet) | **POST** /pet | Add a new pet to the store *PetApi* | [**deletePet**](docs/PetApi.md#deletePet) | **DELETE** /pet/{petId} | Deletes a pet diff --git a/samples/client/petstore/java/vertx-no-nullable/api/openapi.yaml b/samples/client/petstore/java/vertx-no-nullable/api/openapi.yaml index 0b3ef3a11c9..1f1a369ece5 100644 --- a/samples/client/petstore/java/vertx-no-nullable/api/openapi.yaml +++ b/samples/client/petstore/java/vertx-no-nullable/api/openapi.yaml @@ -1162,7 +1162,7 @@ paths: x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json - /fake/test-query-paramters: + /fake/test-query-parameters: put: description: To test the collection format in query parameters operationId: testQueryParameterCollectionFormat diff --git a/samples/client/petstore/java/vertx-no-nullable/docs/FakeApi.md b/samples/client/petstore/java/vertx-no-nullable/docs/FakeApi.md index 3dc32ffd383..c50095a6a58 100644 --- a/samples/client/petstore/java/vertx-no-nullable/docs/FakeApi.md +++ b/samples/client/petstore/java/vertx-no-nullable/docs/FakeApi.md @@ -17,7 +17,7 @@ Method | HTTP request | Description [**testGroupParameters**](FakeApi.md#testGroupParameters) | **DELETE** /fake | Fake endpoint to test group parameters (optional) [**testInlineAdditionalProperties**](FakeApi.md#testInlineAdditionalProperties) | **POST** /fake/inline-additionalProperties | test inline additionalProperties [**testJsonFormData**](FakeApi.md#testJsonFormData) | **GET** /fake/jsonFormData | test json serialization of form data -[**testQueryParameterCollectionFormat**](FakeApi.md#testQueryParameterCollectionFormat) | **PUT** /fake/test-query-paramters | +[**testQueryParameterCollectionFormat**](FakeApi.md#testQueryParameterCollectionFormat) | **PUT** /fake/test-query-parameters | diff --git a/samples/client/petstore/java/vertx-no-nullable/git_push.sh b/samples/client/petstore/java/vertx-no-nullable/git_push.sh index 9405f72e950..18f86b99e82 100644 --- a/samples/client/petstore/java/vertx-no-nullable/git_push.sh +++ b/samples/client/petstore/java/vertx-no-nullable/git_push.sh @@ -1,7 +1,7 @@ #!/bin/sh # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" git_user_id=$1 git_repo_id=$2 diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/ServerConfiguration.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/ServerConfiguration.java index a1107a8690e..e08da9aac7d 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/ServerConfiguration.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/ServerConfiguration.java @@ -12,7 +12,7 @@ public class ServerConfiguration { /** * @param URL A URL to the target host. - * @param description A describtion of the host designated by the URL. + * @param description A description of the host designated by the URL. * @param variables A map between a variable name and its value. The value is used for substitution in the server's URL template. */ public ServerConfiguration(String URL, String description, Map variables) { diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/api/FakeApiImpl.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/api/FakeApiImpl.java index 585013235e5..613b901f354 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/api/FakeApiImpl.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/api/FakeApiImpl.java @@ -832,7 +832,7 @@ if (param2 != null) localVarFormParams.put("param2", param2); } // create path and map variables - String localVarPath = "/fake/test-query-paramters"; + String localVarPath = "/fake/test-query-parameters"; // query params List localVarQueryParams = new ArrayList<>(); diff --git a/samples/client/petstore/java/vertx/README.md b/samples/client/petstore/java/vertx/README.md index 9dff28d22cf..dd6d48dbbe7 100644 --- a/samples/client/petstore/java/vertx/README.md +++ b/samples/client/petstore/java/vertx/README.md @@ -120,7 +120,7 @@ Class | Method | HTTP request | Description *FakeApi* | [**testGroupParameters**](docs/FakeApi.md#testGroupParameters) | **DELETE** /fake | Fake endpoint to test group parameters (optional) *FakeApi* | [**testInlineAdditionalProperties**](docs/FakeApi.md#testInlineAdditionalProperties) | **POST** /fake/inline-additionalProperties | test inline additionalProperties *FakeApi* | [**testJsonFormData**](docs/FakeApi.md#testJsonFormData) | **GET** /fake/jsonFormData | test json serialization of form data -*FakeApi* | [**testQueryParameterCollectionFormat**](docs/FakeApi.md#testQueryParameterCollectionFormat) | **PUT** /fake/test-query-paramters | +*FakeApi* | [**testQueryParameterCollectionFormat**](docs/FakeApi.md#testQueryParameterCollectionFormat) | **PUT** /fake/test-query-parameters | *FakeClassnameTags123Api* | [**testClassname**](docs/FakeClassnameTags123Api.md#testClassname) | **PATCH** /fake_classname_test | To test class name in snake case *PetApi* | [**addPet**](docs/PetApi.md#addPet) | **POST** /pet | Add a new pet to the store *PetApi* | [**deletePet**](docs/PetApi.md#deletePet) | **DELETE** /pet/{petId} | Deletes a pet diff --git a/samples/client/petstore/java/vertx/api/openapi.yaml b/samples/client/petstore/java/vertx/api/openapi.yaml index 0b3ef3a11c9..1f1a369ece5 100644 --- a/samples/client/petstore/java/vertx/api/openapi.yaml +++ b/samples/client/petstore/java/vertx/api/openapi.yaml @@ -1162,7 +1162,7 @@ paths: x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json - /fake/test-query-paramters: + /fake/test-query-parameters: put: description: To test the collection format in query parameters operationId: testQueryParameterCollectionFormat diff --git a/samples/client/petstore/java/vertx/docs/FakeApi.md b/samples/client/petstore/java/vertx/docs/FakeApi.md index 3dc32ffd383..c50095a6a58 100644 --- a/samples/client/petstore/java/vertx/docs/FakeApi.md +++ b/samples/client/petstore/java/vertx/docs/FakeApi.md @@ -17,7 +17,7 @@ Method | HTTP request | Description [**testGroupParameters**](FakeApi.md#testGroupParameters) | **DELETE** /fake | Fake endpoint to test group parameters (optional) [**testInlineAdditionalProperties**](FakeApi.md#testInlineAdditionalProperties) | **POST** /fake/inline-additionalProperties | test inline additionalProperties [**testJsonFormData**](FakeApi.md#testJsonFormData) | **GET** /fake/jsonFormData | test json serialization of form data -[**testQueryParameterCollectionFormat**](FakeApi.md#testQueryParameterCollectionFormat) | **PUT** /fake/test-query-paramters | +[**testQueryParameterCollectionFormat**](FakeApi.md#testQueryParameterCollectionFormat) | **PUT** /fake/test-query-parameters | diff --git a/samples/client/petstore/java/vertx/git_push.sh b/samples/client/petstore/java/vertx/git_push.sh index 9405f72e950..18f86b99e82 100644 --- a/samples/client/petstore/java/vertx/git_push.sh +++ b/samples/client/petstore/java/vertx/git_push.sh @@ -1,7 +1,7 @@ #!/bin/sh # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" git_user_id=$1 git_repo_id=$2 diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/ServerConfiguration.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/ServerConfiguration.java index a1107a8690e..e08da9aac7d 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/ServerConfiguration.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/ServerConfiguration.java @@ -12,7 +12,7 @@ public class ServerConfiguration { /** * @param URL A URL to the target host. - * @param description A describtion of the host designated by the URL. + * @param description A description of the host designated by the URL. * @param variables A map between a variable name and its value. The value is used for substitution in the server's URL template. */ public ServerConfiguration(String URL, String description, Map variables) { diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/api/FakeApiImpl.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/api/FakeApiImpl.java index 4b81313cec0..4383f3537d5 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/api/FakeApiImpl.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/api/FakeApiImpl.java @@ -832,7 +832,7 @@ if (param2 != null) localVarFormParams.put("param2", param2); } // create path and map variables - String localVarPath = "/fake/test-query-paramters"; + String localVarPath = "/fake/test-query-parameters"; // query params List localVarQueryParams = new ArrayList<>(); diff --git a/samples/client/petstore/java/webclient-nulable-arrays/git_push.sh b/samples/client/petstore/java/webclient-nulable-arrays/git_push.sh index 9405f72e950..18f86b99e82 100644 --- a/samples/client/petstore/java/webclient-nulable-arrays/git_push.sh +++ b/samples/client/petstore/java/webclient-nulable-arrays/git_push.sh @@ -1,7 +1,7 @@ #!/bin/sh # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" git_user_id=$1 git_repo_id=$2 diff --git a/samples/client/petstore/java/webclient-nulable-arrays/src/main/java/org/openapitools/client/ServerConfiguration.java b/samples/client/petstore/java/webclient-nulable-arrays/src/main/java/org/openapitools/client/ServerConfiguration.java index a1107a8690e..e08da9aac7d 100644 --- a/samples/client/petstore/java/webclient-nulable-arrays/src/main/java/org/openapitools/client/ServerConfiguration.java +++ b/samples/client/petstore/java/webclient-nulable-arrays/src/main/java/org/openapitools/client/ServerConfiguration.java @@ -12,7 +12,7 @@ public class ServerConfiguration { /** * @param URL A URL to the target host. - * @param description A describtion of the host designated by the URL. + * @param description A description of the host designated by the URL. * @param variables A map between a variable name and its value. The value is used for substitution in the server's URL template. */ public ServerConfiguration(String URL, String description, Map variables) { diff --git a/samples/client/petstore/java/webclient/README.md b/samples/client/petstore/java/webclient/README.md index d78203e6fe5..a334fd7f801 100644 --- a/samples/client/petstore/java/webclient/README.md +++ b/samples/client/petstore/java/webclient/README.md @@ -124,7 +124,7 @@ Class | Method | HTTP request | Description *FakeApi* | [**testGroupParameters**](docs/FakeApi.md#testGroupParameters) | **DELETE** /fake | Fake endpoint to test group parameters (optional) *FakeApi* | [**testInlineAdditionalProperties**](docs/FakeApi.md#testInlineAdditionalProperties) | **POST** /fake/inline-additionalProperties | test inline additionalProperties *FakeApi* | [**testJsonFormData**](docs/FakeApi.md#testJsonFormData) | **GET** /fake/jsonFormData | test json serialization of form data -*FakeApi* | [**testQueryParameterCollectionFormat**](docs/FakeApi.md#testQueryParameterCollectionFormat) | **PUT** /fake/test-query-paramters | +*FakeApi* | [**testQueryParameterCollectionFormat**](docs/FakeApi.md#testQueryParameterCollectionFormat) | **PUT** /fake/test-query-parameters | *FakeClassnameTags123Api* | [**testClassname**](docs/FakeClassnameTags123Api.md#testClassname) | **PATCH** /fake_classname_test | To test class name in snake case *PetApi* | [**addPet**](docs/PetApi.md#addPet) | **POST** /pet | Add a new pet to the store *PetApi* | [**deletePet**](docs/PetApi.md#deletePet) | **DELETE** /pet/{petId} | Deletes a pet diff --git a/samples/client/petstore/java/webclient/api/openapi.yaml b/samples/client/petstore/java/webclient/api/openapi.yaml index dc8e53d7729..d40c88329eb 100644 --- a/samples/client/petstore/java/webclient/api/openapi.yaml +++ b/samples/client/petstore/java/webclient/api/openapi.yaml @@ -1172,7 +1172,7 @@ paths: - fake x-contentType: image/png x-accepts: application/json - /fake/test-query-paramters: + /fake/test-query-parameters: put: description: To test the collection format in query parameters operationId: testQueryParameterCollectionFormat diff --git a/samples/client/petstore/java/webclient/docs/FakeApi.md b/samples/client/petstore/java/webclient/docs/FakeApi.md index 910836054f5..8630d8419c8 100644 --- a/samples/client/petstore/java/webclient/docs/FakeApi.md +++ b/samples/client/petstore/java/webclient/docs/FakeApi.md @@ -20,7 +20,7 @@ Method | HTTP request | Description [**testGroupParameters**](FakeApi.md#testGroupParameters) | **DELETE** /fake | Fake endpoint to test group parameters (optional) [**testInlineAdditionalProperties**](FakeApi.md#testInlineAdditionalProperties) | **POST** /fake/inline-additionalProperties | test inline additionalProperties [**testJsonFormData**](FakeApi.md#testJsonFormData) | **GET** /fake/jsonFormData | test json serialization of form data -[**testQueryParameterCollectionFormat**](FakeApi.md#testQueryParameterCollectionFormat) | **PUT** /fake/test-query-paramters | +[**testQueryParameterCollectionFormat**](FakeApi.md#testQueryParameterCollectionFormat) | **PUT** /fake/test-query-parameters | diff --git a/samples/client/petstore/java/webclient/git_push.sh b/samples/client/petstore/java/webclient/git_push.sh index 9405f72e950..18f86b99e82 100644 --- a/samples/client/petstore/java/webclient/git_push.sh +++ b/samples/client/petstore/java/webclient/git_push.sh @@ -1,7 +1,7 @@ #!/bin/sh # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" git_user_id=$1 git_repo_id=$2 diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/ServerConfiguration.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/ServerConfiguration.java index a1107a8690e..e08da9aac7d 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/ServerConfiguration.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/ServerConfiguration.java @@ -12,7 +12,7 @@ public class ServerConfiguration { /** * @param URL A URL to the target host. - * @param description A describtion of the host designated by the URL. + * @param description A description of the host designated by the URL. * @param variables A map between a variable name and its value. The value is used for substitution in the server's URL template. */ public ServerConfiguration(String URL, String description, Map variables) { diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/api/FakeApi.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/api/FakeApi.java index 6c1e300c774..87e7eba7d68 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/api/FakeApi.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/api/FakeApi.java @@ -1064,7 +1064,7 @@ public class FakeApi { String[] localVarAuthNames = new String[] { }; ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; - return apiClient.invokeAPI("/fake/test-query-paramters", HttpMethod.PUT, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); + return apiClient.invokeAPI("/fake/test-query-parameters", HttpMethod.PUT, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** diff --git a/samples/client/petstore/javascript-es6/README.md b/samples/client/petstore/javascript-es6/README.md index 1f513de8549..3cf92f17276 100644 --- a/samples/client/petstore/javascript-es6/README.md +++ b/samples/client/petstore/javascript-es6/README.md @@ -138,7 +138,7 @@ Class | Method | HTTP request | Description *OpenApiPetstore.FakeApi* | [**testGroupParameters**](docs/FakeApi.md#testGroupParameters) | **DELETE** /fake | Fake endpoint to test group parameters (optional) *OpenApiPetstore.FakeApi* | [**testInlineAdditionalProperties**](docs/FakeApi.md#testInlineAdditionalProperties) | **POST** /fake/inline-additionalProperties | test inline additionalProperties *OpenApiPetstore.FakeApi* | [**testJsonFormData**](docs/FakeApi.md#testJsonFormData) | **GET** /fake/jsonFormData | test json serialization of form data -*OpenApiPetstore.FakeApi* | [**testQueryParameterCollectionFormat**](docs/FakeApi.md#testQueryParameterCollectionFormat) | **PUT** /fake/test-query-paramters | +*OpenApiPetstore.FakeApi* | [**testQueryParameterCollectionFormat**](docs/FakeApi.md#testQueryParameterCollectionFormat) | **PUT** /fake/test-query-parameters | *OpenApiPetstore.FakeClassnameTags123Api* | [**testClassname**](docs/FakeClassnameTags123Api.md#testClassname) | **PATCH** /fake_classname_test | To test class name in snake case *OpenApiPetstore.PetApi* | [**addPet**](docs/PetApi.md#addPet) | **POST** /pet | Add a new pet to the store *OpenApiPetstore.PetApi* | [**deletePet**](docs/PetApi.md#deletePet) | **DELETE** /pet/{petId} | Deletes a pet diff --git a/samples/client/petstore/javascript-es6/docs/FakeApi.md b/samples/client/petstore/javascript-es6/docs/FakeApi.md index 0f3d885b2ce..487be0a0156 100644 --- a/samples/client/petstore/javascript-es6/docs/FakeApi.md +++ b/samples/client/petstore/javascript-es6/docs/FakeApi.md @@ -20,7 +20,7 @@ Method | HTTP request | Description [**testGroupParameters**](FakeApi.md#testGroupParameters) | **DELETE** /fake | Fake endpoint to test group parameters (optional) [**testInlineAdditionalProperties**](FakeApi.md#testInlineAdditionalProperties) | **POST** /fake/inline-additionalProperties | test inline additionalProperties [**testJsonFormData**](FakeApi.md#testJsonFormData) | **GET** /fake/jsonFormData | test json serialization of form data -[**testQueryParameterCollectionFormat**](FakeApi.md#testQueryParameterCollectionFormat) | **PUT** /fake/test-query-paramters | +[**testQueryParameterCollectionFormat**](FakeApi.md#testQueryParameterCollectionFormat) | **PUT** /fake/test-query-parameters | diff --git a/samples/client/petstore/javascript-es6/git_push.sh b/samples/client/petstore/javascript-es6/git_push.sh index 9405f72e950..18f86b99e82 100644 --- a/samples/client/petstore/javascript-es6/git_push.sh +++ b/samples/client/petstore/javascript-es6/git_push.sh @@ -1,7 +1,7 @@ #!/bin/sh # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" git_user_id=$1 git_repo_id=$2 diff --git a/samples/client/petstore/javascript-es6/src/api/FakeApi.js b/samples/client/petstore/javascript-es6/src/api/FakeApi.js index 685c34e1f9d..aad7170733f 100644 --- a/samples/client/petstore/javascript-es6/src/api/FakeApi.js +++ b/samples/client/petstore/javascript-es6/src/api/FakeApi.js @@ -834,7 +834,7 @@ export default class FakeApi { let accepts = []; let returnType = null; return this.apiClient.callApi( - '/fake/test-query-paramters', 'PUT', + '/fake/test-query-parameters', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback ); diff --git a/samples/client/petstore/javascript-promise-es6/README.md b/samples/client/petstore/javascript-promise-es6/README.md index 7c7a1e0ca49..409d63e9a29 100644 --- a/samples/client/petstore/javascript-promise-es6/README.md +++ b/samples/client/petstore/javascript-promise-es6/README.md @@ -136,7 +136,7 @@ Class | Method | HTTP request | Description *OpenApiPetstore.FakeApi* | [**testGroupParameters**](docs/FakeApi.md#testGroupParameters) | **DELETE** /fake | Fake endpoint to test group parameters (optional) *OpenApiPetstore.FakeApi* | [**testInlineAdditionalProperties**](docs/FakeApi.md#testInlineAdditionalProperties) | **POST** /fake/inline-additionalProperties | test inline additionalProperties *OpenApiPetstore.FakeApi* | [**testJsonFormData**](docs/FakeApi.md#testJsonFormData) | **GET** /fake/jsonFormData | test json serialization of form data -*OpenApiPetstore.FakeApi* | [**testQueryParameterCollectionFormat**](docs/FakeApi.md#testQueryParameterCollectionFormat) | **PUT** /fake/test-query-paramters | +*OpenApiPetstore.FakeApi* | [**testQueryParameterCollectionFormat**](docs/FakeApi.md#testQueryParameterCollectionFormat) | **PUT** /fake/test-query-parameters | *OpenApiPetstore.FakeClassnameTags123Api* | [**testClassname**](docs/FakeClassnameTags123Api.md#testClassname) | **PATCH** /fake_classname_test | To test class name in snake case *OpenApiPetstore.PetApi* | [**addPet**](docs/PetApi.md#addPet) | **POST** /pet | Add a new pet to the store *OpenApiPetstore.PetApi* | [**deletePet**](docs/PetApi.md#deletePet) | **DELETE** /pet/{petId} | Deletes a pet diff --git a/samples/client/petstore/javascript-promise-es6/docs/FakeApi.md b/samples/client/petstore/javascript-promise-es6/docs/FakeApi.md index fabad0bb2b2..32b076e660f 100644 --- a/samples/client/petstore/javascript-promise-es6/docs/FakeApi.md +++ b/samples/client/petstore/javascript-promise-es6/docs/FakeApi.md @@ -20,7 +20,7 @@ Method | HTTP request | Description [**testGroupParameters**](FakeApi.md#testGroupParameters) | **DELETE** /fake | Fake endpoint to test group parameters (optional) [**testInlineAdditionalProperties**](FakeApi.md#testInlineAdditionalProperties) | **POST** /fake/inline-additionalProperties | test inline additionalProperties [**testJsonFormData**](FakeApi.md#testJsonFormData) | **GET** /fake/jsonFormData | test json serialization of form data -[**testQueryParameterCollectionFormat**](FakeApi.md#testQueryParameterCollectionFormat) | **PUT** /fake/test-query-paramters | +[**testQueryParameterCollectionFormat**](FakeApi.md#testQueryParameterCollectionFormat) | **PUT** /fake/test-query-parameters | diff --git a/samples/client/petstore/javascript-promise-es6/git_push.sh b/samples/client/petstore/javascript-promise-es6/git_push.sh index 9405f72e950..18f86b99e82 100644 --- a/samples/client/petstore/javascript-promise-es6/git_push.sh +++ b/samples/client/petstore/javascript-promise-es6/git_push.sh @@ -1,7 +1,7 @@ #!/bin/sh # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" git_user_id=$1 git_repo_id=$2 diff --git a/samples/client/petstore/javascript-promise-es6/src/api/FakeApi.js b/samples/client/petstore/javascript-promise-es6/src/api/FakeApi.js index 12ff9000bb4..465ce674147 100644 --- a/samples/client/petstore/javascript-promise-es6/src/api/FakeApi.js +++ b/samples/client/petstore/javascript-promise-es6/src/api/FakeApi.js @@ -939,7 +939,7 @@ export default class FakeApi { let accepts = []; let returnType = null; return this.apiClient.callApi( - '/fake/test-query-paramters', 'PUT', + '/fake/test-query-parameters', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null ); diff --git a/samples/client/petstore/kotlin-json-request-string/docs/PetApi.md b/samples/client/petstore/kotlin-json-request-string/docs/PetApi.md index c24f3ec4565..90c97d53eb7 100644 --- a/samples/client/petstore/kotlin-json-request-string/docs/PetApi.md +++ b/samples/client/petstore/kotlin-json-request-string/docs/PetApi.md @@ -170,7 +170,7 @@ Get all pets //import org.openapitools.client.models.* val apiInstance = PetApi() -val lastUpdated : java.time.OffsetDateTime = 2013-10-20T19:20:30+01:00 // java.time.OffsetDateTime | When this endpoint was hit last to help indentify if the client already has the latest copy. +val lastUpdated : java.time.OffsetDateTime = 2013-10-20T19:20:30+01:00 // java.time.OffsetDateTime | When this endpoint was hit last to help identify if the client already has the latest copy. try { val result : kotlin.collections.List = apiInstance.getAllPets(lastUpdated) println(result) @@ -187,7 +187,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **lastUpdated** | **java.time.OffsetDateTime**| When this endpoint was hit last to help indentify if the client already has the latest copy. | [optional] + **lastUpdated** | **java.time.OffsetDateTime**| When this endpoint was hit last to help identify if the client already has the latest copy. | [optional] ### Return type diff --git a/samples/client/petstore/kotlin-json-request-string/src/main/kotlin/org/openapitools/client/apis/PetApi.kt b/samples/client/petstore/kotlin-json-request-string/src/main/kotlin/org/openapitools/client/apis/PetApi.kt index 4f75772cdd0..0749111d3e6 100644 --- a/samples/client/petstore/kotlin-json-request-string/src/main/kotlin/org/openapitools/client/apis/PetApi.kt +++ b/samples/client/petstore/kotlin-json-request-string/src/main/kotlin/org/openapitools/client/apis/PetApi.kt @@ -212,7 +212,7 @@ class PetApi(basePath: kotlin.String = defaultBasePath) : ApiClient(basePath) { /** * Get all pets * - * @param lastUpdated When this endpoint was hit last to help indentify if the client already has the latest copy. (optional) + * @param lastUpdated When this endpoint was hit last to help identify if the client already has the latest copy. (optional) * @return kotlin.collections.List * @throws UnsupportedOperationException If the API returns an informational or redirection response * @throws ClientException If the API returns a client error response @@ -245,7 +245,7 @@ class PetApi(basePath: kotlin.String = defaultBasePath) : ApiClient(basePath) { /** * To obtain the request config of the operation getAllPets * - * @param lastUpdated When this endpoint was hit last to help indentify if the client already has the latest copy. (optional) + * @param lastUpdated When this endpoint was hit last to help identify if the client already has the latest copy. (optional) * @return RequestConfig */ fun getAllPetsRequestConfig(lastUpdated: java.time.OffsetDateTime?) : RequestConfig { diff --git a/samples/client/petstore/lua/git_push.sh b/samples/client/petstore/lua/git_push.sh index 9405f72e950..18f86b99e82 100644 --- a/samples/client/petstore/lua/git_push.sh +++ b/samples/client/petstore/lua/git_push.sh @@ -1,7 +1,7 @@ #!/bin/sh # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" git_user_id=$1 git_repo_id=$2 diff --git a/samples/client/petstore/lua/petstore-1.0.0-1.rockspec b/samples/client/petstore/lua/petstore-1.0.0-1.rockspec index d6b7f2f4ccf..f4f12d7c0c8 100644 --- a/samples/client/petstore/lua/petstore-1.0.0-1.rockspec +++ b/samples/client/petstore/lua/petstore-1.0.0-1.rockspec @@ -5,7 +5,7 @@ source = { } description = { - summary = "API client genreated by OpenAPI Generator", + summary = "API client generated by OpenAPI Generator", detailed = [[ This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.]], homepage = "https://openapi-generator.tech", diff --git a/samples/client/petstore/objc/core-data/SwaggerClient/Core/SWGApiClient.h b/samples/client/petstore/objc/core-data/SwaggerClient/Core/SWGApiClient.h index 04558b3d0a0..761865f4693 100644 --- a/samples/client/petstore/objc/core-data/SwaggerClient/Core/SWGApiClient.h +++ b/samples/client/petstore/objc/core-data/SwaggerClient/Core/SWGApiClient.h @@ -67,10 +67,10 @@ extern NSString *const SWGResponseObjectErrorKey; * Updates header parameters and query parameters for authentication * * @param headers The header parameter will be updated, passed by pointer to pointer. - * @param querys The query parameters will be updated, passed by pointer to pointer. + * @param queries The query parameters will be updated, passed by pointer to pointer. * @param authSettings The authentication names NSArray. */ -- (void) updateHeaderParams:(NSDictionary **)headers queryParams:(NSDictionary **)querys WithAuthSettings:(NSArray *)authSettings; +- (void) updateHeaderParams:(NSDictionary **)headers queryParams:(NSDictionary **)queries WithAuthSettings:(NSArray *)authSettings; /** diff --git a/samples/client/petstore/objc/core-data/SwaggerClient/Core/SWGApiClient.m b/samples/client/petstore/objc/core-data/SwaggerClient/Core/SWGApiClient.m index 8fa7fbf394d..03f1cdda4e8 100644 --- a/samples/client/petstore/objc/core-data/SwaggerClient/Core/SWGApiClient.m +++ b/samples/client/petstore/objc/core-data/SwaggerClient/Core/SWGApiClient.m @@ -322,14 +322,14 @@ static NSString * SWG__fileNameForResponse(NSURLResponse *response) { /** * Update header and query params based on authentication settings */ -- (void) updateHeaderParams:(NSDictionary * *)headers queryParams:(NSDictionary * *)querys WithAuthSettings:(NSArray *)authSettings { +- (void) updateHeaderParams:(NSDictionary * *)headers queryParams:(NSDictionary * *)queries WithAuthSettings:(NSArray *)authSettings { if ([authSettings count] == 0) { return; } NSMutableDictionary *headersWithAuth = [NSMutableDictionary dictionaryWithDictionary:*headers]; - NSMutableDictionary *querysWithAuth = [NSMutableDictionary dictionaryWithDictionary:*querys]; + NSMutableDictionary *queriesWithAuth = [NSMutableDictionary dictionaryWithDictionary:*queries]; id config = self.configuration; for (NSString *auth in authSettings) { @@ -344,12 +344,12 @@ static NSString * SWG__fileNameForResponse(NSURLResponse *response) { if ([type isEqualToString:@"header"] && [key length] > 0 ) { headersWithAuth[key] = value; } else if ([type isEqualToString:@"query"] && [key length] != 0) { - querysWithAuth[key] = value; + queriesWithAuth[key] = value; } } *headers = [NSDictionary dictionaryWithDictionary:headersWithAuth]; - *querys = [NSDictionary dictionaryWithDictionary:querysWithAuth]; + *queries = [NSDictionary dictionaryWithDictionary:queriesWithAuth]; } - (AFSecurityPolicy *) createSecurityPolicy { diff --git a/samples/client/petstore/objc/core-data/git_push.sh b/samples/client/petstore/objc/core-data/git_push.sh index 9405f72e950..18f86b99e82 100644 --- a/samples/client/petstore/objc/core-data/git_push.sh +++ b/samples/client/petstore/objc/core-data/git_push.sh @@ -1,7 +1,7 @@ #!/bin/sh # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" git_user_id=$1 git_repo_id=$2 diff --git a/samples/client/petstore/objc/default/SwaggerClient/Core/SWGApiClient.h b/samples/client/petstore/objc/default/SwaggerClient/Core/SWGApiClient.h index 04558b3d0a0..761865f4693 100644 --- a/samples/client/petstore/objc/default/SwaggerClient/Core/SWGApiClient.h +++ b/samples/client/petstore/objc/default/SwaggerClient/Core/SWGApiClient.h @@ -67,10 +67,10 @@ extern NSString *const SWGResponseObjectErrorKey; * Updates header parameters and query parameters for authentication * * @param headers The header parameter will be updated, passed by pointer to pointer. - * @param querys The query parameters will be updated, passed by pointer to pointer. + * @param queries The query parameters will be updated, passed by pointer to pointer. * @param authSettings The authentication names NSArray. */ -- (void) updateHeaderParams:(NSDictionary **)headers queryParams:(NSDictionary **)querys WithAuthSettings:(NSArray *)authSettings; +- (void) updateHeaderParams:(NSDictionary **)headers queryParams:(NSDictionary **)queries WithAuthSettings:(NSArray *)authSettings; /** diff --git a/samples/client/petstore/objc/default/SwaggerClient/Core/SWGApiClient.m b/samples/client/petstore/objc/default/SwaggerClient/Core/SWGApiClient.m index 8fa7fbf394d..03f1cdda4e8 100644 --- a/samples/client/petstore/objc/default/SwaggerClient/Core/SWGApiClient.m +++ b/samples/client/petstore/objc/default/SwaggerClient/Core/SWGApiClient.m @@ -322,14 +322,14 @@ static NSString * SWG__fileNameForResponse(NSURLResponse *response) { /** * Update header and query params based on authentication settings */ -- (void) updateHeaderParams:(NSDictionary * *)headers queryParams:(NSDictionary * *)querys WithAuthSettings:(NSArray *)authSettings { +- (void) updateHeaderParams:(NSDictionary * *)headers queryParams:(NSDictionary * *)queries WithAuthSettings:(NSArray *)authSettings { if ([authSettings count] == 0) { return; } NSMutableDictionary *headersWithAuth = [NSMutableDictionary dictionaryWithDictionary:*headers]; - NSMutableDictionary *querysWithAuth = [NSMutableDictionary dictionaryWithDictionary:*querys]; + NSMutableDictionary *queriesWithAuth = [NSMutableDictionary dictionaryWithDictionary:*queries]; id config = self.configuration; for (NSString *auth in authSettings) { @@ -344,12 +344,12 @@ static NSString * SWG__fileNameForResponse(NSURLResponse *response) { if ([type isEqualToString:@"header"] && [key length] > 0 ) { headersWithAuth[key] = value; } else if ([type isEqualToString:@"query"] && [key length] != 0) { - querysWithAuth[key] = value; + queriesWithAuth[key] = value; } } *headers = [NSDictionary dictionaryWithDictionary:headersWithAuth]; - *querys = [NSDictionary dictionaryWithDictionary:querysWithAuth]; + *queries = [NSDictionary dictionaryWithDictionary:queriesWithAuth]; } - (AFSecurityPolicy *) createSecurityPolicy { diff --git a/samples/client/petstore/objc/default/git_push.sh b/samples/client/petstore/objc/default/git_push.sh index 9405f72e950..18f86b99e82 100644 --- a/samples/client/petstore/objc/default/git_push.sh +++ b/samples/client/petstore/objc/default/git_push.sh @@ -1,7 +1,7 @@ #!/bin/sh # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" git_user_id=$1 git_repo_id=$2 diff --git a/samples/client/petstore/perl/README.md b/samples/client/petstore/perl/README.md index bc4bd8921c3..6d20b2459d8 100644 --- a/samples/client/petstore/perl/README.md +++ b/samples/client/petstore/perl/README.md @@ -398,7 +398,7 @@ Class | Method | HTTP request | Description *FakeApi* | [**test_group_parameters**](docs/FakeApi.md#test_group_parameters) | **DELETE** /fake | Fake endpoint to test group parameters (optional) *FakeApi* | [**test_inline_additional_properties**](docs/FakeApi.md#test_inline_additional_properties) | **POST** /fake/inline-additionalProperties | test inline additionalProperties *FakeApi* | [**test_json_form_data**](docs/FakeApi.md#test_json_form_data) | **GET** /fake/jsonFormData | test json serialization of form data -*FakeApi* | [**test_query_parameter_collection_format**](docs/FakeApi.md#test_query_parameter_collection_format) | **PUT** /fake/test-query-paramters | +*FakeApi* | [**test_query_parameter_collection_format**](docs/FakeApi.md#test_query_parameter_collection_format) | **PUT** /fake/test-query-parameters | *FakeClassnameTags123Api* | [**test_classname**](docs/FakeClassnameTags123Api.md#test_classname) | **PATCH** /fake_classname_test | To test class name in snake case *PetApi* | [**add_pet**](docs/PetApi.md#add_pet) | **POST** /pet | Add a new pet to the store *PetApi* | [**delete_pet**](docs/PetApi.md#delete_pet) | **DELETE** /pet/{petId} | Deletes a pet diff --git a/samples/client/petstore/perl/docs/FakeApi.md b/samples/client/petstore/perl/docs/FakeApi.md index b711a0431cc..b02655e1310 100644 --- a/samples/client/petstore/perl/docs/FakeApi.md +++ b/samples/client/petstore/perl/docs/FakeApi.md @@ -25,7 +25,7 @@ Method | HTTP request | Description [**test_group_parameters**](FakeApi.md#test_group_parameters) | **DELETE** /fake | Fake endpoint to test group parameters (optional) [**test_inline_additional_properties**](FakeApi.md#test_inline_additional_properties) | **POST** /fake/inline-additionalProperties | test inline additionalProperties [**test_json_form_data**](FakeApi.md#test_json_form_data) | **GET** /fake/jsonFormData | test json serialization of form data -[**test_query_parameter_collection_format**](FakeApi.md#test_query_parameter_collection_format) | **PUT** /fake/test-query-paramters | +[**test_query_parameter_collection_format**](FakeApi.md#test_query_parameter_collection_format) | **PUT** /fake/test-query-parameters | # **fake_health_get** diff --git a/samples/client/petstore/perl/git_push.sh b/samples/client/petstore/perl/git_push.sh index 9405f72e950..18f86b99e82 100644 --- a/samples/client/petstore/perl/git_push.sh +++ b/samples/client/petstore/perl/git_push.sh @@ -1,7 +1,7 @@ #!/bin/sh # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" git_user_id=$1 git_repo_id=$2 diff --git a/samples/client/petstore/perl/lib/WWW/OpenAPIClient/FakeApi.pm b/samples/client/petstore/perl/lib/WWW/OpenAPIClient/FakeApi.pm index 07248303afd..2aee9f3d800 100644 --- a/samples/client/petstore/perl/lib/WWW/OpenAPIClient/FakeApi.pm +++ b/samples/client/petstore/perl/lib/WWW/OpenAPIClient/FakeApi.pm @@ -1442,7 +1442,7 @@ sub test_query_parameter_collection_format { } # parse inputs - my $_resource_path = '/fake/test-query-paramters'; + my $_resource_path = '/fake/test-query-parameters'; my $_method = 'PUT'; my $query_params = {}; diff --git a/samples/client/petstore/php/OpenAPIClient-php/README.md b/samples/client/petstore/php/OpenAPIClient-php/README.md index 9e8da12558b..bc3464008a1 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/README.md +++ b/samples/client/petstore/php/OpenAPIClient-php/README.md @@ -90,7 +90,7 @@ Class | Method | HTTP request | Description *FakeApi* | [**testGroupParameters**](docs/Api/FakeApi.md#testgroupparameters) | **DELETE** /fake | Fake endpoint to test group parameters (optional) *FakeApi* | [**testInlineAdditionalProperties**](docs/Api/FakeApi.md#testinlineadditionalproperties) | **POST** /fake/inline-additionalProperties | test inline additionalProperties *FakeApi* | [**testJsonFormData**](docs/Api/FakeApi.md#testjsonformdata) | **GET** /fake/jsonFormData | test json serialization of form data -*FakeApi* | [**testQueryParameterCollectionFormat**](docs/Api/FakeApi.md#testqueryparametercollectionformat) | **PUT** /fake/test-query-paramters | +*FakeApi* | [**testQueryParameterCollectionFormat**](docs/Api/FakeApi.md#testqueryparametercollectionformat) | **PUT** /fake/test-query-parameters | *FakeClassnameTags123Api* | [**testClassname**](docs/Api/FakeClassnameTags123Api.md#testclassname) | **PATCH** /fake_classname_test | To test class name in snake case *PetApi* | [**addPet**](docs/Api/PetApi.md#addpet) | **POST** /pet | Add a new pet to the store *PetApi* | [**deletePet**](docs/Api/PetApi.md#deletepet) | **DELETE** /pet/{petId} | Deletes a pet diff --git a/samples/client/petstore/php/OpenAPIClient-php/docs/Api/FakeApi.md b/samples/client/petstore/php/OpenAPIClient-php/docs/Api/FakeApi.md index 0839406d946..f0eeb5f60a8 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/docs/Api/FakeApi.md +++ b/samples/client/petstore/php/OpenAPIClient-php/docs/Api/FakeApi.md @@ -20,7 +20,7 @@ Method | HTTP request | Description [**testGroupParameters()**](FakeApi.md#testGroupParameters) | **DELETE** /fake | Fake endpoint to test group parameters (optional) [**testInlineAdditionalProperties()**](FakeApi.md#testInlineAdditionalProperties) | **POST** /fake/inline-additionalProperties | test inline additionalProperties [**testJsonFormData()**](FakeApi.md#testJsonFormData) | **GET** /fake/jsonFormData | test json serialization of form data -[**testQueryParameterCollectionFormat()**](FakeApi.md#testQueryParameterCollectionFormat) | **PUT** /fake/test-query-paramters | +[**testQueryParameterCollectionFormat()**](FakeApi.md#testQueryParameterCollectionFormat) | **PUT** /fake/test-query-parameters | ## `fakeHealthGet()` diff --git a/samples/client/petstore/php/OpenAPIClient-php/git_push.sh b/samples/client/petstore/php/OpenAPIClient-php/git_push.sh index 9405f72e950..18f86b99e82 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/git_push.sh +++ b/samples/client/petstore/php/OpenAPIClient-php/git_push.sh @@ -1,7 +1,7 @@ #!/bin/sh # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" git_user_id=$1 git_repo_id=$2 diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Api/FakeApi.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Api/FakeApi.php index 3aa7062eadc..a221e69d85d 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Api/FakeApi.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Api/FakeApi.php @@ -4423,7 +4423,7 @@ class FakeApi ); } - $resourcePath = '/fake/test-query-paramters'; + $resourcePath = '/fake/test-query-parameters'; $formParams = []; $queryParams = []; $headerParams = []; diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Api/PetApi.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Api/PetApi.php index f3b54a1b30e..fe1e265c59c 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Api/PetApi.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Api/PetApi.php @@ -119,7 +119,7 @@ class PetApi * * Add a new pet to the store * - * This oepration contains host(s) defined in the OpenAP spec. Use 'hostIndex' to select the host. + * This operation contains host(s) defined in the OpenAP spec. Use 'hostIndex' to select the host. * URL: http://petstore.swagger.io/v2 * URL: http://path-server-test.petstore.local/v2 * @@ -139,7 +139,7 @@ class PetApi * * Add a new pet to the store * - * This oepration contains host(s) defined in the OpenAP spec. Use 'hostIndex' to select the host. + * This operation contains host(s) defined in the OpenAP spec. Use 'hostIndex' to select the host. * URL: http://petstore.swagger.io/v2 * URL: http://path-server-test.petstore.local/v2 * @@ -195,7 +195,7 @@ class PetApi * * Add a new pet to the store * - * This oepration contains host(s) defined in the OpenAP spec. Use 'hostIndex' to select the host. + * This operation contains host(s) defined in the OpenAP spec. Use 'hostIndex' to select the host. * URL: http://petstore.swagger.io/v2 * URL: http://path-server-test.petstore.local/v2 * @@ -219,7 +219,7 @@ class PetApi * * Add a new pet to the store * - * This oepration contains host(s) defined in the OpenAP spec. Use 'hostIndex' to select the host. + * This operation contains host(s) defined in the OpenAP spec. Use 'hostIndex' to select the host. * URL: http://petstore.swagger.io/v2 * URL: http://path-server-test.petstore.local/v2 * @@ -259,7 +259,7 @@ class PetApi /** * Create request for operation 'addPet' * - * This oepration contains host(s) defined in the OpenAP spec. Use 'hostIndex' to select the host. + * This operation contains host(s) defined in the OpenAP spec. Use 'hostIndex' to select the host. * URL: http://petstore.swagger.io/v2 * URL: http://path-server-test.petstore.local/v2 * @@ -1407,7 +1407,7 @@ class PetApi * * Update an existing pet * - * This oepration contains host(s) defined in the OpenAP spec. Use 'hostIndex' to select the host. + * This operation contains host(s) defined in the OpenAP spec. Use 'hostIndex' to select the host. * URL: http://petstore.swagger.io/v2 * URL: http://path-server-test.petstore.local/v2 * @@ -1427,7 +1427,7 @@ class PetApi * * Update an existing pet * - * This oepration contains host(s) defined in the OpenAP spec. Use 'hostIndex' to select the host. + * This operation contains host(s) defined in the OpenAP spec. Use 'hostIndex' to select the host. * URL: http://petstore.swagger.io/v2 * URL: http://path-server-test.petstore.local/v2 * @@ -1483,7 +1483,7 @@ class PetApi * * Update an existing pet * - * This oepration contains host(s) defined in the OpenAP spec. Use 'hostIndex' to select the host. + * This operation contains host(s) defined in the OpenAP spec. Use 'hostIndex' to select the host. * URL: http://petstore.swagger.io/v2 * URL: http://path-server-test.petstore.local/v2 * @@ -1507,7 +1507,7 @@ class PetApi * * Update an existing pet * - * This oepration contains host(s) defined in the OpenAP spec. Use 'hostIndex' to select the host. + * This operation contains host(s) defined in the OpenAP spec. Use 'hostIndex' to select the host. * URL: http://petstore.swagger.io/v2 * URL: http://path-server-test.petstore.local/v2 * @@ -1547,7 +1547,7 @@ class PetApi /** * Create request for operation 'updatePet' * - * This oepration contains host(s) defined in the OpenAP spec. Use 'hostIndex' to select the host. + * This operation contains host(s) defined in the OpenAP spec. Use 'hostIndex' to select the host. * URL: http://petstore.swagger.io/v2 * URL: http://path-server-test.petstore.local/v2 * diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/ApiException.php b/samples/client/petstore/php/OpenAPIClient-php/lib/ApiException.php index dfa6b239dbd..6b39ed83915 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/ApiException.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/ApiException.php @@ -97,7 +97,7 @@ class ApiException extends Exception } /** - * Sets the deseralized response object (during deserialization) + * Sets the deserialized response object (during deserialization) * * @param mixed $obj Deserialized response object * @@ -109,7 +109,7 @@ class ApiException extends Exception } /** - * Gets the deseralized response object (during deserialization) + * Gets the deserialized response object (during deserialization) * * @return mixed the deserialized response object */ diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Configuration.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Configuration.php index 073810d85d1..a1a4b9c8417 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Configuration.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Configuration.php @@ -377,7 +377,7 @@ class Configuration } /** - * Sets the detault configuration instance + * Sets the default configuration instance * * @param Configuration $config An instance of the Configuration Object * diff --git a/samples/client/petstore/powershell/docs/PSPetApi.md b/samples/client/petstore/powershell/docs/PSPetApi.md index 913618efaf3..b4b553d9d92 100644 --- a/samples/client/petstore/powershell/docs/PSPetApi.md +++ b/samples/client/petstore/powershell/docs/PSPetApi.md @@ -36,7 +36,7 @@ $Pet = Initialize-Pet -Id 0 -Category $Category -Name "doggie" -PhotoUrls "MyPho try { $Result = Add-PSPet -Pet $Pet } catch { - Write-Host ("Exception occured when calling Add-PSPet: {0}" -f ($_.ErrorDetails | ConvertFrom-Json)) + Write-Host ("Exception occurred when calling Add-PSPet: {0}" -f ($_.ErrorDetails | ConvertFrom-Json)) Write-Host ("Response headers: {0}" -f ($_.Exception.Response.Headers | ConvertTo-Json)) } ``` @@ -84,7 +84,7 @@ $ApiKey = "MyApiKey" # String | (optional) try { $Result = Remove-Pet -PetId $PetId -ApiKey $ApiKey } catch { - Write-Host ("Exception occured when calling Remove-Pet: {0}" -f ($_.ErrorDetails | ConvertFrom-Json)) + Write-Host ("Exception occurred when calling Remove-Pet: {0}" -f ($_.ErrorDetails | ConvertFrom-Json)) Write-Host ("Response headers: {0}" -f ($_.Exception.Response.Headers | ConvertTo-Json)) } ``` @@ -133,7 +133,7 @@ $Status = "available" # String[] | Status values that need to be considered for try { $Result = Find-PSPetsByStatus -Status $Status } catch { - Write-Host ("Exception occured when calling Find-PSPetsByStatus: {0}" -f ($_.ErrorDetails | ConvertFrom-Json)) + Write-Host ("Exception occurred when calling Find-PSPetsByStatus: {0}" -f ($_.ErrorDetails | ConvertFrom-Json)) Write-Host ("Response headers: {0}" -f ($_.Exception.Response.Headers | ConvertTo-Json)) } ``` @@ -181,7 +181,7 @@ $Tags = "MyTags" # String[] | Tags to filter by try { $Result = Find-PSPetsByTags -Tags $Tags } catch { - Write-Host ("Exception occured when calling Find-PSPetsByTags: {0}" -f ($_.ErrorDetails | ConvertFrom-Json)) + Write-Host ("Exception occurred when calling Find-PSPetsByTags: {0}" -f ($_.ErrorDetails | ConvertFrom-Json)) Write-Host ("Response headers: {0}" -f ($_.Exception.Response.Headers | ConvertTo-Json)) } ``` @@ -231,7 +231,7 @@ $PetId = 789 # Int64 | ID of pet to return try { $Result = Get-PSPetById -PetId $PetId } catch { - Write-Host ("Exception occured when calling Get-PSPetById: {0}" -f ($_.ErrorDetails | ConvertFrom-Json)) + Write-Host ("Exception occurred when calling Get-PSPetById: {0}" -f ($_.ErrorDetails | ConvertFrom-Json)) Write-Host ("Response headers: {0}" -f ($_.Exception.Response.Headers | ConvertTo-Json)) } ``` @@ -279,7 +279,7 @@ $Pet = Initialize-Pet -Id 0 -Category $Category -Name "doggie" -PhotoUrls "MyPho try { $Result = Update-PSPet -Pet $Pet } catch { - Write-Host ("Exception occured when calling Update-PSPet: {0}" -f ($_.ErrorDetails | ConvertFrom-Json)) + Write-Host ("Exception occurred when calling Update-PSPet: {0}" -f ($_.ErrorDetails | ConvertFrom-Json)) Write-Host ("Response headers: {0}" -f ($_.Exception.Response.Headers | ConvertTo-Json)) } ``` @@ -329,7 +329,7 @@ $Status = "MyStatus" # String | Updated status of the pet (optional) try { $Result = Update-PSPetWithForm -PetId $PetId -Name $Name -Status $Status } catch { - Write-Host ("Exception occured when calling Update-PSPetWithForm: {0}" -f ($_.ErrorDetails | ConvertFrom-Json)) + Write-Host ("Exception occurred when calling Update-PSPetWithForm: {0}" -f ($_.ErrorDetails | ConvertFrom-Json)) Write-Host ("Response headers: {0}" -f ($_.Exception.Response.Headers | ConvertTo-Json)) } ``` @@ -381,7 +381,7 @@ $File = # System.IO.FileInfo | file to upload (optional) try { $Result = Invoke-PSUploadFile -PetId $PetId -AdditionalMetadata $AdditionalMetadata -File $File } catch { - Write-Host ("Exception occured when calling Invoke-PSUploadFile: {0}" -f ($_.ErrorDetails | ConvertFrom-Json)) + Write-Host ("Exception occurred when calling Invoke-PSUploadFile: {0}" -f ($_.ErrorDetails | ConvertFrom-Json)) Write-Host ("Response headers: {0}" -f ($_.Exception.Response.Headers | ConvertTo-Json)) } ``` diff --git a/samples/client/petstore/powershell/docs/PSStoreApi.md b/samples/client/petstore/powershell/docs/PSStoreApi.md index 479c994a009..aadeb611ab0 100644 --- a/samples/client/petstore/powershell/docs/PSStoreApi.md +++ b/samples/client/petstore/powershell/docs/PSStoreApi.md @@ -27,7 +27,7 @@ $OrderId = "MyOrderId" # String | ID of the order that needs to be deleted try { $Result = Remove-PSOrder -OrderId $OrderId } catch { - Write-Host ("Exception occured when calling Remove-PSOrder: {0}" -f ($_.ErrorDetails | ConvertFrom-Json)) + Write-Host ("Exception occurred when calling Remove-PSOrder: {0}" -f ($_.ErrorDetails | ConvertFrom-Json)) Write-Host ("Response headers: {0}" -f ($_.Exception.Response.Headers | ConvertTo-Json)) } ``` @@ -75,7 +75,7 @@ $Configuration.ApiKey.api_key = "YOUR_API_KEY" try { $Result = Get-PSInventory } catch { - Write-Host ("Exception occured when calling Get-PSInventory: {0}" -f ($_.ErrorDetails | ConvertFrom-Json)) + Write-Host ("Exception occurred when calling Get-PSInventory: {0}" -f ($_.ErrorDetails | ConvertFrom-Json)) Write-Host ("Response headers: {0}" -f ($_.Exception.Response.Headers | ConvertTo-Json)) } ``` @@ -115,7 +115,7 @@ $OrderId = 789 # Int64 | ID of pet that needs to be fetched try { $Result = Get-PSOrderById -OrderId $OrderId } catch { - Write-Host ("Exception occured when calling Get-PSOrderById: {0}" -f ($_.ErrorDetails | ConvertFrom-Json)) + Write-Host ("Exception occurred when calling Get-PSOrderById: {0}" -f ($_.ErrorDetails | ConvertFrom-Json)) Write-Host ("Response headers: {0}" -f ($_.Exception.Response.Headers | ConvertTo-Json)) } ``` @@ -156,7 +156,7 @@ $Order = Initialize-Order -Id 0 -PetId 0 -Quantity 0 -ShipDate (Get-Date) -Statu try { $Result = Invoke-PSPlaceOrder -Order $Order } catch { - Write-Host ("Exception occured when calling Invoke-PSPlaceOrder: {0}" -f ($_.ErrorDetails | ConvertFrom-Json)) + Write-Host ("Exception occurred when calling Invoke-PSPlaceOrder: {0}" -f ($_.ErrorDetails | ConvertFrom-Json)) Write-Host ("Response headers: {0}" -f ($_.Exception.Response.Headers | ConvertTo-Json)) } ``` diff --git a/samples/client/petstore/powershell/docs/PSUserApi.md b/samples/client/petstore/powershell/docs/PSUserApi.md index f701d6daba9..37308235b0f 100644 --- a/samples/client/petstore/powershell/docs/PSUserApi.md +++ b/samples/client/petstore/powershell/docs/PSUserApi.md @@ -38,7 +38,7 @@ $User = Initialize-User -Id 0 -Username "MyUsername" -FirstName "MyFirstName" -L try { $Result = New-PSUser -User $User } catch { - Write-Host ("Exception occured when calling New-PSUser: {0}" -f ($_.ErrorDetails | ConvertFrom-Json)) + Write-Host ("Exception occurred when calling New-PSUser: {0}" -f ($_.ErrorDetails | ConvertFrom-Json)) Write-Host ("Response headers: {0}" -f ($_.Exception.Response.Headers | ConvertTo-Json)) } ``` @@ -86,7 +86,7 @@ $User = Initialize-User -Id 0 -Username "MyUsername" -FirstName "MyFirstName" -L try { $Result = New-PSUsersWithArrayInput -User $User } catch { - Write-Host ("Exception occured when calling New-PSUsersWithArrayInput: {0}" -f ($_.ErrorDetails | ConvertFrom-Json)) + Write-Host ("Exception occurred when calling New-PSUsersWithArrayInput: {0}" -f ($_.ErrorDetails | ConvertFrom-Json)) Write-Host ("Response headers: {0}" -f ($_.Exception.Response.Headers | ConvertTo-Json)) } ``` @@ -134,7 +134,7 @@ $User = Initialize-User -Id 0 -Username "MyUsername" -FirstName "MyFirstName" -L try { $Result = New-PSUsersWithListInput -User $User } catch { - Write-Host ("Exception occured when calling New-PSUsersWithListInput: {0}" -f ($_.ErrorDetails | ConvertFrom-Json)) + Write-Host ("Exception occurred when calling New-PSUsersWithListInput: {0}" -f ($_.ErrorDetails | ConvertFrom-Json)) Write-Host ("Response headers: {0}" -f ($_.Exception.Response.Headers | ConvertTo-Json)) } ``` @@ -184,7 +184,7 @@ $Username = "MyUsername" # String | The name that needs to be deleted try { $Result = Remove-PSUser -Username $Username } catch { - Write-Host ("Exception occured when calling Remove-PSUser: {0}" -f ($_.ErrorDetails | ConvertFrom-Json)) + Write-Host ("Exception occurred when calling Remove-PSUser: {0}" -f ($_.ErrorDetails | ConvertFrom-Json)) Write-Host ("Response headers: {0}" -f ($_.Exception.Response.Headers | ConvertTo-Json)) } ``` @@ -225,7 +225,7 @@ $Username = "MyUsername" # String | The name that needs to be fetched. Use user1 try { $Result = Get-PSUserByName -Username $Username } catch { - Write-Host ("Exception occured when calling Get-PSUserByName: {0}" -f ($_.ErrorDetails | ConvertFrom-Json)) + Write-Host ("Exception occurred when calling Get-PSUserByName: {0}" -f ($_.ErrorDetails | ConvertFrom-Json)) Write-Host ("Response headers: {0}" -f ($_.Exception.Response.Headers | ConvertTo-Json)) } ``` @@ -268,7 +268,7 @@ $Password = "MyPassword" # String | The password for login in clear text try { $Result = Invoke-PSLoginUser -Username $Username -Password $Password } catch { - Write-Host ("Exception occured when calling Invoke-PSLoginUser: {0}" -f ($_.ErrorDetails | ConvertFrom-Json)) + Write-Host ("Exception occurred when calling Invoke-PSLoginUser: {0}" -f ($_.ErrorDetails | ConvertFrom-Json)) Write-Host ("Response headers: {0}" -f ($_.Exception.Response.Headers | ConvertTo-Json)) } ``` @@ -315,7 +315,7 @@ $Configuration.ApiKey.AUTH_KEY = "YOUR_API_KEY" try { $Result = Invoke-PSLogoutUser } catch { - Write-Host ("Exception occured when calling Invoke-PSLogoutUser: {0}" -f ($_.ErrorDetails | ConvertFrom-Json)) + Write-Host ("Exception occurred when calling Invoke-PSLogoutUser: {0}" -f ($_.ErrorDetails | ConvertFrom-Json)) Write-Host ("Response headers: {0}" -f ($_.Exception.Response.Headers | ConvertTo-Json)) } ``` @@ -364,7 +364,7 @@ $User = Initialize-User -Id 0 -Username "MyUsername" -FirstName "MyFirstName" -L try { $Result = Update-PSUser -Username $Username -User $User } catch { - Write-Host ("Exception occured when calling Update-PSUser: {0}" -f ($_.ErrorDetails | ConvertFrom-Json)) + Write-Host ("Exception occurred when calling Update-PSUser: {0}" -f ($_.ErrorDetails | ConvertFrom-Json)) Write-Host ("Response headers: {0}" -f ($_.Exception.Response.Headers | ConvertTo-Json)) } ``` diff --git a/samples/client/petstore/powershell/src/PSPetstore/Client/PSConfiguration.ps1 b/samples/client/petstore/powershell/src/PSPetstore/Client/PSConfiguration.ps1 index 231da6a150b..67e42865831 100644 --- a/samples/client/petstore/powershell/src/PSPetstore/Client/PSConfiguration.ps1 +++ b/samples/client/petstore/powershell/src/PSPetstore/Client/PSConfiguration.ps1 @@ -78,7 +78,7 @@ Base URL of the HTTP endpoints .PARAMETER Username Username in HTTP basic authentication -.PARAMETER Passowrd +.PARAMETER Password Password in HTTP basic authentication .PARAMETER ApiKey @@ -441,7 +441,7 @@ SHOULD be included. If no headers are specified then '(created)' sets as default. .PARAMETER HashAlgorithm -HashAlgrithm to calculate the hash, Supported values are "sha256" and "sha512" +HashAlgorithm to calculate the hash, Supported values are "sha256" and "sha512" .PARAMETER SigningAlgorithm SigningAlgorithm specifies the signature algorithm, supported values are "RSASSA-PKCS1-v1_5" and "RSASSA-PSS" diff --git a/samples/client/petstore/powershell/src/PSPetstore/Private/PSApiClient.ps1 b/samples/client/petstore/powershell/src/PSPetstore/Private/PSApiClient.ps1 index 09a202cee9d..aacf6f6d0d1 100644 --- a/samples/client/petstore/powershell/src/PSPetstore/Private/PSApiClient.ps1 +++ b/samples/client/petstore/powershell/src/PSPetstore/Private/PSApiClient.ps1 @@ -53,7 +53,7 @@ function Invoke-PSApiClient { } } if ($CookieParameters -and $CookieParameters.Count -gt 1) { - Write-Warning "Multipe cookie parameters found. Curently only the first one is supported/used" + Write-Warning "Multiple cookie parameters found. Currently only the first one is supported/used" } # accept, content-type headers @@ -73,7 +73,7 @@ function Invoke-PSApiClient { } - # constrcut URL query string + # construct URL query string $HttpValues = [System.Web.HttpUtility]::ParseQueryString([String]::Empty) foreach ($Parameter in $QueryParameters.GetEnumerator()) { if ($Parameter.Value.Count -gt 1) { // array diff --git a/samples/client/petstore/powershell/src/PSPetstore/Private/PSHttpSignatureAuth.ps1 b/samples/client/petstore/powershell/src/PSPetstore/Private/PSHttpSignatureAuth.ps1 index 4e659047714..21bfb717d7b 100644 --- a/samples/client/petstore/powershell/src/PSPetstore/Private/PSHttpSignatureAuth.ps1 +++ b/samples/client/petstore/powershell/src/PSPetstore/Private/PSHttpSignatureAuth.ps1 @@ -9,7 +9,7 @@ .SYNOPSIS Gets the headers for HTTP signature. .DESCRIPTION - Gets the headers for the http sigature. + Gets the headers for the http signature. .PARAMETER Method HTTP method .PARAMETER UriBuilder @@ -97,13 +97,13 @@ function Get-PSHttpSignedHeader { foreach ($item in $HttpSignatureHeader.GetEnumerator()) { $headerValuesList += [string]::Format("{0}: {1}", $item.Name, $item.Value) } - #Concatinate headers value separated by new line + #Concatenate headers value separated by new line $headerValuesString = $headerValuesList -join "`n" #Gets the hash of the headers value $signatureHashString = Get-PSStringHash -String $headerValuesString -HashName $httpSigningConfiguration.HashAlgorithm - #Gets the Key type to select the correct signing alogorithm + #Gets the Key type to select the correct signing algorithm $KeyType = Get-PSKeyTypeFromFile -KeyFilePath $httpSigningConfiguration.KeyFilePath if ($keyType -eq "RSA") { @@ -275,7 +275,7 @@ function Get-PSECDSASignature { Specifies the string to calculate the hash .Parameter HashName Specifies the hash name to calculate the hash, Accepted values are "SHA1", "SHA256" and "SHA512" - It is recommneded not to use "SHA1" to calculate the Hash + It is recommended not to use "SHA1" to calculate the Hash .Outputs String #> @@ -288,8 +288,8 @@ Function Get-PSStringHash { [ValidateSet("SHA1", "SHA256", "SHA512")] $HashName ) - $hashAlogrithm = [System.Security.Cryptography.HashAlgorithm]::Create($HashName) - $hashAlogrithm.ComputeHash([System.Text.Encoding]::UTF8.GetBytes($String)) + $hashAlgorithm = [System.Security.Cryptography.HashAlgorithm]::Create($HashName) + $hashAlgorithm.ComputeHash([System.Text.Encoding]::UTF8.GetBytes($String)) } <# @@ -330,9 +330,9 @@ function Get-PSCryptographicScheme { [Parameter(Mandatory = $true)] [string]$HashAlgorithm ) - $rsaSigntureType = @("RSASSA-PKCS1-v1_5", "RSASSA-PSS") + $rsaSignatureType = @("RSASSA-PKCS1-v1_5", "RSASSA-PSS") $SigningAlgorithm = $null - if ($rsaSigntureType -contains $SigningAlgorithm) { + if ($rsaSignatureType -contains $SigningAlgorithm) { switch ($HashAlgorithm) { "sha256" { $SigningAlgorithm = "rsa-sha256" } "sha512" { $SigningAlgorithm = "rsa-sha512" } @@ -388,9 +388,9 @@ function Get-PSKeyTypeFromFile { <# .Synopsis - Converts sequence of R and S bytes to ANS1 format for ECDSASIgnature. + Converts sequence of R and S bytes to ANS1 format for ECDSASignature. .Description - Converts sequence of R and S bytes to ANS1 format for ECDSASIgnature. + Converts sequence of R and S bytes to ANS1 format for ECDSASignature. .Parameter RawBytes[] Specifies the R and S bytes of ECDSA signature. .Outputs @@ -402,7 +402,7 @@ function ConvertTo-ECDSAANS1Format{ [byte[]]$RawBytes ) - $derLength = 68 #default lenght for ECDSA code signinged bit 0x44 + $derLength = 68 #default length for ECDSA code signing bit 0x44 $rbytesLength = 32 #R length 0x20 $sbytesLength = 32 #S length 0x20 [byte[]]$rBytes = $signedBytes[0..31] @@ -423,7 +423,7 @@ function ConvertTo-ECDSAANS1Format{ [byte[]]$derBytes = @() $derBytes += 48 # start of the sequence 0x30 - $derBytes += $derLength # total length r lenth, type and r bytes + $derBytes += $derLength # total length r length, type and r bytes $derBytes += 2 # tag for integer $derBytes += $rbytesLength # length of r diff --git a/samples/client/petstore/powershell/src/PSPetstore/Private/PSRSAEncryptionProvider.cs b/samples/client/petstore/powershell/src/PSPetstore/Private/PSRSAEncryptionProvider.cs index 451221fd894..ab9be24df97 100644 --- a/samples/client/petstore/powershell/src/PSPetstore/Private/PSRSAEncryptionProvider.cs +++ b/samples/client/petstore/powershell/src/PSPetstore/Private/PSRSAEncryptionProvider.cs @@ -11,7 +11,7 @@ namespace RSAEncryption { public class RSAEncryptionProvider { - public static RSACryptoServiceProvider GetRSAProviderFromPemFile(String pemfile,SecureString keyPassPharse = null) + public static RSACryptoServiceProvider GetRSAProviderFromPemFile(String pemfile,SecureString keyPassPhrase = null) { const String pempubheader = "-----BEGIN PUBLIC KEY-----"; const String pempubfooter = "-----END PUBLIC KEY-----"; @@ -31,7 +31,7 @@ namespace RSAEncryption if (isPrivateKeyFile) { - pemkey = ConvertPrivateKeyToBytes(pemstr,keyPassPharse); + pemkey = ConvertPrivateKeyToBytes(pemstr,keyPassPhrase); if (pemkey == null) { return null; @@ -41,7 +41,7 @@ namespace RSAEncryption return null ; } - static byte[] ConvertPrivateKeyToBytes(String instr, SecureString keyPassPharse = null) + static byte[] ConvertPrivateKeyToBytes(String instr, SecureString keyPassPhrase = null) { const String pemprivheader = "-----BEGIN RSA PRIVATE KEY-----"; const String pemprivfooter = "-----END RSA PRIVATE KEY-----"; @@ -88,11 +88,11 @@ namespace RSAEncryption binkey = Convert.FromBase64String(encryptedstr); } catch (System.FormatException) - { //data is not in base64 fromat + { //data is not in base64 format return null; } - byte[] deskey = GetEncryptedKey(salt, keyPassPharse, 1, 2); // count=1 (for OpenSSL implementation); 2 iterations to get at least 24 bytes + byte[] deskey = GetEncryptedKey(salt, keyPassPhrase, 1, 2); // count=1 (for OpenSSL implementation); 2 iterations to get at least 24 bytes if (deskey == null) return null; @@ -213,19 +213,19 @@ namespace RSAEncryption { IntPtr unmanagedPswd = IntPtr.Zero; int HASHLENGTH = 16; //MD5 bytes - byte[] keymaterial = new byte[HASHLENGTH * miter]; //to store contatenated Mi hashed results + byte[] keymaterial = new byte[HASHLENGTH * miter]; //to store concatenated Mi hashed results byte[] psbytes = new byte[secpswd.Length]; unmanagedPswd = Marshal.SecureStringToGlobalAllocAnsi(secpswd); Marshal.Copy(unmanagedPswd, psbytes, 0, psbytes.Length); Marshal.ZeroFreeGlobalAllocAnsi(unmanagedPswd); - // --- contatenate salt and pswd bytes into fixed data array --- + // --- concatenate salt and pswd bytes into fixed data array --- byte[] data00 = new byte[psbytes.Length + salt.Length]; Array.Copy(psbytes, data00, psbytes.Length); //copy the pswd bytes Array.Copy(salt, 0, data00, psbytes.Length, salt.Length); //concatenate the salt bytes - // ---- do multi-hashing and contatenate results D1, D2 ... into keymaterial bytes ---- + // ---- do multi-hashing and concatenate results D1, D2 ... into keymaterial bytes ---- MD5 md5 = new MD5CryptoServiceProvider(); byte[] result = null; byte[] hashtarget = new byte[HASHLENGTH + data00.Length]; //fixed length initial hashtarget @@ -244,7 +244,7 @@ namespace RSAEncryption for (int i = 0; i < count; i++) result = md5.ComputeHash(result); - Array.Copy(result, 0, keymaterial, j * HASHLENGTH, result.Length); //contatenate to keymaterial + Array.Copy(result, 0, keymaterial, j * HASHLENGTH, result.Length); //concatenate to keymaterial } byte[] deskey = new byte[24]; Array.Copy(keymaterial, deskey, deskey.Length); diff --git a/samples/client/petstore/python-asyncio/README.md b/samples/client/petstore/python-asyncio/README.md index 8f9d03589bc..18a172f82cc 100644 --- a/samples/client/petstore/python-asyncio/README.md +++ b/samples/client/petstore/python-asyncio/README.md @@ -95,7 +95,7 @@ Class | Method | HTTP request | Description *FakeApi* | [**test_group_parameters**](docs/FakeApi.md#test_group_parameters) | **DELETE** /fake | Fake endpoint to test group parameters (optional) *FakeApi* | [**test_inline_additional_properties**](docs/FakeApi.md#test_inline_additional_properties) | **POST** /fake/inline-additionalProperties | test inline additionalProperties *FakeApi* | [**test_json_form_data**](docs/FakeApi.md#test_json_form_data) | **GET** /fake/jsonFormData | test json serialization of form data -*FakeApi* | [**test_query_parameter_collection_format**](docs/FakeApi.md#test_query_parameter_collection_format) | **PUT** /fake/test-query-paramters | +*FakeApi* | [**test_query_parameter_collection_format**](docs/FakeApi.md#test_query_parameter_collection_format) | **PUT** /fake/test-query-parameters | *FakeClassnameTags123Api* | [**test_classname**](docs/FakeClassnameTags123Api.md#test_classname) | **PATCH** /fake_classname_test | To test class name in snake case *PetApi* | [**add_pet**](docs/PetApi.md#add_pet) | **POST** /pet | Add a new pet to the store *PetApi* | [**delete_pet**](docs/PetApi.md#delete_pet) | **DELETE** /pet/{petId} | Deletes a pet diff --git a/samples/client/petstore/python-asyncio/docs/FakeApi.md b/samples/client/petstore/python-asyncio/docs/FakeApi.md index 68a36b5f752..34ffb41ad8d 100644 --- a/samples/client/petstore/python-asyncio/docs/FakeApi.md +++ b/samples/client/petstore/python-asyncio/docs/FakeApi.md @@ -17,7 +17,7 @@ Method | HTTP request | Description [**test_group_parameters**](FakeApi.md#test_group_parameters) | **DELETE** /fake | Fake endpoint to test group parameters (optional) [**test_inline_additional_properties**](FakeApi.md#test_inline_additional_properties) | **POST** /fake/inline-additionalProperties | test inline additionalProperties [**test_json_form_data**](FakeApi.md#test_json_form_data) | **GET** /fake/jsonFormData | test json serialization of form data -[**test_query_parameter_collection_format**](FakeApi.md#test_query_parameter_collection_format) | **PUT** /fake/test-query-paramters | +[**test_query_parameter_collection_format**](FakeApi.md#test_query_parameter_collection_format) | **PUT** /fake/test-query-parameters | # **create_xml_item** diff --git a/samples/client/petstore/python-asyncio/git_push.sh b/samples/client/petstore/python-asyncio/git_push.sh index 9405f72e950..18f86b99e82 100644 --- a/samples/client/petstore/python-asyncio/git_push.sh +++ b/samples/client/petstore/python-asyncio/git_push.sh @@ -1,7 +1,7 @@ #!/bin/sh # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" git_user_id=$1 git_repo_id=$2 diff --git a/samples/client/petstore/python-asyncio/petstore_api/api/fake_api.py b/samples/client/petstore/python-asyncio/petstore_api/api/fake_api.py index 28f2d631828..063ac8e08d1 100644 --- a/samples/client/petstore/python-asyncio/petstore_api/api/fake_api.py +++ b/samples/client/petstore/python-asyncio/petstore_api/api/fake_api.py @@ -2159,7 +2159,7 @@ class FakeApi(object): response_types_map = {} return self.api_client.call_api( - '/fake/test-query-paramters', 'PUT', + '/fake/test-query-parameters', 'PUT', path_params, query_params, header_params, diff --git a/samples/client/petstore/python-asyncio/petstore_api/api_client.py b/samples/client/petstore/python-asyncio/petstore_api/api_client.py index 3e51664dac3..4e718812e55 100644 --- a/samples/client/petstore/python-asyncio/petstore_api/api_client.py +++ b/samples/client/petstore/python-asyncio/petstore_api/api_client.py @@ -538,12 +538,12 @@ class ApiClient(object): else: return content_types[0] - def update_params_for_auth(self, headers, querys, auth_settings, + def update_params_for_auth(self, headers, queries, auth_settings, request_auth=None): """Updates header and query params based on authentication setting. :param headers: Header parameters dict to be updated. - :param querys: Query parameters tuple list to be updated. + :param queries: Query parameters tuple list to be updated. :param auth_settings: Authentication setting identifiers list. :param request_auth: if set, the provided settings will override the token in the configuration. @@ -552,19 +552,19 @@ class ApiClient(object): return if request_auth: - self._apply_auth_params(headers, querys, request_auth) + self._apply_auth_params(headers, queries, request_auth) return for auth in auth_settings: auth_setting = self.configuration.auth_settings().get(auth) if auth_setting: - self._apply_auth_params(headers, querys, auth_setting) + self._apply_auth_params(headers, queries, auth_setting) - def _apply_auth_params(self, headers, querys, auth_setting): + def _apply_auth_params(self, headers, queries, auth_setting): """Updates the request parameters based on a single auth_setting :param headers: Header parameters dict to be updated. - :param querys: Query parameters tuple list to be updated. + :param queries: Query parameters tuple list to be updated. :param auth_setting: auth settings for the endpoint """ if auth_setting['in'] == 'cookie': @@ -572,7 +572,7 @@ class ApiClient(object): elif auth_setting['in'] == 'header': headers[auth_setting['key']] = auth_setting['value'] elif auth_setting['in'] == 'query': - querys.append((auth_setting['key'], auth_setting['value'])) + queries.append((auth_setting['key'], auth_setting['value'])) else: raise ApiValueError( 'Authentication token must be in `query` or `header`' diff --git a/samples/client/petstore/python-legacy/README.md b/samples/client/petstore/python-legacy/README.md index 8f9d03589bc..18a172f82cc 100644 --- a/samples/client/petstore/python-legacy/README.md +++ b/samples/client/petstore/python-legacy/README.md @@ -95,7 +95,7 @@ Class | Method | HTTP request | Description *FakeApi* | [**test_group_parameters**](docs/FakeApi.md#test_group_parameters) | **DELETE** /fake | Fake endpoint to test group parameters (optional) *FakeApi* | [**test_inline_additional_properties**](docs/FakeApi.md#test_inline_additional_properties) | **POST** /fake/inline-additionalProperties | test inline additionalProperties *FakeApi* | [**test_json_form_data**](docs/FakeApi.md#test_json_form_data) | **GET** /fake/jsonFormData | test json serialization of form data -*FakeApi* | [**test_query_parameter_collection_format**](docs/FakeApi.md#test_query_parameter_collection_format) | **PUT** /fake/test-query-paramters | +*FakeApi* | [**test_query_parameter_collection_format**](docs/FakeApi.md#test_query_parameter_collection_format) | **PUT** /fake/test-query-parameters | *FakeClassnameTags123Api* | [**test_classname**](docs/FakeClassnameTags123Api.md#test_classname) | **PATCH** /fake_classname_test | To test class name in snake case *PetApi* | [**add_pet**](docs/PetApi.md#add_pet) | **POST** /pet | Add a new pet to the store *PetApi* | [**delete_pet**](docs/PetApi.md#delete_pet) | **DELETE** /pet/{petId} | Deletes a pet diff --git a/samples/client/petstore/python-legacy/docs/FakeApi.md b/samples/client/petstore/python-legacy/docs/FakeApi.md index 68a36b5f752..34ffb41ad8d 100644 --- a/samples/client/petstore/python-legacy/docs/FakeApi.md +++ b/samples/client/petstore/python-legacy/docs/FakeApi.md @@ -17,7 +17,7 @@ Method | HTTP request | Description [**test_group_parameters**](FakeApi.md#test_group_parameters) | **DELETE** /fake | Fake endpoint to test group parameters (optional) [**test_inline_additional_properties**](FakeApi.md#test_inline_additional_properties) | **POST** /fake/inline-additionalProperties | test inline additionalProperties [**test_json_form_data**](FakeApi.md#test_json_form_data) | **GET** /fake/jsonFormData | test json serialization of form data -[**test_query_parameter_collection_format**](FakeApi.md#test_query_parameter_collection_format) | **PUT** /fake/test-query-paramters | +[**test_query_parameter_collection_format**](FakeApi.md#test_query_parameter_collection_format) | **PUT** /fake/test-query-parameters | # **create_xml_item** diff --git a/samples/client/petstore/python-legacy/git_push.sh b/samples/client/petstore/python-legacy/git_push.sh index 9405f72e950..18f86b99e82 100644 --- a/samples/client/petstore/python-legacy/git_push.sh +++ b/samples/client/petstore/python-legacy/git_push.sh @@ -1,7 +1,7 @@ #!/bin/sh # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" git_user_id=$1 git_repo_id=$2 diff --git a/samples/client/petstore/python-legacy/petstore_api/api/fake_api.py b/samples/client/petstore/python-legacy/petstore_api/api/fake_api.py index 28f2d631828..063ac8e08d1 100644 --- a/samples/client/petstore/python-legacy/petstore_api/api/fake_api.py +++ b/samples/client/petstore/python-legacy/petstore_api/api/fake_api.py @@ -2159,7 +2159,7 @@ class FakeApi(object): response_types_map = {} return self.api_client.call_api( - '/fake/test-query-paramters', 'PUT', + '/fake/test-query-parameters', 'PUT', path_params, query_params, header_params, diff --git a/samples/client/petstore/python-legacy/petstore_api/api_client.py b/samples/client/petstore/python-legacy/petstore_api/api_client.py index 035e1e374ba..7c3a69abd76 100644 --- a/samples/client/petstore/python-legacy/petstore_api/api_client.py +++ b/samples/client/petstore/python-legacy/petstore_api/api_client.py @@ -537,12 +537,12 @@ class ApiClient(object): else: return content_types[0] - def update_params_for_auth(self, headers, querys, auth_settings, + def update_params_for_auth(self, headers, queries, auth_settings, request_auth=None): """Updates header and query params based on authentication setting. :param headers: Header parameters dict to be updated. - :param querys: Query parameters tuple list to be updated. + :param queries: Query parameters tuple list to be updated. :param auth_settings: Authentication setting identifiers list. :param request_auth: if set, the provided settings will override the token in the configuration. @@ -551,19 +551,19 @@ class ApiClient(object): return if request_auth: - self._apply_auth_params(headers, querys, request_auth) + self._apply_auth_params(headers, queries, request_auth) return for auth in auth_settings: auth_setting = self.configuration.auth_settings().get(auth) if auth_setting: - self._apply_auth_params(headers, querys, auth_setting) + self._apply_auth_params(headers, queries, auth_setting) - def _apply_auth_params(self, headers, querys, auth_setting): + def _apply_auth_params(self, headers, queries, auth_setting): """Updates the request parameters based on a single auth_setting :param headers: Header parameters dict to be updated. - :param querys: Query parameters tuple list to be updated. + :param queries: Query parameters tuple list to be updated. :param auth_setting: auth settings for the endpoint """ if auth_setting['in'] == 'cookie': @@ -571,7 +571,7 @@ class ApiClient(object): elif auth_setting['in'] == 'header': headers[auth_setting['key']] = auth_setting['value'] elif auth_setting['in'] == 'query': - querys.append((auth_setting['key'], auth_setting['value'])) + queries.append((auth_setting['key'], auth_setting['value'])) else: raise ApiValueError( 'Authentication token must be in `query` or `header`' diff --git a/samples/client/petstore/python-tornado/README.md b/samples/client/petstore/python-tornado/README.md index 8f9d03589bc..18a172f82cc 100644 --- a/samples/client/petstore/python-tornado/README.md +++ b/samples/client/petstore/python-tornado/README.md @@ -95,7 +95,7 @@ Class | Method | HTTP request | Description *FakeApi* | [**test_group_parameters**](docs/FakeApi.md#test_group_parameters) | **DELETE** /fake | Fake endpoint to test group parameters (optional) *FakeApi* | [**test_inline_additional_properties**](docs/FakeApi.md#test_inline_additional_properties) | **POST** /fake/inline-additionalProperties | test inline additionalProperties *FakeApi* | [**test_json_form_data**](docs/FakeApi.md#test_json_form_data) | **GET** /fake/jsonFormData | test json serialization of form data -*FakeApi* | [**test_query_parameter_collection_format**](docs/FakeApi.md#test_query_parameter_collection_format) | **PUT** /fake/test-query-paramters | +*FakeApi* | [**test_query_parameter_collection_format**](docs/FakeApi.md#test_query_parameter_collection_format) | **PUT** /fake/test-query-parameters | *FakeClassnameTags123Api* | [**test_classname**](docs/FakeClassnameTags123Api.md#test_classname) | **PATCH** /fake_classname_test | To test class name in snake case *PetApi* | [**add_pet**](docs/PetApi.md#add_pet) | **POST** /pet | Add a new pet to the store *PetApi* | [**delete_pet**](docs/PetApi.md#delete_pet) | **DELETE** /pet/{petId} | Deletes a pet diff --git a/samples/client/petstore/python-tornado/docs/FakeApi.md b/samples/client/petstore/python-tornado/docs/FakeApi.md index 68a36b5f752..34ffb41ad8d 100644 --- a/samples/client/petstore/python-tornado/docs/FakeApi.md +++ b/samples/client/petstore/python-tornado/docs/FakeApi.md @@ -17,7 +17,7 @@ Method | HTTP request | Description [**test_group_parameters**](FakeApi.md#test_group_parameters) | **DELETE** /fake | Fake endpoint to test group parameters (optional) [**test_inline_additional_properties**](FakeApi.md#test_inline_additional_properties) | **POST** /fake/inline-additionalProperties | test inline additionalProperties [**test_json_form_data**](FakeApi.md#test_json_form_data) | **GET** /fake/jsonFormData | test json serialization of form data -[**test_query_parameter_collection_format**](FakeApi.md#test_query_parameter_collection_format) | **PUT** /fake/test-query-paramters | +[**test_query_parameter_collection_format**](FakeApi.md#test_query_parameter_collection_format) | **PUT** /fake/test-query-parameters | # **create_xml_item** diff --git a/samples/client/petstore/python-tornado/git_push.sh b/samples/client/petstore/python-tornado/git_push.sh index 9405f72e950..18f86b99e82 100644 --- a/samples/client/petstore/python-tornado/git_push.sh +++ b/samples/client/petstore/python-tornado/git_push.sh @@ -1,7 +1,7 @@ #!/bin/sh # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" git_user_id=$1 git_repo_id=$2 diff --git a/samples/client/petstore/python-tornado/petstore_api/api/fake_api.py b/samples/client/petstore/python-tornado/petstore_api/api/fake_api.py index 28f2d631828..063ac8e08d1 100644 --- a/samples/client/petstore/python-tornado/petstore_api/api/fake_api.py +++ b/samples/client/petstore/python-tornado/petstore_api/api/fake_api.py @@ -2159,7 +2159,7 @@ class FakeApi(object): response_types_map = {} return self.api_client.call_api( - '/fake/test-query-paramters', 'PUT', + '/fake/test-query-parameters', 'PUT', path_params, query_params, header_params, diff --git a/samples/client/petstore/python-tornado/petstore_api/api_client.py b/samples/client/petstore/python-tornado/petstore_api/api_client.py index 6d29ac71238..8c41c345d57 100644 --- a/samples/client/petstore/python-tornado/petstore_api/api_client.py +++ b/samples/client/petstore/python-tornado/petstore_api/api_client.py @@ -539,12 +539,12 @@ class ApiClient(object): else: return content_types[0] - def update_params_for_auth(self, headers, querys, auth_settings, + def update_params_for_auth(self, headers, queries, auth_settings, request_auth=None): """Updates header and query params based on authentication setting. :param headers: Header parameters dict to be updated. - :param querys: Query parameters tuple list to be updated. + :param queries: Query parameters tuple list to be updated. :param auth_settings: Authentication setting identifiers list. :param request_auth: if set, the provided settings will override the token in the configuration. @@ -553,19 +553,19 @@ class ApiClient(object): return if request_auth: - self._apply_auth_params(headers, querys, request_auth) + self._apply_auth_params(headers, queries, request_auth) return for auth in auth_settings: auth_setting = self.configuration.auth_settings().get(auth) if auth_setting: - self._apply_auth_params(headers, querys, auth_setting) + self._apply_auth_params(headers, queries, auth_setting) - def _apply_auth_params(self, headers, querys, auth_setting): + def _apply_auth_params(self, headers, queries, auth_setting): """Updates the request parameters based on a single auth_setting :param headers: Header parameters dict to be updated. - :param querys: Query parameters tuple list to be updated. + :param queries: Query parameters tuple list to be updated. :param auth_setting: auth settings for the endpoint """ if auth_setting['in'] == 'cookie': @@ -573,7 +573,7 @@ class ApiClient(object): elif auth_setting['in'] == 'header': headers[auth_setting['key']] = auth_setting['value'] elif auth_setting['in'] == 'query': - querys.append((auth_setting['key'], auth_setting['value'])) + queries.append((auth_setting['key'], auth_setting['value'])) else: raise ApiValueError( 'Authentication token must be in `query` or `header`' diff --git a/samples/client/petstore/python/git_push.sh b/samples/client/petstore/python/git_push.sh index 9405f72e950..18f86b99e82 100644 --- a/samples/client/petstore/python/git_push.sh +++ b/samples/client/petstore/python/git_push.sh @@ -1,7 +1,7 @@ #!/bin/sh # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" git_user_id=$1 git_repo_id=$2 diff --git a/samples/client/petstore/python/petstore_api/api_client.py b/samples/client/petstore/python/petstore_api/api_client.py index 9b8ea1d5d1a..558eded5596 100644 --- a/samples/client/petstore/python/petstore_api/api_client.py +++ b/samples/client/petstore/python/petstore_api/api_client.py @@ -588,12 +588,12 @@ class ApiClient(object): else: return content_types[0] - def update_params_for_auth(self, headers, querys, auth_settings, + def update_params_for_auth(self, headers, queries, auth_settings, resource_path, method, body): """Updates header and query params based on authentication setting. :param headers: Header parameters dict to be updated. - :param querys: Query parameters tuple list to be updated. + :param queries: Query parameters tuple list to be updated. :param auth_settings: Authentication setting identifiers list. :param resource_path: A string representation of the HTTP request resource path. :param method: A string representation of the HTTP request method. @@ -612,7 +612,7 @@ class ApiClient(object): if auth_setting['type'] != 'http-signature': headers[auth_setting['key']] = auth_setting['value'] elif auth_setting['in'] == 'query': - querys.append((auth_setting['key'], auth_setting['value'])) + queries.append((auth_setting['key'], auth_setting['value'])) else: raise ApiValueError( 'Authentication token must be in `query` or `header`' diff --git a/samples/client/petstore/python/petstore_api/model/cat.py b/samples/client/petstore/python/petstore_api/model/cat.py index be46fe5abd8..9a42057a87e 100644 --- a/samples/client/petstore/python/petstore_api/model/cat.py +++ b/samples/client/petstore/python/petstore_api/model/cat.py @@ -308,7 +308,7 @@ class Cat(ModelComposed): # we need this here to make our import statements work # we must store _composed_schemas in here so the code is only run # when we invoke this method. If we kept this at the class - # level we would get an error beause the class level + # level we would get an error because the class level # code would be run when this module is imported, and these composed # classes don't exist yet because their module has not finished # loading diff --git a/samples/client/petstore/python/petstore_api/model/child.py b/samples/client/petstore/python/petstore_api/model/child.py index 556f58a84d2..b63ce3fce77 100644 --- a/samples/client/petstore/python/petstore_api/model/child.py +++ b/samples/client/petstore/python/petstore_api/model/child.py @@ -305,7 +305,7 @@ class Child(ModelComposed): # we need this here to make our import statements work # we must store _composed_schemas in here so the code is only run # when we invoke this method. If we kept this at the class - # level we would get an error beause the class level + # level we would get an error because the class level # code would be run when this module is imported, and these composed # classes don't exist yet because their module has not finished # loading diff --git a/samples/client/petstore/python/petstore_api/model/child_cat.py b/samples/client/petstore/python/petstore_api/model/child_cat.py index 3644df82fc5..355321a2c4c 100644 --- a/samples/client/petstore/python/petstore_api/model/child_cat.py +++ b/samples/client/petstore/python/petstore_api/model/child_cat.py @@ -304,7 +304,7 @@ class ChildCat(ModelComposed): # we need this here to make our import statements work # we must store _composed_schemas in here so the code is only run # when we invoke this method. If we kept this at the class - # level we would get an error beause the class level + # level we would get an error because the class level # code would be run when this module is imported, and these composed # classes don't exist yet because their module has not finished # loading diff --git a/samples/client/petstore/python/petstore_api/model/child_dog.py b/samples/client/petstore/python/petstore_api/model/child_dog.py index 65f1a37e383..ba163cc764c 100644 --- a/samples/client/petstore/python/petstore_api/model/child_dog.py +++ b/samples/client/petstore/python/petstore_api/model/child_dog.py @@ -304,7 +304,7 @@ class ChildDog(ModelComposed): # we need this here to make our import statements work # we must store _composed_schemas in here so the code is only run # when we invoke this method. If we kept this at the class - # level we would get an error beause the class level + # level we would get an error because the class level # code would be run when this module is imported, and these composed # classes don't exist yet because their module has not finished # loading diff --git a/samples/client/petstore/python/petstore_api/model/child_lizard.py b/samples/client/petstore/python/petstore_api/model/child_lizard.py index cfb0e5426f7..1a886786955 100644 --- a/samples/client/petstore/python/petstore_api/model/child_lizard.py +++ b/samples/client/petstore/python/petstore_api/model/child_lizard.py @@ -304,7 +304,7 @@ class ChildLizard(ModelComposed): # we need this here to make our import statements work # we must store _composed_schemas in here so the code is only run # when we invoke this method. If we kept this at the class - # level we would get an error beause the class level + # level we would get an error because the class level # code would be run when this module is imported, and these composed # classes don't exist yet because their module has not finished # loading diff --git a/samples/client/petstore/python/petstore_api/model/dog.py b/samples/client/petstore/python/petstore_api/model/dog.py index 4a20dafa46c..b6eed138105 100644 --- a/samples/client/petstore/python/petstore_api/model/dog.py +++ b/samples/client/petstore/python/petstore_api/model/dog.py @@ -308,7 +308,7 @@ class Dog(ModelComposed): # we need this here to make our import statements work # we must store _composed_schemas in here so the code is only run # when we invoke this method. If we kept this at the class - # level we would get an error beause the class level + # level we would get an error because the class level # code would be run when this module is imported, and these composed # classes don't exist yet because their module has not finished # loading diff --git a/samples/client/petstore/python/petstore_api/model/parent.py b/samples/client/petstore/python/petstore_api/model/parent.py index e43f678253d..de116a11c76 100644 --- a/samples/client/petstore/python/petstore_api/model/parent.py +++ b/samples/client/petstore/python/petstore_api/model/parent.py @@ -301,7 +301,7 @@ class Parent(ModelComposed): # we need this here to make our import statements work # we must store _composed_schemas in here so the code is only run # when we invoke this method. If we kept this at the class - # level we would get an error beause the class level + # level we would get an error because the class level # code would be run when this module is imported, and these composed # classes don't exist yet because their module has not finished # loading diff --git a/samples/client/petstore/python/petstore_api/model/parent_pet.py b/samples/client/petstore/python/petstore_api/model/parent_pet.py index fd774033ee3..df59bb60ed3 100644 --- a/samples/client/petstore/python/petstore_api/model/parent_pet.py +++ b/samples/client/petstore/python/petstore_api/model/parent_pet.py @@ -308,7 +308,7 @@ class ParentPet(ModelComposed): # we need this here to make our import statements work # we must store _composed_schemas in here so the code is only run # when we invoke this method. If we kept this at the class - # level we would get an error beause the class level + # level we would get an error because the class level # code would be run when this module is imported, and these composed # classes don't exist yet because their module has not finished # loading diff --git a/samples/client/petstore/python/petstore_api/model_utils.py b/samples/client/petstore/python/petstore_api/model_utils.py index 955ad1cba46..c9fc0cf0896 100644 --- a/samples/client/petstore/python/petstore_api/model_utils.py +++ b/samples/client/petstore/python/petstore_api/model_utils.py @@ -446,7 +446,7 @@ class ModelSimple(OpenApiModel): ) def __contains__(self, name): - """used by `in` operator to check if an attrbute value was set in an instance: `'attr' in instance`""" + """used by `in` operator to check if an attribute value was set in an instance: `'attr' in instance`""" if name in self.required_properties: return name in self.__dict__ @@ -501,7 +501,7 @@ class ModelNormal(OpenApiModel): ) def __contains__(self, name): - """used by `in` operator to check if an attrbute value was set in an instance: `'attr' in instance`""" + """used by `in` operator to check if an attribute value was set in an instance: `'attr' in instance`""" if name in self.required_properties: return name in self.__dict__ @@ -648,7 +648,7 @@ class ModelComposed(OpenApiModel): return value def __contains__(self, name): - """used by `in` operator to check if an attrbute value was set in an instance: `'attr' in instance`""" + """used by `in` operator to check if an attribute value was set in an instance: `'attr' in instance`""" if name in self.required_properties: return name in self.__dict__ diff --git a/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/git_push.sh b/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/git_push.sh index 9405f72e950..18f86b99e82 100644 --- a/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/git_push.sh +++ b/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/git_push.sh @@ -1,7 +1,7 @@ #!/bin/sh # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" git_user_id=$1 git_repo_id=$2 diff --git a/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/api_client.py b/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/api_client.py index 9b8ea1d5d1a..558eded5596 100644 --- a/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/api_client.py +++ b/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/api_client.py @@ -588,12 +588,12 @@ class ApiClient(object): else: return content_types[0] - def update_params_for_auth(self, headers, querys, auth_settings, + def update_params_for_auth(self, headers, queries, auth_settings, resource_path, method, body): """Updates header and query params based on authentication setting. :param headers: Header parameters dict to be updated. - :param querys: Query parameters tuple list to be updated. + :param queries: Query parameters tuple list to be updated. :param auth_settings: Authentication setting identifiers list. :param resource_path: A string representation of the HTTP request resource path. :param method: A string representation of the HTTP request method. @@ -612,7 +612,7 @@ class ApiClient(object): if auth_setting['type'] != 'http-signature': headers[auth_setting['key']] = auth_setting['value'] elif auth_setting['in'] == 'query': - querys.append((auth_setting['key'], auth_setting['value'])) + queries.append((auth_setting['key'], auth_setting['value'])) else: raise ApiValueError( 'Authentication token must be in `query` or `header`' diff --git a/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/cat.py b/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/cat.py index c6714183384..dd757730af1 100644 --- a/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/cat.py +++ b/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/cat.py @@ -301,7 +301,7 @@ class Cat(ModelComposed): # we need this here to make our import statements work # we must store _composed_schemas in here so the code is only run # when we invoke this method. If we kept this at the class - # level we would get an error beause the class level + # level we would get an error because the class level # code would be run when this module is imported, and these composed # classes don't exist yet because their module has not finished # loading diff --git a/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/child.py b/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/child.py index 02324cb640c..657121c1a91 100644 --- a/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/child.py +++ b/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/child.py @@ -298,7 +298,7 @@ class Child(ModelComposed): # we need this here to make our import statements work # we must store _composed_schemas in here so the code is only run # when we invoke this method. If we kept this at the class - # level we would get an error beause the class level + # level we would get an error because the class level # code would be run when this module is imported, and these composed # classes don't exist yet because their module has not finished # loading diff --git a/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/child_cat.py b/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/child_cat.py index fe267715ade..a0f68d481fc 100644 --- a/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/child_cat.py +++ b/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/child_cat.py @@ -297,7 +297,7 @@ class ChildCat(ModelComposed): # we need this here to make our import statements work # we must store _composed_schemas in here so the code is only run # when we invoke this method. If we kept this at the class - # level we would get an error beause the class level + # level we would get an error because the class level # code would be run when this module is imported, and these composed # classes don't exist yet because their module has not finished # loading diff --git a/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/child_dog.py b/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/child_dog.py index c1b0dc5e868..55c39ff6518 100644 --- a/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/child_dog.py +++ b/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/child_dog.py @@ -297,7 +297,7 @@ class ChildDog(ModelComposed): # we need this here to make our import statements work # we must store _composed_schemas in here so the code is only run # when we invoke this method. If we kept this at the class - # level we would get an error beause the class level + # level we would get an error because the class level # code would be run when this module is imported, and these composed # classes don't exist yet because their module has not finished # loading diff --git a/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/child_lizard.py b/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/child_lizard.py index ef95bd5b8ca..e1f30dcb774 100644 --- a/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/child_lizard.py +++ b/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/child_lizard.py @@ -297,7 +297,7 @@ class ChildLizard(ModelComposed): # we need this here to make our import statements work # we must store _composed_schemas in here so the code is only run # when we invoke this method. If we kept this at the class - # level we would get an error beause the class level + # level we would get an error because the class level # code would be run when this module is imported, and these composed # classes don't exist yet because their module has not finished # loading diff --git a/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/dog.py b/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/dog.py index d01bdc6e34d..d4a4e0192f6 100644 --- a/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/dog.py +++ b/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/dog.py @@ -301,7 +301,7 @@ class Dog(ModelComposed): # we need this here to make our import statements work # we must store _composed_schemas in here so the code is only run # when we invoke this method. If we kept this at the class - # level we would get an error beause the class level + # level we would get an error because the class level # code would be run when this module is imported, and these composed # classes don't exist yet because their module has not finished # loading diff --git a/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/parent.py b/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/parent.py index 13a722ff4b3..4b17c55c74a 100644 --- a/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/parent.py +++ b/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/parent.py @@ -294,7 +294,7 @@ class Parent(ModelComposed): # we need this here to make our import statements work # we must store _composed_schemas in here so the code is only run # when we invoke this method. If we kept this at the class - # level we would get an error beause the class level + # level we would get an error because the class level # code would be run when this module is imported, and these composed # classes don't exist yet because their module has not finished # loading diff --git a/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/parent_pet.py b/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/parent_pet.py index a20c0d1b867..bd36702a7a9 100644 --- a/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/parent_pet.py +++ b/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model/parent_pet.py @@ -301,7 +301,7 @@ class ParentPet(ModelComposed): # we need this here to make our import statements work # we must store _composed_schemas in here so the code is only run # when we invoke this method. If we kept this at the class - # level we would get an error beause the class level + # level we would get an error because the class level # code would be run when this module is imported, and these composed # classes don't exist yet because their module has not finished # loading diff --git a/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model_utils.py b/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model_utils.py index 955ad1cba46..c9fc0cf0896 100644 --- a/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model_utils.py +++ b/samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent/petstore_api/model_utils.py @@ -446,7 +446,7 @@ class ModelSimple(OpenApiModel): ) def __contains__(self, name): - """used by `in` operator to check if an attrbute value was set in an instance: `'attr' in instance`""" + """used by `in` operator to check if an attribute value was set in an instance: `'attr' in instance`""" if name in self.required_properties: return name in self.__dict__ @@ -501,7 +501,7 @@ class ModelNormal(OpenApiModel): ) def __contains__(self, name): - """used by `in` operator to check if an attrbute value was set in an instance: `'attr' in instance`""" + """used by `in` operator to check if an attribute value was set in an instance: `'attr' in instance`""" if name in self.required_properties: return name in self.__dict__ @@ -648,7 +648,7 @@ class ModelComposed(OpenApiModel): return value def __contains__(self, name): - """used by `in` operator to check if an attrbute value was set in an instance: `'attr' in instance`""" + """used by `in` operator to check if an attribute value was set in an instance: `'attr' in instance`""" if name in self.required_properties: return name in self.__dict__ diff --git a/samples/client/petstore/ruby-faraday/README.md b/samples/client/petstore/ruby-faraday/README.md index e41a2d3aa67..289f8a0833d 100644 --- a/samples/client/petstore/ruby-faraday/README.md +++ b/samples/client/petstore/ruby-faraday/README.md @@ -93,7 +93,7 @@ Class | Method | HTTP request | Description *Petstore::FakeApi* | [**test_group_parameters**](docs/FakeApi.md#test_group_parameters) | **DELETE** /fake | Fake endpoint to test group parameters (optional) *Petstore::FakeApi* | [**test_inline_additional_properties**](docs/FakeApi.md#test_inline_additional_properties) | **POST** /fake/inline-additionalProperties | test inline additionalProperties *Petstore::FakeApi* | [**test_json_form_data**](docs/FakeApi.md#test_json_form_data) | **GET** /fake/jsonFormData | test json serialization of form data -*Petstore::FakeApi* | [**test_query_parameter_collection_format**](docs/FakeApi.md#test_query_parameter_collection_format) | **PUT** /fake/test-query-paramters | +*Petstore::FakeApi* | [**test_query_parameter_collection_format**](docs/FakeApi.md#test_query_parameter_collection_format) | **PUT** /fake/test-query-parameters | *Petstore::FakeClassnameTags123Api* | [**test_classname**](docs/FakeClassnameTags123Api.md#test_classname) | **PATCH** /fake_classname_test | To test class name in snake case *Petstore::PetApi* | [**add_pet**](docs/PetApi.md#add_pet) | **POST** /pet | Add a new pet to the store *Petstore::PetApi* | [**delete_pet**](docs/PetApi.md#delete_pet) | **DELETE** /pet/{petId} | Deletes a pet diff --git a/samples/client/petstore/ruby-faraday/docs/FakeApi.md b/samples/client/petstore/ruby-faraday/docs/FakeApi.md index 662d93ea54c..b704e78f9d3 100644 --- a/samples/client/petstore/ruby-faraday/docs/FakeApi.md +++ b/samples/client/petstore/ruby-faraday/docs/FakeApi.md @@ -20,7 +20,7 @@ All URIs are relative to *http://petstore.swagger.io:80/v2* | [**test_group_parameters**](FakeApi.md#test_group_parameters) | **DELETE** /fake | Fake endpoint to test group parameters (optional) | | [**test_inline_additional_properties**](FakeApi.md#test_inline_additional_properties) | **POST** /fake/inline-additionalProperties | test inline additionalProperties | | [**test_json_form_data**](FakeApi.md#test_json_form_data) | **GET** /fake/jsonFormData | test json serialization of form data | -| [**test_query_parameter_collection_format**](FakeApi.md#test_query_parameter_collection_format) | **PUT** /fake/test-query-paramters | | +| [**test_query_parameter_collection_format**](FakeApi.md#test_query_parameter_collection_format) | **PUT** /fake/test-query-parameters | | ## fake_health_get diff --git a/samples/client/petstore/ruby-faraday/git_push.sh b/samples/client/petstore/ruby-faraday/git_push.sh index 9405f72e950..18f86b99e82 100644 --- a/samples/client/petstore/ruby-faraday/git_push.sh +++ b/samples/client/petstore/ruby-faraday/git_push.sh @@ -1,7 +1,7 @@ #!/bin/sh # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" git_user_id=$1 git_repo_id=$2 diff --git a/samples/client/petstore/ruby-faraday/lib/petstore/api/fake_api.rb b/samples/client/petstore/ruby-faraday/lib/petstore/api/fake_api.rb index 3b2644abc44..a401da83042 100644 --- a/samples/client/petstore/ruby-faraday/lib/petstore/api/fake_api.rb +++ b/samples/client/petstore/ruby-faraday/lib/petstore/api/fake_api.rb @@ -1234,7 +1234,7 @@ module Petstore fail ArgumentError, "Missing the required parameter 'context' when calling FakeApi.test_query_parameter_collection_format" end # resource path - local_var_path = '/fake/test-query-paramters' + local_var_path = '/fake/test-query-parameters' # query parameters query_params = opts[:query_params] || {} diff --git a/samples/client/petstore/ruby-faraday/lib/petstore/api_client.rb b/samples/client/petstore/ruby-faraday/lib/petstore/api_client.rb index 648ce958774..431764682be 100644 --- a/samples/client/petstore/ruby-faraday/lib/petstore/api_client.rb +++ b/samples/client/petstore/ruby-faraday/lib/petstore/api_client.rb @@ -301,7 +301,7 @@ module Petstore @config.base_url(opts[:operation]) + path end - # Update hearder and query params based on authentication settings. + # Update header and query params based on authentication settings. # # @param [Hash] header_params Header parameters # @param [Hash] query_params Query parameters diff --git a/samples/client/petstore/ruby/README.md b/samples/client/petstore/ruby/README.md index e41a2d3aa67..289f8a0833d 100644 --- a/samples/client/petstore/ruby/README.md +++ b/samples/client/petstore/ruby/README.md @@ -93,7 +93,7 @@ Class | Method | HTTP request | Description *Petstore::FakeApi* | [**test_group_parameters**](docs/FakeApi.md#test_group_parameters) | **DELETE** /fake | Fake endpoint to test group parameters (optional) *Petstore::FakeApi* | [**test_inline_additional_properties**](docs/FakeApi.md#test_inline_additional_properties) | **POST** /fake/inline-additionalProperties | test inline additionalProperties *Petstore::FakeApi* | [**test_json_form_data**](docs/FakeApi.md#test_json_form_data) | **GET** /fake/jsonFormData | test json serialization of form data -*Petstore::FakeApi* | [**test_query_parameter_collection_format**](docs/FakeApi.md#test_query_parameter_collection_format) | **PUT** /fake/test-query-paramters | +*Petstore::FakeApi* | [**test_query_parameter_collection_format**](docs/FakeApi.md#test_query_parameter_collection_format) | **PUT** /fake/test-query-parameters | *Petstore::FakeClassnameTags123Api* | [**test_classname**](docs/FakeClassnameTags123Api.md#test_classname) | **PATCH** /fake_classname_test | To test class name in snake case *Petstore::PetApi* | [**add_pet**](docs/PetApi.md#add_pet) | **POST** /pet | Add a new pet to the store *Petstore::PetApi* | [**delete_pet**](docs/PetApi.md#delete_pet) | **DELETE** /pet/{petId} | Deletes a pet diff --git a/samples/client/petstore/ruby/docs/FakeApi.md b/samples/client/petstore/ruby/docs/FakeApi.md index 662d93ea54c..b704e78f9d3 100644 --- a/samples/client/petstore/ruby/docs/FakeApi.md +++ b/samples/client/petstore/ruby/docs/FakeApi.md @@ -20,7 +20,7 @@ All URIs are relative to *http://petstore.swagger.io:80/v2* | [**test_group_parameters**](FakeApi.md#test_group_parameters) | **DELETE** /fake | Fake endpoint to test group parameters (optional) | | [**test_inline_additional_properties**](FakeApi.md#test_inline_additional_properties) | **POST** /fake/inline-additionalProperties | test inline additionalProperties | | [**test_json_form_data**](FakeApi.md#test_json_form_data) | **GET** /fake/jsonFormData | test json serialization of form data | -| [**test_query_parameter_collection_format**](FakeApi.md#test_query_parameter_collection_format) | **PUT** /fake/test-query-paramters | | +| [**test_query_parameter_collection_format**](FakeApi.md#test_query_parameter_collection_format) | **PUT** /fake/test-query-parameters | | ## fake_health_get diff --git a/samples/client/petstore/ruby/git_push.sh b/samples/client/petstore/ruby/git_push.sh index 9405f72e950..18f86b99e82 100644 --- a/samples/client/petstore/ruby/git_push.sh +++ b/samples/client/petstore/ruby/git_push.sh @@ -1,7 +1,7 @@ #!/bin/sh # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" git_user_id=$1 git_repo_id=$2 diff --git a/samples/client/petstore/ruby/lib/petstore/api/fake_api.rb b/samples/client/petstore/ruby/lib/petstore/api/fake_api.rb index 3b2644abc44..a401da83042 100644 --- a/samples/client/petstore/ruby/lib/petstore/api/fake_api.rb +++ b/samples/client/petstore/ruby/lib/petstore/api/fake_api.rb @@ -1234,7 +1234,7 @@ module Petstore fail ArgumentError, "Missing the required parameter 'context' when calling FakeApi.test_query_parameter_collection_format" end # resource path - local_var_path = '/fake/test-query-paramters' + local_var_path = '/fake/test-query-parameters' # query parameters query_params = opts[:query_params] || {} diff --git a/samples/client/petstore/ruby/lib/petstore/api_client.rb b/samples/client/petstore/ruby/lib/petstore/api_client.rb index 283736531dc..0dcd50a4d1c 100644 --- a/samples/client/petstore/ruby/lib/petstore/api_client.rb +++ b/samples/client/petstore/ruby/lib/petstore/api_client.rb @@ -296,7 +296,7 @@ module Petstore @config.base_url(opts[:operation]) + path end - # Update hearder and query params based on authentication settings. + # Update header and query params based on authentication settings. # # @param [Hash] header_params Header parameters # @param [Hash] query_params Query parameters diff --git a/samples/client/petstore/rust/hyper/petstore/git_push.sh b/samples/client/petstore/rust/hyper/petstore/git_push.sh index 9405f72e950..18f86b99e82 100644 --- a/samples/client/petstore/rust/hyper/petstore/git_push.sh +++ b/samples/client/petstore/rust/hyper/petstore/git_push.sh @@ -1,7 +1,7 @@ #!/bin/sh # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" git_user_id=$1 git_repo_id=$2 diff --git a/samples/client/petstore/rust/reqwest/petstore-async/git_push.sh b/samples/client/petstore/rust/reqwest/petstore-async/git_push.sh index 9405f72e950..18f86b99e82 100644 --- a/samples/client/petstore/rust/reqwest/petstore-async/git_push.sh +++ b/samples/client/petstore/rust/reqwest/petstore-async/git_push.sh @@ -1,7 +1,7 @@ #!/bin/sh # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" git_user_id=$1 git_repo_id=$2 diff --git a/samples/client/petstore/rust/reqwest/petstore/git_push.sh b/samples/client/petstore/rust/reqwest/petstore/git_push.sh index 9405f72e950..18f86b99e82 100644 --- a/samples/client/petstore/rust/reqwest/petstore/git_push.sh +++ b/samples/client/petstore/rust/reqwest/petstore/git_push.sh @@ -1,7 +1,7 @@ #!/bin/sh # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" git_user_id=$1 git_repo_id=$2 diff --git a/samples/client/petstore/scala-akka/src/main/scala/org/openapitools/client/api/UserApi.scala b/samples/client/petstore/scala-akka/src/main/scala/org/openapitools/client/api/UserApi.scala index ce3c362f553..880c084c64c 100644 --- a/samples/client/petstore/scala-akka/src/main/scala/org/openapitools/client/api/UserApi.scala +++ b/samples/client/petstore/scala-akka/src/main/scala/org/openapitools/client/api/UserApi.scala @@ -115,7 +115,7 @@ class UserApi(baseUrl: String) { * Headers : * Set-Cookie - Cookie authentication key for use with the `auth_cookie` apiKey authentication. * X-Rate-Limit - calls per hour allowed by the user - * X-Expires-After - date in UTC when toekn expires + * X-Expires-After - date in UTC when token expires * code 400 : (Invalid username/password supplied) * * @param username The user name for login diff --git a/samples/client/petstore/scala-akka/src/main/scala/org/openapitools/client/core/requests.scala b/samples/client/petstore/scala-akka/src/main/scala/org/openapitools/client/core/requests.scala index f26a30cb278..4d962d76181 100644 --- a/samples/client/petstore/scala-akka/src/main/scala/org/openapitools/client/core/requests.scala +++ b/samples/client/petstore/scala-akka/src/main/scala/org/openapitools/client/core/requests.scala @@ -74,7 +74,7 @@ object ApiMethods { trait ApiModel /** - * Single trait defining a credential that can be transformed to a paramName / paramValue tupple + * Single trait defining a credential that can be transformed to a paramName / paramValue tuple */ sealed trait Credentials { def asQueryParam: Option[(String, String)] = None @@ -169,7 +169,7 @@ object CollectionFormats { object ParametersMap { /** - * Pimp parameters maps (Map[String, Any]) in order to transform them in a sequence of String -> Any tupples, + * Pimp parameters maps (Map[String, Any]) in order to transform them in a sequence of String -> Any tuples, * with valid url-encoding, arrays handling, files preservation, ... */ implicit class ParametersMapImprovements(val m: Map[String, Any]) { diff --git a/samples/client/petstore/scala-httpclient-deprecated/git_push.sh b/samples/client/petstore/scala-httpclient-deprecated/git_push.sh index 9405f72e950..18f86b99e82 100644 --- a/samples/client/petstore/scala-httpclient-deprecated/git_push.sh +++ b/samples/client/petstore/scala-httpclient-deprecated/git_push.sh @@ -1,7 +1,7 @@ #!/bin/sh # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" git_user_id=$1 git_repo_id=$2 diff --git a/samples/client/petstore/scala-sttp/src/main/scala/org/openapitools/client/api/UserApi.scala b/samples/client/petstore/scala-sttp/src/main/scala/org/openapitools/client/api/UserApi.scala index b3a39fea84a..68e147b3d0f 100644 --- a/samples/client/petstore/scala-sttp/src/main/scala/org/openapitools/client/api/UserApi.scala +++ b/samples/client/petstore/scala-sttp/src/main/scala/org/openapitools/client/api/UserApi.scala @@ -120,7 +120,7 @@ class UserApi(baseUrl: String) { * Headers : * Set-Cookie - Cookie authentication key for use with the `api_key` apiKey authentication. * X-Rate-Limit - calls per hour allowed by the user - * X-Expires-After - date in UTC when toekn expires + * X-Expires-After - date in UTC when token expires * code 400 : (Invalid username/password supplied) * * @param username The user name for login diff --git a/samples/client/petstore/swift5/alamofireLibrary/git_push.sh b/samples/client/petstore/swift5/alamofireLibrary/git_push.sh index 9405f72e950..18f86b99e82 100644 --- a/samples/client/petstore/swift5/alamofireLibrary/git_push.sh +++ b/samples/client/petstore/swift5/alamofireLibrary/git_push.sh @@ -1,7 +1,7 @@ #!/bin/sh # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" git_user_id=$1 git_repo_id=$2 diff --git a/samples/client/petstore/swift5/combineLibrary/git_push.sh b/samples/client/petstore/swift5/combineLibrary/git_push.sh index 9405f72e950..18f86b99e82 100644 --- a/samples/client/petstore/swift5/combineLibrary/git_push.sh +++ b/samples/client/petstore/swift5/combineLibrary/git_push.sh @@ -1,7 +1,7 @@ #!/bin/sh # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" git_user_id=$1 git_repo_id=$2 diff --git a/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/APIs/FakeAPI.swift b/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/APIs/FakeAPI.swift index aaff9fe6752..ebe4c97a80c 100644 --- a/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/APIs/FakeAPI.swift +++ b/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/APIs/FakeAPI.swift @@ -750,7 +750,7 @@ open class FakeAPI { } /** - - PUT /fake/test-query-paramters + - PUT /fake/test-query-parameters - To test the collection format in query parameters - parameter pipe: (query) - parameter ioutil: (query) @@ -760,7 +760,7 @@ open class FakeAPI { - returns: RequestBuilder */ open class func testQueryParameterCollectionFormatWithRequestBuilder(pipe: [String], ioutil: [String], http: [String], url: [String], context: [String]) -> RequestBuilder { - let localVariablePath = "/fake/test-query-paramters" + let localVariablePath = "/fake/test-query-parameters" let localVariableURLString = PetstoreClient.basePath + localVariablePath let localVariableParameters: [String: Any]? = nil diff --git a/samples/client/petstore/swift5/default/README.md b/samples/client/petstore/swift5/default/README.md index a8c7405dd3e..b4551163615 100644 --- a/samples/client/petstore/swift5/default/README.md +++ b/samples/client/petstore/swift5/default/README.md @@ -39,7 +39,7 @@ Class | Method | HTTP request | Description *FakeAPI* | [**testGroupParameters**](docs/FakeAPI.md#testgroupparameters) | **DELETE** /fake | Fake endpoint to test group parameters (optional) *FakeAPI* | [**testInlineAdditionalProperties**](docs/FakeAPI.md#testinlineadditionalproperties) | **POST** /fake/inline-additionalProperties | test inline additionalProperties *FakeAPI* | [**testJsonFormData**](docs/FakeAPI.md#testjsonformdata) | **GET** /fake/jsonFormData | test json serialization of form data -*FakeAPI* | [**testQueryParameterCollectionFormat**](docs/FakeAPI.md#testqueryparametercollectionformat) | **PUT** /fake/test-query-paramters | +*FakeAPI* | [**testQueryParameterCollectionFormat**](docs/FakeAPI.md#testqueryparametercollectionformat) | **PUT** /fake/test-query-parameters | *FakeClassnameTags123API* | [**testClassname**](docs/FakeClassnameTags123API.md#testclassname) | **PATCH** /fake_classname_test | To test class name in snake case *PetAPI* | [**addPet**](docs/PetAPI.md#addpet) | **POST** /pet | Add a new pet to the store *PetAPI* | [**deletePet**](docs/PetAPI.md#deletepet) | **DELETE** /pet/{petId} | Deletes a pet diff --git a/samples/client/petstore/swift5/default/docs/FakeAPI.md b/samples/client/petstore/swift5/default/docs/FakeAPI.md index 106dec1b839..e2df98a9d44 100644 --- a/samples/client/petstore/swift5/default/docs/FakeAPI.md +++ b/samples/client/petstore/swift5/default/docs/FakeAPI.md @@ -17,7 +17,7 @@ Method | HTTP request | Description [**testGroupParameters**](FakeAPI.md#testgroupparameters) | **DELETE** /fake | Fake endpoint to test group parameters (optional) [**testInlineAdditionalProperties**](FakeAPI.md#testinlineadditionalproperties) | **POST** /fake/inline-additionalProperties | test inline additionalProperties [**testJsonFormData**](FakeAPI.md#testjsonformdata) | **GET** /fake/jsonFormData | test json serialization of form data -[**testQueryParameterCollectionFormat**](FakeAPI.md#testqueryparametercollectionformat) | **PUT** /fake/test-query-paramters | +[**testQueryParameterCollectionFormat**](FakeAPI.md#testqueryparametercollectionformat) | **PUT** /fake/test-query-parameters | # **createXmlItem** diff --git a/samples/client/petstore/swift5/default/git_push.sh b/samples/client/petstore/swift5/default/git_push.sh index 9405f72e950..18f86b99e82 100644 --- a/samples/client/petstore/swift5/default/git_push.sh +++ b/samples/client/petstore/swift5/default/git_push.sh @@ -1,7 +1,7 @@ #!/bin/sh # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" git_user_id=$1 git_repo_id=$2 diff --git a/samples/client/petstore/swift5/deprecated/git_push.sh b/samples/client/petstore/swift5/deprecated/git_push.sh index 9405f72e950..18f86b99e82 100644 --- a/samples/client/petstore/swift5/deprecated/git_push.sh +++ b/samples/client/petstore/swift5/deprecated/git_push.sh @@ -1,7 +1,7 @@ #!/bin/sh # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" git_user_id=$1 git_repo_id=$2 diff --git a/samples/client/petstore/swift5/nonPublicApi/git_push.sh b/samples/client/petstore/swift5/nonPublicApi/git_push.sh index 9405f72e950..18f86b99e82 100644 --- a/samples/client/petstore/swift5/nonPublicApi/git_push.sh +++ b/samples/client/petstore/swift5/nonPublicApi/git_push.sh @@ -1,7 +1,7 @@ #!/bin/sh # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" git_user_id=$1 git_repo_id=$2 diff --git a/samples/client/petstore/swift5/objcCompatible/git_push.sh b/samples/client/petstore/swift5/objcCompatible/git_push.sh index 9405f72e950..18f86b99e82 100644 --- a/samples/client/petstore/swift5/objcCompatible/git_push.sh +++ b/samples/client/petstore/swift5/objcCompatible/git_push.sh @@ -1,7 +1,7 @@ #!/bin/sh # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" git_user_id=$1 git_repo_id=$2 diff --git a/samples/client/petstore/swift5/oneOf/git_push.sh b/samples/client/petstore/swift5/oneOf/git_push.sh index 9405f72e950..18f86b99e82 100644 --- a/samples/client/petstore/swift5/oneOf/git_push.sh +++ b/samples/client/petstore/swift5/oneOf/git_push.sh @@ -1,7 +1,7 @@ #!/bin/sh # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" git_user_id=$1 git_repo_id=$2 diff --git a/samples/client/petstore/swift5/promisekitLibrary/git_push.sh b/samples/client/petstore/swift5/promisekitLibrary/git_push.sh index 9405f72e950..18f86b99e82 100644 --- a/samples/client/petstore/swift5/promisekitLibrary/git_push.sh +++ b/samples/client/petstore/swift5/promisekitLibrary/git_push.sh @@ -1,7 +1,7 @@ #!/bin/sh # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" git_user_id=$1 git_repo_id=$2 diff --git a/samples/client/petstore/swift5/readonlyProperties/git_push.sh b/samples/client/petstore/swift5/readonlyProperties/git_push.sh index 9405f72e950..18f86b99e82 100644 --- a/samples/client/petstore/swift5/readonlyProperties/git_push.sh +++ b/samples/client/petstore/swift5/readonlyProperties/git_push.sh @@ -1,7 +1,7 @@ #!/bin/sh # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" git_user_id=$1 git_repo_id=$2 diff --git a/samples/client/petstore/swift5/resultLibrary/git_push.sh b/samples/client/petstore/swift5/resultLibrary/git_push.sh index 9405f72e950..18f86b99e82 100644 --- a/samples/client/petstore/swift5/resultLibrary/git_push.sh +++ b/samples/client/petstore/swift5/resultLibrary/git_push.sh @@ -1,7 +1,7 @@ #!/bin/sh # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" git_user_id=$1 git_repo_id=$2 diff --git a/samples/client/petstore/swift5/rxswiftLibrary/git_push.sh b/samples/client/petstore/swift5/rxswiftLibrary/git_push.sh index 9405f72e950..18f86b99e82 100644 --- a/samples/client/petstore/swift5/rxswiftLibrary/git_push.sh +++ b/samples/client/petstore/swift5/rxswiftLibrary/git_push.sh @@ -1,7 +1,7 @@ #!/bin/sh # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" git_user_id=$1 git_repo_id=$2 diff --git a/samples/client/petstore/swift5/urlsessionLibrary/git_push.sh b/samples/client/petstore/swift5/urlsessionLibrary/git_push.sh index 9405f72e950..18f86b99e82 100644 --- a/samples/client/petstore/swift5/urlsessionLibrary/git_push.sh +++ b/samples/client/petstore/swift5/urlsessionLibrary/git_push.sh @@ -1,7 +1,7 @@ #!/bin/sh # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" git_user_id=$1 git_repo_id=$2 diff --git a/samples/client/petstore/swift5/vaporLibrary/README.md b/samples/client/petstore/swift5/vaporLibrary/README.md index ee3cf1af06f..18dfa2d16e6 100644 --- a/samples/client/petstore/swift5/vaporLibrary/README.md +++ b/samples/client/petstore/swift5/vaporLibrary/README.md @@ -35,7 +35,7 @@ Class | Method | HTTP request | Description *FakeAPI* | [**testGroupParameters**](docs/FakeAPI.md#testgroupparameters) | **DELETE** /fake | Fake endpoint to test group parameters (optional) *FakeAPI* | [**testInlineAdditionalProperties**](docs/FakeAPI.md#testinlineadditionalproperties) | **POST** /fake/inline-additionalProperties | test inline additionalProperties *FakeAPI* | [**testJsonFormData**](docs/FakeAPI.md#testjsonformdata) | **GET** /fake/jsonFormData | test json serialization of form data -*FakeAPI* | [**testQueryParameterCollectionFormat**](docs/FakeAPI.md#testqueryparametercollectionformat) | **PUT** /fake/test-query-paramters | +*FakeAPI* | [**testQueryParameterCollectionFormat**](docs/FakeAPI.md#testqueryparametercollectionformat) | **PUT** /fake/test-query-parameters | *FakeClassnameTags123API* | [**testClassname**](docs/FakeClassnameTags123API.md#testclassname) | **PATCH** /fake_classname_test | To test class name in snake case *PetAPI* | [**addPet**](docs/PetAPI.md#addpet) | **POST** /pet | Add a new pet to the store *PetAPI* | [**deletePet**](docs/PetAPI.md#deletepet) | **DELETE** /pet/{petId} | Deletes a pet diff --git a/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/APIs/FakeAPI.swift b/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/APIs/FakeAPI.swift index cc3be7c3df9..30fac25f6fa 100644 --- a/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/APIs/FakeAPI.swift +++ b/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/APIs/FakeAPI.swift @@ -838,7 +838,7 @@ open class FakeAPI { /** - PUT /fake/test-query-paramters + PUT /fake/test-query-parameters To test the collection format in query parameters - parameter pipe: (query) - parameter ioutil: (query) @@ -848,7 +848,7 @@ open class FakeAPI { - returns: `EventLoopFuture` of `ClientResponse` */ open class func testQueryParameterCollectionFormatRaw(pipe: [String], ioutil: [String], http: [String], url: [String], context: [String], headers: HTTPHeaders = PetstoreClient.customHeaders, beforeSend: (inout ClientRequest) throws -> () = { _ in }) -> EventLoopFuture { - let localVariablePath = "/fake/test-query-paramters" + let localVariablePath = "/fake/test-query-parameters" let localVariableURLString = PetstoreClient.basePath + localVariablePath guard let localVariableApiClient = Configuration.apiClient else { @@ -885,7 +885,7 @@ open class FakeAPI { } /** - PUT /fake/test-query-paramters + PUT /fake/test-query-parameters To test the collection format in query parameters - parameter pipe: (query) - parameter ioutil: (query) diff --git a/samples/client/petstore/swift5/vaporLibrary/docs/FakeAPI.md b/samples/client/petstore/swift5/vaporLibrary/docs/FakeAPI.md index 82b999d9d76..7ab1d38a717 100644 --- a/samples/client/petstore/swift5/vaporLibrary/docs/FakeAPI.md +++ b/samples/client/petstore/swift5/vaporLibrary/docs/FakeAPI.md @@ -17,7 +17,7 @@ Method | HTTP request | Description [**testGroupParameters**](FakeAPI.md#testgroupparameters) | **DELETE** /fake | Fake endpoint to test group parameters (optional) [**testInlineAdditionalProperties**](FakeAPI.md#testinlineadditionalproperties) | **POST** /fake/inline-additionalProperties | test inline additionalProperties [**testJsonFormData**](FakeAPI.md#testjsonformdata) | **GET** /fake/jsonFormData | test json serialization of form data -[**testQueryParameterCollectionFormat**](FakeAPI.md#testqueryparametercollectionformat) | **PUT** /fake/test-query-paramters | +[**testQueryParameterCollectionFormat**](FakeAPI.md#testqueryparametercollectionformat) | **PUT** /fake/test-query-parameters | # **createXmlItem** diff --git a/samples/client/petstore/swift5/x-swift-hashable/git_push.sh b/samples/client/petstore/swift5/x-swift-hashable/git_push.sh index 9405f72e950..18f86b99e82 100644 --- a/samples/client/petstore/swift5/x-swift-hashable/git_push.sh +++ b/samples/client/petstore/swift5/x-swift-hashable/git_push.sh @@ -1,7 +1,7 @@ #!/bin/sh # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" git_user_id=$1 git_repo_id=$2 diff --git a/samples/client/petstore/typescript-angular-v10-provided-in-root/builds/default/git_push.sh b/samples/client/petstore/typescript-angular-v10-provided-in-root/builds/default/git_push.sh index 9405f72e950..18f86b99e82 100644 --- a/samples/client/petstore/typescript-angular-v10-provided-in-root/builds/default/git_push.sh +++ b/samples/client/petstore/typescript-angular-v10-provided-in-root/builds/default/git_push.sh @@ -1,7 +1,7 @@ #!/bin/sh # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" git_user_id=$1 git_repo_id=$2 diff --git a/samples/client/petstore/typescript-angular-v10-provided-in-root/builds/with-npm/git_push.sh b/samples/client/petstore/typescript-angular-v10-provided-in-root/builds/with-npm/git_push.sh index 9405f72e950..18f86b99e82 100644 --- a/samples/client/petstore/typescript-angular-v10-provided-in-root/builds/with-npm/git_push.sh +++ b/samples/client/petstore/typescript-angular-v10-provided-in-root/builds/with-npm/git_push.sh @@ -1,7 +1,7 @@ #!/bin/sh # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" git_user_id=$1 git_repo_id=$2 diff --git a/samples/client/petstore/typescript-angular-v11-oneOf/builds/default/git_push.sh b/samples/client/petstore/typescript-angular-v11-oneOf/builds/default/git_push.sh index 9405f72e950..18f86b99e82 100644 --- a/samples/client/petstore/typescript-angular-v11-oneOf/builds/default/git_push.sh +++ b/samples/client/petstore/typescript-angular-v11-oneOf/builds/default/git_push.sh @@ -1,7 +1,7 @@ #!/bin/sh # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" git_user_id=$1 git_repo_id=$2 diff --git a/samples/client/petstore/typescript-angular-v11-provided-in-root/builds/default/git_push.sh b/samples/client/petstore/typescript-angular-v11-provided-in-root/builds/default/git_push.sh index 9405f72e950..18f86b99e82 100644 --- a/samples/client/petstore/typescript-angular-v11-provided-in-root/builds/default/git_push.sh +++ b/samples/client/petstore/typescript-angular-v11-provided-in-root/builds/default/git_push.sh @@ -1,7 +1,7 @@ #!/bin/sh # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" git_user_id=$1 git_repo_id=$2 diff --git a/samples/client/petstore/typescript-angular-v11-provided-in-root/builds/with-npm/git_push.sh b/samples/client/petstore/typescript-angular-v11-provided-in-root/builds/with-npm/git_push.sh index 9405f72e950..18f86b99e82 100644 --- a/samples/client/petstore/typescript-angular-v11-provided-in-root/builds/with-npm/git_push.sh +++ b/samples/client/petstore/typescript-angular-v11-provided-in-root/builds/with-npm/git_push.sh @@ -1,7 +1,7 @@ #!/bin/sh # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" git_user_id=$1 git_repo_id=$2 diff --git a/samples/client/petstore/typescript-angular-v6-not-provided-in-root/builds/default/git_push.sh b/samples/client/petstore/typescript-angular-v6-not-provided-in-root/builds/default/git_push.sh index 9405f72e950..18f86b99e82 100644 --- a/samples/client/petstore/typescript-angular-v6-not-provided-in-root/builds/default/git_push.sh +++ b/samples/client/petstore/typescript-angular-v6-not-provided-in-root/builds/default/git_push.sh @@ -1,7 +1,7 @@ #!/bin/sh # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" git_user_id=$1 git_repo_id=$2 diff --git a/samples/client/petstore/typescript-angular-v6-not-provided-in-root/builds/with-npm/git_push.sh b/samples/client/petstore/typescript-angular-v6-not-provided-in-root/builds/with-npm/git_push.sh index 9405f72e950..18f86b99e82 100644 --- a/samples/client/petstore/typescript-angular-v6-not-provided-in-root/builds/with-npm/git_push.sh +++ b/samples/client/petstore/typescript-angular-v6-not-provided-in-root/builds/with-npm/git_push.sh @@ -1,7 +1,7 @@ #!/bin/sh # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" git_user_id=$1 git_repo_id=$2 diff --git a/samples/client/petstore/typescript-angular-v6-provided-in-root/builds/default/git_push.sh b/samples/client/petstore/typescript-angular-v6-provided-in-root/builds/default/git_push.sh index 9405f72e950..18f86b99e82 100644 --- a/samples/client/petstore/typescript-angular-v6-provided-in-root/builds/default/git_push.sh +++ b/samples/client/petstore/typescript-angular-v6-provided-in-root/builds/default/git_push.sh @@ -1,7 +1,7 @@ #!/bin/sh # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" git_user_id=$1 git_repo_id=$2 diff --git a/samples/client/petstore/typescript-angular-v6-provided-in-root/builds/with-npm/git_push.sh b/samples/client/petstore/typescript-angular-v6-provided-in-root/builds/with-npm/git_push.sh index 9405f72e950..18f86b99e82 100644 --- a/samples/client/petstore/typescript-angular-v6-provided-in-root/builds/with-npm/git_push.sh +++ b/samples/client/petstore/typescript-angular-v6-provided-in-root/builds/with-npm/git_push.sh @@ -1,7 +1,7 @@ #!/bin/sh # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" git_user_id=$1 git_repo_id=$2 diff --git a/samples/client/petstore/typescript-angular-v7-not-provided-in-root/builds/default/git_push.sh b/samples/client/petstore/typescript-angular-v7-not-provided-in-root/builds/default/git_push.sh index 9405f72e950..18f86b99e82 100644 --- a/samples/client/petstore/typescript-angular-v7-not-provided-in-root/builds/default/git_push.sh +++ b/samples/client/petstore/typescript-angular-v7-not-provided-in-root/builds/default/git_push.sh @@ -1,7 +1,7 @@ #!/bin/sh # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" git_user_id=$1 git_repo_id=$2 diff --git a/samples/client/petstore/typescript-angular-v7-not-provided-in-root/builds/with-npm/git_push.sh b/samples/client/petstore/typescript-angular-v7-not-provided-in-root/builds/with-npm/git_push.sh index 9405f72e950..18f86b99e82 100644 --- a/samples/client/petstore/typescript-angular-v7-not-provided-in-root/builds/with-npm/git_push.sh +++ b/samples/client/petstore/typescript-angular-v7-not-provided-in-root/builds/with-npm/git_push.sh @@ -1,7 +1,7 @@ #!/bin/sh # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" git_user_id=$1 git_repo_id=$2 diff --git a/samples/client/petstore/typescript-angular-v7-provided-in-root/builds/default/git_push.sh b/samples/client/petstore/typescript-angular-v7-provided-in-root/builds/default/git_push.sh index 9405f72e950..18f86b99e82 100644 --- a/samples/client/petstore/typescript-angular-v7-provided-in-root/builds/default/git_push.sh +++ b/samples/client/petstore/typescript-angular-v7-provided-in-root/builds/default/git_push.sh @@ -1,7 +1,7 @@ #!/bin/sh # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" git_user_id=$1 git_repo_id=$2 diff --git a/samples/client/petstore/typescript-angular-v7-provided-in-root/builds/with-npm/git_push.sh b/samples/client/petstore/typescript-angular-v7-provided-in-root/builds/with-npm/git_push.sh index 9405f72e950..18f86b99e82 100644 --- a/samples/client/petstore/typescript-angular-v7-provided-in-root/builds/with-npm/git_push.sh +++ b/samples/client/petstore/typescript-angular-v7-provided-in-root/builds/with-npm/git_push.sh @@ -1,7 +1,7 @@ #!/bin/sh # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" git_user_id=$1 git_repo_id=$2 diff --git a/samples/client/petstore/typescript-angular-v8-provided-in-root/builds/single-request-parameter/git_push.sh b/samples/client/petstore/typescript-angular-v8-provided-in-root/builds/single-request-parameter/git_push.sh index 9405f72e950..18f86b99e82 100644 --- a/samples/client/petstore/typescript-angular-v8-provided-in-root/builds/single-request-parameter/git_push.sh +++ b/samples/client/petstore/typescript-angular-v8-provided-in-root/builds/single-request-parameter/git_push.sh @@ -1,7 +1,7 @@ #!/bin/sh # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" git_user_id=$1 git_repo_id=$2 diff --git a/samples/client/petstore/typescript-angular-v8-provided-in-root/builds/with-npm/git_push.sh b/samples/client/petstore/typescript-angular-v8-provided-in-root/builds/with-npm/git_push.sh index 9405f72e950..18f86b99e82 100644 --- a/samples/client/petstore/typescript-angular-v8-provided-in-root/builds/with-npm/git_push.sh +++ b/samples/client/petstore/typescript-angular-v8-provided-in-root/builds/with-npm/git_push.sh @@ -1,7 +1,7 @@ #!/bin/sh # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" git_user_id=$1 git_repo_id=$2 diff --git a/samples/client/petstore/typescript-angular-v8-provided-in-root/builds/with-prefixed-module-name/git_push.sh b/samples/client/petstore/typescript-angular-v8-provided-in-root/builds/with-prefixed-module-name/git_push.sh index 9405f72e950..18f86b99e82 100644 --- a/samples/client/petstore/typescript-angular-v8-provided-in-root/builds/with-prefixed-module-name/git_push.sh +++ b/samples/client/petstore/typescript-angular-v8-provided-in-root/builds/with-prefixed-module-name/git_push.sh @@ -1,7 +1,7 @@ #!/bin/sh # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" git_user_id=$1 git_repo_id=$2 diff --git a/samples/client/petstore/typescript-angular-v9-provided-in-any/builds/default/git_push.sh b/samples/client/petstore/typescript-angular-v9-provided-in-any/builds/default/git_push.sh index 9405f72e950..18f86b99e82 100644 --- a/samples/client/petstore/typescript-angular-v9-provided-in-any/builds/default/git_push.sh +++ b/samples/client/petstore/typescript-angular-v9-provided-in-any/builds/default/git_push.sh @@ -1,7 +1,7 @@ #!/bin/sh # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" git_user_id=$1 git_repo_id=$2 diff --git a/samples/client/petstore/typescript-angular-v9-provided-in-root/builds/default/git_push.sh b/samples/client/petstore/typescript-angular-v9-provided-in-root/builds/default/git_push.sh index 9405f72e950..18f86b99e82 100644 --- a/samples/client/petstore/typescript-angular-v9-provided-in-root/builds/default/git_push.sh +++ b/samples/client/petstore/typescript-angular-v9-provided-in-root/builds/default/git_push.sh @@ -1,7 +1,7 @@ #!/bin/sh # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" git_user_id=$1 git_repo_id=$2 diff --git a/samples/client/petstore/typescript-angular-v9-provided-in-root/builds/with-npm/git_push.sh b/samples/client/petstore/typescript-angular-v9-provided-in-root/builds/with-npm/git_push.sh index 9405f72e950..18f86b99e82 100644 --- a/samples/client/petstore/typescript-angular-v9-provided-in-root/builds/with-npm/git_push.sh +++ b/samples/client/petstore/typescript-angular-v9-provided-in-root/builds/with-npm/git_push.sh @@ -1,7 +1,7 @@ #!/bin/sh # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" git_user_id=$1 git_repo_id=$2 diff --git a/samples/client/petstore/typescript-aurelia/default/git_push.sh b/samples/client/petstore/typescript-aurelia/default/git_push.sh index 9405f72e950..18f86b99e82 100644 --- a/samples/client/petstore/typescript-aurelia/default/git_push.sh +++ b/samples/client/petstore/typescript-aurelia/default/git_push.sh @@ -1,7 +1,7 @@ #!/bin/sh # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" git_user_id=$1 git_repo_id=$2 diff --git a/samples/client/petstore/typescript-axios/builds/composed-schemas/git_push.sh b/samples/client/petstore/typescript-axios/builds/composed-schemas/git_push.sh index 9405f72e950..18f86b99e82 100644 --- a/samples/client/petstore/typescript-axios/builds/composed-schemas/git_push.sh +++ b/samples/client/petstore/typescript-axios/builds/composed-schemas/git_push.sh @@ -1,7 +1,7 @@ #!/bin/sh # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" git_user_id=$1 git_repo_id=$2 diff --git a/samples/client/petstore/typescript-axios/builds/default/git_push.sh b/samples/client/petstore/typescript-axios/builds/default/git_push.sh index 9405f72e950..18f86b99e82 100644 --- a/samples/client/petstore/typescript-axios/builds/default/git_push.sh +++ b/samples/client/petstore/typescript-axios/builds/default/git_push.sh @@ -1,7 +1,7 @@ #!/bin/sh # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" git_user_id=$1 git_repo_id=$2 diff --git a/samples/client/petstore/typescript-axios/builds/es6-target/git_push.sh b/samples/client/petstore/typescript-axios/builds/es6-target/git_push.sh index 9405f72e950..18f86b99e82 100644 --- a/samples/client/petstore/typescript-axios/builds/es6-target/git_push.sh +++ b/samples/client/petstore/typescript-axios/builds/es6-target/git_push.sh @@ -1,7 +1,7 @@ #!/bin/sh # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" git_user_id=$1 git_repo_id=$2 diff --git a/samples/client/petstore/typescript-axios/builds/with-complex-headers/git_push.sh b/samples/client/petstore/typescript-axios/builds/with-complex-headers/git_push.sh index 9405f72e950..18f86b99e82 100644 --- a/samples/client/petstore/typescript-axios/builds/with-complex-headers/git_push.sh +++ b/samples/client/petstore/typescript-axios/builds/with-complex-headers/git_push.sh @@ -1,7 +1,7 @@ #!/bin/sh # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" git_user_id=$1 git_repo_id=$2 diff --git a/samples/client/petstore/typescript-axios/builds/with-fake-endpoints-models-for-testing-with-http-signature/api.ts b/samples/client/petstore/typescript-axios/builds/with-fake-endpoints-models-for-testing-with-http-signature/api.ts index 3d27fbf632c..e4cb9ef5c32 100644 --- a/samples/client/petstore/typescript-axios/builds/with-fake-endpoints-models-for-testing-with-http-signature/api.ts +++ b/samples/client/petstore/typescript-axios/builds/with-fake-endpoints-models-for-testing-with-http-signature/api.ts @@ -2212,7 +2212,7 @@ export const FakeApiAxiosParamCreator = function (configuration?: Configuration) assertParamExists('testQueryParameterCollectionFormat', 'url', url) // verify required parameter 'context' is not null or undefined assertParamExists('testQueryParameterCollectionFormat', 'context', context) - const localVarPath = `/fake/test-query-paramters`; + const localVarPath = `/fake/test-query-parameters`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; @@ -2267,7 +2267,7 @@ export const FakeApiAxiosParamCreator = function (configuration?: Configuration) assertParamExists('testUniqueItemsHeaderAndQueryParameterCollectionFormat', 'queryUnique', queryUnique) // verify required parameter 'headerUnique' is not null or undefined assertParamExists('testUniqueItemsHeaderAndQueryParameterCollectionFormat', 'headerUnique', headerUnique) - const localVarPath = `/fake/test-unique-paramters`; + const localVarPath = `/fake/test-unique-parameters`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; diff --git a/samples/client/petstore/typescript-axios/builds/with-fake-endpoints-models-for-testing-with-http-signature/git_push.sh b/samples/client/petstore/typescript-axios/builds/with-fake-endpoints-models-for-testing-with-http-signature/git_push.sh index 9405f72e950..18f86b99e82 100644 --- a/samples/client/petstore/typescript-axios/builds/with-fake-endpoints-models-for-testing-with-http-signature/git_push.sh +++ b/samples/client/petstore/typescript-axios/builds/with-fake-endpoints-models-for-testing-with-http-signature/git_push.sh @@ -1,7 +1,7 @@ #!/bin/sh # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" git_user_id=$1 git_repo_id=$2 diff --git a/samples/client/petstore/typescript-axios/builds/with-interfaces/git_push.sh b/samples/client/petstore/typescript-axios/builds/with-interfaces/git_push.sh index 9405f72e950..18f86b99e82 100644 --- a/samples/client/petstore/typescript-axios/builds/with-interfaces/git_push.sh +++ b/samples/client/petstore/typescript-axios/builds/with-interfaces/git_push.sh @@ -1,7 +1,7 @@ #!/bin/sh # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" git_user_id=$1 git_repo_id=$2 diff --git a/samples/client/petstore/typescript-axios/builds/with-npm-version-and-separate-models-and-api/git_push.sh b/samples/client/petstore/typescript-axios/builds/with-npm-version-and-separate-models-and-api/git_push.sh index 9405f72e950..18f86b99e82 100644 --- a/samples/client/petstore/typescript-axios/builds/with-npm-version-and-separate-models-and-api/git_push.sh +++ b/samples/client/petstore/typescript-axios/builds/with-npm-version-and-separate-models-and-api/git_push.sh @@ -1,7 +1,7 @@ #!/bin/sh # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" git_user_id=$1 git_repo_id=$2 diff --git a/samples/client/petstore/typescript-axios/builds/with-npm-version/git_push.sh b/samples/client/petstore/typescript-axios/builds/with-npm-version/git_push.sh index 9405f72e950..18f86b99e82 100644 --- a/samples/client/petstore/typescript-axios/builds/with-npm-version/git_push.sh +++ b/samples/client/petstore/typescript-axios/builds/with-npm-version/git_push.sh @@ -1,7 +1,7 @@ #!/bin/sh # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" git_user_id=$1 git_repo_id=$2 diff --git a/samples/client/petstore/typescript-axios/builds/with-single-request-parameters/git_push.sh b/samples/client/petstore/typescript-axios/builds/with-single-request-parameters/git_push.sh index 9405f72e950..18f86b99e82 100644 --- a/samples/client/petstore/typescript-axios/builds/with-single-request-parameters/git_push.sh +++ b/samples/client/petstore/typescript-axios/builds/with-single-request-parameters/git_push.sh @@ -1,7 +1,7 @@ #!/bin/sh # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" git_user_id=$1 git_repo_id=$2 diff --git a/samples/client/petstore/typescript-fetch/builds/default-v3.0/apis/FakeApi.ts b/samples/client/petstore/typescript-fetch/builds/default-v3.0/apis/FakeApi.ts index e1cfaf5113c..bc28b93eec1 100644 --- a/samples/client/petstore/typescript-fetch/builds/default-v3.0/apis/FakeApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/default-v3.0/apis/FakeApi.ts @@ -898,7 +898,7 @@ export class FakeApi extends runtime.BaseAPI { const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/fake/test-query-paramters`, + path: `/fake/test-query-parameters`, method: 'PUT', headers: headerParameters, query: queryParameters, diff --git a/samples/client/petstore/typescript-inversify/HttpClient.ts b/samples/client/petstore/typescript-inversify/HttpClient.ts index 3d3e7c2c1c3..e09f0b0706c 100644 --- a/samples/client/petstore/typescript-inversify/HttpClient.ts +++ b/samples/client/petstore/typescript-inversify/HttpClient.ts @@ -47,7 +47,7 @@ class HttpClient implements IHttpClient { private performNetworkCall(url: string, method: string, body?: any, headers?: Headers): Observable { - // when using fetch & a multipart upload, the requests content-type is handled by the browser, so should be left unset otherwise the multipart boundry is not added + // when using fetch & a multipart upload, the requests content-type is handled by the browser, so should be left unset otherwise the multipart boundary is not added if(headers && headers['Content-Type'] === 'multipart/form-data') { delete headers['Content-Type']; } diff --git a/samples/client/petstore/typescript-jquery/default/git_push.sh b/samples/client/petstore/typescript-jquery/default/git_push.sh index 9405f72e950..18f86b99e82 100644 --- a/samples/client/petstore/typescript-jquery/default/git_push.sh +++ b/samples/client/petstore/typescript-jquery/default/git_push.sh @@ -1,7 +1,7 @@ #!/bin/sh # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" git_user_id=$1 git_repo_id=$2 diff --git a/samples/client/petstore/typescript-jquery/npm/git_push.sh b/samples/client/petstore/typescript-jquery/npm/git_push.sh index 9405f72e950..18f86b99e82 100644 --- a/samples/client/petstore/typescript-jquery/npm/git_push.sh +++ b/samples/client/petstore/typescript-jquery/npm/git_push.sh @@ -1,7 +1,7 @@ #!/bin/sh # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" git_user_id=$1 git_repo_id=$2 diff --git a/samples/client/petstore/typescript-nestjs-v6-provided-in-root/builds/default/git_push.sh b/samples/client/petstore/typescript-nestjs-v6-provided-in-root/builds/default/git_push.sh index 9405f72e950..18f86b99e82 100644 --- a/samples/client/petstore/typescript-nestjs-v6-provided-in-root/builds/default/git_push.sh +++ b/samples/client/petstore/typescript-nestjs-v6-provided-in-root/builds/default/git_push.sh @@ -1,7 +1,7 @@ #!/bin/sh # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" git_user_id=$1 git_repo_id=$2 diff --git a/samples/client/petstore/typescript-node/default/git_push.sh b/samples/client/petstore/typescript-node/default/git_push.sh index 9405f72e950..18f86b99e82 100644 --- a/samples/client/petstore/typescript-node/default/git_push.sh +++ b/samples/client/petstore/typescript-node/default/git_push.sh @@ -1,7 +1,7 @@ #!/bin/sh # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" git_user_id=$1 git_repo_id=$2 diff --git a/samples/client/petstore/typescript-node/npm/git_push.sh b/samples/client/petstore/typescript-node/npm/git_push.sh index 9405f72e950..18f86b99e82 100644 --- a/samples/client/petstore/typescript-node/npm/git_push.sh +++ b/samples/client/petstore/typescript-node/npm/git_push.sh @@ -1,7 +1,7 @@ #!/bin/sh # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" git_user_id=$1 git_repo_id=$2 diff --git a/samples/client/petstore/typescript-rxjs/builds/default/runtime.ts b/samples/client/petstore/typescript-rxjs/builds/default/runtime.ts index 21d1e39ec39..f321aca5235 100644 --- a/samples/client/petstore/typescript-rxjs/builds/default/runtime.ts +++ b/samples/client/petstore/typescript-rxjs/builds/default/runtime.ts @@ -86,7 +86,7 @@ export class BaseAPI { map((res) => { const { status, response } = res; if (status >= 200 && status < 300) { - return responseOpts?.respone === 'raw' ? res : response; + return responseOpts?.response === 'raw' ? res : response; } throw res; }) @@ -163,7 +163,7 @@ export interface RequestOpts extends AjaxRequest { } export interface ResponseOpts { - respone?: 'raw'; + response?: 'raw'; } export interface OperationOpts { diff --git a/samples/client/petstore/typescript-rxjs/builds/es6-target/runtime.ts b/samples/client/petstore/typescript-rxjs/builds/es6-target/runtime.ts index 21d1e39ec39..f321aca5235 100644 --- a/samples/client/petstore/typescript-rxjs/builds/es6-target/runtime.ts +++ b/samples/client/petstore/typescript-rxjs/builds/es6-target/runtime.ts @@ -86,7 +86,7 @@ export class BaseAPI { map((res) => { const { status, response } = res; if (status >= 200 && status < 300) { - return responseOpts?.respone === 'raw' ? res : response; + return responseOpts?.response === 'raw' ? res : response; } throw res; }) @@ -163,7 +163,7 @@ export interface RequestOpts extends AjaxRequest { } export interface ResponseOpts { - respone?: 'raw'; + response?: 'raw'; } export interface OperationOpts { diff --git a/samples/client/petstore/typescript-rxjs/builds/with-npm-version/runtime.ts b/samples/client/petstore/typescript-rxjs/builds/with-npm-version/runtime.ts index 21d1e39ec39..f321aca5235 100644 --- a/samples/client/petstore/typescript-rxjs/builds/with-npm-version/runtime.ts +++ b/samples/client/petstore/typescript-rxjs/builds/with-npm-version/runtime.ts @@ -86,7 +86,7 @@ export class BaseAPI { map((res) => { const { status, response } = res; if (status >= 200 && status < 300) { - return responseOpts?.respone === 'raw' ? res : response; + return responseOpts?.response === 'raw' ? res : response; } throw res; }) @@ -163,7 +163,7 @@ export interface RequestOpts extends AjaxRequest { } export interface ResponseOpts { - respone?: 'raw'; + response?: 'raw'; } export interface OperationOpts { diff --git a/samples/client/petstore/typescript-rxjs/builds/with-progress-subscriber/runtime.ts b/samples/client/petstore/typescript-rxjs/builds/with-progress-subscriber/runtime.ts index e108c94de94..7238c7b7829 100644 --- a/samples/client/petstore/typescript-rxjs/builds/with-progress-subscriber/runtime.ts +++ b/samples/client/petstore/typescript-rxjs/builds/with-progress-subscriber/runtime.ts @@ -86,7 +86,7 @@ export class BaseAPI { map((res) => { const { status, response } = res; if (status >= 200 && status < 300) { - return responseOpts?.respone === 'raw' ? res : response; + return responseOpts?.response === 'raw' ? res : response; } throw res; }) @@ -165,7 +165,7 @@ export interface RequestOpts extends AjaxRequest { } export interface ResponseOpts { - respone?: 'raw'; + response?: 'raw'; } export interface OperationOpts { diff --git a/samples/meta-codegen-kotlin/lib/src/main/resources/myClientCodegen/api.mustache b/samples/meta-codegen-kotlin/lib/src/main/resources/myClientCodegen/api.mustache index 62802f7f1e7..d61bde58c9d 100644 --- a/samples/meta-codegen-kotlin/lib/src/main/resources/myClientCodegen/api.mustache +++ b/samples/meta-codegen-kotlin/lib/src/main/resources/myClientCodegen/api.mustache @@ -1,5 +1,5 @@ -# This is a sample api mustache template. It is representing a ficticous +# This is a sample api mustache template. It is representing a fictitious # language and won't be usable or compile to anything without lots of changes. # Use it as an example. You can access the variables in the generator object # like such: diff --git a/samples/meta-codegen-kotlin/usage/src/org/openapitools/api/PetApi.sample b/samples/meta-codegen-kotlin/usage/src/org/openapitools/api/PetApi.sample index e75a6149341..bdc32121ce1 100644 --- a/samples/meta-codegen-kotlin/usage/src/org/openapitools/api/PetApi.sample +++ b/samples/meta-codegen-kotlin/usage/src/org/openapitools/api/PetApi.sample @@ -1,5 +1,5 @@ -# This is a sample api mustache template. It is representing a ficticous +# This is a sample api mustache template. It is representing a fictitious # language and won't be usable or compile to anything without lots of changes. # Use it as an example. You can access the variables in the generator object # like such: diff --git a/samples/meta-codegen-kotlin/usage/src/org/openapitools/api/StoreApi.sample b/samples/meta-codegen-kotlin/usage/src/org/openapitools/api/StoreApi.sample index 298e7edbb0f..fe7dfd5fdd2 100644 --- a/samples/meta-codegen-kotlin/usage/src/org/openapitools/api/StoreApi.sample +++ b/samples/meta-codegen-kotlin/usage/src/org/openapitools/api/StoreApi.sample @@ -1,5 +1,5 @@ -# This is a sample api mustache template. It is representing a ficticous +# This is a sample api mustache template. It is representing a fictitious # language and won't be usable or compile to anything without lots of changes. # Use it as an example. You can access the variables in the generator object # like such: diff --git a/samples/meta-codegen-kotlin/usage/src/org/openapitools/api/UserApi.sample b/samples/meta-codegen-kotlin/usage/src/org/openapitools/api/UserApi.sample index ebc744ed975..a8454da37a3 100644 --- a/samples/meta-codegen-kotlin/usage/src/org/openapitools/api/UserApi.sample +++ b/samples/meta-codegen-kotlin/usage/src/org/openapitools/api/UserApi.sample @@ -1,5 +1,5 @@ -# This is a sample api mustache template. It is representing a ficticous +# This is a sample api mustache template. It is representing a fictitious # language and won't be usable or compile to anything without lots of changes. # Use it as an example. You can access the variables in the generator object # like such: diff --git a/samples/meta-codegen/lib/src/main/resources/myClientCodegen/api.mustache b/samples/meta-codegen/lib/src/main/resources/myClientCodegen/api.mustache index 62802f7f1e7..d61bde58c9d 100644 --- a/samples/meta-codegen/lib/src/main/resources/myClientCodegen/api.mustache +++ b/samples/meta-codegen/lib/src/main/resources/myClientCodegen/api.mustache @@ -1,5 +1,5 @@ -# This is a sample api mustache template. It is representing a ficticous +# This is a sample api mustache template. It is representing a fictitious # language and won't be usable or compile to anything without lots of changes. # Use it as an example. You can access the variables in the generator object # like such: diff --git a/samples/meta-codegen/usage/src/org/openapitools/api/PetApi.sample b/samples/meta-codegen/usage/src/org/openapitools/api/PetApi.sample index 7b8b9c754d9..a5feebb745e 100644 --- a/samples/meta-codegen/usage/src/org/openapitools/api/PetApi.sample +++ b/samples/meta-codegen/usage/src/org/openapitools/api/PetApi.sample @@ -1,5 +1,5 @@ -# This is a sample api mustache template. It is representing a ficticous +# This is a sample api mustache template. It is representing a fictitious # language and won't be usable or compile to anything without lots of changes. # Use it as an example. You can access the variables in the generator object # like such: diff --git a/samples/meta-codegen/usage/src/org/openapitools/api/StoreApi.sample b/samples/meta-codegen/usage/src/org/openapitools/api/StoreApi.sample index d66c28e8576..4250607257b 100644 --- a/samples/meta-codegen/usage/src/org/openapitools/api/StoreApi.sample +++ b/samples/meta-codegen/usage/src/org/openapitools/api/StoreApi.sample @@ -1,5 +1,5 @@ -# This is a sample api mustache template. It is representing a ficticous +# This is a sample api mustache template. It is representing a fictitious # language and won't be usable or compile to anything without lots of changes. # Use it as an example. You can access the variables in the generator object # like such: diff --git a/samples/meta-codegen/usage/src/org/openapitools/api/UserApi.sample b/samples/meta-codegen/usage/src/org/openapitools/api/UserApi.sample index b3b05217530..3de0f7f4fcc 100644 --- a/samples/meta-codegen/usage/src/org/openapitools/api/UserApi.sample +++ b/samples/meta-codegen/usage/src/org/openapitools/api/UserApi.sample @@ -1,5 +1,5 @@ -# This is a sample api mustache template. It is representing a ficticous +# This is a sample api mustache template. It is representing a fictitious # language and won't be usable or compile to anything without lots of changes. # Use it as an example. You can access the variables in the generator object # like such: diff --git a/samples/openapi3/client/extensions/x-auth-id-alias/go-experimental/README.md b/samples/openapi3/client/extensions/x-auth-id-alias/go-experimental/README.md index 38980a1c9a9..f765717c5fe 100644 --- a/samples/openapi3/client/extensions/x-auth-id-alias/go-experimental/README.md +++ b/samples/openapi3/client/extensions/x-auth-id-alias/go-experimental/README.md @@ -58,7 +58,7 @@ Note, enum values are always validated and all unused variables are silently ign ### URLs Configuration per Operation Each operation can use different server URL defined using `OperationServers` map in the `Configuration`. -An operation is uniquely identifield by `"{classname}Service.{nickname}"` string. +An operation is uniquely identified by `"{classname}Service.{nickname}"` string. Similar rules for overriding default operation server index and variables applies by using `sw.ContextOperationServerIndices` and `sw.ContextOperationServerVariables` context maps. ``` diff --git a/samples/openapi3/client/extensions/x-auth-id-alias/go-experimental/git_push.sh b/samples/openapi3/client/extensions/x-auth-id-alias/go-experimental/git_push.sh index 9405f72e950..18f86b99e82 100644 --- a/samples/openapi3/client/extensions/x-auth-id-alias/go-experimental/git_push.sh +++ b/samples/openapi3/client/extensions/x-auth-id-alias/go-experimental/git_push.sh @@ -1,7 +1,7 @@ #!/bin/sh # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" git_user_id=$1 git_repo_id=$2 diff --git a/samples/openapi3/client/extensions/x-auth-id-alias/java/jersey2-java8/git_push.sh b/samples/openapi3/client/extensions/x-auth-id-alias/java/jersey2-java8/git_push.sh index 9405f72e950..18f86b99e82 100644 --- a/samples/openapi3/client/extensions/x-auth-id-alias/java/jersey2-java8/git_push.sh +++ b/samples/openapi3/client/extensions/x-auth-id-alias/java/jersey2-java8/git_push.sh @@ -1,7 +1,7 @@ #!/bin/sh # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" git_user_id=$1 git_repo_id=$2 diff --git a/samples/openapi3/client/extensions/x-auth-id-alias/java/jersey2-java8/src/main/java/org/openapitools/client/ApiClient.java b/samples/openapi3/client/extensions/x-auth-id-alias/java/jersey2-java8/src/main/java/org/openapitools/client/ApiClient.java index 6162256fc17..6609b1d0db8 100644 --- a/samples/openapi3/client/extensions/x-auth-id-alias/java/jersey2-java8/src/main/java/org/openapitools/client/ApiClient.java +++ b/samples/openapi3/client/extensions/x-auth-id-alias/java/jersey2-java8/src/main/java/org/openapitools/client/ApiClient.java @@ -460,7 +460,7 @@ public class ApiClient extends JavaTimeFormatter { /** * The path of temporary folder used to store downloaded files from endpoints * with file response. The default value is null, i.e. using - * the system's default tempopary folder. + * the system's default temporary folder. * * @return Temp folder path */ @@ -1100,7 +1100,7 @@ public class ApiClient extends JavaTimeFormatter { /** * Customize the client builder. * - * This method can be overriden to customize the API client. For example, this can be used to: + * This method can be overridden to customize the API client. For example, this can be used to: * 1. Set the hostname verifier to be used by the client to verify the endpoint's hostname * against its identification information. * 2. Set the client-side key store. diff --git a/samples/openapi3/client/extensions/x-auth-id-alias/java/jersey2-java8/src/main/java/org/openapitools/client/ServerConfiguration.java b/samples/openapi3/client/extensions/x-auth-id-alias/java/jersey2-java8/src/main/java/org/openapitools/client/ServerConfiguration.java index a1107a8690e..e08da9aac7d 100644 --- a/samples/openapi3/client/extensions/x-auth-id-alias/java/jersey2-java8/src/main/java/org/openapitools/client/ServerConfiguration.java +++ b/samples/openapi3/client/extensions/x-auth-id-alias/java/jersey2-java8/src/main/java/org/openapitools/client/ServerConfiguration.java @@ -12,7 +12,7 @@ public class ServerConfiguration { /** * @param URL A URL to the target host. - * @param description A describtion of the host designated by the URL. + * @param description A description of the host designated by the URL. * @param variables A map between a variable name and its value. The value is used for substitution in the server's URL template. */ public ServerConfiguration(String URL, String description, Map variables) { diff --git a/samples/openapi3/client/extensions/x-auth-id-alias/java/jersey2-java8/src/main/java/org/openapitools/client/api/UsageApi.java b/samples/openapi3/client/extensions/x-auth-id-alias/java/jersey2-java8/src/main/java/org/openapitools/client/api/UsageApi.java index 668cbec37c2..3b1d2d280f0 100644 --- a/samples/openapi3/client/extensions/x-auth-id-alias/java/jersey2-java8/src/main/java/org/openapitools/client/api/UsageApi.java +++ b/samples/openapi3/client/extensions/x-auth-id-alias/java/jersey2-java8/src/main/java/org/openapitools/client/api/UsageApi.java @@ -27,7 +27,7 @@ public class UsageApi { } /** - * Get the API cilent + * Get the API client * * @return API client */ @@ -36,7 +36,7 @@ public class UsageApi { } /** - * Set the API cilent + * Set the API client * * @param apiClient an instance of API client */ diff --git a/samples/openapi3/client/extensions/x-auth-id-alias/java/jersey2-java8/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java b/samples/openapi3/client/extensions/x-auth-id-alias/java/jersey2-java8/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java index 618f7e4efd6..ff327856140 100644 --- a/samples/openapi3/client/extensions/x-auth-id-alias/java/jersey2-java8/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java +++ b/samples/openapi3/client/extensions/x-auth-id-alias/java/jersey2-java8/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java @@ -132,7 +132,7 @@ public abstract class AbstractOpenApiSchema { } /** - * Is nullalble + * Is nullable * * @return true if it's nullable */ diff --git a/samples/openapi3/client/extensions/x-auth-id-alias/python/git_push.sh b/samples/openapi3/client/extensions/x-auth-id-alias/python/git_push.sh index 9405f72e950..18f86b99e82 100644 --- a/samples/openapi3/client/extensions/x-auth-id-alias/python/git_push.sh +++ b/samples/openapi3/client/extensions/x-auth-id-alias/python/git_push.sh @@ -1,7 +1,7 @@ #!/bin/sh # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" git_user_id=$1 git_repo_id=$2 diff --git a/samples/openapi3/client/extensions/x-auth-id-alias/python/x_auth_id_alias/api_client.py b/samples/openapi3/client/extensions/x-auth-id-alias/python/x_auth_id_alias/api_client.py index 7e4fa034a6a..b77f44a106b 100644 --- a/samples/openapi3/client/extensions/x-auth-id-alias/python/x_auth_id_alias/api_client.py +++ b/samples/openapi3/client/extensions/x-auth-id-alias/python/x_auth_id_alias/api_client.py @@ -588,12 +588,12 @@ class ApiClient(object): else: return content_types[0] - def update_params_for_auth(self, headers, querys, auth_settings, + def update_params_for_auth(self, headers, queries, auth_settings, resource_path, method, body): """Updates header and query params based on authentication setting. :param headers: Header parameters dict to be updated. - :param querys: Query parameters tuple list to be updated. + :param queries: Query parameters tuple list to be updated. :param auth_settings: Authentication setting identifiers list. :param resource_path: A string representation of the HTTP request resource path. :param method: A string representation of the HTTP request method. @@ -612,7 +612,7 @@ class ApiClient(object): if auth_setting['type'] != 'http-signature': headers[auth_setting['key']] = auth_setting['value'] elif auth_setting['in'] == 'query': - querys.append((auth_setting['key'], auth_setting['value'])) + queries.append((auth_setting['key'], auth_setting['value'])) else: raise ApiValueError( 'Authentication token must be in `query` or `header`' diff --git a/samples/openapi3/client/extensions/x-auth-id-alias/python/x_auth_id_alias/model_utils.py b/samples/openapi3/client/extensions/x-auth-id-alias/python/x_auth_id_alias/model_utils.py index 5331409b633..3ba9a0be1c2 100644 --- a/samples/openapi3/client/extensions/x-auth-id-alias/python/x_auth_id_alias/model_utils.py +++ b/samples/openapi3/client/extensions/x-auth-id-alias/python/x_auth_id_alias/model_utils.py @@ -446,7 +446,7 @@ class ModelSimple(OpenApiModel): ) def __contains__(self, name): - """used by `in` operator to check if an attrbute value was set in an instance: `'attr' in instance`""" + """used by `in` operator to check if an attribute value was set in an instance: `'attr' in instance`""" if name in self.required_properties: return name in self.__dict__ @@ -501,7 +501,7 @@ class ModelNormal(OpenApiModel): ) def __contains__(self, name): - """used by `in` operator to check if an attrbute value was set in an instance: `'attr' in instance`""" + """used by `in` operator to check if an attribute value was set in an instance: `'attr' in instance`""" if name in self.required_properties: return name in self.__dict__ @@ -648,7 +648,7 @@ class ModelComposed(OpenApiModel): return value def __contains__(self, name): - """used by `in` operator to check if an attrbute value was set in an instance: `'attr' in instance`""" + """used by `in` operator to check if an attribute value was set in an instance: `'attr' in instance`""" if name in self.required_properties: return name in self.__dict__ diff --git a/samples/openapi3/client/extensions/x-auth-id-alias/ruby-client/git_push.sh b/samples/openapi3/client/extensions/x-auth-id-alias/ruby-client/git_push.sh index 9405f72e950..18f86b99e82 100644 --- a/samples/openapi3/client/extensions/x-auth-id-alias/ruby-client/git_push.sh +++ b/samples/openapi3/client/extensions/x-auth-id-alias/ruby-client/git_push.sh @@ -1,7 +1,7 @@ #!/bin/sh # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" git_user_id=$1 git_repo_id=$2 diff --git a/samples/openapi3/client/extensions/x-auth-id-alias/ruby-client/lib/x_auth_id_alias/api_client.rb b/samples/openapi3/client/extensions/x-auth-id-alias/ruby-client/lib/x_auth_id_alias/api_client.rb index f9d94ce3f18..c3a4f3e117d 100644 --- a/samples/openapi3/client/extensions/x-auth-id-alias/ruby-client/lib/x_auth_id_alias/api_client.rb +++ b/samples/openapi3/client/extensions/x-auth-id-alias/ruby-client/lib/x_auth_id_alias/api_client.rb @@ -296,7 +296,7 @@ module XAuthIDAlias @config.base_url(opts[:operation]) + path end - # Update hearder and query params based on authentication settings. + # Update header and query params based on authentication settings. # # @param [Hash] header_params Header parameters # @param [Hash] query_params Query parameters diff --git a/samples/openapi3/client/features/dynamic-servers/python/dynamic_servers/api_client.py b/samples/openapi3/client/features/dynamic-servers/python/dynamic_servers/api_client.py index 81247d2f6e5..cfc23c81c4a 100644 --- a/samples/openapi3/client/features/dynamic-servers/python/dynamic_servers/api_client.py +++ b/samples/openapi3/client/features/dynamic-servers/python/dynamic_servers/api_client.py @@ -588,12 +588,12 @@ class ApiClient(object): else: return content_types[0] - def update_params_for_auth(self, headers, querys, auth_settings, + def update_params_for_auth(self, headers, queries, auth_settings, resource_path, method, body): """Updates header and query params based on authentication setting. :param headers: Header parameters dict to be updated. - :param querys: Query parameters tuple list to be updated. + :param queries: Query parameters tuple list to be updated. :param auth_settings: Authentication setting identifiers list. :param resource_path: A string representation of the HTTP request resource path. :param method: A string representation of the HTTP request method. @@ -612,7 +612,7 @@ class ApiClient(object): if auth_setting['type'] != 'http-signature': headers[auth_setting['key']] = auth_setting['value'] elif auth_setting['in'] == 'query': - querys.append((auth_setting['key'], auth_setting['value'])) + queries.append((auth_setting['key'], auth_setting['value'])) else: raise ApiValueError( 'Authentication token must be in `query` or `header`' diff --git a/samples/openapi3/client/features/dynamic-servers/python/dynamic_servers/model_utils.py b/samples/openapi3/client/features/dynamic-servers/python/dynamic_servers/model_utils.py index 7b10ed60cfd..cac00f27fa2 100644 --- a/samples/openapi3/client/features/dynamic-servers/python/dynamic_servers/model_utils.py +++ b/samples/openapi3/client/features/dynamic-servers/python/dynamic_servers/model_utils.py @@ -446,7 +446,7 @@ class ModelSimple(OpenApiModel): ) def __contains__(self, name): - """used by `in` operator to check if an attrbute value was set in an instance: `'attr' in instance`""" + """used by `in` operator to check if an attribute value was set in an instance: `'attr' in instance`""" if name in self.required_properties: return name in self.__dict__ @@ -501,7 +501,7 @@ class ModelNormal(OpenApiModel): ) def __contains__(self, name): - """used by `in` operator to check if an attrbute value was set in an instance: `'attr' in instance`""" + """used by `in` operator to check if an attribute value was set in an instance: `'attr' in instance`""" if name in self.required_properties: return name in self.__dict__ @@ -648,7 +648,7 @@ class ModelComposed(OpenApiModel): return value def __contains__(self, name): - """used by `in` operator to check if an attrbute value was set in an instance: `'attr' in instance`""" + """used by `in` operator to check if an attribute value was set in an instance: `'attr' in instance`""" if name in self.required_properties: return name in self.__dict__ diff --git a/samples/openapi3/client/features/dynamic-servers/python/git_push.sh b/samples/openapi3/client/features/dynamic-servers/python/git_push.sh index 9405f72e950..18f86b99e82 100644 --- a/samples/openapi3/client/features/dynamic-servers/python/git_push.sh +++ b/samples/openapi3/client/features/dynamic-servers/python/git_push.sh @@ -1,7 +1,7 @@ #!/bin/sh # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" git_user_id=$1 git_repo_id=$2 diff --git a/samples/openapi3/client/features/dynamic-servers/ruby/git_push.sh b/samples/openapi3/client/features/dynamic-servers/ruby/git_push.sh index 9405f72e950..18f86b99e82 100644 --- a/samples/openapi3/client/features/dynamic-servers/ruby/git_push.sh +++ b/samples/openapi3/client/features/dynamic-servers/ruby/git_push.sh @@ -1,7 +1,7 @@ #!/bin/sh # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" git_user_id=$1 git_repo_id=$2 diff --git a/samples/openapi3/client/features/dynamic-servers/ruby/lib/dynamic_servers/api_client.rb b/samples/openapi3/client/features/dynamic-servers/ruby/lib/dynamic_servers/api_client.rb index 99f39214ecc..2e879c75eec 100644 --- a/samples/openapi3/client/features/dynamic-servers/ruby/lib/dynamic_servers/api_client.rb +++ b/samples/openapi3/client/features/dynamic-servers/ruby/lib/dynamic_servers/api_client.rb @@ -295,7 +295,7 @@ module DynamicServers @config.base_url(opts[:operation]) + path end - # Update hearder and query params based on authentication settings. + # Update header and query params based on authentication settings. # # @param [Hash] header_params Header parameters # @param [Hash] query_params Query parameters diff --git a/samples/openapi3/client/features/generate-alias-as-model/ruby-client/git_push.sh b/samples/openapi3/client/features/generate-alias-as-model/ruby-client/git_push.sh index 9405f72e950..18f86b99e82 100644 --- a/samples/openapi3/client/features/generate-alias-as-model/ruby-client/git_push.sh +++ b/samples/openapi3/client/features/generate-alias-as-model/ruby-client/git_push.sh @@ -1,7 +1,7 @@ #!/bin/sh # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" git_user_id=$1 git_repo_id=$2 diff --git a/samples/openapi3/client/features/generate-alias-as-model/ruby-client/lib/petstore/api_client.rb b/samples/openapi3/client/features/generate-alias-as-model/ruby-client/lib/petstore/api_client.rb index 77109ac5853..7c33b9779cb 100644 --- a/samples/openapi3/client/features/generate-alias-as-model/ruby-client/lib/petstore/api_client.rb +++ b/samples/openapi3/client/features/generate-alias-as-model/ruby-client/lib/petstore/api_client.rb @@ -295,7 +295,7 @@ module Petstore @config.base_url(opts[:operation]) + path end - # Update hearder and query params based on authentication settings. + # Update header and query params based on authentication settings. # # @param [Hash] header_params Header parameters # @param [Hash] query_params Query parameters diff --git a/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake/README.md b/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake/README.md index cb1aea6da2d..52553e236b0 100644 --- a/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake/README.md +++ b/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake/README.md @@ -82,7 +82,7 @@ Class | Method | HTTP request | Description [*FakeApi*](doc/FakeApi.md) | [**testGroupParameters**](doc/FakeApi.md#testgroupparameters) | **DELETE** /fake | Fake endpoint to test group parameters (optional) [*FakeApi*](doc/FakeApi.md) | [**testInlineAdditionalProperties**](doc/FakeApi.md#testinlineadditionalproperties) | **POST** /fake/inline-additionalProperties | test inline additionalProperties [*FakeApi*](doc/FakeApi.md) | [**testJsonFormData**](doc/FakeApi.md#testjsonformdata) | **GET** /fake/jsonFormData | test json serialization of form data -[*FakeApi*](doc/FakeApi.md) | [**testQueryParameterCollectionFormat**](doc/FakeApi.md#testqueryparametercollectionformat) | **PUT** /fake/test-query-paramters | +[*FakeApi*](doc/FakeApi.md) | [**testQueryParameterCollectionFormat**](doc/FakeApi.md#testqueryparametercollectionformat) | **PUT** /fake/test-query-parameters | [*FakeClassnameTags123Api*](doc/FakeClassnameTags123Api.md) | [**testClassname**](doc/FakeClassnameTags123Api.md#testclassname) | **PATCH** /fake_classname_test | To test class name in snake case [*PetApi*](doc/PetApi.md) | [**addPet**](doc/PetApi.md#addpet) | **POST** /pet | Add a new pet to the store [*PetApi*](doc/PetApi.md) | [**deletePet**](doc/PetApi.md#deletepet) | **DELETE** /pet/{petId} | Deletes a pet diff --git a/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake/doc/FakeApi.md b/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake/doc/FakeApi.md index f2833663985..ed94b4b79b1 100644 --- a/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake/doc/FakeApi.md +++ b/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake/doc/FakeApi.md @@ -25,7 +25,7 @@ Method | HTTP request | Description [**testGroupParameters**](FakeApi.md#testgroupparameters) | **DELETE** /fake | Fake endpoint to test group parameters (optional) [**testInlineAdditionalProperties**](FakeApi.md#testinlineadditionalproperties) | **POST** /fake/inline-additionalProperties | test inline additionalProperties [**testJsonFormData**](FakeApi.md#testjsonformdata) | **GET** /fake/jsonFormData | test json serialization of form data -[**testQueryParameterCollectionFormat**](FakeApi.md#testqueryparametercollectionformat) | **PUT** /fake/test-query-paramters | +[**testQueryParameterCollectionFormat**](FakeApi.md#testqueryparametercollectionformat) | **PUT** /fake/test-query-parameters | # **fakeHealthGet** diff --git a/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake/lib/src/api/fake_api.dart b/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake/lib/src/api/fake_api.dart index a05711cd945..22a2d4706fe 100644 --- a/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake/lib/src/api/fake_api.dart +++ b/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake/lib/src/api/fake_api.dart @@ -1377,7 +1377,7 @@ class FakeApi { ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress, }) async { - final _path = r'/fake/test-query-paramters'; + final _path = r'/fake/test-query-parameters'; final _options = Options( method: r'PUT', headers: { diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/README.md b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/README.md index 825eff0da8f..e03bec1228a 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/README.md +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/README.md @@ -76,7 +76,7 @@ Class | Method | HTTP request | Description *FakeApi* | [**testGroupParameters**](doc/FakeApi.md#testgroupparameters) | **DELETE** /fake | Fake endpoint to test group parameters (optional) *FakeApi* | [**testInlineAdditionalProperties**](doc/FakeApi.md#testinlineadditionalproperties) | **POST** /fake/inline-additionalProperties | test inline additionalProperties *FakeApi* | [**testJsonFormData**](doc/FakeApi.md#testjsonformdata) | **GET** /fake/jsonFormData | test json serialization of form data -*FakeApi* | [**testQueryParameterCollectionFormat**](doc/FakeApi.md#testqueryparametercollectionformat) | **PUT** /fake/test-query-paramters | +*FakeApi* | [**testQueryParameterCollectionFormat**](doc/FakeApi.md#testqueryparametercollectionformat) | **PUT** /fake/test-query-parameters | *FakeClassnameTags123Api* | [**testClassname**](doc/FakeClassnameTags123Api.md#testclassname) | **PATCH** /fake_classname_test | To test class name in snake case *PetApi* | [**addPet**](doc/PetApi.md#addpet) | **POST** /pet | Add a new pet to the store *PetApi* | [**deletePet**](doc/PetApi.md#deletepet) | **DELETE** /pet/{petId} | Deletes a pet diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/FakeApi.md b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/FakeApi.md index d1a39865abc..9e9fee11ef4 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/FakeApi.md +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/FakeApi.md @@ -25,7 +25,7 @@ Method | HTTP request | Description [**testGroupParameters**](FakeApi.md#testgroupparameters) | **DELETE** /fake | Fake endpoint to test group parameters (optional) [**testInlineAdditionalProperties**](FakeApi.md#testinlineadditionalproperties) | **POST** /fake/inline-additionalProperties | test inline additionalProperties [**testJsonFormData**](FakeApi.md#testjsonformdata) | **GET** /fake/jsonFormData | test json serialization of form data -[**testQueryParameterCollectionFormat**](FakeApi.md#testqueryparametercollectionformat) | **PUT** /fake/test-query-paramters | +[**testQueryParameterCollectionFormat**](FakeApi.md#testqueryparametercollectionformat) | **PUT** /fake/test-query-parameters | # **fakeHealthGet** diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/api/fake_api.dart b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/api/fake_api.dart index 51627965684..98444a81c25 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/api/fake_api.dart +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/api/fake_api.dart @@ -901,7 +901,7 @@ class FakeApi { ProgressCallback onReceiveProgress, }) async { final _request = RequestOptions( - path: r'/fake/test-query-paramters', + path: r'/fake/test-query-parameters', method: 'PUT', headers: { ...?headers, diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib/git_push.sh b/samples/openapi3/client/petstore/dart2/petstore_client_lib/git_push.sh index 9405f72e950..18f86b99e82 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib/git_push.sh +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib/git_push.sh @@ -1,7 +1,7 @@ #!/bin/sh # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" git_user_id=$1 git_repo_id=$2 diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/README.md b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/README.md index 632231a59b1..db2f2c26eac 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/README.md +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/README.md @@ -76,7 +76,7 @@ Class | Method | HTTP request | Description *FakeApi* | [**testGroupParameters**](doc//FakeApi.md#testgroupparameters) | **DELETE** /fake | Fake endpoint to test group parameters (optional) *FakeApi* | [**testInlineAdditionalProperties**](doc//FakeApi.md#testinlineadditionalproperties) | **POST** /fake/inline-additionalProperties | test inline additionalProperties *FakeApi* | [**testJsonFormData**](doc//FakeApi.md#testjsonformdata) | **GET** /fake/jsonFormData | test json serialization of form data -*FakeApi* | [**testQueryParameterCollectionFormat**](doc//FakeApi.md#testqueryparametercollectionformat) | **PUT** /fake/test-query-paramters | +*FakeApi* | [**testQueryParameterCollectionFormat**](doc//FakeApi.md#testqueryparametercollectionformat) | **PUT** /fake/test-query-parameters | *FakeClassnameTags123Api* | [**testClassname**](doc//FakeClassnameTags123Api.md#testclassname) | **PATCH** /fake_classname_test | To test class name in snake case *PetApi* | [**addPet**](doc//PetApi.md#addpet) | **POST** /pet | Add a new pet to the store *PetApi* | [**deletePet**](doc//PetApi.md#deletepet) | **DELETE** /pet/{petId} | Deletes a pet diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/doc/FakeApi.md b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/doc/FakeApi.md index 9591c3be0c9..2b8a068b46d 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/doc/FakeApi.md +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/doc/FakeApi.md @@ -25,7 +25,7 @@ Method | HTTP request | Description [**testGroupParameters**](FakeApi.md#testgroupparameters) | **DELETE** /fake | Fake endpoint to test group parameters (optional) [**testInlineAdditionalProperties**](FakeApi.md#testinlineadditionalproperties) | **POST** /fake/inline-additionalProperties | test inline additionalProperties [**testJsonFormData**](FakeApi.md#testjsonformdata) | **GET** /fake/jsonFormData | test json serialization of form data -[**testQueryParameterCollectionFormat**](FakeApi.md#testqueryparametercollectionformat) | **PUT** /fake/test-query-paramters | +[**testQueryParameterCollectionFormat**](FakeApi.md#testqueryparametercollectionformat) | **PUT** /fake/test-query-parameters | # **fakeHealthGet** diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/git_push.sh b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/git_push.sh index 9405f72e950..18f86b99e82 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/git_push.sh +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/git_push.sh @@ -1,7 +1,7 @@ #!/bin/sh # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" git_user_id=$1 git_repo_id=$2 diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/lib/api/fake_api.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/lib/api/fake_api.dart index bf1789e6855..7d6048e41f7 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/lib/api/fake_api.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/lib/api/fake_api.dart @@ -1196,7 +1196,7 @@ class FakeApi { throw ApiException(HttpStatus.badRequest, 'Missing required param: context'); } - final path = r'/fake/test-query-paramters'; + final path = r'/fake/test-query-parameters'; Object postBody; diff --git a/samples/openapi3/client/petstore/dart2/petstore_json_serializable_client_lib_fake/README.md b/samples/openapi3/client/petstore/dart2/petstore_json_serializable_client_lib_fake/README.md index 632231a59b1..db2f2c26eac 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_json_serializable_client_lib_fake/README.md +++ b/samples/openapi3/client/petstore/dart2/petstore_json_serializable_client_lib_fake/README.md @@ -76,7 +76,7 @@ Class | Method | HTTP request | Description *FakeApi* | [**testGroupParameters**](doc//FakeApi.md#testgroupparameters) | **DELETE** /fake | Fake endpoint to test group parameters (optional) *FakeApi* | [**testInlineAdditionalProperties**](doc//FakeApi.md#testinlineadditionalproperties) | **POST** /fake/inline-additionalProperties | test inline additionalProperties *FakeApi* | [**testJsonFormData**](doc//FakeApi.md#testjsonformdata) | **GET** /fake/jsonFormData | test json serialization of form data -*FakeApi* | [**testQueryParameterCollectionFormat**](doc//FakeApi.md#testqueryparametercollectionformat) | **PUT** /fake/test-query-paramters | +*FakeApi* | [**testQueryParameterCollectionFormat**](doc//FakeApi.md#testqueryparametercollectionformat) | **PUT** /fake/test-query-parameters | *FakeClassnameTags123Api* | [**testClassname**](doc//FakeClassnameTags123Api.md#testclassname) | **PATCH** /fake_classname_test | To test class name in snake case *PetApi* | [**addPet**](doc//PetApi.md#addpet) | **POST** /pet | Add a new pet to the store *PetApi* | [**deletePet**](doc//PetApi.md#deletepet) | **DELETE** /pet/{petId} | Deletes a pet diff --git a/samples/openapi3/client/petstore/dart2/petstore_json_serializable_client_lib_fake/doc/FakeApi.md b/samples/openapi3/client/petstore/dart2/petstore_json_serializable_client_lib_fake/doc/FakeApi.md index 9591c3be0c9..2b8a068b46d 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_json_serializable_client_lib_fake/doc/FakeApi.md +++ b/samples/openapi3/client/petstore/dart2/petstore_json_serializable_client_lib_fake/doc/FakeApi.md @@ -25,7 +25,7 @@ Method | HTTP request | Description [**testGroupParameters**](FakeApi.md#testgroupparameters) | **DELETE** /fake | Fake endpoint to test group parameters (optional) [**testInlineAdditionalProperties**](FakeApi.md#testinlineadditionalproperties) | **POST** /fake/inline-additionalProperties | test inline additionalProperties [**testJsonFormData**](FakeApi.md#testjsonformdata) | **GET** /fake/jsonFormData | test json serialization of form data -[**testQueryParameterCollectionFormat**](FakeApi.md#testqueryparametercollectionformat) | **PUT** /fake/test-query-paramters | +[**testQueryParameterCollectionFormat**](FakeApi.md#testqueryparametercollectionformat) | **PUT** /fake/test-query-parameters | # **fakeHealthGet** diff --git a/samples/openapi3/client/petstore/dart2/petstore_json_serializable_client_lib_fake/git_push.sh b/samples/openapi3/client/petstore/dart2/petstore_json_serializable_client_lib_fake/git_push.sh index 9405f72e950..18f86b99e82 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_json_serializable_client_lib_fake/git_push.sh +++ b/samples/openapi3/client/petstore/dart2/petstore_json_serializable_client_lib_fake/git_push.sh @@ -1,7 +1,7 @@ #!/bin/sh # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" git_user_id=$1 git_repo_id=$2 diff --git a/samples/openapi3/client/petstore/dart2/petstore_json_serializable_client_lib_fake/lib/api/fake_api.dart b/samples/openapi3/client/petstore/dart2/petstore_json_serializable_client_lib_fake/lib/api/fake_api.dart index 07047e6bdec..0fdbd57ab88 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_json_serializable_client_lib_fake/lib/api/fake_api.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_json_serializable_client_lib_fake/lib/api/fake_api.dart @@ -1203,7 +1203,7 @@ class FakeApi { throw ApiException(HttpStatus.badRequest, 'Missing required param: context'); } - final path = r'/fake/test-query-paramters'; + final path = r'/fake/test-query-parameters'; Object postBody; diff --git a/samples/openapi3/client/petstore/go/go-petstore/README.md b/samples/openapi3/client/petstore/go/go-petstore/README.md index c3b0a2fc72d..64d951b11c0 100644 --- a/samples/openapi3/client/petstore/go/go-petstore/README.md +++ b/samples/openapi3/client/petstore/go/go-petstore/README.md @@ -58,7 +58,7 @@ Note, enum values are always validated and all unused variables are silently ign ### URLs Configuration per Operation Each operation can use different server URL defined using `OperationServers` map in the `Configuration`. -An operation is uniquely identifield by `"{classname}Service.{nickname}"` string. +An operation is uniquely identified by `"{classname}Service.{nickname}"` string. Similar rules for overriding default operation server index and variables applies by using `sw.ContextOperationServerIndices` and `sw.ContextOperationServerVariables` context maps. ``` @@ -93,8 +93,8 @@ Class | Method | HTTP request | Description *FakeApi* | [**TestGroupParameters**](docs/FakeApi.md#testgroupparameters) | **Delete** /fake | Fake endpoint to test group parameters (optional) *FakeApi* | [**TestInlineAdditionalProperties**](docs/FakeApi.md#testinlineadditionalproperties) | **Post** /fake/inline-additionalProperties | test inline additionalProperties *FakeApi* | [**TestJsonFormData**](docs/FakeApi.md#testjsonformdata) | **Get** /fake/jsonFormData | test json serialization of form data -*FakeApi* | [**TestQueryParameterCollectionFormat**](docs/FakeApi.md#testqueryparametercollectionformat) | **Put** /fake/test-query-paramters | -*FakeApi* | [**TestUniqueItemsHeaderAndQueryParameterCollectionFormat**](docs/FakeApi.md#testuniqueitemsheaderandqueryparametercollectionformat) | **Put** /fake/test-unique-paramters | +*FakeApi* | [**TestQueryParameterCollectionFormat**](docs/FakeApi.md#testqueryparametercollectionformat) | **Put** /fake/test-query-parameters | +*FakeApi* | [**TestUniqueItemsHeaderAndQueryParameterCollectionFormat**](docs/FakeApi.md#testuniqueitemsheaderandqueryparametercollectionformat) | **Put** /fake/test-unique-parameters | *FakeClassnameTags123Api* | [**TestClassname**](docs/FakeClassnameTags123Api.md#testclassname) | **Patch** /fake_classname_test | To test class name in snake case *PetApi* | [**AddPet**](docs/PetApi.md#addpet) | **Post** /pet | Add a new pet to the store *PetApi* | [**DeletePet**](docs/PetApi.md#deletepet) | **Delete** /pet/{petId} | Deletes a pet diff --git a/samples/openapi3/client/petstore/go/go-petstore/api/openapi.yaml b/samples/openapi3/client/petstore/go/go-petstore/api/openapi.yaml index afc9566dabe..bdf23ed1981 100644 --- a/samples/openapi3/client/petstore/go/go-petstore/api/openapi.yaml +++ b/samples/openapi3/client/petstore/go/go-petstore/api/openapi.yaml @@ -1078,7 +1078,7 @@ paths: description: Success tags: - fake - /fake/test-query-paramters: + /fake/test-query-parameters: put: description: To test the collection format in query parameters operationId: testQueryParameterCollectionFormat @@ -1133,7 +1133,7 @@ paths: description: Success tags: - fake - /fake/test-unique-paramters: + /fake/test-unique-parameters: put: description: To test unique items in header and query parameters operationId: testUniqueItemsHeaderAndQueryParameterCollectionFormat diff --git a/samples/openapi3/client/petstore/go/go-petstore/api_fake.go b/samples/openapi3/client/petstore/go/go-petstore/api_fake.go index ac3055bfb6e..bcdf35e0231 100644 --- a/samples/openapi3/client/petstore/go/go-petstore/api_fake.go +++ b/samples/openapi3/client/petstore/go/go-petstore/api_fake.go @@ -1930,7 +1930,7 @@ func (a *FakeApiService) TestQueryParameterCollectionFormatExecute(r ApiTestQuer return nil, GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/fake/test-query-paramters" + localVarPath := localBasePath + "/fake/test-query-parameters" localVarHeaderParams := make(map[string]string) localVarQueryParams := _neturl.Values{} @@ -2073,7 +2073,7 @@ func (a *FakeApiService) TestUniqueItemsHeaderAndQueryParameterCollectionFormatE return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/fake/test-unique-paramters" + localVarPath := localBasePath + "/fake/test-unique-parameters" localVarHeaderParams := make(map[string]string) localVarQueryParams := _neturl.Values{} diff --git a/samples/openapi3/client/petstore/go/go-petstore/docs/FakeApi.md b/samples/openapi3/client/petstore/go/go-petstore/docs/FakeApi.md index 8ced9ff7c2a..13dba6a766a 100644 --- a/samples/openapi3/client/petstore/go/go-petstore/docs/FakeApi.md +++ b/samples/openapi3/client/petstore/go/go-petstore/docs/FakeApi.md @@ -17,8 +17,8 @@ Method | HTTP request | Description [**TestGroupParameters**](FakeApi.md#TestGroupParameters) | **Delete** /fake | Fake endpoint to test group parameters (optional) [**TestInlineAdditionalProperties**](FakeApi.md#TestInlineAdditionalProperties) | **Post** /fake/inline-additionalProperties | test inline additionalProperties [**TestJsonFormData**](FakeApi.md#TestJsonFormData) | **Get** /fake/jsonFormData | test json serialization of form data -[**TestQueryParameterCollectionFormat**](FakeApi.md#TestQueryParameterCollectionFormat) | **Put** /fake/test-query-paramters | -[**TestUniqueItemsHeaderAndQueryParameterCollectionFormat**](FakeApi.md#TestUniqueItemsHeaderAndQueryParameterCollectionFormat) | **Put** /fake/test-unique-paramters | +[**TestQueryParameterCollectionFormat**](FakeApi.md#TestQueryParameterCollectionFormat) | **Put** /fake/test-query-parameters | +[**TestUniqueItemsHeaderAndQueryParameterCollectionFormat**](FakeApi.md#TestUniqueItemsHeaderAndQueryParameterCollectionFormat) | **Put** /fake/test-unique-parameters | diff --git a/samples/openapi3/client/petstore/go/go-petstore/git_push.sh b/samples/openapi3/client/petstore/go/go-petstore/git_push.sh index 9405f72e950..18f86b99e82 100644 --- a/samples/openapi3/client/petstore/go/go-petstore/git_push.sh +++ b/samples/openapi3/client/petstore/go/go-petstore/git_push.sh @@ -1,7 +1,7 @@ #!/bin/sh # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" git_user_id=$1 git_repo_id=$2 diff --git a/samples/openapi3/client/petstore/go/go-petstore/signing.go b/samples/openapi3/client/petstore/go/go-petstore/signing.go index 55b954f5fd5..f2610ce7742 100644 --- a/samples/openapi3/client/petstore/go/go-petstore/signing.go +++ b/samples/openapi3/client/petstore/go/go-petstore/signing.go @@ -217,7 +217,7 @@ func (h *HttpSignatureAuth) parsePrivateKey(priv []byte) error { privKey, err = x509.DecryptPEMBlock(pemBlock, []byte(h.Passphrase)) if err != nil { // Failed to decrypt PEM block. Because of deficiencies in the encrypted-PEM format, - // it's not always possibleto detect an incorrect password. + // it's not always possible to detect an incorrect password. return err } } else { diff --git a/samples/openapi3/client/petstore/java/jersey2-java8-special-characters/git_push.sh b/samples/openapi3/client/petstore/java/jersey2-java8-special-characters/git_push.sh index 9405f72e950..18f86b99e82 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8-special-characters/git_push.sh +++ b/samples/openapi3/client/petstore/java/jersey2-java8-special-characters/git_push.sh @@ -1,7 +1,7 @@ #!/bin/sh # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" git_user_id=$1 git_repo_id=$2 diff --git a/samples/openapi3/client/petstore/java/jersey2-java8-special-characters/src/main/java/org/openapitools/client/ApiClient.java b/samples/openapi3/client/petstore/java/jersey2-java8-special-characters/src/main/java/org/openapitools/client/ApiClient.java index 543f834a5d8..2ed169966ee 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8-special-characters/src/main/java/org/openapitools/client/ApiClient.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8-special-characters/src/main/java/org/openapitools/client/ApiClient.java @@ -405,7 +405,7 @@ public class ApiClient extends JavaTimeFormatter { /** * The path of temporary folder used to store downloaded files from endpoints * with file response. The default value is null, i.e. using - * the system's default tempopary folder. + * the system's default temporary folder. * * @return Temp folder path */ @@ -1045,7 +1045,7 @@ public class ApiClient extends JavaTimeFormatter { /** * Customize the client builder. * - * This method can be overriden to customize the API client. For example, this can be used to: + * This method can be overridden to customize the API client. For example, this can be used to: * 1. Set the hostname verifier to be used by the client to verify the endpoint's hostname * against its identification information. * 2. Set the client-side key store. diff --git a/samples/openapi3/client/petstore/java/jersey2-java8-special-characters/src/main/java/org/openapitools/client/ServerConfiguration.java b/samples/openapi3/client/petstore/java/jersey2-java8-special-characters/src/main/java/org/openapitools/client/ServerConfiguration.java index a1107a8690e..e08da9aac7d 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8-special-characters/src/main/java/org/openapitools/client/ServerConfiguration.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8-special-characters/src/main/java/org/openapitools/client/ServerConfiguration.java @@ -12,7 +12,7 @@ public class ServerConfiguration { /** * @param URL A URL to the target host. - * @param description A describtion of the host designated by the URL. + * @param description A description of the host designated by the URL. * @param variables A map between a variable name and its value. The value is used for substitution in the server's URL template. */ public ServerConfiguration(String URL, String description, Map variables) { diff --git a/samples/openapi3/client/petstore/java/jersey2-java8-special-characters/src/main/java/org/openapitools/client/api/DefaultApi.java b/samples/openapi3/client/petstore/java/jersey2-java8-special-characters/src/main/java/org/openapitools/client/api/DefaultApi.java index 0aa6d3c871d..2bbea7b750c 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8-special-characters/src/main/java/org/openapitools/client/api/DefaultApi.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8-special-characters/src/main/java/org/openapitools/client/api/DefaultApi.java @@ -28,7 +28,7 @@ public class DefaultApi { } /** - * Get the API cilent + * Get the API client * * @return API client */ @@ -37,7 +37,7 @@ public class DefaultApi { } /** - * Set the API cilent + * Set the API client * * @param apiClient an instance of API client */ diff --git a/samples/openapi3/client/petstore/java/jersey2-java8-special-characters/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java b/samples/openapi3/client/petstore/java/jersey2-java8-special-characters/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java index c2af88d825a..7341e03fc29 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8-special-characters/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8-special-characters/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java @@ -132,7 +132,7 @@ public abstract class AbstractOpenApiSchema { } /** - * Is nullalble + * Is nullable * * @return true if it's nullable */ diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/README.md b/samples/openapi3/client/petstore/java/jersey2-java8/README.md index e4abe69b9e1..0c9137a14d9 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/README.md +++ b/samples/openapi3/client/petstore/java/jersey2-java8/README.md @@ -147,7 +147,7 @@ Class | Method | HTTP request | Description *FakeApi* | [**testGroupParameters**](docs/FakeApi.md#testGroupParameters) | **DELETE** /fake | Fake endpoint to test group parameters (optional) *FakeApi* | [**testInlineAdditionalProperties**](docs/FakeApi.md#testInlineAdditionalProperties) | **POST** /fake/inline-additionalProperties | test inline additionalProperties *FakeApi* | [**testJsonFormData**](docs/FakeApi.md#testJsonFormData) | **GET** /fake/jsonFormData | test json serialization of form data -*FakeApi* | [**testQueryParameterCollectionFormat**](docs/FakeApi.md#testQueryParameterCollectionFormat) | **PUT** /fake/test-query-paramters | +*FakeApi* | [**testQueryParameterCollectionFormat**](docs/FakeApi.md#testQueryParameterCollectionFormat) | **PUT** /fake/test-query-parameters | *FakeClassnameTags123Api* | [**testClassname**](docs/FakeClassnameTags123Api.md#testClassname) | **PATCH** /fake_classname_test | To test class name in snake case *PetApi* | [**addPet**](docs/PetApi.md#addPet) | **POST** /pet | Add a new pet to the store *PetApi* | [**deletePet**](docs/PetApi.md#deletePet) | **DELETE** /pet/{petId} | Deletes a pet diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/api/openapi.yaml b/samples/openapi3/client/petstore/java/jersey2-java8/api/openapi.yaml index db6c6af8419..46bb0856940 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/api/openapi.yaml +++ b/samples/openapi3/client/petstore/java/jersey2-java8/api/openapi.yaml @@ -1125,7 +1125,7 @@ paths: - fake x-contentType: application/json x-accepts: application/json - /fake/test-query-paramters: + /fake/test-query-parameters: put: description: To test the collection format in query parameters operationId: testQueryParameterCollectionFormat diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/docs/FakeApi.md b/samples/openapi3/client/petstore/java/jersey2-java8/docs/FakeApi.md index 20065b831e7..505db20273f 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/docs/FakeApi.md +++ b/samples/openapi3/client/petstore/java/jersey2-java8/docs/FakeApi.md @@ -18,7 +18,7 @@ Method | HTTP request | Description [**testGroupParameters**](FakeApi.md#testGroupParameters) | **DELETE** /fake | Fake endpoint to test group parameters (optional) [**testInlineAdditionalProperties**](FakeApi.md#testInlineAdditionalProperties) | **POST** /fake/inline-additionalProperties | test inline additionalProperties [**testJsonFormData**](FakeApi.md#testJsonFormData) | **GET** /fake/jsonFormData | test json serialization of form data -[**testQueryParameterCollectionFormat**](FakeApi.md#testQueryParameterCollectionFormat) | **PUT** /fake/test-query-paramters | +[**testQueryParameterCollectionFormat**](FakeApi.md#testQueryParameterCollectionFormat) | **PUT** /fake/test-query-parameters | diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/git_push.sh b/samples/openapi3/client/petstore/java/jersey2-java8/git_push.sh index 9405f72e950..18f86b99e82 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/git_push.sh +++ b/samples/openapi3/client/petstore/java/jersey2-java8/git_push.sh @@ -1,7 +1,7 @@ #!/bin/sh # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" git_user_id=$1 git_repo_id=$2 diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/ApiClient.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/ApiClient.java index 266cd2c6d5a..dec198d485c 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/ApiClient.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/ApiClient.java @@ -608,7 +608,7 @@ public class ApiClient extends JavaTimeFormatter { /** * The path of temporary folder used to store downloaded files from endpoints * with file response. The default value is null, i.e. using - * the system's default tempopary folder. + * the system's default temporary folder. * * @return Temp folder path */ @@ -1264,7 +1264,7 @@ public class ApiClient extends JavaTimeFormatter { /** * Customize the client builder. * - * This method can be overriden to customize the API client. For example, this can be used to: + * This method can be overridden to customize the API client. For example, this can be used to: * 1. Set the hostname verifier to be used by the client to verify the endpoint's hostname * against its identification information. * 2. Set the client-side key store. diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/ServerConfiguration.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/ServerConfiguration.java index a1107a8690e..e08da9aac7d 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/ServerConfiguration.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/ServerConfiguration.java @@ -12,7 +12,7 @@ public class ServerConfiguration { /** * @param URL A URL to the target host. - * @param description A describtion of the host designated by the URL. + * @param description A description of the host designated by the URL. * @param variables A map between a variable name and its value. The value is used for substitution in the server's URL template. */ public ServerConfiguration(String URL, String description, Map variables) { diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/api/AnotherFakeApi.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/api/AnotherFakeApi.java index 7a9f7b08b63..0a0eb17b606 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/api/AnotherFakeApi.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/api/AnotherFakeApi.java @@ -28,7 +28,7 @@ public class AnotherFakeApi { } /** - * Get the API cilent + * Get the API client * * @return API client */ @@ -37,7 +37,7 @@ public class AnotherFakeApi { } /** - * Set the API cilent + * Set the API client * * @param apiClient an instance of API client */ diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/api/DefaultApi.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/api/DefaultApi.java index a49fdc11d85..e35e81cad3f 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/api/DefaultApi.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/api/DefaultApi.java @@ -28,7 +28,7 @@ public class DefaultApi { } /** - * Get the API cilent + * Get the API client * * @return API client */ @@ -37,7 +37,7 @@ public class DefaultApi { } /** - * Set the API cilent + * Set the API client * * @param apiClient an instance of API client */ diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/api/FakeApi.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/api/FakeApi.java index 95c31caa814..0b9970cb6b1 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/api/FakeApi.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/api/FakeApi.java @@ -37,7 +37,7 @@ public class FakeApi { } /** - * Get the API cilent + * Get the API client * * @return API client */ @@ -46,7 +46,7 @@ public class FakeApi { } /** - * Set the API cilent + * Set the API client * * @param apiClient an instance of API client */ @@ -1221,7 +1221,7 @@ if (param2 != null) } // create path and map variables - String localVarPath = "/fake/test-query-paramters"; + String localVarPath = "/fake/test-query-parameters"; // query params List localVarQueryParams = new ArrayList(); diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java index fe39623440e..7dabf14a620 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java @@ -28,7 +28,7 @@ public class FakeClassnameTags123Api { } /** - * Get the API cilent + * Get the API client * * @return API client */ @@ -37,7 +37,7 @@ public class FakeClassnameTags123Api { } /** - * Set the API cilent + * Set the API client * * @param apiClient an instance of API client */ diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/api/PetApi.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/api/PetApi.java index 3637b9e61a5..9f36ab16047 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/api/PetApi.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/api/PetApi.java @@ -30,7 +30,7 @@ public class PetApi { } /** - * Get the API cilent + * Get the API client * * @return API client */ @@ -39,7 +39,7 @@ public class PetApi { } /** - * Set the API cilent + * Set the API client * * @param apiClient an instance of API client */ diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/api/StoreApi.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/api/StoreApi.java index 75fa95592c0..d0b86d18a2a 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/api/StoreApi.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/api/StoreApi.java @@ -28,7 +28,7 @@ public class StoreApi { } /** - * Get the API cilent + * Get the API client * * @return API client */ @@ -37,7 +37,7 @@ public class StoreApi { } /** - * Set the API cilent + * Set the API client * * @param apiClient an instance of API client */ diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/api/UserApi.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/api/UserApi.java index bdf2c62fcf0..ab1c5d462d7 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/api/UserApi.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/api/UserApi.java @@ -28,7 +28,7 @@ public class UserApi { } /** - * Get the API cilent + * Get the API client * * @return API client */ @@ -37,7 +37,7 @@ public class UserApi { } /** - * Set the API cilent + * Set the API client * * @param apiClient an instance of API client */ diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java index 9ff714899ff..2cbb534c514 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java @@ -132,7 +132,7 @@ public abstract class AbstractOpenApiSchema { } /** - * Is nullalble + * Is nullable * * @return true if it's nullable */ diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Fruit.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Fruit.java index d76364f20f8..434fd349ee1 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Fruit.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Fruit.java @@ -228,7 +228,7 @@ public class Fruit extends AbstractOpenApiSchema { } /** - * Get the actual instance of `Apple`. If the actual instanct is not `Apple`, + * Get the actual instance of `Apple`. If the actual instance is not `Apple`, * the ClassCastException will be thrown. * * @return The actual instance of `Apple` @@ -239,7 +239,7 @@ public class Fruit extends AbstractOpenApiSchema { } /** - * Get the actual instance of `Banana`. If the actual instanct is not `Banana`, + * Get the actual instance of `Banana`. If the actual instance is not `Banana`, * the ClassCastException will be thrown. * * @return The actual instance of `Banana` diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/FruitReq.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/FruitReq.java index bdd9ecf4df7..e38b9e41f7c 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/FruitReq.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/FruitReq.java @@ -235,7 +235,7 @@ public class FruitReq extends AbstractOpenApiSchema { } /** - * Get the actual instance of `AppleReq`. If the actual instanct is not `AppleReq`, + * Get the actual instance of `AppleReq`. If the actual instance is not `AppleReq`, * the ClassCastException will be thrown. * * @return The actual instance of `AppleReq` @@ -246,7 +246,7 @@ public class FruitReq extends AbstractOpenApiSchema { } /** - * Get the actual instance of `BananaReq`. If the actual instanct is not `BananaReq`, + * Get the actual instance of `BananaReq`. If the actual instance is not `BananaReq`, * the ClassCastException will be thrown. * * @return The actual instance of `BananaReq` diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/GmFruit.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/GmFruit.java index 3ea0e3cbc86..d0ad4d286da 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/GmFruit.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/GmFruit.java @@ -89,7 +89,7 @@ public class GmFruit extends AbstractOpenApiSchema { JsonNode tree = jp.readValueAsTree(); Object deserialized = null; - // deserialzie Apple + // deserialize Apple try { deserialized = tree.traverse(jp.getCodec()).readValueAs(Apple.class); GmFruit ret = new GmFruit(); @@ -100,7 +100,7 @@ public class GmFruit extends AbstractOpenApiSchema { log.log(Level.FINER, "Input data does not match 'GmFruit'", e); } - // deserialzie Banana + // deserialize Banana try { deserialized = tree.traverse(jp.getCodec()).readValueAs(Banana.class); GmFruit ret = new GmFruit(); @@ -188,7 +188,7 @@ public class GmFruit extends AbstractOpenApiSchema { } /** - * Get the actual instance of `Apple`. If the actual instanct is not `Apple`, + * Get the actual instance of `Apple`. If the actual instance is not `Apple`, * the ClassCastException will be thrown. * * @return The actual instance of `Apple` @@ -199,7 +199,7 @@ public class GmFruit extends AbstractOpenApiSchema { } /** - * Get the actual instance of `Banana`. If the actual instanct is not `Banana`, + * Get the actual instance of `Banana`. If the actual instance is not `Banana`, * the ClassCastException will be thrown. * * @return The actual instance of `Banana` diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Mammal.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Mammal.java index d9e132a9e01..05ea22122ef 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Mammal.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Mammal.java @@ -348,7 +348,7 @@ public class Mammal extends AbstractOpenApiSchema { } /** - * Get the actual instance of `Pig`. If the actual instanct is not `Pig`, + * Get the actual instance of `Pig`. If the actual instance is not `Pig`, * the ClassCastException will be thrown. * * @return The actual instance of `Pig` @@ -359,7 +359,7 @@ public class Mammal extends AbstractOpenApiSchema { } /** - * Get the actual instance of `Whale`. If the actual instanct is not `Whale`, + * Get the actual instance of `Whale`. If the actual instance is not `Whale`, * the ClassCastException will be thrown. * * @return The actual instance of `Whale` @@ -370,7 +370,7 @@ public class Mammal extends AbstractOpenApiSchema { } /** - * Get the actual instance of `Zebra`. If the actual instanct is not `Zebra`, + * Get the actual instance of `Zebra`. If the actual instance is not `Zebra`, * the ClassCastException will be thrown. * * @return The actual instance of `Zebra` diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/NullableShape.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/NullableShape.java index 7c4e8781774..dc226958b27 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/NullableShape.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/NullableShape.java @@ -311,7 +311,7 @@ public class NullableShape extends AbstractOpenApiSchema { } /** - * Get the actual instance of `Quadrilateral`. If the actual instanct is not `Quadrilateral`, + * Get the actual instance of `Quadrilateral`. If the actual instance is not `Quadrilateral`, * the ClassCastException will be thrown. * * @return The actual instance of `Quadrilateral` @@ -322,7 +322,7 @@ public class NullableShape extends AbstractOpenApiSchema { } /** - * Get the actual instance of `Triangle`. If the actual instanct is not `Triangle`, + * Get the actual instance of `Triangle`. If the actual instance is not `Triangle`, * the ClassCastException will be thrown. * * @return The actual instance of `Triangle` diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Pig.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Pig.java index 6e409da3710..8b029071b84 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Pig.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Pig.java @@ -304,7 +304,7 @@ public class Pig extends AbstractOpenApiSchema { } /** - * Get the actual instance of `BasquePig`. If the actual instanct is not `BasquePig`, + * Get the actual instance of `BasquePig`. If the actual instance is not `BasquePig`, * the ClassCastException will be thrown. * * @return The actual instance of `BasquePig` @@ -315,7 +315,7 @@ public class Pig extends AbstractOpenApiSchema { } /** - * Get the actual instance of `DanishPig`. If the actual instanct is not `DanishPig`, + * Get the actual instance of `DanishPig`. If the actual instance is not `DanishPig`, * the ClassCastException will be thrown. * * @return The actual instance of `DanishPig` diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Quadrilateral.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Quadrilateral.java index 393e4ef9df4..d4a85d5eb5e 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Quadrilateral.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Quadrilateral.java @@ -304,7 +304,7 @@ public class Quadrilateral extends AbstractOpenApiSchema { } /** - * Get the actual instance of `ComplexQuadrilateral`. If the actual instanct is not `ComplexQuadrilateral`, + * Get the actual instance of `ComplexQuadrilateral`. If the actual instance is not `ComplexQuadrilateral`, * the ClassCastException will be thrown. * * @return The actual instance of `ComplexQuadrilateral` @@ -315,7 +315,7 @@ public class Quadrilateral extends AbstractOpenApiSchema { } /** - * Get the actual instance of `SimpleQuadrilateral`. If the actual instanct is not `SimpleQuadrilateral`, + * Get the actual instance of `SimpleQuadrilateral`. If the actual instance is not `SimpleQuadrilateral`, * the ClassCastException will be thrown. * * @return The actual instance of `SimpleQuadrilateral` diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Shape.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Shape.java index 2d8044a437f..dcc10dadaa0 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Shape.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Shape.java @@ -304,7 +304,7 @@ public class Shape extends AbstractOpenApiSchema { } /** - * Get the actual instance of `Quadrilateral`. If the actual instanct is not `Quadrilateral`, + * Get the actual instance of `Quadrilateral`. If the actual instance is not `Quadrilateral`, * the ClassCastException will be thrown. * * @return The actual instance of `Quadrilateral` @@ -315,7 +315,7 @@ public class Shape extends AbstractOpenApiSchema { } /** - * Get the actual instance of `Triangle`. If the actual instanct is not `Triangle`, + * Get the actual instance of `Triangle`. If the actual instance is not `Triangle`, * the ClassCastException will be thrown. * * @return The actual instance of `Triangle` diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ShapeOrNull.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ShapeOrNull.java index 845ad8c7fee..195c51dd975 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ShapeOrNull.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ShapeOrNull.java @@ -311,7 +311,7 @@ public class ShapeOrNull extends AbstractOpenApiSchema { } /** - * Get the actual instance of `Quadrilateral`. If the actual instanct is not `Quadrilateral`, + * Get the actual instance of `Quadrilateral`. If the actual instance is not `Quadrilateral`, * the ClassCastException will be thrown. * * @return The actual instance of `Quadrilateral` @@ -322,7 +322,7 @@ public class ShapeOrNull extends AbstractOpenApiSchema { } /** - * Get the actual instance of `Triangle`. If the actual instanct is not `Triangle`, + * Get the actual instance of `Triangle`. If the actual instance is not `Triangle`, * the ClassCastException will be thrown. * * @return The actual instance of `Triangle` diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Triangle.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Triangle.java index aa322747ce6..8991558a310 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Triangle.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Triangle.java @@ -348,7 +348,7 @@ public class Triangle extends AbstractOpenApiSchema { } /** - * Get the actual instance of `EquilateralTriangle`. If the actual instanct is not `EquilateralTriangle`, + * Get the actual instance of `EquilateralTriangle`. If the actual instance is not `EquilateralTriangle`, * the ClassCastException will be thrown. * * @return The actual instance of `EquilateralTriangle` @@ -359,7 +359,7 @@ public class Triangle extends AbstractOpenApiSchema { } /** - * Get the actual instance of `IsoscelesTriangle`. If the actual instanct is not `IsoscelesTriangle`, + * Get the actual instance of `IsoscelesTriangle`. If the actual instance is not `IsoscelesTriangle`, * the ClassCastException will be thrown. * * @return The actual instance of `IsoscelesTriangle` @@ -370,7 +370,7 @@ public class Triangle extends AbstractOpenApiSchema { } /** - * Get the actual instance of `ScaleneTriangle`. If the actual instanct is not `ScaleneTriangle`, + * Get the actual instance of `ScaleneTriangle`. If the actual instance is not `ScaleneTriangle`, * the ClassCastException will be thrown. * * @return The actual instance of `ScaleneTriangle` diff --git a/samples/openapi3/client/petstore/java/native/README.md b/samples/openapi3/client/petstore/java/native/README.md index 9bb26aecb2c..53409eae500 100644 --- a/samples/openapi3/client/petstore/java/native/README.md +++ b/samples/openapi3/client/petstore/java/native/README.md @@ -137,8 +137,8 @@ Class | Method | HTTP request | Description *FakeApi* | [**testInlineAdditionalPropertiesWithHttpInfo**](docs/FakeApi.md#testInlineAdditionalPropertiesWithHttpInfo) | **POST** /fake/inline-additionalProperties | test inline additionalProperties *FakeApi* | [**testJsonFormData**](docs/FakeApi.md#testJsonFormData) | **GET** /fake/jsonFormData | test json serialization of form data *FakeApi* | [**testJsonFormDataWithHttpInfo**](docs/FakeApi.md#testJsonFormDataWithHttpInfo) | **GET** /fake/jsonFormData | test json serialization of form data -*FakeApi* | [**testQueryParameterCollectionFormat**](docs/FakeApi.md#testQueryParameterCollectionFormat) | **PUT** /fake/test-query-paramters | -*FakeApi* | [**testQueryParameterCollectionFormatWithHttpInfo**](docs/FakeApi.md#testQueryParameterCollectionFormatWithHttpInfo) | **PUT** /fake/test-query-paramters | +*FakeApi* | [**testQueryParameterCollectionFormat**](docs/FakeApi.md#testQueryParameterCollectionFormat) | **PUT** /fake/test-query-parameters | +*FakeApi* | [**testQueryParameterCollectionFormatWithHttpInfo**](docs/FakeApi.md#testQueryParameterCollectionFormatWithHttpInfo) | **PUT** /fake/test-query-parameters | *FakeClassnameTags123Api* | [**testClassname**](docs/FakeClassnameTags123Api.md#testClassname) | **PATCH** /fake_classname_test | To test class name in snake case *FakeClassnameTags123Api* | [**testClassnameWithHttpInfo**](docs/FakeClassnameTags123Api.md#testClassnameWithHttpInfo) | **PATCH** /fake_classname_test | To test class name in snake case *PetApi* | [**addPet**](docs/PetApi.md#addPet) | **POST** /pet | Add a new pet to the store diff --git a/samples/openapi3/client/petstore/java/native/api/openapi.yaml b/samples/openapi3/client/petstore/java/native/api/openapi.yaml index 235093bf19b..66a182e3a04 100644 --- a/samples/openapi3/client/petstore/java/native/api/openapi.yaml +++ b/samples/openapi3/client/petstore/java/native/api/openapi.yaml @@ -1124,7 +1124,7 @@ paths: - fake x-contentType: application/json x-accepts: application/json - /fake/test-query-paramters: + /fake/test-query-parameters: put: description: To test the collection format in query parameters operationId: testQueryParameterCollectionFormat diff --git a/samples/openapi3/client/petstore/java/native/docs/FakeApi.md b/samples/openapi3/client/petstore/java/native/docs/FakeApi.md index c9c9f047303..1ad9f946af1 100644 --- a/samples/openapi3/client/petstore/java/native/docs/FakeApi.md +++ b/samples/openapi3/client/petstore/java/native/docs/FakeApi.md @@ -32,8 +32,8 @@ Method | HTTP request | Description [**testInlineAdditionalPropertiesWithHttpInfo**](FakeApi.md#testInlineAdditionalPropertiesWithHttpInfo) | **POST** /fake/inline-additionalProperties | test inline additionalProperties [**testJsonFormData**](FakeApi.md#testJsonFormData) | **GET** /fake/jsonFormData | test json serialization of form data [**testJsonFormDataWithHttpInfo**](FakeApi.md#testJsonFormDataWithHttpInfo) | **GET** /fake/jsonFormData | test json serialization of form data -[**testQueryParameterCollectionFormat**](FakeApi.md#testQueryParameterCollectionFormat) | **PUT** /fake/test-query-paramters | -[**testQueryParameterCollectionFormatWithHttpInfo**](FakeApi.md#testQueryParameterCollectionFormatWithHttpInfo) | **PUT** /fake/test-query-paramters | +[**testQueryParameterCollectionFormat**](FakeApi.md#testQueryParameterCollectionFormat) | **PUT** /fake/test-query-parameters | +[**testQueryParameterCollectionFormatWithHttpInfo**](FakeApi.md#testQueryParameterCollectionFormatWithHttpInfo) | **PUT** /fake/test-query-parameters | diff --git a/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/api/FakeApi.java b/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/api/FakeApi.java index 996001b7aac..71f3084b35b 100644 --- a/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/api/FakeApi.java +++ b/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/api/FakeApi.java @@ -1346,7 +1346,7 @@ public class FakeApi { HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); - String localVarPath = "/fake/test-query-paramters"; + String localVarPath = "/fake/test-query-parameters"; List localVarQueryParams = new ArrayList<>(); localVarQueryParams.addAll(ApiClient.parameterToPairs("multi", "pipe", pipe)); diff --git a/samples/openapi3/client/petstore/jaxrs-cxf-client-jackson-nullable/src/gen/java/org/openapitools/api/FakeApi.java b/samples/openapi3/client/petstore/jaxrs-cxf-client-jackson-nullable/src/gen/java/org/openapitools/api/FakeApi.java index a286c189544..de1af3fa9f3 100644 --- a/samples/openapi3/client/petstore/jaxrs-cxf-client-jackson-nullable/src/gen/java/org/openapitools/api/FakeApi.java +++ b/samples/openapi3/client/petstore/jaxrs-cxf-client-jackson-nullable/src/gen/java/org/openapitools/api/FakeApi.java @@ -195,7 +195,7 @@ public interface FakeApi { public void testJsonFormData(@Multipart(value = "param") String param, @Multipart(value = "param2") String param2); @PUT - @Path("/test-query-paramters") + @Path("/test-query-parameters") @ApiOperation(value = "", tags={ }) @ApiResponses(value = { @ApiResponse(code = 200, message = "Success") }) diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/README.md b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/README.md index fca869bcf49..1d23b6fdad2 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/README.md +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/README.md @@ -51,7 +51,7 @@ Class | Method | HTTP request | Description *FakeApi* | [**testGroupParameters**](docs/FakeApi.md#testgroupparameters) | **DELETE** fake | Fake endpoint to test group parameters (optional) *FakeApi* | [**testInlineAdditionalProperties**](docs/FakeApi.md#testinlineadditionalproperties) | **POST** fake/inline-additionalProperties | test inline additionalProperties *FakeApi* | [**testJsonFormData**](docs/FakeApi.md#testjsonformdata) | **GET** fake/jsonFormData | test json serialization of form data -*FakeApi* | [**testQueryParameterCollectionFormat**](docs/FakeApi.md#testqueryparametercollectionformat) | **PUT** fake/test-query-paramters | +*FakeApi* | [**testQueryParameterCollectionFormat**](docs/FakeApi.md#testqueryparametercollectionformat) | **PUT** fake/test-query-parameters | *FakeClassnameTags123Api* | [**testClassname**](docs/FakeClassnameTags123Api.md#testclassname) | **PATCH** fake_classname_test | To test class name in snake case *PetApi* | [**addPet**](docs/PetApi.md#addpet) | **POST** pet | Add a new pet to the store *PetApi* | [**deletePet**](docs/PetApi.md#deletepet) | **DELETE** pet/{petId} | Deletes a pet diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/docs/FakeApi.md b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/docs/FakeApi.md index 1ea11abbf1f..569909441d3 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/docs/FakeApi.md +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/docs/FakeApi.md @@ -18,7 +18,7 @@ Method | HTTP request | Description [**testGroupParameters**](FakeApi.md#testGroupParameters) | **DELETE** fake | Fake endpoint to test group parameters (optional) [**testInlineAdditionalProperties**](FakeApi.md#testInlineAdditionalProperties) | **POST** fake/inline-additionalProperties | test inline additionalProperties [**testJsonFormData**](FakeApi.md#testJsonFormData) | **GET** fake/jsonFormData | test json serialization of form data -[**testQueryParameterCollectionFormat**](FakeApi.md#testQueryParameterCollectionFormat) | **PUT** fake/test-query-paramters | +[**testQueryParameterCollectionFormat**](FakeApi.md#testQueryParameterCollectionFormat) | **PUT** fake/test-query-parameters | diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/apis/FakeApi.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/apis/FakeApi.kt index 05c879abb35..0164cd8f1a8 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/apis/FakeApi.kt +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines/src/main/kotlin/org/openapitools/client/apis/FakeApi.kt @@ -229,7 +229,7 @@ interface FakeApi { * @param context * @return [Unit] */ - @PUT("fake/test-query-paramters") + @PUT("fake/test-query-parameters") suspend fun testQueryParameterCollectionFormat(@Query("pipe") pipe: kotlin.collections.List, @Query("ioutil") ioutil: CSVParams, @Query("http") http: SSVParams, @Query("url") url: CSVParams, @Query("context") context: kotlin.collections.List): Response } diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/README.md b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/README.md index fca869bcf49..1d23b6fdad2 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/README.md +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/README.md @@ -51,7 +51,7 @@ Class | Method | HTTP request | Description *FakeApi* | [**testGroupParameters**](docs/FakeApi.md#testgroupparameters) | **DELETE** fake | Fake endpoint to test group parameters (optional) *FakeApi* | [**testInlineAdditionalProperties**](docs/FakeApi.md#testinlineadditionalproperties) | **POST** fake/inline-additionalProperties | test inline additionalProperties *FakeApi* | [**testJsonFormData**](docs/FakeApi.md#testjsonformdata) | **GET** fake/jsonFormData | test json serialization of form data -*FakeApi* | [**testQueryParameterCollectionFormat**](docs/FakeApi.md#testqueryparametercollectionformat) | **PUT** fake/test-query-paramters | +*FakeApi* | [**testQueryParameterCollectionFormat**](docs/FakeApi.md#testqueryparametercollectionformat) | **PUT** fake/test-query-parameters | *FakeClassnameTags123Api* | [**testClassname**](docs/FakeClassnameTags123Api.md#testclassname) | **PATCH** fake_classname_test | To test class name in snake case *PetApi* | [**addPet**](docs/PetApi.md#addpet) | **POST** pet | Add a new pet to the store *PetApi* | [**deletePet**](docs/PetApi.md#deletepet) | **DELETE** pet/{petId} | Deletes a pet diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/FakeApi.md b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/FakeApi.md index f94e91773ad..29f5fd073c0 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/FakeApi.md +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/docs/FakeApi.md @@ -18,7 +18,7 @@ Method | HTTP request | Description [**testGroupParameters**](FakeApi.md#testGroupParameters) | **DELETE** fake | Fake endpoint to test group parameters (optional) [**testInlineAdditionalProperties**](FakeApi.md#testInlineAdditionalProperties) | **POST** fake/inline-additionalProperties | test inline additionalProperties [**testJsonFormData**](FakeApi.md#testJsonFormData) | **GET** fake/jsonFormData | test json serialization of form data -[**testQueryParameterCollectionFormat**](FakeApi.md#testQueryParameterCollectionFormat) | **PUT** fake/test-query-paramters | +[**testQueryParameterCollectionFormat**](FakeApi.md#testQueryParameterCollectionFormat) | **PUT** fake/test-query-parameters | diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/apis/FakeApi.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/apis/FakeApi.kt index b2971b603dd..3b12c1e6fc3 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/apis/FakeApi.kt +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx/src/main/kotlin/org/openapitools/client/apis/FakeApi.kt @@ -229,7 +229,7 @@ interface FakeApi { * @param context * @return [Call]<[Unit]> */ - @PUT("fake/test-query-paramters") + @PUT("fake/test-query-parameters") fun testQueryParameterCollectionFormat(@Query("pipe") pipe: kotlin.collections.List, @Query("ioutil") ioutil: CSVParams, @Query("http") http: SSVParams, @Query("url") url: CSVParams, @Query("context") context: kotlin.collections.List): Observable } diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/README.md b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/README.md index fca869bcf49..1d23b6fdad2 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/README.md +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/README.md @@ -51,7 +51,7 @@ Class | Method | HTTP request | Description *FakeApi* | [**testGroupParameters**](docs/FakeApi.md#testgroupparameters) | **DELETE** fake | Fake endpoint to test group parameters (optional) *FakeApi* | [**testInlineAdditionalProperties**](docs/FakeApi.md#testinlineadditionalproperties) | **POST** fake/inline-additionalProperties | test inline additionalProperties *FakeApi* | [**testJsonFormData**](docs/FakeApi.md#testjsonformdata) | **GET** fake/jsonFormData | test json serialization of form data -*FakeApi* | [**testQueryParameterCollectionFormat**](docs/FakeApi.md#testqueryparametercollectionformat) | **PUT** fake/test-query-paramters | +*FakeApi* | [**testQueryParameterCollectionFormat**](docs/FakeApi.md#testqueryparametercollectionformat) | **PUT** fake/test-query-parameters | *FakeClassnameTags123Api* | [**testClassname**](docs/FakeClassnameTags123Api.md#testclassname) | **PATCH** fake_classname_test | To test class name in snake case *PetApi* | [**addPet**](docs/PetApi.md#addpet) | **POST** pet | Add a new pet to the store *PetApi* | [**deletePet**](docs/PetApi.md#deletepet) | **DELETE** pet/{petId} | Deletes a pet diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/FakeApi.md b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/FakeApi.md index f94e91773ad..29f5fd073c0 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/FakeApi.md +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/docs/FakeApi.md @@ -18,7 +18,7 @@ Method | HTTP request | Description [**testGroupParameters**](FakeApi.md#testGroupParameters) | **DELETE** fake | Fake endpoint to test group parameters (optional) [**testInlineAdditionalProperties**](FakeApi.md#testInlineAdditionalProperties) | **POST** fake/inline-additionalProperties | test inline additionalProperties [**testJsonFormData**](FakeApi.md#testJsonFormData) | **GET** fake/jsonFormData | test json serialization of form data -[**testQueryParameterCollectionFormat**](FakeApi.md#testQueryParameterCollectionFormat) | **PUT** fake/test-query-paramters | +[**testQueryParameterCollectionFormat**](FakeApi.md#testQueryParameterCollectionFormat) | **PUT** fake/test-query-parameters | diff --git a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/apis/FakeApi.kt b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/apis/FakeApi.kt index 19579ff3139..4e6072b49b2 100644 --- a/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/apis/FakeApi.kt +++ b/samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2/src/main/kotlin/org/openapitools/client/apis/FakeApi.kt @@ -230,7 +230,7 @@ interface FakeApi { * @param context * @return [Call]<[Unit]> */ - @PUT("fake/test-query-paramters") + @PUT("fake/test-query-parameters") fun testQueryParameterCollectionFormat(@Query("pipe") pipe: kotlin.collections.List, @Query("ioutil") ioutil: CSVParams, @Query("http") http: SSVParams, @Query("url") url: CSVParams, @Query("context") context: kotlin.collections.List): Completable } diff --git a/samples/openapi3/client/petstore/kotlin-multiplatform/README.md b/samples/openapi3/client/petstore/kotlin-multiplatform/README.md index aa3323bbf71..2b3fca79744 100644 --- a/samples/openapi3/client/petstore/kotlin-multiplatform/README.md +++ b/samples/openapi3/client/petstore/kotlin-multiplatform/README.md @@ -42,7 +42,7 @@ Class | Method | HTTP request | Description *FakeApi* | [**testGroupParameters**](docs/FakeApi.md#testgroupparameters) | **DELETE** /fake | Fake endpoint to test group parameters (optional) *FakeApi* | [**testInlineAdditionalProperties**](docs/FakeApi.md#testinlineadditionalproperties) | **POST** /fake/inline-additionalProperties | test inline additionalProperties *FakeApi* | [**testJsonFormData**](docs/FakeApi.md#testjsonformdata) | **GET** /fake/jsonFormData | test json serialization of form data -*FakeApi* | [**testQueryParameterCollectionFormat**](docs/FakeApi.md#testqueryparametercollectionformat) | **PUT** /fake/test-query-paramters | +*FakeApi* | [**testQueryParameterCollectionFormat**](docs/FakeApi.md#testqueryparametercollectionformat) | **PUT** /fake/test-query-parameters | *FakeClassnameTags123Api* | [**testClassname**](docs/FakeClassnameTags123Api.md#testclassname) | **PATCH** /fake_classname_test | To test class name in snake case *PetApi* | [**addPet**](docs/PetApi.md#addpet) | **POST** /pet | Add a new pet to the store *PetApi* | [**deletePet**](docs/PetApi.md#deletepet) | **DELETE** /pet/{petId} | Deletes a pet diff --git a/samples/openapi3/client/petstore/kotlin-multiplatform/docs/FakeApi.md b/samples/openapi3/client/petstore/kotlin-multiplatform/docs/FakeApi.md index b8dfefb771b..83a024ac1e2 100644 --- a/samples/openapi3/client/petstore/kotlin-multiplatform/docs/FakeApi.md +++ b/samples/openapi3/client/petstore/kotlin-multiplatform/docs/FakeApi.md @@ -18,7 +18,7 @@ Method | HTTP request | Description [**testGroupParameters**](FakeApi.md#testGroupParameters) | **DELETE** /fake | Fake endpoint to test group parameters (optional) [**testInlineAdditionalProperties**](FakeApi.md#testInlineAdditionalProperties) | **POST** /fake/inline-additionalProperties | test inline additionalProperties [**testJsonFormData**](FakeApi.md#testJsonFormData) | **GET** /fake/jsonFormData | test json serialization of form data -[**testQueryParameterCollectionFormat**](FakeApi.md#testQueryParameterCollectionFormat) | **PUT** /fake/test-query-paramters | +[**testQueryParameterCollectionFormat**](FakeApi.md#testQueryParameterCollectionFormat) | **PUT** /fake/test-query-parameters | diff --git a/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/apis/FakeApi.kt b/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/apis/FakeApi.kt index 73a8ed48ed6..de153920ff1 100644 --- a/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/apis/FakeApi.kt +++ b/samples/openapi3/client/petstore/kotlin-multiplatform/src/commonMain/kotlin/org/openapitools/client/apis/FakeApi.kt @@ -597,7 +597,7 @@ class FakeApi @UseExperimental(UnstableDefault::class) constructor( val localVariableConfig = RequestConfig( RequestMethod.PUT, - "/fake/test-query-paramters", + "/fake/test-query-parameters", query = localVariableQuery, headers = localVariableHeaders ) diff --git a/samples/openapi3/client/petstore/kotlin/README.md b/samples/openapi3/client/petstore/kotlin/README.md index 76aa2b6cd52..760c3de3a88 100644 --- a/samples/openapi3/client/petstore/kotlin/README.md +++ b/samples/openapi3/client/petstore/kotlin/README.md @@ -51,7 +51,7 @@ Class | Method | HTTP request | Description *FakeApi* | [**testGroupParameters**](docs/FakeApi.md#testgroupparameters) | **DELETE** /fake | Fake endpoint to test group parameters (optional) *FakeApi* | [**testInlineAdditionalProperties**](docs/FakeApi.md#testinlineadditionalproperties) | **POST** /fake/inline-additionalProperties | test inline additionalProperties *FakeApi* | [**testJsonFormData**](docs/FakeApi.md#testjsonformdata) | **GET** /fake/jsonFormData | test json serialization of form data -*FakeApi* | [**testQueryParameterCollectionFormat**](docs/FakeApi.md#testqueryparametercollectionformat) | **PUT** /fake/test-query-paramters | +*FakeApi* | [**testQueryParameterCollectionFormat**](docs/FakeApi.md#testqueryparametercollectionformat) | **PUT** /fake/test-query-parameters | *FakeClassnameTags123Api* | [**testClassname**](docs/FakeClassnameTags123Api.md#testclassname) | **PATCH** /fake_classname_test | To test class name in snake case *PetApi* | [**addPet**](docs/PetApi.md#addpet) | **POST** /pet | Add a new pet to the store *PetApi* | [**deletePet**](docs/PetApi.md#deletepet) | **DELETE** /pet/{petId} | Deletes a pet diff --git a/samples/openapi3/client/petstore/kotlin/docs/FakeApi.md b/samples/openapi3/client/petstore/kotlin/docs/FakeApi.md index e5aef0b8b6d..5d92dc7cd9b 100644 --- a/samples/openapi3/client/petstore/kotlin/docs/FakeApi.md +++ b/samples/openapi3/client/petstore/kotlin/docs/FakeApi.md @@ -18,7 +18,7 @@ Method | HTTP request | Description [**testGroupParameters**](FakeApi.md#testGroupParameters) | **DELETE** /fake | Fake endpoint to test group parameters (optional) [**testInlineAdditionalProperties**](FakeApi.md#testInlineAdditionalProperties) | **POST** /fake/inline-additionalProperties | test inline additionalProperties [**testJsonFormData**](FakeApi.md#testJsonFormData) | **GET** /fake/jsonFormData | test json serialization of form data -[**testQueryParameterCollectionFormat**](FakeApi.md#testQueryParameterCollectionFormat) | **PUT** /fake/test-query-paramters | +[**testQueryParameterCollectionFormat**](FakeApi.md#testQueryParameterCollectionFormat) | **PUT** /fake/test-query-parameters | diff --git a/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/apis/FakeApi.kt b/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/apis/FakeApi.kt index 085f742fe20..2a3bcc659c4 100644 --- a/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/apis/FakeApi.kt +++ b/samples/openapi3/client/petstore/kotlin/src/main/kotlin/org/openapitools/client/apis/FakeApi.kt @@ -696,7 +696,7 @@ class FakeApi(basePath: kotlin.String = defaultBasePath) : ApiClient(basePath) { val localVariableHeaders: MutableMap = mutableMapOf() val localVariableConfig = RequestConfig( RequestMethod.PUT, - "/fake/test-query-paramters", + "/fake/test-query-parameters", query = localVariableQuery, headers = localVariableHeaders ) diff --git a/samples/openapi3/client/petstore/python-legacy/README.md b/samples/openapi3/client/petstore/python-legacy/README.md index 35c8ba4f056..a508c7e3d21 100755 --- a/samples/openapi3/client/petstore/python-legacy/README.md +++ b/samples/openapi3/client/petstore/python-legacy/README.md @@ -99,7 +99,7 @@ Class | Method | HTTP request | Description *FakeApi* | [**test_group_parameters**](docs/FakeApi.md#test_group_parameters) | **DELETE** /fake | Fake endpoint to test group parameters (optional) *FakeApi* | [**test_inline_additional_properties**](docs/FakeApi.md#test_inline_additional_properties) | **POST** /fake/inline-additionalProperties | test inline additionalProperties *FakeApi* | [**test_json_form_data**](docs/FakeApi.md#test_json_form_data) | **GET** /fake/jsonFormData | test json serialization of form data -*FakeApi* | [**test_query_parameter_collection_format**](docs/FakeApi.md#test_query_parameter_collection_format) | **PUT** /fake/test-query-paramters | +*FakeApi* | [**test_query_parameter_collection_format**](docs/FakeApi.md#test_query_parameter_collection_format) | **PUT** /fake/test-query-parameters | *FakeClassnameTags123Api* | [**test_classname**](docs/FakeClassnameTags123Api.md#test_classname) | **PATCH** /fake_classname_test | To test class name in snake case *PetApi* | [**add_pet**](docs/PetApi.md#add_pet) | **POST** /pet | Add a new pet to the store *PetApi* | [**delete_pet**](docs/PetApi.md#delete_pet) | **DELETE** /pet/{petId} | Deletes a pet diff --git a/samples/openapi3/client/petstore/python-legacy/docs/FakeApi.md b/samples/openapi3/client/petstore/python-legacy/docs/FakeApi.md index 6e2f66bafbc..991a48e56c6 100755 --- a/samples/openapi3/client/petstore/python-legacy/docs/FakeApi.md +++ b/samples/openapi3/client/petstore/python-legacy/docs/FakeApi.md @@ -20,7 +20,7 @@ Method | HTTP request | Description [**test_group_parameters**](FakeApi.md#test_group_parameters) | **DELETE** /fake | Fake endpoint to test group parameters (optional) [**test_inline_additional_properties**](FakeApi.md#test_inline_additional_properties) | **POST** /fake/inline-additionalProperties | test inline additionalProperties [**test_json_form_data**](FakeApi.md#test_json_form_data) | **GET** /fake/jsonFormData | test json serialization of form data -[**test_query_parameter_collection_format**](FakeApi.md#test_query_parameter_collection_format) | **PUT** /fake/test-query-paramters | +[**test_query_parameter_collection_format**](FakeApi.md#test_query_parameter_collection_format) | **PUT** /fake/test-query-parameters | # **fake_health_get** diff --git a/samples/openapi3/client/petstore/python-legacy/git_push.sh b/samples/openapi3/client/petstore/python-legacy/git_push.sh index 9405f72e950..18f86b99e82 100755 --- a/samples/openapi3/client/petstore/python-legacy/git_push.sh +++ b/samples/openapi3/client/petstore/python-legacy/git_push.sh @@ -1,7 +1,7 @@ #!/bin/sh # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" git_user_id=$1 git_repo_id=$2 diff --git a/samples/openapi3/client/petstore/python-legacy/petstore_api/api/fake_api.py b/samples/openapi3/client/petstore/python-legacy/petstore_api/api/fake_api.py index 37404d013ef..90606ec5aea 100755 --- a/samples/openapi3/client/petstore/python-legacy/petstore_api/api/fake_api.py +++ b/samples/openapi3/client/petstore/python-legacy/petstore_api/api/fake_api.py @@ -2584,7 +2584,7 @@ class FakeApi(object): response_types_map = {} return self.api_client.call_api( - '/fake/test-query-paramters', 'PUT', + '/fake/test-query-parameters', 'PUT', path_params, query_params, header_params, diff --git a/samples/openapi3/client/petstore/python-legacy/petstore_api/api_client.py b/samples/openapi3/client/petstore/python-legacy/petstore_api/api_client.py index 035e1e374ba..7c3a69abd76 100755 --- a/samples/openapi3/client/petstore/python-legacy/petstore_api/api_client.py +++ b/samples/openapi3/client/petstore/python-legacy/petstore_api/api_client.py @@ -537,12 +537,12 @@ class ApiClient(object): else: return content_types[0] - def update_params_for_auth(self, headers, querys, auth_settings, + def update_params_for_auth(self, headers, queries, auth_settings, request_auth=None): """Updates header and query params based on authentication setting. :param headers: Header parameters dict to be updated. - :param querys: Query parameters tuple list to be updated. + :param queries: Query parameters tuple list to be updated. :param auth_settings: Authentication setting identifiers list. :param request_auth: if set, the provided settings will override the token in the configuration. @@ -551,19 +551,19 @@ class ApiClient(object): return if request_auth: - self._apply_auth_params(headers, querys, request_auth) + self._apply_auth_params(headers, queries, request_auth) return for auth in auth_settings: auth_setting = self.configuration.auth_settings().get(auth) if auth_setting: - self._apply_auth_params(headers, querys, auth_setting) + self._apply_auth_params(headers, queries, auth_setting) - def _apply_auth_params(self, headers, querys, auth_setting): + def _apply_auth_params(self, headers, queries, auth_setting): """Updates the request parameters based on a single auth_setting :param headers: Header parameters dict to be updated. - :param querys: Query parameters tuple list to be updated. + :param queries: Query parameters tuple list to be updated. :param auth_setting: auth settings for the endpoint """ if auth_setting['in'] == 'cookie': @@ -571,7 +571,7 @@ class ApiClient(object): elif auth_setting['in'] == 'header': headers[auth_setting['key']] = auth_setting['value'] elif auth_setting['in'] == 'query': - querys.append((auth_setting['key'], auth_setting['value'])) + queries.append((auth_setting['key'], auth_setting['value'])) else: raise ApiValueError( 'Authentication token must be in `query` or `header`' diff --git a/samples/openapi3/client/petstore/python-legacy/petstore_api/configuration.py b/samples/openapi3/client/petstore/python-legacy/petstore_api/configuration.py index 9b0e3026f6f..c0da3c63826 100755 --- a/samples/openapi3/client/petstore/python-legacy/petstore_api/configuration.py +++ b/samples/openapi3/client/petstore/python-legacy/petstore_api/configuration.py @@ -136,7 +136,7 @@ conf = petstore_api.Configuration( 'Authorization' header, which is used to carry the signature. One may be tempted to sign all headers by default, but in practice it rarely works. - This is beccause explicit proxies, transparent proxies, TLS termination endpoints or + This is because explicit proxies, transparent proxies, TLS termination endpoints or load balancers may add/modify/remove headers. Include the HTTP headers that you know are not going to be modified in transit. @@ -308,7 +308,7 @@ conf = petstore_api.Configuration( "Invalid keyword: '{0}''".format(v)) self._disabled_client_side_validations = s if name == "signing_info" and value is not None: - # Ensure the host paramater from signing info is the same as + # Ensure the host parameter from signing info is the same as # Configuration.host. value.host = self.host diff --git a/samples/openapi3/client/petstore/python/README.md b/samples/openapi3/client/petstore/python/README.md index 2316a973acf..bc3cc959108 100644 --- a/samples/openapi3/client/petstore/python/README.md +++ b/samples/openapi3/client/petstore/python/README.md @@ -106,7 +106,7 @@ Class | Method | HTTP request | Description *FakeApi* | [**test_group_parameters**](docs/FakeApi.md#test_group_parameters) | **DELETE** /fake | Fake endpoint to test group parameters (optional) *FakeApi* | [**test_inline_additional_properties**](docs/FakeApi.md#test_inline_additional_properties) | **POST** /fake/inline-additionalProperties | test inline additionalProperties *FakeApi* | [**test_json_form_data**](docs/FakeApi.md#test_json_form_data) | **GET** /fake/jsonFormData | test json serialization of form data -*FakeApi* | [**test_query_parameter_collection_format**](docs/FakeApi.md#test_query_parameter_collection_format) | **PUT** /fake/test-query-paramters | +*FakeApi* | [**test_query_parameter_collection_format**](docs/FakeApi.md#test_query_parameter_collection_format) | **PUT** /fake/test-query-parameters | *FakeApi* | [**upload_download_file**](docs/FakeApi.md#upload_download_file) | **POST** /fake/uploadDownloadFile | uploads a file and downloads a file using application/octet-stream *FakeApi* | [**upload_file**](docs/FakeApi.md#upload_file) | **POST** /fake/uploadFile | uploads a file using multipart/form-data *FakeApi* | [**upload_files**](docs/FakeApi.md#upload_files) | **POST** /fake/uploadFiles | uploads files using multipart/form-data diff --git a/samples/openapi3/client/petstore/python/docs/FakeApi.md b/samples/openapi3/client/petstore/python/docs/FakeApi.md index 1e12020457b..779400df320 100644 --- a/samples/openapi3/client/petstore/python/docs/FakeApi.md +++ b/samples/openapi3/client/petstore/python/docs/FakeApi.md @@ -27,7 +27,7 @@ Method | HTTP request | Description [**test_group_parameters**](FakeApi.md#test_group_parameters) | **DELETE** /fake | Fake endpoint to test group parameters (optional) [**test_inline_additional_properties**](FakeApi.md#test_inline_additional_properties) | **POST** /fake/inline-additionalProperties | test inline additionalProperties [**test_json_form_data**](FakeApi.md#test_json_form_data) | **GET** /fake/jsonFormData | test json serialization of form data -[**test_query_parameter_collection_format**](FakeApi.md#test_query_parameter_collection_format) | **PUT** /fake/test-query-paramters | +[**test_query_parameter_collection_format**](FakeApi.md#test_query_parameter_collection_format) | **PUT** /fake/test-query-parameters | [**upload_download_file**](FakeApi.md#upload_download_file) | **POST** /fake/uploadDownloadFile | uploads a file and downloads a file using application/octet-stream [**upload_file**](FakeApi.md#upload_file) | **POST** /fake/uploadFile | uploads a file using multipart/form-data [**upload_files**](FakeApi.md#upload_files) | **POST** /fake/uploadFiles | uploads files using multipart/form-data diff --git a/samples/openapi3/client/petstore/python/git_push.sh b/samples/openapi3/client/petstore/python/git_push.sh index 9405f72e950..18f86b99e82 100644 --- a/samples/openapi3/client/petstore/python/git_push.sh +++ b/samples/openapi3/client/petstore/python/git_push.sh @@ -1,7 +1,7 @@ #!/bin/sh # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" git_user_id=$1 git_repo_id=$2 diff --git a/samples/openapi3/client/petstore/python/petstore_api/api/fake_api.py b/samples/openapi3/client/petstore/python/petstore_api/api/fake_api.py index 37f1268be14..0f57f637f25 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/api/fake_api.py +++ b/samples/openapi3/client/petstore/python/petstore_api/api/fake_api.py @@ -3040,7 +3040,7 @@ class FakeApi(object): settings={ 'response_type': None, 'auth': [], - 'endpoint_path': '/fake/test-query-paramters', + 'endpoint_path': '/fake/test-query-parameters', 'operation_id': 'test_query_parameter_collection_format', 'http_method': 'PUT', 'servers': None, diff --git a/samples/openapi3/client/petstore/python/petstore_api/api_client.py b/samples/openapi3/client/petstore/python/petstore_api/api_client.py index af5d8729ad3..b83134b9b56 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/api_client.py +++ b/samples/openapi3/client/petstore/python/petstore_api/api_client.py @@ -588,12 +588,12 @@ class ApiClient(object): else: return content_types[0] - def update_params_for_auth(self, headers, querys, auth_settings, + def update_params_for_auth(self, headers, queries, auth_settings, resource_path, method, body): """Updates header and query params based on authentication setting. :param headers: Header parameters dict to be updated. - :param querys: Query parameters tuple list to be updated. + :param queries: Query parameters tuple list to be updated. :param auth_settings: Authentication setting identifiers list. :param resource_path: A string representation of the HTTP request resource path. :param method: A string representation of the HTTP request method. @@ -616,10 +616,10 @@ class ApiClient(object): # that are calculated dynamically. signing_info = self.configuration.signing_info auth_headers = signing_info.get_http_signature_headers( - resource_path, method, headers, body, querys) + resource_path, method, headers, body, queries) headers.update(auth_headers) elif auth_setting['in'] == 'query': - querys.append((auth_setting['key'], auth_setting['value'])) + queries.append((auth_setting['key'], auth_setting['value'])) else: raise ApiValueError( 'Authentication token must be in `query` or `header`' diff --git a/samples/openapi3/client/petstore/python/petstore_api/configuration.py b/samples/openapi3/client/petstore/python/petstore_api/configuration.py index 172a366b26c..9042d98826a 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/configuration.py +++ b/samples/openapi3/client/petstore/python/petstore_api/configuration.py @@ -131,7 +131,7 @@ conf = petstore_api.Configuration( 'Authorization' header, which is used to carry the signature. One may be tempted to sign all headers by default, but in practice it rarely works. - This is beccause explicit proxies, transparent proxies, TLS termination endpoints or + This is because explicit proxies, transparent proxies, TLS termination endpoints or load balancers may add/modify/remove headers. Include the HTTP headers that you know are not going to be modified in transit. @@ -301,7 +301,7 @@ conf = petstore_api.Configuration( "Invalid keyword: '{0}''".format(v)) self._disabled_client_side_validations = s if name == "signing_info" and value is not None: - # Ensure the host paramater from signing info is the same as + # Ensure the host parameter from signing info is the same as # Configuration.host. value.host = self.host diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/cat.py b/samples/openapi3/client/petstore/python/petstore_api/model/cat.py index 882376f11a6..809db1a2371 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/model/cat.py +++ b/samples/openapi3/client/petstore/python/petstore_api/model/cat.py @@ -313,7 +313,7 @@ class Cat(ModelComposed): # we need this here to make our import statements work # we must store _composed_schemas in here so the code is only run # when we invoke this method. If we kept this at the class - # level we would get an error beause the class level + # level we would get an error because the class level # code would be run when this module is imported, and these composed # classes don't exist yet because their module has not finished # loading diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/child_cat.py b/samples/openapi3/client/petstore/python/petstore_api/model/child_cat.py index 3644df82fc5..355321a2c4c 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/model/child_cat.py +++ b/samples/openapi3/client/petstore/python/petstore_api/model/child_cat.py @@ -304,7 +304,7 @@ class ChildCat(ModelComposed): # we need this here to make our import statements work # we must store _composed_schemas in here so the code is only run # when we invoke this method. If we kept this at the class - # level we would get an error beause the class level + # level we would get an error because the class level # code would be run when this module is imported, and these composed # classes don't exist yet because their module has not finished # loading diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/complex_quadrilateral.py b/samples/openapi3/client/petstore/python/petstore_api/model/complex_quadrilateral.py index bd835d9a39a..08f77421bbf 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/model/complex_quadrilateral.py +++ b/samples/openapi3/client/petstore/python/petstore_api/model/complex_quadrilateral.py @@ -301,7 +301,7 @@ class ComplexQuadrilateral(ModelComposed): # we need this here to make our import statements work # we must store _composed_schemas in here so the code is only run # when we invoke this method. If we kept this at the class - # level we would get an error beause the class level + # level we would get an error because the class level # code would be run when this module is imported, and these composed # classes don't exist yet because their module has not finished # loading diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/composed_one_of_number_with_validations.py b/samples/openapi3/client/petstore/python/petstore_api/model/composed_one_of_number_with_validations.py index 062902afb30..49d97511457 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/model/composed_one_of_number_with_validations.py +++ b/samples/openapi3/client/petstore/python/petstore_api/model/composed_one_of_number_with_validations.py @@ -306,7 +306,7 @@ class ComposedOneOfNumberWithValidations(ModelComposed): # we need this here to make our import statements work # we must store _composed_schemas in here so the code is only run # when we invoke this method. If we kept this at the class - # level we would get an error beause the class level + # level we would get an error because the class level # code would be run when this module is imported, and these composed # classes don't exist yet because their module has not finished # loading diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/composed_schema_with_props_and_no_add_props.py b/samples/openapi3/client/petstore/python/petstore_api/model/composed_schema_with_props_and_no_add_props.py index 2cba94f6409..bd41caf6835 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/model/composed_schema_with_props_and_no_add_props.py +++ b/samples/openapi3/client/petstore/python/petstore_api/model/composed_schema_with_props_and_no_add_props.py @@ -296,7 +296,7 @@ class ComposedSchemaWithPropsAndNoAddProps(ModelComposed): # we need this here to make our import statements work # we must store _composed_schemas in here so the code is only run # when we invoke this method. If we kept this at the class - # level we would get an error beause the class level + # level we would get an error because the class level # code would be run when this module is imported, and these composed # classes don't exist yet because their module has not finished # loading diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/dog.py b/samples/openapi3/client/petstore/python/petstore_api/model/dog.py index 4e075a37234..b700f88db11 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/model/dog.py +++ b/samples/openapi3/client/petstore/python/petstore_api/model/dog.py @@ -319,7 +319,7 @@ class Dog(ModelComposed): # we need this here to make our import statements work # we must store _composed_schemas in here so the code is only run # when we invoke this method. If we kept this at the class - # level we would get an error beause the class level + # level we would get an error because the class level # code would be run when this module is imported, and these composed # classes don't exist yet because their module has not finished # loading diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/equilateral_triangle.py b/samples/openapi3/client/petstore/python/petstore_api/model/equilateral_triangle.py index 54549b98213..03ac634dda2 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/model/equilateral_triangle.py +++ b/samples/openapi3/client/petstore/python/petstore_api/model/equilateral_triangle.py @@ -301,7 +301,7 @@ class EquilateralTriangle(ModelComposed): # we need this here to make our import statements work # we must store _composed_schemas in here so the code is only run # when we invoke this method. If we kept this at the class - # level we would get an error beause the class level + # level we would get an error because the class level # code would be run when this module is imported, and these composed # classes don't exist yet because their module has not finished # loading diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/fruit.py b/samples/openapi3/client/petstore/python/petstore_api/model/fruit.py index fedd13c38e4..c2971bdb546 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/model/fruit.py +++ b/samples/openapi3/client/petstore/python/petstore_api/model/fruit.py @@ -320,7 +320,7 @@ class Fruit(ModelComposed): # we need this here to make our import statements work # we must store _composed_schemas in here so the code is only run # when we invoke this method. If we kept this at the class - # level we would get an error beause the class level + # level we would get an error because the class level # code would be run when this module is imported, and these composed # classes don't exist yet because their module has not finished # loading diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/fruit_req.py b/samples/openapi3/client/petstore/python/petstore_api/model/fruit_req.py index 01b907c5d8c..f428e5cff63 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/model/fruit_req.py +++ b/samples/openapi3/client/petstore/python/petstore_api/model/fruit_req.py @@ -309,7 +309,7 @@ class FruitReq(ModelComposed): # we need this here to make our import statements work # we must store _composed_schemas in here so the code is only run # when we invoke this method. If we kept this at the class - # level we would get an error beause the class level + # level we would get an error because the class level # code would be run when this module is imported, and these composed # classes don't exist yet because their module has not finished # loading diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/gm_fruit.py b/samples/openapi3/client/petstore/python/petstore_api/model/gm_fruit.py index 99efd26f0d4..238eb5c8293 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/model/gm_fruit.py +++ b/samples/openapi3/client/petstore/python/petstore_api/model/gm_fruit.py @@ -320,7 +320,7 @@ class GmFruit(ModelComposed): # we need this here to make our import statements work # we must store _composed_schemas in here so the code is only run # when we invoke this method. If we kept this at the class - # level we would get an error beause the class level + # level we would get an error because the class level # code would be run when this module is imported, and these composed # classes don't exist yet because their module has not finished # loading diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/isosceles_triangle.py b/samples/openapi3/client/petstore/python/petstore_api/model/isosceles_triangle.py index bcbc721c2b6..d2b908e476e 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/model/isosceles_triangle.py +++ b/samples/openapi3/client/petstore/python/petstore_api/model/isosceles_triangle.py @@ -301,7 +301,7 @@ class IsoscelesTriangle(ModelComposed): # we need this here to make our import statements work # we must store _composed_schemas in here so the code is only run # when we invoke this method. If we kept this at the class - # level we would get an error beause the class level + # level we would get an error because the class level # code would be run when this module is imported, and these composed # classes don't exist yet because their module has not finished # loading diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/mammal.py b/samples/openapi3/client/petstore/python/petstore_api/model/mammal.py index 62037474b90..e4e65973278 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/model/mammal.py +++ b/samples/openapi3/client/petstore/python/petstore_api/model/mammal.py @@ -323,7 +323,7 @@ class Mammal(ModelComposed): # we need this here to make our import statements work # we must store _composed_schemas in here so the code is only run # when we invoke this method. If we kept this at the class - # level we would get an error beause the class level + # level we would get an error because the class level # code would be run when this module is imported, and these composed # classes don't exist yet because their module has not finished # loading diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/nullable_shape.py b/samples/openapi3/client/petstore/python/petstore_api/model/nullable_shape.py index 6b2a0573ade..90ef787c27f 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/model/nullable_shape.py +++ b/samples/openapi3/client/petstore/python/petstore_api/model/nullable_shape.py @@ -311,7 +311,7 @@ class NullableShape(ModelComposed): # we need this here to make our import statements work # we must store _composed_schemas in here so the code is only run # when we invoke this method. If we kept this at the class - # level we would get an error beause the class level + # level we would get an error because the class level # code would be run when this module is imported, and these composed # classes don't exist yet because their module has not finished # loading diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/parent_pet.py b/samples/openapi3/client/petstore/python/petstore_api/model/parent_pet.py index ff58abf3d79..8ead627ef6c 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/model/parent_pet.py +++ b/samples/openapi3/client/petstore/python/petstore_api/model/parent_pet.py @@ -302,7 +302,7 @@ class ParentPet(ModelComposed): # we need this here to make our import statements work # we must store _composed_schemas in here so the code is only run # when we invoke this method. If we kept this at the class - # level we would get an error beause the class level + # level we would get an error because the class level # code would be run when this module is imported, and these composed # classes don't exist yet because their module has not finished # loading diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/pig.py b/samples/openapi3/client/petstore/python/petstore_api/model/pig.py index 07845be55eb..f7f1a953e92 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/model/pig.py +++ b/samples/openapi3/client/petstore/python/petstore_api/model/pig.py @@ -303,7 +303,7 @@ class Pig(ModelComposed): # we need this here to make our import statements work # we must store _composed_schemas in here so the code is only run # when we invoke this method. If we kept this at the class - # level we would get an error beause the class level + # level we would get an error because the class level # code would be run when this module is imported, and these composed # classes don't exist yet because their module has not finished # loading diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/quadrilateral.py b/samples/openapi3/client/petstore/python/petstore_api/model/quadrilateral.py index b3aefcd1bd5..0afb36e36ac 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/model/quadrilateral.py +++ b/samples/openapi3/client/petstore/python/petstore_api/model/quadrilateral.py @@ -307,7 +307,7 @@ class Quadrilateral(ModelComposed): # we need this here to make our import statements work # we must store _composed_schemas in here so the code is only run # when we invoke this method. If we kept this at the class - # level we would get an error beause the class level + # level we would get an error because the class level # code would be run when this module is imported, and these composed # classes don't exist yet because their module has not finished # loading diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/scalene_triangle.py b/samples/openapi3/client/petstore/python/petstore_api/model/scalene_triangle.py index a10ce28f172..518f6d14ca4 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/model/scalene_triangle.py +++ b/samples/openapi3/client/petstore/python/petstore_api/model/scalene_triangle.py @@ -301,7 +301,7 @@ class ScaleneTriangle(ModelComposed): # we need this here to make our import statements work # we must store _composed_schemas in here so the code is only run # when we invoke this method. If we kept this at the class - # level we would get an error beause the class level + # level we would get an error because the class level # code would be run when this module is imported, and these composed # classes don't exist yet because their module has not finished # loading diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/shape.py b/samples/openapi3/client/petstore/python/petstore_api/model/shape.py index 50e21b8c8d8..cadcab7e52c 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/model/shape.py +++ b/samples/openapi3/client/petstore/python/petstore_api/model/shape.py @@ -311,7 +311,7 @@ class Shape(ModelComposed): # we need this here to make our import statements work # we must store _composed_schemas in here so the code is only run # when we invoke this method. If we kept this at the class - # level we would get an error beause the class level + # level we would get an error because the class level # code would be run when this module is imported, and these composed # classes don't exist yet because their module has not finished # loading diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/shape_or_null.py b/samples/openapi3/client/petstore/python/petstore_api/model/shape_or_null.py index 00ae221f8a6..04c33851616 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/model/shape_or_null.py +++ b/samples/openapi3/client/petstore/python/petstore_api/model/shape_or_null.py @@ -311,7 +311,7 @@ class ShapeOrNull(ModelComposed): # we need this here to make our import statements work # we must store _composed_schemas in here so the code is only run # when we invoke this method. If we kept this at the class - # level we would get an error beause the class level + # level we would get an error because the class level # code would be run when this module is imported, and these composed # classes don't exist yet because their module has not finished # loading diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/simple_quadrilateral.py b/samples/openapi3/client/petstore/python/petstore_api/model/simple_quadrilateral.py index 1a3bef4c26e..c4878086ec3 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/model/simple_quadrilateral.py +++ b/samples/openapi3/client/petstore/python/petstore_api/model/simple_quadrilateral.py @@ -301,7 +301,7 @@ class SimpleQuadrilateral(ModelComposed): # we need this here to make our import statements work # we must store _composed_schemas in here so the code is only run # when we invoke this method. If we kept this at the class - # level we would get an error beause the class level + # level we would get an error because the class level # code would be run when this module is imported, and these composed # classes don't exist yet because their module has not finished # loading diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/some_object.py b/samples/openapi3/client/petstore/python/petstore_api/model/some_object.py index 3c3215d357b..3acbe976bb5 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/model/some_object.py +++ b/samples/openapi3/client/petstore/python/petstore_api/model/some_object.py @@ -291,7 +291,7 @@ class SomeObject(ModelComposed): # we need this here to make our import statements work # we must store _composed_schemas in here so the code is only run # when we invoke this method. If we kept this at the class - # level we would get an error beause the class level + # level we would get an error because the class level # code would be run when this module is imported, and these composed # classes don't exist yet because their module has not finished # loading diff --git a/samples/openapi3/client/petstore/python/petstore_api/model/triangle.py b/samples/openapi3/client/petstore/python/petstore_api/model/triangle.py index f9082e2098f..70c34f3a7ac 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/model/triangle.py +++ b/samples/openapi3/client/petstore/python/petstore_api/model/triangle.py @@ -310,7 +310,7 @@ class Triangle(ModelComposed): # we need this here to make our import statements work # we must store _composed_schemas in here so the code is only run # when we invoke this method. If we kept this at the class - # level we would get an error beause the class level + # level we would get an error because the class level # code would be run when this module is imported, and these composed # classes don't exist yet because their module has not finished # loading diff --git a/samples/openapi3/client/petstore/python/petstore_api/model_utils.py b/samples/openapi3/client/petstore/python/petstore_api/model_utils.py index 955ad1cba46..c9fc0cf0896 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/model_utils.py +++ b/samples/openapi3/client/petstore/python/petstore_api/model_utils.py @@ -446,7 +446,7 @@ class ModelSimple(OpenApiModel): ) def __contains__(self, name): - """used by `in` operator to check if an attrbute value was set in an instance: `'attr' in instance`""" + """used by `in` operator to check if an attribute value was set in an instance: `'attr' in instance`""" if name in self.required_properties: return name in self.__dict__ @@ -501,7 +501,7 @@ class ModelNormal(OpenApiModel): ) def __contains__(self, name): - """used by `in` operator to check if an attrbute value was set in an instance: `'attr' in instance`""" + """used by `in` operator to check if an attribute value was set in an instance: `'attr' in instance`""" if name in self.required_properties: return name in self.__dict__ @@ -648,7 +648,7 @@ class ModelComposed(OpenApiModel): return value def __contains__(self, name): - """used by `in` operator to check if an attrbute value was set in an instance: `'attr' in instance`""" + """used by `in` operator to check if an attribute value was set in an instance: `'attr' in instance`""" if name in self.required_properties: return name in self.__dict__ diff --git a/samples/openapi3/client/petstore/python/petstore_api/signing.py b/samples/openapi3/client/petstore/python/petstore_api/signing.py index 5a5c4be6197..4ea7d8f779e 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/signing.py +++ b/samples/openapi3/client/petstore/python/petstore_api/signing.py @@ -341,7 +341,7 @@ class HttpSigningConfiguration(object): :return: A tuple of (digest, prefix). The digest is a hashing object that contains the cryptographic digest of the HTTP request. - The prefix is a string that identifies the cryptographc hash. It is used + The prefix is a string that identifies the cryptographic hash. It is used to generate the 'Digest' header as specified in RFC 3230. """ if self.hash_algorithm == HASH_SHA512: diff --git a/samples/openapi3/client/petstore/typescript/builds/composed-schemas/git_push.sh b/samples/openapi3/client/petstore/typescript/builds/composed-schemas/git_push.sh index 0f406ef7878..9010c5f610d 100644 --- a/samples/openapi3/client/petstore/typescript/builds/composed-schemas/git_push.sh +++ b/samples/openapi3/client/petstore/typescript/builds/composed-schemas/git_push.sh @@ -1,7 +1,7 @@ #!/bin/sh # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" git_user_id=$1 git_repo_id=$2 diff --git a/samples/openapi3/client/petstore/typescript/builds/default/UserApi.md b/samples/openapi3/client/petstore/typescript/builds/default/UserApi.md index e5ac670bd7c..3aa75a41422 100644 --- a/samples/openapi3/client/petstore/typescript/builds/default/UserApi.md +++ b/samples/openapi3/client/petstore/typescript/builds/default/UserApi.md @@ -367,7 +367,7 @@ No authorization required ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | successful operation | * Set-Cookie - Cookie authentication key for use with the `api_key` apiKey authentication.
    * X-Rate-Limit - calls per hour allowed by the user
    * X-Expires-After - date in UTC when toekn expires
    | +**200** | successful operation | * Set-Cookie - Cookie authentication key for use with the `api_key` apiKey authentication.
    * X-Rate-Limit - calls per hour allowed by the user
    * X-Expires-After - date in UTC when token expires
    | **400** | Invalid username/password supplied | - | [[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) diff --git a/samples/openapi3/client/petstore/typescript/builds/default/git_push.sh b/samples/openapi3/client/petstore/typescript/builds/default/git_push.sh index 0f406ef7878..9010c5f610d 100644 --- a/samples/openapi3/client/petstore/typescript/builds/default/git_push.sh +++ b/samples/openapi3/client/petstore/typescript/builds/default/git_push.sh @@ -1,7 +1,7 @@ #!/bin/sh # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" git_user_id=$1 git_repo_id=$2 diff --git a/samples/openapi3/client/petstore/typescript/builds/deno/UserApi.md b/samples/openapi3/client/petstore/typescript/builds/deno/UserApi.md index e5ac670bd7c..3aa75a41422 100644 --- a/samples/openapi3/client/petstore/typescript/builds/deno/UserApi.md +++ b/samples/openapi3/client/petstore/typescript/builds/deno/UserApi.md @@ -367,7 +367,7 @@ No authorization required ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | successful operation | * Set-Cookie - Cookie authentication key for use with the `api_key` apiKey authentication.
    * X-Rate-Limit - calls per hour allowed by the user
    * X-Expires-After - date in UTC when toekn expires
    | +**200** | successful operation | * Set-Cookie - Cookie authentication key for use with the `api_key` apiKey authentication.
    * X-Rate-Limit - calls per hour allowed by the user
    * X-Expires-After - date in UTC when token expires
    | **400** | Invalid username/password supplied | - | [[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) diff --git a/samples/openapi3/client/petstore/typescript/builds/deno/git_push.sh b/samples/openapi3/client/petstore/typescript/builds/deno/git_push.sh index 0f406ef7878..9010c5f610d 100644 --- a/samples/openapi3/client/petstore/typescript/builds/deno/git_push.sh +++ b/samples/openapi3/client/petstore/typescript/builds/deno/git_push.sh @@ -1,7 +1,7 @@ #!/bin/sh # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" git_user_id=$1 git_repo_id=$2 diff --git a/samples/openapi3/client/petstore/typescript/builds/inversify/UserApi.md b/samples/openapi3/client/petstore/typescript/builds/inversify/UserApi.md index e5ac670bd7c..3aa75a41422 100644 --- a/samples/openapi3/client/petstore/typescript/builds/inversify/UserApi.md +++ b/samples/openapi3/client/petstore/typescript/builds/inversify/UserApi.md @@ -367,7 +367,7 @@ No authorization required ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | successful operation | * Set-Cookie - Cookie authentication key for use with the `api_key` apiKey authentication.
    * X-Rate-Limit - calls per hour allowed by the user
    * X-Expires-After - date in UTC when toekn expires
    | +**200** | successful operation | * Set-Cookie - Cookie authentication key for use with the `api_key` apiKey authentication.
    * X-Rate-Limit - calls per hour allowed by the user
    * X-Expires-After - date in UTC when token expires
    | **400** | Invalid username/password supplied | - | [[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) diff --git a/samples/openapi3/client/petstore/typescript/builds/inversify/git_push.sh b/samples/openapi3/client/petstore/typescript/builds/inversify/git_push.sh index 0f406ef7878..9010c5f610d 100644 --- a/samples/openapi3/client/petstore/typescript/builds/inversify/git_push.sh +++ b/samples/openapi3/client/petstore/typescript/builds/inversify/git_push.sh @@ -1,7 +1,7 @@ #!/bin/sh # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" git_user_id=$1 git_repo_id=$2 diff --git a/samples/openapi3/client/petstore/typescript/builds/jquery/UserApi.md b/samples/openapi3/client/petstore/typescript/builds/jquery/UserApi.md index e5ac670bd7c..3aa75a41422 100644 --- a/samples/openapi3/client/petstore/typescript/builds/jquery/UserApi.md +++ b/samples/openapi3/client/petstore/typescript/builds/jquery/UserApi.md @@ -367,7 +367,7 @@ No authorization required ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | successful operation | * Set-Cookie - Cookie authentication key for use with the `api_key` apiKey authentication.
    * X-Rate-Limit - calls per hour allowed by the user
    * X-Expires-After - date in UTC when toekn expires
    | +**200** | successful operation | * Set-Cookie - Cookie authentication key for use with the `api_key` apiKey authentication.
    * X-Rate-Limit - calls per hour allowed by the user
    * X-Expires-After - date in UTC when token expires
    | **400** | Invalid username/password supplied | - | [[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) diff --git a/samples/openapi3/client/petstore/typescript/builds/jquery/git_push.sh b/samples/openapi3/client/petstore/typescript/builds/jquery/git_push.sh index 0f406ef7878..9010c5f610d 100644 --- a/samples/openapi3/client/petstore/typescript/builds/jquery/git_push.sh +++ b/samples/openapi3/client/petstore/typescript/builds/jquery/git_push.sh @@ -1,7 +1,7 @@ #!/bin/sh # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" git_user_id=$1 git_repo_id=$2 diff --git a/samples/openapi3/client/petstore/typescript/builds/object_params/UserApi.md b/samples/openapi3/client/petstore/typescript/builds/object_params/UserApi.md index e5ac670bd7c..3aa75a41422 100644 --- a/samples/openapi3/client/petstore/typescript/builds/object_params/UserApi.md +++ b/samples/openapi3/client/petstore/typescript/builds/object_params/UserApi.md @@ -367,7 +367,7 @@ No authorization required ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | successful operation | * Set-Cookie - Cookie authentication key for use with the `api_key` apiKey authentication.
    * X-Rate-Limit - calls per hour allowed by the user
    * X-Expires-After - date in UTC when toekn expires
    | +**200** | successful operation | * Set-Cookie - Cookie authentication key for use with the `api_key` apiKey authentication.
    * X-Rate-Limit - calls per hour allowed by the user
    * X-Expires-After - date in UTC when token expires
    | **400** | Invalid username/password supplied | - | [[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) diff --git a/samples/openapi3/client/petstore/typescript/builds/object_params/git_push.sh b/samples/openapi3/client/petstore/typescript/builds/object_params/git_push.sh index 0f406ef7878..9010c5f610d 100644 --- a/samples/openapi3/client/petstore/typescript/builds/object_params/git_push.sh +++ b/samples/openapi3/client/petstore/typescript/builds/object_params/git_push.sh @@ -1,7 +1,7 @@ #!/bin/sh # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" git_user_id=$1 git_repo_id=$2 diff --git a/samples/schema/petstore/ktorm/ktorm_schema.sql b/samples/schema/petstore/ktorm/ktorm_schema.sql index e053107143c..0f7fcf7ecee 100644 --- a/samples/schema/petstore/ktorm/ktorm_schema.sql +++ b/samples/schema/petstore/ktorm/ktorm_schema.sql @@ -188,7 +188,7 @@ CREATE TABLE IF NOT EXISTS `oauth_jwt` ( CREATE TABLE IF NOT EXISTS `oauth_jti` ( `issuer` VARCHAR(80) NOT NULL, `subject` VARCHAR(80) DEFAULT NULL, - `audiance` VARCHAR(80) DEFAULT NULL, + `audience` VARCHAR(80) DEFAULT NULL, `expires` TIMESTAMP NOT NULL, `jti` VARCHAR(2000) NOT NULL ); diff --git a/samples/schema/petstore/mysql/README.md b/samples/schema/petstore/mysql/README.md index 3fb447c4b7c..a54ecbb3490 100644 --- a/samples/schema/petstore/mysql/README.md +++ b/samples/schema/petstore/mysql/README.md @@ -49,7 +49,7 @@ Produced file(`mysql_schema.sql`) contains every table definition. Current imple ### Prepared SQL queries -[Model folder](./Model) contains SQL queries(`SELECT *`, `SELECT`, `INSERT`, `UPDATE`, `DELETE`) usually suggested by `PHPMyAdmin` when you hit `SQL` tab. They are absolutely useless without adaptation to your needs. Copypaste them then edit. +[Model folder](./Model) contains SQL queries(`SELECT *`, `SELECT`, `INSERT`, `UPDATE`, `DELETE`) usually suggested by `PHPMyAdmin` when you hit `SQL` tab. They are absolutely useless without adaptation to your needs. Copy-paste them then edit. Important! Some of SQLs(`INSERT`/`UPDATE`) contains question marks(`?`) which are parameter placeholders. You need to bind values to these params to execute query. diff --git a/samples/schema/petstore/mysql/mysql_schema.sql b/samples/schema/petstore/mysql/mysql_schema.sql index e9a361cc794..a189b16c3ab 100644 --- a/samples/schema/petstore/mysql/mysql_schema.sql +++ b/samples/schema/petstore/mysql/mysql_schema.sql @@ -518,7 +518,7 @@ CREATE TABLE IF NOT EXISTS `oauth_jwt` ( CREATE TABLE IF NOT EXISTS `oauth_jti` ( `issuer` VARCHAR(80) NOT NULL, `subject` VARCHAR(80) DEFAULT NULL, - `audiance` VARCHAR(80) DEFAULT NULL, + `audience` VARCHAR(80) DEFAULT NULL, `expires` TIMESTAMP NOT NULL, `jti` VARCHAR(2000) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; diff --git a/samples/schema/petstore/wsdl-schema/service.wsdl b/samples/schema/petstore/wsdl-schema/service.wsdl index 10545307a01..db34eda9eb3 100644 --- a/samples/schema/petstore/wsdl-schema/service.wsdl +++ b/samples/schema/petstore/wsdl-schema/service.wsdl @@ -769,7 +769,7 @@ - Muliple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing. + Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing. successful operation diff --git a/samples/server/petstore/aspnetcore-3.0/src/Org.OpenAPITools/wwwroot/openapi-original.json b/samples/server/petstore/aspnetcore-3.0/src/Org.OpenAPITools/wwwroot/openapi-original.json index 26519713741..6798a9a98bf 100644 --- a/samples/server/petstore/aspnetcore-3.0/src/Org.OpenAPITools/wwwroot/openapi-original.json +++ b/samples/server/petstore/aspnetcore-3.0/src/Org.OpenAPITools/wwwroot/openapi-original.json @@ -634,7 +634,7 @@ } }, "X-Expires-After" : { - "description" : "date in UTC when toekn expires", + "description" : "date in UTC when token expires", "schema" : { "format" : "date-time", "type" : "string" diff --git a/samples/server/petstore/aspnetcore-3.1/src/Org.OpenAPITools/wwwroot/openapi-original.json b/samples/server/petstore/aspnetcore-3.1/src/Org.OpenAPITools/wwwroot/openapi-original.json index 26519713741..6798a9a98bf 100644 --- a/samples/server/petstore/aspnetcore-3.1/src/Org.OpenAPITools/wwwroot/openapi-original.json +++ b/samples/server/petstore/aspnetcore-3.1/src/Org.OpenAPITools/wwwroot/openapi-original.json @@ -634,7 +634,7 @@ } }, "X-Expires-After" : { - "description" : "date in UTC when toekn expires", + "description" : "date in UTC when token expires", "schema" : { "format" : "date-time", "type" : "string" diff --git a/samples/server/petstore/aspnetcore-5.0/src/Org.OpenAPITools/wwwroot/openapi-original.json b/samples/server/petstore/aspnetcore-5.0/src/Org.OpenAPITools/wwwroot/openapi-original.json index fa67d155511..1f99af1b294 100644 --- a/samples/server/petstore/aspnetcore-5.0/src/Org.OpenAPITools/wwwroot/openapi-original.json +++ b/samples/server/petstore/aspnetcore-5.0/src/Org.OpenAPITools/wwwroot/openapi-original.json @@ -641,7 +641,7 @@ "style" : "simple" }, "X-Expires-After" : { - "description" : "date in UTC when toekn expires", + "description" : "date in UTC when token expires", "explode" : false, "schema" : { "format" : "date-time", diff --git a/samples/server/petstore/aspnetcore/src/Org.OpenAPITools/Filters/GeneratePathParamsValidationFilter.cs b/samples/server/petstore/aspnetcore/src/Org.OpenAPITools/Filters/GeneratePathParamsValidationFilter.cs index d358fd6523e..39e1790f4e8 100644 --- a/samples/server/petstore/aspnetcore/src/Org.OpenAPITools/Filters/GeneratePathParamsValidationFilter.cs +++ b/samples/server/petstore/aspnetcore/src/Org.OpenAPITools/Filters/GeneratePathParamsValidationFilter.cs @@ -47,13 +47,13 @@ namespace Org.OpenAPITools.Filters } // String Length [StringLength] - int? minLenght = null, maxLength = null; + int? minLength = null, maxLength = null; var stringLengthAttr = attributes.FirstOrDefault(p => p.AttributeType == typeof(StringLengthAttribute)); if (stringLengthAttr != null) { if (stringLengthAttr.NamedArguments.Count == 1) { - minLenght = (int)stringLengthAttr.NamedArguments.Single(p => p.MemberName == "MinimumLength").TypedValue.Value; + minLength = (int)stringLengthAttr.NamedArguments.Single(p => p.MemberName == "MinimumLength").TypedValue.Value; } maxLength = (int)stringLengthAttr.ConstructorArguments[0].Value; } @@ -61,7 +61,7 @@ namespace Org.OpenAPITools.Filters var minLengthAttr = attributes.FirstOrDefault(p => p.AttributeType == typeof(MinLengthAttribute)); if (minLengthAttr != null) { - minLenght = (int)minLengthAttr.ConstructorArguments[0].Value; + minLength = (int)minLengthAttr.ConstructorArguments[0].Value; } var maxLengthAttr = attributes.FirstOrDefault(p => p.AttributeType == typeof(MaxLengthAttribute)); @@ -72,7 +72,7 @@ namespace Org.OpenAPITools.Filters if (swaggerParam is NonBodyParameter) { - ((NonBodyParameter)swaggerParam).MinLength = minLenght; + ((NonBodyParameter)swaggerParam).MinLength = minLength; ((NonBodyParameter)swaggerParam).MaxLength = maxLength; } diff --git a/samples/server/petstore/aspnetcore/src/Org.OpenAPITools/wwwroot/openapi-original.json b/samples/server/petstore/aspnetcore/src/Org.OpenAPITools/wwwroot/openapi-original.json index 26519713741..6798a9a98bf 100644 --- a/samples/server/petstore/aspnetcore/src/Org.OpenAPITools/wwwroot/openapi-original.json +++ b/samples/server/petstore/aspnetcore/src/Org.OpenAPITools/wwwroot/openapi-original.json @@ -634,7 +634,7 @@ } }, "X-Expires-After" : { - "description" : "date in UTC when toekn expires", + "description" : "date in UTC when token expires", "schema" : { "format" : "date-time", "type" : "string" diff --git a/samples/server/petstore/cpp-pistache/api/PetApi.h b/samples/server/petstore/cpp-pistache/api/PetApi.h index 3f790af02c1..408fbf9c7a0 100644 --- a/samples/server/petstore/cpp-pistache/api/PetApi.h +++ b/samples/server/petstore/cpp-pistache/api/PetApi.h @@ -58,14 +58,14 @@ private: /// /// Helper function to handle unexpected Exceptions during Parameter parsing and validation. - /// May be overriden to return custom error formats. This is called inside a catch block. + /// May be overridden to return custom error formats. This is called inside a catch block. /// Important: When overriding, do not call `throw ex;`, but instead use `throw;`. /// virtual std::pair handleParsingException(const std::exception& ex) const noexcept; /// /// Helper function to handle unexpected Exceptions during processing of the request in handler functions. - /// May be overriden to return custom error formats. This is called inside a catch block. + /// May be overridden to return custom error formats. This is called inside a catch block. /// Important: When overriding, do not call `throw ex;`, but instead use `throw;`. /// virtual std::pair handleOperationException(const std::exception& ex) const noexcept; diff --git a/samples/server/petstore/cpp-pistache/api/StoreApi.h b/samples/server/petstore/cpp-pistache/api/StoreApi.h index e354a2710f3..39516e5c823 100644 --- a/samples/server/petstore/cpp-pistache/api/StoreApi.h +++ b/samples/server/petstore/cpp-pistache/api/StoreApi.h @@ -54,14 +54,14 @@ private: /// /// Helper function to handle unexpected Exceptions during Parameter parsing and validation. - /// May be overriden to return custom error formats. This is called inside a catch block. + /// May be overridden to return custom error formats. This is called inside a catch block. /// Important: When overriding, do not call `throw ex;`, but instead use `throw;`. /// virtual std::pair handleParsingException(const std::exception& ex) const noexcept; /// /// Helper function to handle unexpected Exceptions during processing of the request in handler functions. - /// May be overriden to return custom error formats. This is called inside a catch block. + /// May be overridden to return custom error formats. This is called inside a catch block. /// Important: When overriding, do not call `throw ex;`, but instead use `throw;`. /// virtual std::pair handleOperationException(const std::exception& ex) const noexcept; diff --git a/samples/server/petstore/cpp-pistache/api/UserApi.h b/samples/server/petstore/cpp-pistache/api/UserApi.h index fadf0b046c2..76f3e55e43c 100644 --- a/samples/server/petstore/cpp-pistache/api/UserApi.h +++ b/samples/server/petstore/cpp-pistache/api/UserApi.h @@ -58,14 +58,14 @@ private: /// /// Helper function to handle unexpected Exceptions during Parameter parsing and validation. - /// May be overriden to return custom error formats. This is called inside a catch block. + /// May be overridden to return custom error formats. This is called inside a catch block. /// Important: When overriding, do not call `throw ex;`, but instead use `throw;`. /// virtual std::pair handleParsingException(const std::exception& ex) const noexcept; /// /// Helper function to handle unexpected Exceptions during processing of the request in handler functions. - /// May be overriden to return custom error formats. This is called inside a catch block. + /// May be overridden to return custom error formats. This is called inside a catch block. /// Important: When overriding, do not call `throw ex;`, but instead use `throw;`. /// virtual std::pair handleOperationException(const std::exception& ex) const noexcept; diff --git a/samples/server/petstore/cpp-qt-qhttpengine-server/server/src/main.cpp b/samples/server/petstore/cpp-qt-qhttpengine-server/server/src/main.cpp index e2af8d6386f..1b0ad66f1e2 100644 --- a/samples/server/petstore/cpp-qt-qhttpengine-server/server/src/main.cpp +++ b/samples/server/petstore/cpp-qt-qhttpengine-server/server/src/main.cpp @@ -28,7 +28,7 @@ #ifdef __linux__ void catchUnixSignals(QList quitSignals) { auto handler = [](int sig) -> void { - // blocking and not aysnc-signal-safe func are valid + // blocking and not async-signal-safe func are valid qDebug() << "\nquit the application by signal " << sig; QCoreApplication::quit(); }; diff --git a/samples/server/petstore/erlang-server/priv/openapi.json b/samples/server/petstore/erlang-server/priv/openapi.json index fa67d155511..1f99af1b294 100644 --- a/samples/server/petstore/erlang-server/priv/openapi.json +++ b/samples/server/petstore/erlang-server/priv/openapi.json @@ -641,7 +641,7 @@ "style" : "simple" }, "X-Expires-After" : { - "description" : "date in UTC when toekn expires", + "description" : "date in UTC when token expires", "explode" : false, "schema" : { "format" : "date-time", diff --git a/samples/server/petstore/go-api-server/api/openapi.yaml b/samples/server/petstore/go-api-server/api/openapi.yaml index 606cc84f138..bb1c5be5b94 100644 --- a/samples/server/petstore/go-api-server/api/openapi.yaml +++ b/samples/server/petstore/go-api-server/api/openapi.yaml @@ -483,7 +483,7 @@ paths: type: integer style: simple X-Expires-After: - description: date in UTC when toekn expires + description: date in UTC when token expires explode: false schema: format: date-time diff --git a/samples/server/petstore/go-api-server/go/api_pet_service.go b/samples/server/petstore/go-api-server/go/api_pet_service.go index 3f682e9fd46..9a390ecef3d 100644 --- a/samples/server/petstore/go-api-server/go/api_pet_service.go +++ b/samples/server/petstore/go-api-server/go/api_pet_service.go @@ -16,7 +16,7 @@ import ( "os" ) -// PetApiService is a service that implents the logic for the PetApiServicer +// PetApiService is a service that implements the logic for the PetApiServicer // This service should implement the business logic for every endpoint for the PetApi API. // Include any external packages or services that will be required by this service. type PetApiService struct { diff --git a/samples/server/petstore/go-api-server/go/api_store_service.go b/samples/server/petstore/go-api-server/go/api_store_service.go index 0fc75e126f3..3c91040fa9f 100644 --- a/samples/server/petstore/go-api-server/go/api_store_service.go +++ b/samples/server/petstore/go-api-server/go/api_store_service.go @@ -15,7 +15,7 @@ import ( "errors" ) -// StoreApiService is a service that implents the logic for the StoreApiServicer +// StoreApiService is a service that implements the logic for the StoreApiServicer // This service should implement the business logic for every endpoint for the StoreApi API. // Include any external packages or services that will be required by this service. type StoreApiService struct { diff --git a/samples/server/petstore/go-api-server/go/api_user_service.go b/samples/server/petstore/go-api-server/go/api_user_service.go index b00a49cfd63..6ae5a6d751b 100644 --- a/samples/server/petstore/go-api-server/go/api_user_service.go +++ b/samples/server/petstore/go-api-server/go/api_user_service.go @@ -15,7 +15,7 @@ import ( "errors" ) -// UserApiService is a service that implents the logic for the UserApiServicer +// UserApiService is a service that implements the logic for the UserApiServicer // This service should implement the business logic for every endpoint for the UserApi API. // Include any external packages or services that will be required by this service. type UserApiService struct { diff --git a/samples/server/petstore/go-chi-server/api/openapi.yaml b/samples/server/petstore/go-chi-server/api/openapi.yaml index 606cc84f138..bb1c5be5b94 100644 --- a/samples/server/petstore/go-chi-server/api/openapi.yaml +++ b/samples/server/petstore/go-chi-server/api/openapi.yaml @@ -483,7 +483,7 @@ paths: type: integer style: simple X-Expires-After: - description: date in UTC when toekn expires + description: date in UTC when token expires explode: false schema: format: date-time diff --git a/samples/server/petstore/go-chi-server/go/api_pet_service.go b/samples/server/petstore/go-chi-server/go/api_pet_service.go index 3f682e9fd46..9a390ecef3d 100644 --- a/samples/server/petstore/go-chi-server/go/api_pet_service.go +++ b/samples/server/petstore/go-chi-server/go/api_pet_service.go @@ -16,7 +16,7 @@ import ( "os" ) -// PetApiService is a service that implents the logic for the PetApiServicer +// PetApiService is a service that implements the logic for the PetApiServicer // This service should implement the business logic for every endpoint for the PetApi API. // Include any external packages or services that will be required by this service. type PetApiService struct { diff --git a/samples/server/petstore/go-chi-server/go/api_store_service.go b/samples/server/petstore/go-chi-server/go/api_store_service.go index 0fc75e126f3..3c91040fa9f 100644 --- a/samples/server/petstore/go-chi-server/go/api_store_service.go +++ b/samples/server/petstore/go-chi-server/go/api_store_service.go @@ -15,7 +15,7 @@ import ( "errors" ) -// StoreApiService is a service that implents the logic for the StoreApiServicer +// StoreApiService is a service that implements the logic for the StoreApiServicer // This service should implement the business logic for every endpoint for the StoreApi API. // Include any external packages or services that will be required by this service. type StoreApiService struct { diff --git a/samples/server/petstore/go-chi-server/go/api_user_service.go b/samples/server/petstore/go-chi-server/go/api_user_service.go index b00a49cfd63..6ae5a6d751b 100644 --- a/samples/server/petstore/go-chi-server/go/api_user_service.go +++ b/samples/server/petstore/go-chi-server/go/api_user_service.go @@ -15,7 +15,7 @@ import ( "errors" ) -// UserApiService is a service that implents the logic for the UserApiServicer +// UserApiService is a service that implements the logic for the UserApiServicer // This service should implement the business logic for every endpoint for the UserApi API. // Include any external packages or services that will be required by this service. type UserApiService struct { diff --git a/samples/server/petstore/go-echo-server/.docs/api/openapi.yaml b/samples/server/petstore/go-echo-server/.docs/api/openapi.yaml index 606cc84f138..bb1c5be5b94 100644 --- a/samples/server/petstore/go-echo-server/.docs/api/openapi.yaml +++ b/samples/server/petstore/go-echo-server/.docs/api/openapi.yaml @@ -483,7 +483,7 @@ paths: type: integer style: simple X-Expires-After: - description: date in UTC when toekn expires + description: date in UTC when token expires explode: false schema: format: date-time diff --git a/samples/server/petstore/go-gin-api-server/api/openapi.yaml b/samples/server/petstore/go-gin-api-server/api/openapi.yaml index 606cc84f138..bb1c5be5b94 100644 --- a/samples/server/petstore/go-gin-api-server/api/openapi.yaml +++ b/samples/server/petstore/go-gin-api-server/api/openapi.yaml @@ -483,7 +483,7 @@ paths: type: integer style: simple X-Expires-After: - description: date in UTC when toekn expires + description: date in UTC when token expires explode: false schema: format: date-time diff --git a/samples/server/petstore/go-server-required/api/openapi.yaml b/samples/server/petstore/go-server-required/api/openapi.yaml index a3021416717..632abb4be4b 100644 --- a/samples/server/petstore/go-server-required/api/openapi.yaml +++ b/samples/server/petstore/go-server-required/api/openapi.yaml @@ -482,7 +482,7 @@ paths: type: integer style: simple X-Expires-After: - description: date in UTC when toekn expires + description: date in UTC when token expires explode: false schema: format: date-time diff --git a/samples/server/petstore/go-server-required/go/api_pet_service.go b/samples/server/petstore/go-server-required/go/api_pet_service.go index 3f682e9fd46..9a390ecef3d 100644 --- a/samples/server/petstore/go-server-required/go/api_pet_service.go +++ b/samples/server/petstore/go-server-required/go/api_pet_service.go @@ -16,7 +16,7 @@ import ( "os" ) -// PetApiService is a service that implents the logic for the PetApiServicer +// PetApiService is a service that implements the logic for the PetApiServicer // This service should implement the business logic for every endpoint for the PetApi API. // Include any external packages or services that will be required by this service. type PetApiService struct { diff --git a/samples/server/petstore/go-server-required/go/api_store_service.go b/samples/server/petstore/go-server-required/go/api_store_service.go index 0fc75e126f3..3c91040fa9f 100644 --- a/samples/server/petstore/go-server-required/go/api_store_service.go +++ b/samples/server/petstore/go-server-required/go/api_store_service.go @@ -15,7 +15,7 @@ import ( "errors" ) -// StoreApiService is a service that implents the logic for the StoreApiServicer +// StoreApiService is a service that implements the logic for the StoreApiServicer // This service should implement the business logic for every endpoint for the StoreApi API. // Include any external packages or services that will be required by this service. type StoreApiService struct { diff --git a/samples/server/petstore/go-server-required/go/api_user_service.go b/samples/server/petstore/go-server-required/go/api_user_service.go index b00a49cfd63..6ae5a6d751b 100644 --- a/samples/server/petstore/go-server-required/go/api_user_service.go +++ b/samples/server/petstore/go-server-required/go/api_user_service.go @@ -15,7 +15,7 @@ import ( "errors" ) -// UserApiService is a service that implents the logic for the UserApiServicer +// UserApiService is a service that implements the logic for the UserApiServicer // This service should implement the business logic for every endpoint for the UserApi API. // Include any external packages or services that will be required by this service. type UserApiService struct { diff --git a/samples/server/petstore/haskell-servant/lib/OpenAPIPetstore/Types.hs b/samples/server/petstore/haskell-servant/lib/OpenAPIPetstore/Types.hs index 855f7062f23..af002e481c9 100644 --- a/samples/server/petstore/haskell-servant/lib/OpenAPIPetstore/Types.hs +++ b/samples/server/petstore/haskell-servant/lib/OpenAPIPetstore/Types.hs @@ -150,7 +150,7 @@ uncapitalize [] = [] -- The @forParsing@ parameter is to distinguish between the cases in which we're using this -- to power a @FromJSON@ or a @ToJSON@ instance. In the first case we're parsing, and we want -- to replace special characters with their quoted equivalents (because we cannot have special --- chars in identifier names), while we want to do viceversa when sending data instead. +-- chars in identifier names), while we want to do vice versa when sending data instead. removeFieldLabelPrefix :: Bool -> String -> Options removeFieldLabelPrefix forParsing prefix = defaultOptions diff --git a/samples/server/petstore/haskell-yesod/README.md b/samples/server/petstore/haskell-yesod/README.md index 41b8c965687..3b45602145b 100644 --- a/samples/server/petstore/haskell-yesod/README.md +++ b/samples/server/petstore/haskell-yesod/README.md @@ -38,6 +38,6 @@ stack test --flag open-api-petstore:library-only --flag open-api-petstore:dev * Ask questions on [Stack Overflow, using the Yesod or Haskell tags](https://stackoverflow.com/questions/tagged/yesod+haskell) * Ask the [Yesod Google Group](https://groups.google.com/forum/#!forum/yesodweb) -* There are several chatrooms you can ask for help: +* There are several chat rooms you can ask for help: * For IRC, try Freenode#yesod and Freenode#haskell * [Functional Programming Slack](https://fpchat-invite.herokuapp.com/), in the #haskell, #haskell-beginners, or #yesod channels. diff --git a/samples/server/petstore/haskell-yesod/src/OpenAPIPetstore/Types.hs b/samples/server/petstore/haskell-yesod/src/OpenAPIPetstore/Types.hs index ab0cb00e1ba..44a78e76afd 100644 --- a/samples/server/petstore/haskell-yesod/src/OpenAPIPetstore/Types.hs +++ b/samples/server/petstore/haskell-yesod/src/OpenAPIPetstore/Types.hs @@ -120,7 +120,7 @@ uncapitalize [] = [] -- The @forParsing@ parameter is to distinguish between the cases in which we're using this -- to power a @FromJSON@ or a @ToJSON@ instance. In the first case we're parsing, and we want -- to replace special characters with their quoted equivalents (because we cannot have special --- chars in identifier names), while we want to do viceversa when sending data instead. +-- chars in identifier names), while we want to do vice versa when sending data instead. removeFieldLabelPrefix :: Bool -> String -> Options removeFieldLabelPrefix forParsing prefix = defaultOptions diff --git a/samples/server/petstore/java-inflector/src/main/openapi/openapi.yaml b/samples/server/petstore/java-inflector/src/main/openapi/openapi.yaml index 0516277ce27..da8e574f000 100644 --- a/samples/server/petstore/java-inflector/src/main/openapi/openapi.yaml +++ b/samples/server/petstore/java-inflector/src/main/openapi/openapi.yaml @@ -1162,7 +1162,7 @@ paths: x-codegen-request-body-name: body x-contentType: application/json x-accepts: application/json - /fake/test-query-paramters: + /fake/test-query-parameters: put: description: To test the collection format in query parameters operationId: testQueryParameterCollectionFormat diff --git a/samples/server/petstore/java-msf4j/src/gen/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/java-msf4j/src/gen/java/org/openapitools/api/FakeApi.java index b97be7155b4..de8256e6923 100644 --- a/samples/server/petstore/java-msf4j/src/gen/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/java-msf4j/src/gen/java/org/openapitools/api/FakeApi.java @@ -231,7 +231,7 @@ public class FakeApi { return delegate.testJsonFormData(param,param2); } @PUT - @Path("/test-query-paramters") + @Path("/test-query-parameters") @io.swagger.annotations.ApiOperation(value = "", notes = "To test the collection format in query parameters", response = Void.class, tags={ "fake", }) diff --git a/samples/server/petstore/java-play-framework-api-package-override/app/openapitools/OpenAPIUtils.java b/samples/server/petstore/java-play-framework-api-package-override/app/openapitools/OpenAPIUtils.java index 385ef97a008..e57d887c2ec 100644 --- a/samples/server/petstore/java-play-framework-api-package-override/app/openapitools/OpenAPIUtils.java +++ b/samples/server/petstore/java-play-framework-api-package-override/app/openapitools/OpenAPIUtils.java @@ -28,11 +28,11 @@ public class OpenAPIUtils { Set> constraintViolations = validator.validate(obj); if (constraintViolations.size() > 0) { StringBuilder errors = new StringBuilder(); - for (ConstraintViolation contraintes : constraintViolations) { + for (ConstraintViolation constraints : constraintViolations) { errors.append(String.format("%s.%s %s\n", - contraintes.getRootBeanClass().getSimpleName(), - contraintes.getPropertyPath(), - contraintes.getMessage())); + constraints.getRootBeanClass().getSimpleName(), + constraints.getPropertyPath(), + constraints.getMessage())); } throw new RuntimeException("Bean validation : " + errors); } diff --git a/samples/server/petstore/java-play-framework-api-package-override/conf/application.conf b/samples/server/petstore/java-play-framework-api-package-override/conf/application.conf index fcc5c0499a2..60d4bf00b53 100644 --- a/samples/server/petstore/java-play-framework-api-package-override/conf/application.conf +++ b/samples/server/petstore/java-play-framework-api-package-override/conf/application.conf @@ -11,7 +11,7 @@ # You can declare variables and substitute for them: #mykey = ${some.value} # -# And if an environment variable exists when there is no other subsitution, then +# And if an environment variable exists when there is no other substitution, then # HOCON will fall back to substituting environment variable: #mykey = ${JAVA_HOME} @@ -63,7 +63,7 @@ play.http.secret.key = "changeme" # Please see https://www.playframework.com/documentation/latest/GlobalSettings # for more information. # -# You can also extend Play functionality by using one of the publically available +# You can also extend Play functionality by using one of the publicly available # Play modules: https://playframework.com/documentation/latest/ModuleDirectory play.modules { # By default, Play will load any class called Module that is defined diff --git a/samples/server/petstore/java-play-framework-api-package-override/public/openapi.json b/samples/server/petstore/java-play-framework-api-package-override/public/openapi.json index e1554af7b8f..a3bd1d08e49 100644 --- a/samples/server/petstore/java-play-framework-api-package-override/public/openapi.json +++ b/samples/server/petstore/java-play-framework-api-package-override/public/openapi.json @@ -657,7 +657,7 @@ } }, "X-Expires-After" : { - "description" : "date in UTC when toekn expires", + "description" : "date in UTC when token expires", "schema" : { "format" : "date-time", "type" : "string" diff --git a/samples/server/petstore/java-play-framework-async/app/openapitools/OpenAPIUtils.java b/samples/server/petstore/java-play-framework-async/app/openapitools/OpenAPIUtils.java index 385ef97a008..e57d887c2ec 100644 --- a/samples/server/petstore/java-play-framework-async/app/openapitools/OpenAPIUtils.java +++ b/samples/server/petstore/java-play-framework-async/app/openapitools/OpenAPIUtils.java @@ -28,11 +28,11 @@ public class OpenAPIUtils { Set> constraintViolations = validator.validate(obj); if (constraintViolations.size() > 0) { StringBuilder errors = new StringBuilder(); - for (ConstraintViolation contraintes : constraintViolations) { + for (ConstraintViolation constraints : constraintViolations) { errors.append(String.format("%s.%s %s\n", - contraintes.getRootBeanClass().getSimpleName(), - contraintes.getPropertyPath(), - contraintes.getMessage())); + constraints.getRootBeanClass().getSimpleName(), + constraints.getPropertyPath(), + constraints.getMessage())); } throw new RuntimeException("Bean validation : " + errors); } diff --git a/samples/server/petstore/java-play-framework-async/conf/application.conf b/samples/server/petstore/java-play-framework-async/conf/application.conf index fcc5c0499a2..60d4bf00b53 100644 --- a/samples/server/petstore/java-play-framework-async/conf/application.conf +++ b/samples/server/petstore/java-play-framework-async/conf/application.conf @@ -11,7 +11,7 @@ # You can declare variables and substitute for them: #mykey = ${some.value} # -# And if an environment variable exists when there is no other subsitution, then +# And if an environment variable exists when there is no other substitution, then # HOCON will fall back to substituting environment variable: #mykey = ${JAVA_HOME} @@ -63,7 +63,7 @@ play.http.secret.key = "changeme" # Please see https://www.playframework.com/documentation/latest/GlobalSettings # for more information. # -# You can also extend Play functionality by using one of the publically available +# You can also extend Play functionality by using one of the publicly available # Play modules: https://playframework.com/documentation/latest/ModuleDirectory play.modules { # By default, Play will load any class called Module that is defined diff --git a/samples/server/petstore/java-play-framework-async/public/openapi.json b/samples/server/petstore/java-play-framework-async/public/openapi.json index e1554af7b8f..a3bd1d08e49 100644 --- a/samples/server/petstore/java-play-framework-async/public/openapi.json +++ b/samples/server/petstore/java-play-framework-async/public/openapi.json @@ -657,7 +657,7 @@ } }, "X-Expires-After" : { - "description" : "date in UTC when toekn expires", + "description" : "date in UTC when token expires", "schema" : { "format" : "date-time", "type" : "string" diff --git a/samples/server/petstore/java-play-framework-controller-only/app/openapitools/OpenAPIUtils.java b/samples/server/petstore/java-play-framework-controller-only/app/openapitools/OpenAPIUtils.java index 385ef97a008..e57d887c2ec 100644 --- a/samples/server/petstore/java-play-framework-controller-only/app/openapitools/OpenAPIUtils.java +++ b/samples/server/petstore/java-play-framework-controller-only/app/openapitools/OpenAPIUtils.java @@ -28,11 +28,11 @@ public class OpenAPIUtils { Set> constraintViolations = validator.validate(obj); if (constraintViolations.size() > 0) { StringBuilder errors = new StringBuilder(); - for (ConstraintViolation contraintes : constraintViolations) { + for (ConstraintViolation constraints : constraintViolations) { errors.append(String.format("%s.%s %s\n", - contraintes.getRootBeanClass().getSimpleName(), - contraintes.getPropertyPath(), - contraintes.getMessage())); + constraints.getRootBeanClass().getSimpleName(), + constraints.getPropertyPath(), + constraints.getMessage())); } throw new RuntimeException("Bean validation : " + errors); } diff --git a/samples/server/petstore/java-play-framework-controller-only/conf/application.conf b/samples/server/petstore/java-play-framework-controller-only/conf/application.conf index ffb628cd848..0c6f6fd23fd 100644 --- a/samples/server/petstore/java-play-framework-controller-only/conf/application.conf +++ b/samples/server/petstore/java-play-framework-controller-only/conf/application.conf @@ -11,7 +11,7 @@ # You can declare variables and substitute for them: #mykey = ${some.value} # -# And if an environment variable exists when there is no other subsitution, then +# And if an environment variable exists when there is no other substitution, then # HOCON will fall back to substituting environment variable: #mykey = ${JAVA_HOME} @@ -63,7 +63,7 @@ play.http.secret.key = "changeme" # Please see https://www.playframework.com/documentation/latest/GlobalSettings # for more information. # -# You can also extend Play functionality by using one of the publically available +# You can also extend Play functionality by using one of the publicly available # Play modules: https://playframework.com/documentation/latest/ModuleDirectory play.modules { # By default, Play will load any class called Module that is defined diff --git a/samples/server/petstore/java-play-framework-controller-only/public/openapi.json b/samples/server/petstore/java-play-framework-controller-only/public/openapi.json index e1554af7b8f..a3bd1d08e49 100644 --- a/samples/server/petstore/java-play-framework-controller-only/public/openapi.json +++ b/samples/server/petstore/java-play-framework-controller-only/public/openapi.json @@ -657,7 +657,7 @@ } }, "X-Expires-After" : { - "description" : "date in UTC when toekn expires", + "description" : "date in UTC when token expires", "schema" : { "format" : "date-time", "type" : "string" diff --git a/samples/server/petstore/java-play-framework-fake-endpoints/app/openapitools/OpenAPIUtils.java b/samples/server/petstore/java-play-framework-fake-endpoints/app/openapitools/OpenAPIUtils.java index 385ef97a008..e57d887c2ec 100644 --- a/samples/server/petstore/java-play-framework-fake-endpoints/app/openapitools/OpenAPIUtils.java +++ b/samples/server/petstore/java-play-framework-fake-endpoints/app/openapitools/OpenAPIUtils.java @@ -28,11 +28,11 @@ public class OpenAPIUtils { Set> constraintViolations = validator.validate(obj); if (constraintViolations.size() > 0) { StringBuilder errors = new StringBuilder(); - for (ConstraintViolation contraintes : constraintViolations) { + for (ConstraintViolation constraints : constraintViolations) { errors.append(String.format("%s.%s %s\n", - contraintes.getRootBeanClass().getSimpleName(), - contraintes.getPropertyPath(), - contraintes.getMessage())); + constraints.getRootBeanClass().getSimpleName(), + constraints.getPropertyPath(), + constraints.getMessage())); } throw new RuntimeException("Bean validation : " + errors); } diff --git a/samples/server/petstore/java-play-framework-fake-endpoints/conf/application.conf b/samples/server/petstore/java-play-framework-fake-endpoints/conf/application.conf index fcc5c0499a2..60d4bf00b53 100644 --- a/samples/server/petstore/java-play-framework-fake-endpoints/conf/application.conf +++ b/samples/server/petstore/java-play-framework-fake-endpoints/conf/application.conf @@ -11,7 +11,7 @@ # You can declare variables and substitute for them: #mykey = ${some.value} # -# And if an environment variable exists when there is no other subsitution, then +# And if an environment variable exists when there is no other substitution, then # HOCON will fall back to substituting environment variable: #mykey = ${JAVA_HOME} @@ -63,7 +63,7 @@ play.http.secret.key = "changeme" # Please see https://www.playframework.com/documentation/latest/GlobalSettings # for more information. # -# You can also extend Play functionality by using one of the publically available +# You can also extend Play functionality by using one of the publicly available # Play modules: https://playframework.com/documentation/latest/ModuleDirectory play.modules { # By default, Play will load any class called Module that is defined diff --git a/samples/server/petstore/java-play-framework-fake-endpoints/conf/routes b/samples/server/petstore/java-play-framework-fake-endpoints/conf/routes index 2124662eb7f..0499f760be7 100644 --- a/samples/server/petstore/java-play-framework-fake-endpoints/conf/routes +++ b/samples/server/petstore/java-play-framework-fake-endpoints/conf/routes @@ -22,7 +22,7 @@ GET /v2/fake controllers.FakeApiController.testEnumParam DELETE /v2/fake controllers.FakeApiController.testGroupParameters(request: Request) POST /v2/fake/inline-additionalProperties controllers.FakeApiController.testInlineAdditionalProperties(request: Request) GET /v2/fake/jsonFormData controllers.FakeApiController.testJsonFormData(request: Request) -PUT /v2/fake/test-query-paramters controllers.FakeApiController.testQueryParameterCollectionFormat(request: Request) +PUT /v2/fake/test-query-parameters controllers.FakeApiController.testQueryParameterCollectionFormat(request: Request) #Functions for FakeClassnameTags123 API PATCH /v2/fake_classname_test controllers.FakeClassnameTags123ApiController.testClassname(request: Request) diff --git a/samples/server/petstore/java-play-framework-fake-endpoints/public/openapi.json b/samples/server/petstore/java-play-framework-fake-endpoints/public/openapi.json index 25825c7a17d..37e47ba24e1 100644 --- a/samples/server/petstore/java-play-framework-fake-endpoints/public/openapi.json +++ b/samples/server/petstore/java-play-framework-fake-endpoints/public/openapi.json @@ -1507,7 +1507,7 @@ "x-accepts" : "application/json" } }, - "/fake/test-query-paramters" : { + "/fake/test-query-parameters" : { "put" : { "description" : "To test the collection format in query parameters", "operationId" : "testQueryParameterCollectionFormat", diff --git a/samples/server/petstore/java-play-framework-no-bean-validation/conf/application.conf b/samples/server/petstore/java-play-framework-no-bean-validation/conf/application.conf index 613212fe707..11d29d2011d 100644 --- a/samples/server/petstore/java-play-framework-no-bean-validation/conf/application.conf +++ b/samples/server/petstore/java-play-framework-no-bean-validation/conf/application.conf @@ -11,7 +11,7 @@ # You can declare variables and substitute for them: #mykey = ${some.value} # -# And if an environment variable exists when there is no other subsitution, then +# And if an environment variable exists when there is no other substitution, then # HOCON will fall back to substituting environment variable: #mykey = ${JAVA_HOME} @@ -55,7 +55,7 @@ play.http.secret.key = "changeme" # Please see https://www.playframework.com/documentation/latest/GlobalSettings # for more information. # -# You can also extend Play functionality by using one of the publically available +# You can also extend Play functionality by using one of the publicly available # Play modules: https://playframework.com/documentation/latest/ModuleDirectory play.modules { # By default, Play will load any class called Module that is defined diff --git a/samples/server/petstore/java-play-framework-no-bean-validation/public/openapi.json b/samples/server/petstore/java-play-framework-no-bean-validation/public/openapi.json index e1554af7b8f..a3bd1d08e49 100644 --- a/samples/server/petstore/java-play-framework-no-bean-validation/public/openapi.json +++ b/samples/server/petstore/java-play-framework-no-bean-validation/public/openapi.json @@ -657,7 +657,7 @@ } }, "X-Expires-After" : { - "description" : "date in UTC when toekn expires", + "description" : "date in UTC when token expires", "schema" : { "format" : "date-time", "type" : "string" diff --git a/samples/server/petstore/java-play-framework-no-exception-handling/app/openapitools/OpenAPIUtils.java b/samples/server/petstore/java-play-framework-no-exception-handling/app/openapitools/OpenAPIUtils.java index 385ef97a008..e57d887c2ec 100644 --- a/samples/server/petstore/java-play-framework-no-exception-handling/app/openapitools/OpenAPIUtils.java +++ b/samples/server/petstore/java-play-framework-no-exception-handling/app/openapitools/OpenAPIUtils.java @@ -28,11 +28,11 @@ public class OpenAPIUtils { Set> constraintViolations = validator.validate(obj); if (constraintViolations.size() > 0) { StringBuilder errors = new StringBuilder(); - for (ConstraintViolation contraintes : constraintViolations) { + for (ConstraintViolation constraints : constraintViolations) { errors.append(String.format("%s.%s %s\n", - contraintes.getRootBeanClass().getSimpleName(), - contraintes.getPropertyPath(), - contraintes.getMessage())); + constraints.getRootBeanClass().getSimpleName(), + constraints.getPropertyPath(), + constraints.getMessage())); } throw new RuntimeException("Bean validation : " + errors); } diff --git a/samples/server/petstore/java-play-framework-no-exception-handling/conf/application.conf b/samples/server/petstore/java-play-framework-no-exception-handling/conf/application.conf index a0e7bf1a478..d44c78462a0 100644 --- a/samples/server/petstore/java-play-framework-no-exception-handling/conf/application.conf +++ b/samples/server/petstore/java-play-framework-no-exception-handling/conf/application.conf @@ -11,7 +11,7 @@ # You can declare variables and substitute for them: #mykey = ${some.value} # -# And if an environment variable exists when there is no other subsitution, then +# And if an environment variable exists when there is no other substitution, then # HOCON will fall back to substituting environment variable: #mykey = ${JAVA_HOME} @@ -62,7 +62,7 @@ play.http.secret.key = "changeme" # Please see https://www.playframework.com/documentation/latest/GlobalSettings # for more information. # -# You can also extend Play functionality by using one of the publically available +# You can also extend Play functionality by using one of the publicly available # Play modules: https://playframework.com/documentation/latest/ModuleDirectory play.modules { # By default, Play will load any class called Module that is defined diff --git a/samples/server/petstore/java-play-framework-no-exception-handling/public/openapi.json b/samples/server/petstore/java-play-framework-no-exception-handling/public/openapi.json index e1554af7b8f..a3bd1d08e49 100644 --- a/samples/server/petstore/java-play-framework-no-exception-handling/public/openapi.json +++ b/samples/server/petstore/java-play-framework-no-exception-handling/public/openapi.json @@ -657,7 +657,7 @@ } }, "X-Expires-After" : { - "description" : "date in UTC when toekn expires", + "description" : "date in UTC when token expires", "schema" : { "format" : "date-time", "type" : "string" diff --git a/samples/server/petstore/java-play-framework-no-interface/app/openapitools/OpenAPIUtils.java b/samples/server/petstore/java-play-framework-no-interface/app/openapitools/OpenAPIUtils.java index 385ef97a008..e57d887c2ec 100644 --- a/samples/server/petstore/java-play-framework-no-interface/app/openapitools/OpenAPIUtils.java +++ b/samples/server/petstore/java-play-framework-no-interface/app/openapitools/OpenAPIUtils.java @@ -28,11 +28,11 @@ public class OpenAPIUtils { Set> constraintViolations = validator.validate(obj); if (constraintViolations.size() > 0) { StringBuilder errors = new StringBuilder(); - for (ConstraintViolation contraintes : constraintViolations) { + for (ConstraintViolation constraints : constraintViolations) { errors.append(String.format("%s.%s %s\n", - contraintes.getRootBeanClass().getSimpleName(), - contraintes.getPropertyPath(), - contraintes.getMessage())); + constraints.getRootBeanClass().getSimpleName(), + constraints.getPropertyPath(), + constraints.getMessage())); } throw new RuntimeException("Bean validation : " + errors); } diff --git a/samples/server/petstore/java-play-framework-no-interface/conf/application.conf b/samples/server/petstore/java-play-framework-no-interface/conf/application.conf index ffb628cd848..0c6f6fd23fd 100644 --- a/samples/server/petstore/java-play-framework-no-interface/conf/application.conf +++ b/samples/server/petstore/java-play-framework-no-interface/conf/application.conf @@ -11,7 +11,7 @@ # You can declare variables and substitute for them: #mykey = ${some.value} # -# And if an environment variable exists when there is no other subsitution, then +# And if an environment variable exists when there is no other substitution, then # HOCON will fall back to substituting environment variable: #mykey = ${JAVA_HOME} @@ -63,7 +63,7 @@ play.http.secret.key = "changeme" # Please see https://www.playframework.com/documentation/latest/GlobalSettings # for more information. # -# You can also extend Play functionality by using one of the publically available +# You can also extend Play functionality by using one of the publicly available # Play modules: https://playframework.com/documentation/latest/ModuleDirectory play.modules { # By default, Play will load any class called Module that is defined diff --git a/samples/server/petstore/java-play-framework-no-interface/public/openapi.json b/samples/server/petstore/java-play-framework-no-interface/public/openapi.json index e1554af7b8f..a3bd1d08e49 100644 --- a/samples/server/petstore/java-play-framework-no-interface/public/openapi.json +++ b/samples/server/petstore/java-play-framework-no-interface/public/openapi.json @@ -657,7 +657,7 @@ } }, "X-Expires-After" : { - "description" : "date in UTC when toekn expires", + "description" : "date in UTC when token expires", "schema" : { "format" : "date-time", "type" : "string" diff --git a/samples/server/petstore/java-play-framework-no-nullable/app/openapitools/OpenAPIUtils.java b/samples/server/petstore/java-play-framework-no-nullable/app/openapitools/OpenAPIUtils.java index 385ef97a008..e57d887c2ec 100644 --- a/samples/server/petstore/java-play-framework-no-nullable/app/openapitools/OpenAPIUtils.java +++ b/samples/server/petstore/java-play-framework-no-nullable/app/openapitools/OpenAPIUtils.java @@ -28,11 +28,11 @@ public class OpenAPIUtils { Set> constraintViolations = validator.validate(obj); if (constraintViolations.size() > 0) { StringBuilder errors = new StringBuilder(); - for (ConstraintViolation contraintes : constraintViolations) { + for (ConstraintViolation constraints : constraintViolations) { errors.append(String.format("%s.%s %s\n", - contraintes.getRootBeanClass().getSimpleName(), - contraintes.getPropertyPath(), - contraintes.getMessage())); + constraints.getRootBeanClass().getSimpleName(), + constraints.getPropertyPath(), + constraints.getMessage())); } throw new RuntimeException("Bean validation : " + errors); } diff --git a/samples/server/petstore/java-play-framework-no-nullable/conf/application.conf b/samples/server/petstore/java-play-framework-no-nullable/conf/application.conf index fcc5c0499a2..60d4bf00b53 100644 --- a/samples/server/petstore/java-play-framework-no-nullable/conf/application.conf +++ b/samples/server/petstore/java-play-framework-no-nullable/conf/application.conf @@ -11,7 +11,7 @@ # You can declare variables and substitute for them: #mykey = ${some.value} # -# And if an environment variable exists when there is no other subsitution, then +# And if an environment variable exists when there is no other substitution, then # HOCON will fall back to substituting environment variable: #mykey = ${JAVA_HOME} @@ -63,7 +63,7 @@ play.http.secret.key = "changeme" # Please see https://www.playframework.com/documentation/latest/GlobalSettings # for more information. # -# You can also extend Play functionality by using one of the publically available +# You can also extend Play functionality by using one of the publicly available # Play modules: https://playframework.com/documentation/latest/ModuleDirectory play.modules { # By default, Play will load any class called Module that is defined diff --git a/samples/server/petstore/java-play-framework-no-nullable/public/openapi.json b/samples/server/petstore/java-play-framework-no-nullable/public/openapi.json index e1554af7b8f..a3bd1d08e49 100644 --- a/samples/server/petstore/java-play-framework-no-nullable/public/openapi.json +++ b/samples/server/petstore/java-play-framework-no-nullable/public/openapi.json @@ -657,7 +657,7 @@ } }, "X-Expires-After" : { - "description" : "date in UTC when toekn expires", + "description" : "date in UTC when token expires", "schema" : { "format" : "date-time", "type" : "string" diff --git a/samples/server/petstore/java-play-framework-no-swagger-ui/app/openapitools/OpenAPIUtils.java b/samples/server/petstore/java-play-framework-no-swagger-ui/app/openapitools/OpenAPIUtils.java index 385ef97a008..e57d887c2ec 100644 --- a/samples/server/petstore/java-play-framework-no-swagger-ui/app/openapitools/OpenAPIUtils.java +++ b/samples/server/petstore/java-play-framework-no-swagger-ui/app/openapitools/OpenAPIUtils.java @@ -28,11 +28,11 @@ public class OpenAPIUtils { Set> constraintViolations = validator.validate(obj); if (constraintViolations.size() > 0) { StringBuilder errors = new StringBuilder(); - for (ConstraintViolation contraintes : constraintViolations) { + for (ConstraintViolation constraints : constraintViolations) { errors.append(String.format("%s.%s %s\n", - contraintes.getRootBeanClass().getSimpleName(), - contraintes.getPropertyPath(), - contraintes.getMessage())); + constraints.getRootBeanClass().getSimpleName(), + constraints.getPropertyPath(), + constraints.getMessage())); } throw new RuntimeException("Bean validation : " + errors); } diff --git a/samples/server/petstore/java-play-framework-no-swagger-ui/conf/application.conf b/samples/server/petstore/java-play-framework-no-swagger-ui/conf/application.conf index fcc5c0499a2..60d4bf00b53 100644 --- a/samples/server/petstore/java-play-framework-no-swagger-ui/conf/application.conf +++ b/samples/server/petstore/java-play-framework-no-swagger-ui/conf/application.conf @@ -11,7 +11,7 @@ # You can declare variables and substitute for them: #mykey = ${some.value} # -# And if an environment variable exists when there is no other subsitution, then +# And if an environment variable exists when there is no other substitution, then # HOCON will fall back to substituting environment variable: #mykey = ${JAVA_HOME} @@ -63,7 +63,7 @@ play.http.secret.key = "changeme" # Please see https://www.playframework.com/documentation/latest/GlobalSettings # for more information. # -# You can also extend Play functionality by using one of the publically available +# You can also extend Play functionality by using one of the publicly available # Play modules: https://playframework.com/documentation/latest/ModuleDirectory play.modules { # By default, Play will load any class called Module that is defined diff --git a/samples/server/petstore/java-play-framework-no-wrap-calls/app/openapitools/OpenAPIUtils.java b/samples/server/petstore/java-play-framework-no-wrap-calls/app/openapitools/OpenAPIUtils.java index aff8786b457..9fb0e9b7af0 100644 --- a/samples/server/petstore/java-play-framework-no-wrap-calls/app/openapitools/OpenAPIUtils.java +++ b/samples/server/petstore/java-play-framework-no-wrap-calls/app/openapitools/OpenAPIUtils.java @@ -23,11 +23,11 @@ public class OpenAPIUtils { Set> constraintViolations = validator.validate(obj); if (constraintViolations.size() > 0) { StringBuilder errors = new StringBuilder(); - for (ConstraintViolation contraintes : constraintViolations) { + for (ConstraintViolation constraints : constraintViolations) { errors.append(String.format("%s.%s %s\n", - contraintes.getRootBeanClass().getSimpleName(), - contraintes.getPropertyPath(), - contraintes.getMessage())); + constraints.getRootBeanClass().getSimpleName(), + constraints.getPropertyPath(), + constraints.getMessage())); } throw new RuntimeException("Bean validation : " + errors); } diff --git a/samples/server/petstore/java-play-framework-no-wrap-calls/conf/application.conf b/samples/server/petstore/java-play-framework-no-wrap-calls/conf/application.conf index fcc5c0499a2..60d4bf00b53 100644 --- a/samples/server/petstore/java-play-framework-no-wrap-calls/conf/application.conf +++ b/samples/server/petstore/java-play-framework-no-wrap-calls/conf/application.conf @@ -11,7 +11,7 @@ # You can declare variables and substitute for them: #mykey = ${some.value} # -# And if an environment variable exists when there is no other subsitution, then +# And if an environment variable exists when there is no other substitution, then # HOCON will fall back to substituting environment variable: #mykey = ${JAVA_HOME} @@ -63,7 +63,7 @@ play.http.secret.key = "changeme" # Please see https://www.playframework.com/documentation/latest/GlobalSettings # for more information. # -# You can also extend Play functionality by using one of the publically available +# You can also extend Play functionality by using one of the publicly available # Play modules: https://playframework.com/documentation/latest/ModuleDirectory play.modules { # By default, Play will load any class called Module that is defined diff --git a/samples/server/petstore/java-play-framework-no-wrap-calls/public/openapi.json b/samples/server/petstore/java-play-framework-no-wrap-calls/public/openapi.json index e1554af7b8f..a3bd1d08e49 100644 --- a/samples/server/petstore/java-play-framework-no-wrap-calls/public/openapi.json +++ b/samples/server/petstore/java-play-framework-no-wrap-calls/public/openapi.json @@ -657,7 +657,7 @@ } }, "X-Expires-After" : { - "description" : "date in UTC when toekn expires", + "description" : "date in UTC when token expires", "schema" : { "format" : "date-time", "type" : "string" diff --git a/samples/server/petstore/java-play-framework/app/openapitools/OpenAPIUtils.java b/samples/server/petstore/java-play-framework/app/openapitools/OpenAPIUtils.java index 385ef97a008..e57d887c2ec 100644 --- a/samples/server/petstore/java-play-framework/app/openapitools/OpenAPIUtils.java +++ b/samples/server/petstore/java-play-framework/app/openapitools/OpenAPIUtils.java @@ -28,11 +28,11 @@ public class OpenAPIUtils { Set> constraintViolations = validator.validate(obj); if (constraintViolations.size() > 0) { StringBuilder errors = new StringBuilder(); - for (ConstraintViolation contraintes : constraintViolations) { + for (ConstraintViolation constraints : constraintViolations) { errors.append(String.format("%s.%s %s\n", - contraintes.getRootBeanClass().getSimpleName(), - contraintes.getPropertyPath(), - contraintes.getMessage())); + constraints.getRootBeanClass().getSimpleName(), + constraints.getPropertyPath(), + constraints.getMessage())); } throw new RuntimeException("Bean validation : " + errors); } diff --git a/samples/server/petstore/java-play-framework/conf/application.conf b/samples/server/petstore/java-play-framework/conf/application.conf index fcc5c0499a2..60d4bf00b53 100644 --- a/samples/server/petstore/java-play-framework/conf/application.conf +++ b/samples/server/petstore/java-play-framework/conf/application.conf @@ -11,7 +11,7 @@ # You can declare variables and substitute for them: #mykey = ${some.value} # -# And if an environment variable exists when there is no other subsitution, then +# And if an environment variable exists when there is no other substitution, then # HOCON will fall back to substituting environment variable: #mykey = ${JAVA_HOME} @@ -63,7 +63,7 @@ play.http.secret.key = "changeme" # Please see https://www.playframework.com/documentation/latest/GlobalSettings # for more information. # -# You can also extend Play functionality by using one of the publically available +# You can also extend Play functionality by using one of the publicly available # Play modules: https://playframework.com/documentation/latest/ModuleDirectory play.modules { # By default, Play will load any class called Module that is defined diff --git a/samples/server/petstore/java-play-framework/public/openapi.json b/samples/server/petstore/java-play-framework/public/openapi.json index e1554af7b8f..a3bd1d08e49 100644 --- a/samples/server/petstore/java-play-framework/public/openapi.json +++ b/samples/server/petstore/java-play-framework/public/openapi.json @@ -657,7 +657,7 @@ } }, "X-Expires-After" : { - "description" : "date in UTC when toekn expires", + "description" : "date in UTC when token expires", "schema" : { "format" : "date-time", "type" : "string" diff --git a/samples/server/petstore/java-undertow/src/main/java/org/openapitools/handler/PathHandlerInterface.java b/samples/server/petstore/java-undertow/src/main/java/org/openapitools/handler/PathHandlerInterface.java index 6becdb40cb1..859109086a5 100644 --- a/samples/server/petstore/java-undertow/src/main/java/org/openapitools/handler/PathHandlerInterface.java +++ b/samples/server/petstore/java-undertow/src/main/java/org/openapitools/handler/PathHandlerInterface.java @@ -539,7 +539,7 @@ public interface PathHandlerInterface { *

    Response headers: [CodegenProperty{openApiType='integer', baseName='X-Rate-Limit', complexType='null', getter='getxRateLimit', setter='setxRateLimit', description='calls per hour allowed by the user', dataType='Integer', datatypeWithEnum='Integer', dataFormat='int32', name='xRateLimit', min='null', max='null', defaultValue='null', defaultValueWithParam=' = data.X-Rate-Limit;', baseType='Integer', containerType='null', title='null', unescapedDescription='calls per hour allowed by the user', maxLength=null, minLength=null, pattern='null', example='null', jsonSchema='{ "type" : "integer", "format" : "int32" -}', minimum='null', maximum='null', exclusiveMinimum=false, exclusiveMaximum=false, required=false, deprecated=false, hasMoreNonReadOnly=false, isPrimitiveType=true, isModel=false, isContainer=false, isString=false, isNumeric=true, isInteger=true, isShort=true, isLong=false, isUnboundedInteger=false, isNumber=false, isFloat=false, isDouble=false, isDecimal=false, isByteArray=false, isBinary=false, isFile=false, isBoolean=false, isDate=false, isDateTime=false, isUuid=false, isUri=false, isEmail=false, isFreeFormObject=false, isArray=false, isMap=false, isEnum=false, isReadOnly=false, isWriteOnly=false, isNullable=false, isSelfReference=false, isCircularReference=false, isDiscriminator=false, _enum=null, allowableValues=null, items=null, additionalProperties=null, vars=[], requiredVars=[], mostInnerItems=null, vendorExtensions={}, hasValidation=false, isInherited=false, discriminatorValue='null', nameInCamelCase='XRateLimit', nameInSnakeCase='X_RATE_LIMIT', enumName='null', maxItems=null, minItems=null, maxProperties=null, minProperties=null, uniqueItems=false, multipleOf=null, isXmlAttribute=false, xmlPrefix='null', xmlName='null', xmlNamespace='null', isXmlWrapped=false, isNull=false, getAdditionalPropertiesIsAnyType=false, getHasVars=false, getHasRequired=false, getHasDiscriminatorWithNonEmptyMapping=false}, CodegenProperty{openApiType='string', baseName='X-Expires-After', complexType='Date', getter='getxExpiresAfter', setter='setxExpiresAfter', description='date in UTC when toekn expires', dataType='Date', datatypeWithEnum='Date', dataFormat='date-time', name='xExpiresAfter', min='null', max='null', defaultValue='null', defaultValueWithParam=' = data.X-Expires-After;', baseType='Date', containerType='null', title='null', unescapedDescription='date in UTC when toekn expires', maxLength=null, minLength=null, pattern='null', example='null', jsonSchema='{ +}', minimum='null', maximum='null', exclusiveMinimum=false, exclusiveMaximum=false, required=false, deprecated=false, hasMoreNonReadOnly=false, isPrimitiveType=true, isModel=false, isContainer=false, isString=false, isNumeric=true, isInteger=true, isShort=true, isLong=false, isUnboundedInteger=false, isNumber=false, isFloat=false, isDouble=false, isDecimal=false, isByteArray=false, isBinary=false, isFile=false, isBoolean=false, isDate=false, isDateTime=false, isUuid=false, isUri=false, isEmail=false, isFreeFormObject=false, isArray=false, isMap=false, isEnum=false, isReadOnly=false, isWriteOnly=false, isNullable=false, isSelfReference=false, isCircularReference=false, isDiscriminator=false, _enum=null, allowableValues=null, items=null, additionalProperties=null, vars=[], requiredVars=[], mostInnerItems=null, vendorExtensions={}, hasValidation=false, isInherited=false, discriminatorValue='null', nameInCamelCase='XRateLimit', nameInSnakeCase='X_RATE_LIMIT', enumName='null', maxItems=null, minItems=null, maxProperties=null, minProperties=null, uniqueItems=false, multipleOf=null, isXmlAttribute=false, xmlPrefix='null', xmlName='null', xmlNamespace='null', isXmlWrapped=false, isNull=false, getAdditionalPropertiesIsAnyType=false, getHasVars=false, getHasRequired=false, getHasDiscriminatorWithNonEmptyMapping=false}, CodegenProperty{openApiType='string', baseName='X-Expires-After', complexType='Date', getter='getxExpiresAfter', setter='setxExpiresAfter', description='date in UTC when token expires', dataType='Date', datatypeWithEnum='Date', dataFormat='date-time', name='xExpiresAfter', min='null', max='null', defaultValue='null', defaultValueWithParam=' = data.X-Expires-After;', baseType='Date', containerType='null', title='null', unescapedDescription='date in UTC when token expires', maxLength=null, minLength=null, pattern='null', example='null', jsonSchema='{ "type" : "string", "format" : "date-time" }', minimum='null', maximum='null', exclusiveMinimum=false, exclusiveMaximum=false, required=false, deprecated=false, hasMoreNonReadOnly=false, isPrimitiveType=false, isModel=false, isContainer=false, isString=false, isNumeric=false, isInteger=false, isShort=false, isLong=false, isUnboundedInteger=false, isNumber=false, isFloat=false, isDouble=false, isDecimal=false, isByteArray=false, isBinary=false, isFile=false, isBoolean=false, isDate=false, isDateTime=true, isUuid=false, isUri=false, isEmail=false, isFreeFormObject=false, isArray=false, isMap=false, isEnum=false, isReadOnly=false, isWriteOnly=false, isNullable=false, isSelfReference=false, isCircularReference=false, isDiscriminator=false, _enum=null, allowableValues=null, items=null, additionalProperties=null, vars=[], requiredVars=[], mostInnerItems=null, vendorExtensions={}, hasValidation=false, isInherited=false, discriminatorValue='null', nameInCamelCase='XExpiresAfter', nameInSnakeCase='X_EXPIRES_AFTER', enumName='null', maxItems=null, minItems=null, maxProperties=null, minProperties=null, uniqueItems=false, multipleOf=null, isXmlAttribute=false, xmlPrefix='null', xmlName='null', xmlNamespace='null', isXmlWrapped=false, isNull=false, getAdditionalPropertiesIsAnyType=false, getHasVars=false, getHasRequired=false, getHasDiscriminatorWithNonEmptyMapping=false}]

    diff --git a/samples/server/petstore/java-undertow/src/main/resources/config/openapi.json b/samples/server/petstore/java-undertow/src/main/resources/config/openapi.json index e1554af7b8f..a3bd1d08e49 100644 --- a/samples/server/petstore/java-undertow/src/main/resources/config/openapi.json +++ b/samples/server/petstore/java-undertow/src/main/resources/config/openapi.json @@ -657,7 +657,7 @@ } }, "X-Expires-After" : { - "description" : "date in UTC when toekn expires", + "description" : "date in UTC when token expires", "schema" : { "format" : "date-time", "type" : "string" diff --git a/samples/server/petstore/java-vertx-web/src/main/resources/openapi.yaml b/samples/server/petstore/java-vertx-web/src/main/resources/openapi.yaml index 844d9cf368b..d4624beff58 100644 --- a/samples/server/petstore/java-vertx-web/src/main/resources/openapi.yaml +++ b/samples/server/petstore/java-vertx-web/src/main/resources/openapi.yaml @@ -506,7 +506,7 @@ paths: type: integer style: simple X-Expires-After: - description: date in UTC when toekn expires + description: date in UTC when token expires explode: false schema: format: date-time diff --git a/samples/server/petstore/jaxrs-cxf-test-data/src/gen/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/jaxrs-cxf-test-data/src/gen/java/org/openapitools/api/FakeApi.java index 21065b6fc8b..cb420e40efa 100644 --- a/samples/server/petstore/jaxrs-cxf-test-data/src/gen/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/jaxrs-cxf-test-data/src/gen/java/org/openapitools/api/FakeApi.java @@ -188,7 +188,7 @@ public interface FakeApi { public void testJsonFormData(@Multipart(value = "param") String param, @Multipart(value = "param2") String param2); @PUT - @Path("/test-query-paramters") + @Path("/test-query-parameters") @ApiOperation(value = "", tags={ "fake" }) @ApiResponses(value = { @ApiResponse(code = 200, message = "Success") }) diff --git a/samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/api/FakeApi.java index 57b44d3b82b..74f95d7a95d 100644 --- a/samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/api/FakeApi.java @@ -183,7 +183,7 @@ public interface FakeApi { public void testJsonFormData(@Multipart(value = "param") String param, @Multipart(value = "param2") String param2); @PUT - @Path("/test-query-paramters") + @Path("/test-query-parameters") @ApiOperation(value = "", tags={ "fake" }) @ApiResponses(value = { @ApiResponse(code = 200, message = "Success") }) diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/api/FakeApi.java index 5da901bb106..efb4711d6d4 100644 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/api/FakeApi.java @@ -227,7 +227,7 @@ public class FakeApi { return delegate.testJsonFormData(param, param2, securityContext); } @PUT - @Path("/test-query-paramters") + @Path("/test-query-parameters") @io.swagger.annotations.ApiOperation(value = "", notes = "To test the collection format in query parameters", response = Void.class, tags={ "fake", }) diff --git a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/api/FakeApi.java index 8b17dad0d74..1e871d737c6 100644 --- a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/api/FakeApi.java @@ -268,7 +268,7 @@ public class FakeApi { return delegate.testJsonFormData(param, param2, securityContext); } @PUT - @Path("/test-query-paramters") + @Path("/test-query-parameters") @io.swagger.annotations.ApiOperation(value = "", notes = "To test the collection format in query parameters", response = Void.class, tags={ "fake", }) diff --git a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/api/FakeApi.java index e7cd7f519d1..882acd3129a 100644 --- a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/api/FakeApi.java @@ -133,7 +133,7 @@ import javax.validation.Valid; Response testJsonFormData(@FormParam(value = "param") String param,@FormParam(value = "param2") String param2); @PUT - @Path("/test-query-paramters") + @Path("/test-query-parameters") @ApiOperation(value = "", notes = "To test the collection format in query parameters", tags={ "fake" }) @ApiResponses(value = { @ApiResponse(code = 200, message = "Success", response = Void.class) }) diff --git a/samples/server/petstore/jaxrs-spec-interface-response/src/main/openapi/openapi.yaml b/samples/server/petstore/jaxrs-spec-interface-response/src/main/openapi/openapi.yaml index 7d2de524fc6..d6386dc39bf 100644 --- a/samples/server/petstore/jaxrs-spec-interface-response/src/main/openapi/openapi.yaml +++ b/samples/server/petstore/jaxrs-spec-interface-response/src/main/openapi/openapi.yaml @@ -1232,7 +1232,7 @@ paths: x-accepts: application/json x-tags: - tag: fake - /fake/test-query-paramters: + /fake/test-query-parameters: put: description: To test the collection format in query parameters operationId: testQueryParameterCollectionFormat diff --git a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/api/FakeApi.java index cc3618e0929..81535f05cdd 100644 --- a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/api/FakeApi.java @@ -133,7 +133,7 @@ import javax.validation.Valid; void testJsonFormData(@FormParam(value = "param") String param,@FormParam(value = "param2") String param2); @PUT - @Path("/test-query-paramters") + @Path("/test-query-parameters") @ApiOperation(value = "", notes = "To test the collection format in query parameters", tags={ "fake" }) @ApiResponses(value = { @ApiResponse(code = 200, message = "Success", response = Void.class) }) diff --git a/samples/server/petstore/jaxrs-spec-interface/src/main/openapi/openapi.yaml b/samples/server/petstore/jaxrs-spec-interface/src/main/openapi/openapi.yaml index 7d2de524fc6..d6386dc39bf 100644 --- a/samples/server/petstore/jaxrs-spec-interface/src/main/openapi/openapi.yaml +++ b/samples/server/petstore/jaxrs-spec-interface/src/main/openapi/openapi.yaml @@ -1232,7 +1232,7 @@ paths: x-accepts: application/json x-tags: - tag: fake - /fake/test-query-paramters: + /fake/test-query-parameters: put: description: To test the collection format in query parameters operationId: testQueryParameterCollectionFormat diff --git a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/api/FakeApi.java index b7029f7a3b7..c2dcc67b3a1 100644 --- a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/api/FakeApi.java @@ -172,7 +172,7 @@ import javax.validation.Valid; } @PUT - @Path("/test-query-paramters") + @Path("/test-query-parameters") @ApiOperation(value = "", notes = "To test the collection format in query parameters", response = Void.class, tags={ "fake" }) @ApiResponses(value = { @ApiResponse(code = 200, message = "Success", response = Void.class) diff --git a/samples/server/petstore/jaxrs-spec/src/main/openapi/openapi.yaml b/samples/server/petstore/jaxrs-spec/src/main/openapi/openapi.yaml index 7d2de524fc6..d6386dc39bf 100644 --- a/samples/server/petstore/jaxrs-spec/src/main/openapi/openapi.yaml +++ b/samples/server/petstore/jaxrs-spec/src/main/openapi/openapi.yaml @@ -1232,7 +1232,7 @@ paths: x-accepts: application/json x-tags: - tag: fake - /fake/test-query-paramters: + /fake/test-query-parameters: put: description: To test the collection format in query parameters operationId: testQueryParameterCollectionFormat diff --git a/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/api/FakeApi.java index 86c3b537942..6c784c0d2b8 100644 --- a/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/api/FakeApi.java @@ -242,7 +242,7 @@ public class FakeApi { return delegate.testJsonFormData(param,param2,securityContext); } @PUT - @Path("/test-query-paramters") + @Path("/test-query-parameters") @io.swagger.annotations.ApiOperation(value = "", notes = "To test the collection format in query parameters", response = Void.class, tags={ "fake" }) diff --git a/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/api/FakeApi.java index 08f7401d0dc..6cd432d975e 100644 --- a/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/api/FakeApi.java @@ -243,7 +243,7 @@ public class FakeApi { return delegate.testJsonFormData(param,param2,securityContext); } @PUT - @Path("/test-query-paramters") + @Path("/test-query-parameters") @io.swagger.annotations.ApiOperation(value = "", notes = "To test the collection format in query parameters", response = Void.class, tags={ "fake" }) diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/FakeApi.java index 49fa9e35520..7ac866dd64d 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/FakeApi.java @@ -225,7 +225,7 @@ public class FakeApi { return delegate.testJsonFormData(param, param2, securityContext); } @PUT - @Path("/test-query-paramters") + @Path("/test-query-parameters") @io.swagger.annotations.ApiOperation(value = "", notes = "To test the collection format in query parameters", response = Void.class, tags={ "fake", }) diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/FakeApi.java index 42c59eb6c0a..0a943c0e96a 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/FakeApi.java @@ -226,7 +226,7 @@ public class FakeApi { return delegate.testJsonFormData(param, param2, securityContext); } @PUT - @Path("/test-query-paramters") + @Path("/test-query-parameters") @io.swagger.annotations.ApiOperation(value = "", notes = "To test the collection format in query parameters", response = Void.class, tags={ "fake", }) diff --git a/samples/server/petstore/php-laravel/lib/config/app.php b/samples/server/petstore/php-laravel/lib/config/app.php index 8409e00ea9f..8e9ac940c30 100644 --- a/samples/server/petstore/php-laravel/lib/config/app.php +++ b/samples/server/petstore/php-laravel/lib/config/app.php @@ -113,7 +113,7 @@ return [ | Encryption Key |-------------------------------------------------------------------------- | - | This key is used by the Illuminate encrypter service and should be set + | This key is used by the Illuminate encryptor service and should be set | to a random, 32 character string, otherwise these encrypted strings | will not be safe. Please do this before deploying an application! | diff --git a/samples/server/petstore/php-laravel/lib/routes/api.php b/samples/server/petstore/php-laravel/lib/routes/api.php index fec2cea4a3c..2127861b2e7 100644 --- a/samples/server/petstore/php-laravel/lib/routes/api.php +++ b/samples/server/petstore/php-laravel/lib/routes/api.php @@ -153,7 +153,7 @@ Route::post('/v2/fake/property/enum-int', 'FakeController@fakePropertyEnumIntege * Notes: To test the collection format in query parameters */ -Route::put('/v2/fake/test-query-paramters', 'FakeController@testQueryParameterCollectionFormat'); +Route::put('/v2/fake/test-query-parameters', 'FakeController@testQueryParameterCollectionFormat'); /** * patch testClassname * Summary: To test class name in snake case diff --git a/samples/server/petstore/php-lumen/lib/routes/web.php b/samples/server/petstore/php-lumen/lib/routes/web.php index 9831967079f..33eaaa40a6c 100644 --- a/samples/server/petstore/php-lumen/lib/routes/web.php +++ b/samples/server/petstore/php-lumen/lib/routes/web.php @@ -168,7 +168,7 @@ $router->post('/v2/fake/property/enum-int', 'FakeApi@fakePropertyEnumIntegerSeri * Summary: * Notes: To test the collection format in query parameters */ -$router->put('/v2/fake/test-query-paramters', 'FakeApi@testQueryParameterCollectionFormat'); +$router->put('/v2/fake/test-query-parameters', 'FakeApi@testQueryParameterCollectionFormat'); /** * patch testClassname diff --git a/samples/server/petstore/php-slim4/config/dev/example.inc.php b/samples/server/petstore/php-slim4/config/dev/example.inc.php index 0bbdd0810c8..bd0bff72774 100644 --- a/samples/server/petstore/php-slim4/config/dev/example.inc.php +++ b/samples/server/petstore/php-slim4/config/dev/example.inc.php @@ -55,7 +55,7 @@ return [ // 'relaxed' => ['localhost', '127.0.0.1'], /** - * By default on ocurred a fail on authentication, is sent a response on json format with a + * By default on occurred a fail on authentication, is sent a response on json format with a * message (`Invalid Token` or `Not found Token`) and with the token (if found), with status * `401 Unauthorized`. You can customize it by setting a callable function on error option. * Default: null diff --git a/samples/server/petstore/php-slim4/config/prod/example.inc.php b/samples/server/petstore/php-slim4/config/prod/example.inc.php index 0bbdd0810c8..bd0bff72774 100644 --- a/samples/server/petstore/php-slim4/config/prod/example.inc.php +++ b/samples/server/petstore/php-slim4/config/prod/example.inc.php @@ -55,7 +55,7 @@ return [ // 'relaxed' => ['localhost', '127.0.0.1'], /** - * By default on ocurred a fail on authentication, is sent a response on json format with a + * By default on occurred a fail on authentication, is sent a response on json format with a * message (`Invalid Token` or `Not found Token`) and with the token (if found), with status * `401 Unauthorized`. You can customize it by setting a callable function on error option. * Default: null diff --git a/samples/server/petstore/php-slim4/lib/SlimRouter.php b/samples/server/petstore/php-slim4/lib/SlimRouter.php index 0d59a3793e3..be6c9ced338 100644 --- a/samples/server/petstore/php-slim4/lib/SlimRouter.php +++ b/samples/server/petstore/php-slim4/lib/SlimRouter.php @@ -669,7 +669,7 @@ class SlimRouter } }, "X-Expires-After" : { - "description" : "date in UTC when toekn expires", + "description" : "date in UTC when token expires", "style" : "simple", "explode" : false, "schema" : { diff --git a/samples/server/petstore/php-symfony/SymfonyBundle-php/git_push.sh b/samples/server/petstore/php-symfony/SymfonyBundle-php/git_push.sh index 9405f72e950..18f86b99e82 100644 --- a/samples/server/petstore/php-symfony/SymfonyBundle-php/git_push.sh +++ b/samples/server/petstore/php-symfony/SymfonyBundle-php/git_push.sh @@ -1,7 +1,7 @@ #!/bin/sh # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" git_user_id=$1 git_repo_id=$2 diff --git a/samples/server/petstore/python-aiohttp-srclayout/src/openapi_server/openapi/openapi.yaml b/samples/server/petstore/python-aiohttp-srclayout/src/openapi_server/openapi/openapi.yaml index 57d23de03cf..8b70dbaa5fb 100644 --- a/samples/server/petstore/python-aiohttp-srclayout/src/openapi_server/openapi/openapi.yaml +++ b/samples/server/petstore/python-aiohttp-srclayout/src/openapi_server/openapi/openapi.yaml @@ -502,7 +502,7 @@ paths: format: int32 type: integer X-Expires-After: - description: date in UTC when toekn expires + description: date in UTC when token expires schema: format: date-time type: string diff --git a/samples/server/petstore/python-aiohttp/openapi_server/openapi/openapi.yaml b/samples/server/petstore/python-aiohttp/openapi_server/openapi/openapi.yaml index 57d23de03cf..8b70dbaa5fb 100644 --- a/samples/server/petstore/python-aiohttp/openapi_server/openapi/openapi.yaml +++ b/samples/server/petstore/python-aiohttp/openapi_server/openapi/openapi.yaml @@ -502,7 +502,7 @@ paths: format: int32 type: integer X-Expires-After: - description: date in UTC when toekn expires + description: date in UTC when token expires schema: format: date-time type: string diff --git a/samples/server/petstore/python-blueplanet/solution/fig.yml b/samples/server/petstore/python-blueplanet/solution/fig.yml index 13c69f8df6f..3cfda34dbdc 100644 --- a/samples/server/petstore/python-blueplanet/solution/fig.yml +++ b/samples/server/petstore/python-blueplanet/solution/fig.yml @@ -24,7 +24,7 @@ docker_registry: registry.blueplanet.com solution_name: openapi_server # version is not read from this file, but coded in the Makefile -# the vendor and tag are provided by the Makefile as argumernts to solmaker +# the vendor and tag are provided by the Makefile as arguments to solmaker solution_version: 1.0.0 # ============ NOTE =============================================================================== diff --git a/samples/server/petstore/python-fastapi/openapi.yaml b/samples/server/petstore/python-fastapi/openapi.yaml index bd137dbc74f..133f2f16cfc 100644 --- a/samples/server/petstore/python-fastapi/openapi.yaml +++ b/samples/server/petstore/python-fastapi/openapi.yaml @@ -483,7 +483,7 @@ paths: type: integer style: simple X-Expires-After: - description: date in UTC when toekn expires + description: date in UTC when token expires explode: false schema: format: date-time diff --git a/samples/server/petstore/python-flask/git_push.sh b/samples/server/petstore/python-flask/git_push.sh index 9405f72e950..18f86b99e82 100644 --- a/samples/server/petstore/python-flask/git_push.sh +++ b/samples/server/petstore/python-flask/git_push.sh @@ -1,7 +1,7 @@ #!/bin/sh # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" git_user_id=$1 git_repo_id=$2 diff --git a/samples/server/petstore/python-flask/openapi_server/openapi/openapi.yaml b/samples/server/petstore/python-flask/openapi_server/openapi/openapi.yaml index f8b70b3930b..8b402c5f7bb 100644 --- a/samples/server/petstore/python-flask/openapi_server/openapi/openapi.yaml +++ b/samples/server/petstore/python-flask/openapi_server/openapi/openapi.yaml @@ -492,7 +492,7 @@ paths: format: int32 type: integer X-Expires-After: - description: date in UTC when toekn expires + description: date in UTC when token expires schema: format: date-time type: string diff --git a/samples/server/petstore/rust-server/output/multipart-v3/examples/server/server.rs b/samples/server/petstore/rust-server/output/multipart-v3/examples/server/server.rs index 37f7674c4f0..9b38201f0cb 100644 --- a/samples/server/petstore/rust-server/output/multipart-v3/examples/server/server.rs +++ b/samples/server/petstore/rust-server/output/multipart-v3/examples/server/server.rs @@ -51,7 +51,7 @@ pub async fn create(addr: &str, https: bool) { // Server authentication ssl.set_private_key_file("examples/server-key.pem", SslFiletype::PEM).expect("Failed to set private key"); - ssl.set_certificate_chain_file("examples/server-chain.pem").expect("Failed to set cerificate chain"); + ssl.set_certificate_chain_file("examples/server-chain.pem").expect("Failed to set certificate chain"); ssl.check_private_key().expect("Failed to check private key"); let tls_acceptor = Arc::new(ssl.build()); @@ -116,7 +116,7 @@ impl Api for Server where C: Has + Send + Sync { let context = context.clone(); info!("multipart_related_request_post({:?}, {:?}, {:?}) - X-Span-ID: {:?}", required_binary_field, object_field, optional_binary_field, context.get().0.clone()); - Err("Generic failuare".into()) + Err("Generic failure".into()) } async fn multipart_request_post( @@ -129,7 +129,7 @@ impl Api for Server where C: Has + Send + Sync { let context = context.clone(); info!("multipart_request_post(\"{}\", {:?}, {:?}, {:?}) - X-Span-ID: {:?}", string_field, binary_field, optional_string_field, object_field, context.get().0.clone()); - Err("Generic failuare".into()) + Err("Generic failure".into()) } async fn multiple_identical_mime_types_post( @@ -140,7 +140,7 @@ impl Api for Server where C: Has + Send + Sync { let context = context.clone(); info!("multiple_identical_mime_types_post({:?}, {:?}) - X-Span-ID: {:?}", binary1, binary2, context.get().0.clone()); - Err("Generic failuare".into()) + Err("Generic failure".into()) } } diff --git a/samples/server/petstore/rust-server/output/no-example-v3/examples/server/server.rs b/samples/server/petstore/rust-server/output/no-example-v3/examples/server/server.rs index bb6183fee11..ed88826c899 100644 --- a/samples/server/petstore/rust-server/output/no-example-v3/examples/server/server.rs +++ b/samples/server/petstore/rust-server/output/no-example-v3/examples/server/server.rs @@ -51,7 +51,7 @@ pub async fn create(addr: &str, https: bool) { // Server authentication ssl.set_private_key_file("examples/server-key.pem", SslFiletype::PEM).expect("Failed to set private key"); - ssl.set_certificate_chain_file("examples/server-chain.pem").expect("Failed to set cerificate chain"); + ssl.set_certificate_chain_file("examples/server-chain.pem").expect("Failed to set certificate chain"); ssl.check_private_key().expect("Failed to check private key"); let tls_acceptor = Arc::new(ssl.build()); @@ -112,7 +112,7 @@ impl Api for Server where C: Has + Send + Sync { let context = context.clone(); info!("op_get({:?}) - X-Span-ID: {:?}", inline_object, context.get().0.clone()); - Err("Generic failuare".into()) + Err("Generic failure".into()) } } diff --git a/samples/server/petstore/rust-server/output/openapi-v3/examples/client/server.rs b/samples/server/petstore/rust-server/output/openapi-v3/examples/client/server.rs index 270f2feb185..79ae454e021 100644 --- a/samples/server/petstore/rust-server/output/openapi-v3/examples/client/server.rs +++ b/samples/server/petstore/rust-server/output/openapi-v3/examples/client/server.rs @@ -51,7 +51,7 @@ pub async fn create(addr: &str, https: bool) { // Server authentication ssl.set_private_key_file("examples/server-key.pem", SslFiletype::PEM).expect("Failed to set private key"); - ssl.set_certificate_chain_file("examples/server-chain.pem").expect("Failed to set cerificate chain"); + ssl.set_certificate_chain_file("examples/server-chain.pem").expect("Failed to set certificate chain"); ssl.check_private_key().expect("Failed to check private key"); let tls_acceptor = Arc::new(ssl.build()); @@ -111,7 +111,7 @@ impl CallbackApi for Server where C: Has + Send + Sync { let context = context.clone(); info!("callback_callback_with_header_post({:?}) - X-Span-ID: {:?}", information, context.get().0.clone()); - Err("Generic failuare".into()) + Err("Generic failure".into()) } async fn callback_callback_post( @@ -121,7 +121,7 @@ impl CallbackApi for Server where C: Has + Send + Sync { let context = context.clone(); info!("callback_callback_post() - X-Span-ID: {:?}", context.get().0.clone()); - Err("Generic failuare".into()) + Err("Generic failure".into()) } } diff --git a/samples/server/petstore/rust-server/output/openapi-v3/examples/server/server.rs b/samples/server/petstore/rust-server/output/openapi-v3/examples/server/server.rs index a40212742c5..5baf30fe13b 100644 --- a/samples/server/petstore/rust-server/output/openapi-v3/examples/server/server.rs +++ b/samples/server/petstore/rust-server/output/openapi-v3/examples/server/server.rs @@ -51,7 +51,7 @@ pub async fn create(addr: &str, https: bool) { // Server authentication ssl.set_private_key_file("examples/server-key.pem", SslFiletype::PEM).expect("Failed to set private key"); - ssl.set_certificate_chain_file("examples/server-chain.pem").expect("Failed to set cerificate chain"); + ssl.set_certificate_chain_file("examples/server-chain.pem").expect("Failed to set certificate chain"); ssl.check_private_key().expect("Failed to check private key"); let tls_acceptor = Arc::new(ssl.build()); @@ -137,7 +137,7 @@ impl Api for Server where C: Has + Send + Sync { let context = context.clone(); info!("any_of_get({:?}) - X-Span-ID: {:?}", any_of, context.get().0.clone()); - Err("Generic failuare".into()) + Err("Generic failure".into()) } async fn callback_with_header_post( @@ -147,7 +147,7 @@ impl Api for Server where C: Has + Send + Sync { let context = context.clone(); info!("callback_with_header_post(\"{}\") - X-Span-ID: {:?}", url, context.get().0.clone()); - Err("Generic failuare".into()) + Err("Generic failure".into()) } async fn complex_query_param_get( @@ -157,7 +157,7 @@ impl Api for Server where C: Has + Send + Sync { let context = context.clone(); info!("complex_query_param_get({:?}) - X-Span-ID: {:?}", list_of_strings, context.get().0.clone()); - Err("Generic failuare".into()) + Err("Generic failure".into()) } async fn enum_in_path_path_param_get( @@ -167,7 +167,7 @@ impl Api for Server where C: Has + Send + Sync { let context = context.clone(); info!("enum_in_path_path_param_get({:?}) - X-Span-ID: {:?}", path_param, context.get().0.clone()); - Err("Generic failuare".into()) + Err("Generic failure".into()) } async fn json_complex_query_param_get( @@ -177,7 +177,7 @@ impl Api for Server where C: Has + Send + Sync { let context = context.clone(); info!("json_complex_query_param_get({:?}) - X-Span-ID: {:?}", list_of_strings, context.get().0.clone()); - Err("Generic failuare".into()) + Err("Generic failure".into()) } async fn mandatory_request_header_get( @@ -187,7 +187,7 @@ impl Api for Server where C: Has + Send + Sync { let context = context.clone(); info!("mandatory_request_header_get(\"{}\") - X-Span-ID: {:?}", x_header, context.get().0.clone()); - Err("Generic failuare".into()) + Err("Generic failure".into()) } async fn merge_patch_json_get( @@ -196,7 +196,7 @@ impl Api for Server where C: Has + Send + Sync { let context = context.clone(); info!("merge_patch_json_get() - X-Span-ID: {:?}", context.get().0.clone()); - Err("Generic failuare".into()) + Err("Generic failure".into()) } /// Get some stuff. @@ -206,7 +206,7 @@ impl Api for Server where C: Has + Send + Sync { let context = context.clone(); info!("multiget_get() - X-Span-ID: {:?}", context.get().0.clone()); - Err("Generic failuare".into()) + Err("Generic failure".into()) } async fn multiple_auth_scheme_get( @@ -215,7 +215,7 @@ impl Api for Server where C: Has + Send + Sync { let context = context.clone(); info!("multiple_auth_scheme_get() - X-Span-ID: {:?}", context.get().0.clone()); - Err("Generic failuare".into()) + Err("Generic failure".into()) } async fn one_of_get( @@ -224,7 +224,7 @@ impl Api for Server where C: Has + Send + Sync { let context = context.clone(); info!("one_of_get() - X-Span-ID: {:?}", context.get().0.clone()); - Err("Generic failuare".into()) + Err("Generic failure".into()) } async fn override_server_get( @@ -233,7 +233,7 @@ impl Api for Server where C: Has + Send + Sync { let context = context.clone(); info!("override_server_get() - X-Span-ID: {:?}", context.get().0.clone()); - Err("Generic failuare".into()) + Err("Generic failure".into()) } /// Get some stuff with parameters. @@ -246,7 +246,7 @@ impl Api for Server where C: Has + Send + Sync { let context = context.clone(); info!("paramget_get({:?}, {:?}, {:?}) - X-Span-ID: {:?}", uuid, some_object, some_list, context.get().0.clone()); - Err("Generic failuare".into()) + Err("Generic failure".into()) } async fn readonly_auth_scheme_get( @@ -255,7 +255,7 @@ impl Api for Server where C: Has + Send + Sync { let context = context.clone(); info!("readonly_auth_scheme_get() - X-Span-ID: {:?}", context.get().0.clone()); - Err("Generic failuare".into()) + Err("Generic failure".into()) } async fn register_callback_post( @@ -265,7 +265,7 @@ impl Api for Server where C: Has + Send + Sync { let context = context.clone(); info!("register_callback_post(\"{}\") - X-Span-ID: {:?}", url, context.get().0.clone()); - Err("Generic failuare".into()) + Err("Generic failure".into()) } async fn required_octet_stream_put( @@ -275,7 +275,7 @@ impl Api for Server where C: Has + Send + Sync { let context = context.clone(); info!("required_octet_stream_put({:?}) - X-Span-ID: {:?}", body, context.get().0.clone()); - Err("Generic failuare".into()) + Err("Generic failure".into()) } async fn responses_with_headers_get( @@ -284,7 +284,7 @@ impl Api for Server where C: Has + Send + Sync { let context = context.clone(); info!("responses_with_headers_get() - X-Span-ID: {:?}", context.get().0.clone()); - Err("Generic failuare".into()) + Err("Generic failure".into()) } async fn rfc7807_get( @@ -293,7 +293,7 @@ impl Api for Server where C: Has + Send + Sync { let context = context.clone(); info!("rfc7807_get() - X-Span-ID: {:?}", context.get().0.clone()); - Err("Generic failuare".into()) + Err("Generic failure".into()) } async fn untyped_property_get( @@ -303,7 +303,7 @@ impl Api for Server where C: Has + Send + Sync { let context = context.clone(); info!("untyped_property_get({:?}) - X-Span-ID: {:?}", object_untyped_props, context.get().0.clone()); - Err("Generic failuare".into()) + Err("Generic failure".into()) } async fn uuid_get( @@ -312,7 +312,7 @@ impl Api for Server where C: Has + Send + Sync { let context = context.clone(); info!("uuid_get() - X-Span-ID: {:?}", context.get().0.clone()); - Err("Generic failuare".into()) + Err("Generic failure".into()) } async fn xml_extra_post( @@ -322,7 +322,7 @@ impl Api for Server where C: Has + Send + Sync { let context = context.clone(); info!("xml_extra_post({:?}) - X-Span-ID: {:?}", duplicate_xml_object, context.get().0.clone()); - Err("Generic failuare".into()) + Err("Generic failure".into()) } async fn xml_other_post( @@ -332,7 +332,7 @@ impl Api for Server where C: Has + Send + Sync { let context = context.clone(); info!("xml_other_post({:?}) - X-Span-ID: {:?}", another_xml_object, context.get().0.clone()); - Err("Generic failuare".into()) + Err("Generic failure".into()) } async fn xml_other_put( @@ -342,7 +342,7 @@ impl Api for Server where C: Has + Send + Sync { let context = context.clone(); info!("xml_other_put({:?}) - X-Span-ID: {:?}", another_xml_array, context.get().0.clone()); - Err("Generic failuare".into()) + Err("Generic failure".into()) } /// Post an array @@ -353,7 +353,7 @@ impl Api for Server where C: Has + Send + Sync { let context = context.clone(); info!("xml_post({:?}) - X-Span-ID: {:?}", xml_array, context.get().0.clone()); - Err("Generic failuare".into()) + Err("Generic failure".into()) } async fn xml_put( @@ -363,7 +363,7 @@ impl Api for Server where C: Has + Send + Sync { let context = context.clone(); info!("xml_put({:?}) - X-Span-ID: {:?}", xml_object, context.get().0.clone()); - Err("Generic failuare".into()) + Err("Generic failure".into()) } async fn create_repo( @@ -373,7 +373,7 @@ impl Api for Server where C: Has + Send + Sync { let context = context.clone(); info!("create_repo({:?}) - X-Span-ID: {:?}", object_param, context.get().0.clone()); - Err("Generic failuare".into()) + Err("Generic failure".into()) } async fn get_repo_info( @@ -383,7 +383,7 @@ impl Api for Server where C: Has + Send + Sync { let context = context.clone(); info!("get_repo_info(\"{}\") - X-Span-ID: {:?}", repo_id, context.get().0.clone()); - Err("Generic failuare".into()) + Err("Generic failure".into()) } } diff --git a/samples/server/petstore/rust-server/output/ops-v3/examples/server/server.rs b/samples/server/petstore/rust-server/output/ops-v3/examples/server/server.rs index 06694252603..f20cafbb55b 100644 --- a/samples/server/petstore/rust-server/output/ops-v3/examples/server/server.rs +++ b/samples/server/petstore/rust-server/output/ops-v3/examples/server/server.rs @@ -51,7 +51,7 @@ pub async fn create(addr: &str, https: bool) { // Server authentication ssl.set_private_key_file("examples/server-key.pem", SslFiletype::PEM).expect("Failed to set private key"); - ssl.set_certificate_chain_file("examples/server-chain.pem").expect("Failed to set cerificate chain"); + ssl.set_certificate_chain_file("examples/server-chain.pem").expect("Failed to set certificate chain"); ssl.check_private_key().expect("Failed to check private key"); let tls_acceptor = Arc::new(ssl.build()); @@ -147,7 +147,7 @@ impl Api for Server where C: Has + Send + Sync { let context = context.clone(); info!("op10_get() - X-Span-ID: {:?}", context.get().0.clone()); - Err("Generic failuare".into()) + Err("Generic failure".into()) } async fn op11_get( @@ -156,7 +156,7 @@ impl Api for Server where C: Has + Send + Sync { let context = context.clone(); info!("op11_get() - X-Span-ID: {:?}", context.get().0.clone()); - Err("Generic failuare".into()) + Err("Generic failure".into()) } async fn op12_get( @@ -165,7 +165,7 @@ impl Api for Server where C: Has + Send + Sync { let context = context.clone(); info!("op12_get() - X-Span-ID: {:?}", context.get().0.clone()); - Err("Generic failuare".into()) + Err("Generic failure".into()) } async fn op13_get( @@ -174,7 +174,7 @@ impl Api for Server where C: Has + Send + Sync { let context = context.clone(); info!("op13_get() - X-Span-ID: {:?}", context.get().0.clone()); - Err("Generic failuare".into()) + Err("Generic failure".into()) } async fn op14_get( @@ -183,7 +183,7 @@ impl Api for Server where C: Has + Send + Sync { let context = context.clone(); info!("op14_get() - X-Span-ID: {:?}", context.get().0.clone()); - Err("Generic failuare".into()) + Err("Generic failure".into()) } async fn op15_get( @@ -192,7 +192,7 @@ impl Api for Server where C: Has + Send + Sync { let context = context.clone(); info!("op15_get() - X-Span-ID: {:?}", context.get().0.clone()); - Err("Generic failuare".into()) + Err("Generic failure".into()) } async fn op16_get( @@ -201,7 +201,7 @@ impl Api for Server where C: Has + Send + Sync { let context = context.clone(); info!("op16_get() - X-Span-ID: {:?}", context.get().0.clone()); - Err("Generic failuare".into()) + Err("Generic failure".into()) } async fn op17_get( @@ -210,7 +210,7 @@ impl Api for Server where C: Has + Send + Sync { let context = context.clone(); info!("op17_get() - X-Span-ID: {:?}", context.get().0.clone()); - Err("Generic failuare".into()) + Err("Generic failure".into()) } async fn op18_get( @@ -219,7 +219,7 @@ impl Api for Server where C: Has + Send + Sync { let context = context.clone(); info!("op18_get() - X-Span-ID: {:?}", context.get().0.clone()); - Err("Generic failuare".into()) + Err("Generic failure".into()) } async fn op19_get( @@ -228,7 +228,7 @@ impl Api for Server where C: Has + Send + Sync { let context = context.clone(); info!("op19_get() - X-Span-ID: {:?}", context.get().0.clone()); - Err("Generic failuare".into()) + Err("Generic failure".into()) } async fn op1_get( @@ -237,7 +237,7 @@ impl Api for Server where C: Has + Send + Sync { let context = context.clone(); info!("op1_get() - X-Span-ID: {:?}", context.get().0.clone()); - Err("Generic failuare".into()) + Err("Generic failure".into()) } async fn op20_get( @@ -246,7 +246,7 @@ impl Api for Server where C: Has + Send + Sync { let context = context.clone(); info!("op20_get() - X-Span-ID: {:?}", context.get().0.clone()); - Err("Generic failuare".into()) + Err("Generic failure".into()) } async fn op21_get( @@ -255,7 +255,7 @@ impl Api for Server where C: Has + Send + Sync { let context = context.clone(); info!("op21_get() - X-Span-ID: {:?}", context.get().0.clone()); - Err("Generic failuare".into()) + Err("Generic failure".into()) } async fn op22_get( @@ -264,7 +264,7 @@ impl Api for Server where C: Has + Send + Sync { let context = context.clone(); info!("op22_get() - X-Span-ID: {:?}", context.get().0.clone()); - Err("Generic failuare".into()) + Err("Generic failure".into()) } async fn op23_get( @@ -273,7 +273,7 @@ impl Api for Server where C: Has + Send + Sync { let context = context.clone(); info!("op23_get() - X-Span-ID: {:?}", context.get().0.clone()); - Err("Generic failuare".into()) + Err("Generic failure".into()) } async fn op24_get( @@ -282,7 +282,7 @@ impl Api for Server where C: Has + Send + Sync { let context = context.clone(); info!("op24_get() - X-Span-ID: {:?}", context.get().0.clone()); - Err("Generic failuare".into()) + Err("Generic failure".into()) } async fn op25_get( @@ -291,7 +291,7 @@ impl Api for Server where C: Has + Send + Sync { let context = context.clone(); info!("op25_get() - X-Span-ID: {:?}", context.get().0.clone()); - Err("Generic failuare".into()) + Err("Generic failure".into()) } async fn op26_get( @@ -300,7 +300,7 @@ impl Api for Server where C: Has + Send + Sync { let context = context.clone(); info!("op26_get() - X-Span-ID: {:?}", context.get().0.clone()); - Err("Generic failuare".into()) + Err("Generic failure".into()) } async fn op27_get( @@ -309,7 +309,7 @@ impl Api for Server where C: Has + Send + Sync { let context = context.clone(); info!("op27_get() - X-Span-ID: {:?}", context.get().0.clone()); - Err("Generic failuare".into()) + Err("Generic failure".into()) } async fn op28_get( @@ -318,7 +318,7 @@ impl Api for Server where C: Has + Send + Sync { let context = context.clone(); info!("op28_get() - X-Span-ID: {:?}", context.get().0.clone()); - Err("Generic failuare".into()) + Err("Generic failure".into()) } async fn op29_get( @@ -327,7 +327,7 @@ impl Api for Server where C: Has + Send + Sync { let context = context.clone(); info!("op29_get() - X-Span-ID: {:?}", context.get().0.clone()); - Err("Generic failuare".into()) + Err("Generic failure".into()) } async fn op2_get( @@ -336,7 +336,7 @@ impl Api for Server where C: Has + Send + Sync { let context = context.clone(); info!("op2_get() - X-Span-ID: {:?}", context.get().0.clone()); - Err("Generic failuare".into()) + Err("Generic failure".into()) } async fn op30_get( @@ -345,7 +345,7 @@ impl Api for Server where C: Has + Send + Sync { let context = context.clone(); info!("op30_get() - X-Span-ID: {:?}", context.get().0.clone()); - Err("Generic failuare".into()) + Err("Generic failure".into()) } async fn op31_get( @@ -354,7 +354,7 @@ impl Api for Server where C: Has + Send + Sync { let context = context.clone(); info!("op31_get() - X-Span-ID: {:?}", context.get().0.clone()); - Err("Generic failuare".into()) + Err("Generic failure".into()) } async fn op32_get( @@ -363,7 +363,7 @@ impl Api for Server where C: Has + Send + Sync { let context = context.clone(); info!("op32_get() - X-Span-ID: {:?}", context.get().0.clone()); - Err("Generic failuare".into()) + Err("Generic failure".into()) } async fn op33_get( @@ -372,7 +372,7 @@ impl Api for Server where C: Has + Send + Sync { let context = context.clone(); info!("op33_get() - X-Span-ID: {:?}", context.get().0.clone()); - Err("Generic failuare".into()) + Err("Generic failure".into()) } async fn op34_get( @@ -381,7 +381,7 @@ impl Api for Server where C: Has + Send + Sync { let context = context.clone(); info!("op34_get() - X-Span-ID: {:?}", context.get().0.clone()); - Err("Generic failuare".into()) + Err("Generic failure".into()) } async fn op35_get( @@ -390,7 +390,7 @@ impl Api for Server where C: Has + Send + Sync { let context = context.clone(); info!("op35_get() - X-Span-ID: {:?}", context.get().0.clone()); - Err("Generic failuare".into()) + Err("Generic failure".into()) } async fn op36_get( @@ -399,7 +399,7 @@ impl Api for Server where C: Has + Send + Sync { let context = context.clone(); info!("op36_get() - X-Span-ID: {:?}", context.get().0.clone()); - Err("Generic failuare".into()) + Err("Generic failure".into()) } async fn op37_get( @@ -408,7 +408,7 @@ impl Api for Server where C: Has + Send + Sync { let context = context.clone(); info!("op37_get() - X-Span-ID: {:?}", context.get().0.clone()); - Err("Generic failuare".into()) + Err("Generic failure".into()) } async fn op3_get( @@ -417,7 +417,7 @@ impl Api for Server where C: Has + Send + Sync { let context = context.clone(); info!("op3_get() - X-Span-ID: {:?}", context.get().0.clone()); - Err("Generic failuare".into()) + Err("Generic failure".into()) } async fn op4_get( @@ -426,7 +426,7 @@ impl Api for Server where C: Has + Send + Sync { let context = context.clone(); info!("op4_get() - X-Span-ID: {:?}", context.get().0.clone()); - Err("Generic failuare".into()) + Err("Generic failure".into()) } async fn op5_get( @@ -435,7 +435,7 @@ impl Api for Server where C: Has + Send + Sync { let context = context.clone(); info!("op5_get() - X-Span-ID: {:?}", context.get().0.clone()); - Err("Generic failuare".into()) + Err("Generic failure".into()) } async fn op6_get( @@ -444,7 +444,7 @@ impl Api for Server where C: Has + Send + Sync { let context = context.clone(); info!("op6_get() - X-Span-ID: {:?}", context.get().0.clone()); - Err("Generic failuare".into()) + Err("Generic failure".into()) } async fn op7_get( @@ -453,7 +453,7 @@ impl Api for Server where C: Has + Send + Sync { let context = context.clone(); info!("op7_get() - X-Span-ID: {:?}", context.get().0.clone()); - Err("Generic failuare".into()) + Err("Generic failure".into()) } async fn op8_get( @@ -462,7 +462,7 @@ impl Api for Server where C: Has + Send + Sync { let context = context.clone(); info!("op8_get() - X-Span-ID: {:?}", context.get().0.clone()); - Err("Generic failuare".into()) + Err("Generic failure".into()) } async fn op9_get( @@ -471,7 +471,7 @@ impl Api for Server where C: Has + Send + Sync { let context = context.clone(); info!("op9_get() - X-Span-ID: {:?}", context.get().0.clone()); - Err("Generic failuare".into()) + Err("Generic failure".into()) } } diff --git a/samples/server/petstore/rust-server/output/petstore-with-fake-endpoints-models-for-testing/examples/server/server.rs b/samples/server/petstore/rust-server/output/petstore-with-fake-endpoints-models-for-testing/examples/server/server.rs index 1999c21f1ee..203946480e4 100644 --- a/samples/server/petstore/rust-server/output/petstore-with-fake-endpoints-models-for-testing/examples/server/server.rs +++ b/samples/server/petstore/rust-server/output/petstore-with-fake-endpoints-models-for-testing/examples/server/server.rs @@ -51,7 +51,7 @@ pub async fn create(addr: &str, https: bool) { // Server authentication ssl.set_private_key_file("examples/server-key.pem", SslFiletype::PEM).expect("Failed to set private key"); - ssl.set_certificate_chain_file("examples/server-chain.pem").expect("Failed to set cerificate chain"); + ssl.set_certificate_chain_file("examples/server-chain.pem").expect("Failed to set certificate chain"); ssl.check_private_key().expect("Failed to check private key"); let tls_acceptor = Arc::new(ssl.build()); @@ -147,7 +147,7 @@ impl Api for Server where C: Has + Send + Sync { let context = context.clone(); info!("test_special_tags({:?}) - X-Span-ID: {:?}", body, context.get().0.clone()); - Err("Generic failuare".into()) + Err("Generic failure".into()) } async fn call123example( @@ -156,7 +156,7 @@ impl Api for Server where C: Has + Send + Sync { let context = context.clone(); info!("call123example() - X-Span-ID: {:?}", context.get().0.clone()); - Err("Generic failuare".into()) + Err("Generic failure".into()) } async fn fake_outer_boolean_serialize( @@ -166,7 +166,7 @@ impl Api for Server where C: Has + Send + Sync { let context = context.clone(); info!("fake_outer_boolean_serialize({:?}) - X-Span-ID: {:?}", body, context.get().0.clone()); - Err("Generic failuare".into()) + Err("Generic failure".into()) } async fn fake_outer_composite_serialize( @@ -176,7 +176,7 @@ impl Api for Server where C: Has + Send + Sync { let context = context.clone(); info!("fake_outer_composite_serialize({:?}) - X-Span-ID: {:?}", body, context.get().0.clone()); - Err("Generic failuare".into()) + Err("Generic failure".into()) } async fn fake_outer_number_serialize( @@ -186,7 +186,7 @@ impl Api for Server where C: Has + Send + Sync { let context = context.clone(); info!("fake_outer_number_serialize({:?}) - X-Span-ID: {:?}", body, context.get().0.clone()); - Err("Generic failuare".into()) + Err("Generic failure".into()) } async fn fake_outer_string_serialize( @@ -196,7 +196,7 @@ impl Api for Server where C: Has + Send + Sync { let context = context.clone(); info!("fake_outer_string_serialize({:?}) - X-Span-ID: {:?}", body, context.get().0.clone()); - Err("Generic failuare".into()) + Err("Generic failure".into()) } async fn fake_response_with_numerical_description( @@ -205,7 +205,7 @@ impl Api for Server where C: Has + Send + Sync { let context = context.clone(); info!("fake_response_with_numerical_description() - X-Span-ID: {:?}", context.get().0.clone()); - Err("Generic failuare".into()) + Err("Generic failure".into()) } async fn hyphen_param( @@ -215,7 +215,7 @@ impl Api for Server where C: Has + Send + Sync { let context = context.clone(); info!("hyphen_param(\"{}\") - X-Span-ID: {:?}", hyphen_param, context.get().0.clone()); - Err("Generic failuare".into()) + Err("Generic failure".into()) } async fn test_body_with_query_params( @@ -226,7 +226,7 @@ impl Api for Server where C: Has + Send + Sync { let context = context.clone(); info!("test_body_with_query_params(\"{}\", {:?}) - X-Span-ID: {:?}", query, body, context.get().0.clone()); - Err("Generic failuare".into()) + Err("Generic failure".into()) } /// To test \"client\" model @@ -237,7 +237,7 @@ impl Api for Server where C: Has + Send + Sync { let context = context.clone(); info!("test_client_model({:?}) - X-Span-ID: {:?}", body, context.get().0.clone()); - Err("Generic failuare".into()) + Err("Generic failure".into()) } /// Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 @@ -261,7 +261,7 @@ impl Api for Server where C: Has + Send + Sync { let context = context.clone(); info!("test_endpoint_parameters({}, {}, \"{}\", {:?}, {:?}, {:?}, {:?}, {:?}, {:?}, {:?}, {:?}, {:?}, {:?}, {:?}) - X-Span-ID: {:?}", number, double, pattern_without_delimiter, byte, integer, int32, int64, float, string, binary, date, date_time, password, callback, context.get().0.clone()); - Err("Generic failuare".into()) + Err("Generic failure".into()) } /// To test enum parameters @@ -278,7 +278,7 @@ impl Api for Server where C: Has + Send + Sync { let context = context.clone(); info!("test_enum_parameters({:?}, {:?}, {:?}, {:?}, {:?}, {:?}, {:?}) - X-Span-ID: {:?}", enum_header_string_array, enum_header_string, enum_query_string_array, enum_query_string, enum_query_integer, enum_query_double, enum_form_string, context.get().0.clone()); - Err("Generic failuare".into()) + Err("Generic failure".into()) } /// test inline additionalProperties @@ -289,7 +289,7 @@ impl Api for Server where C: Has + Send + Sync { let context = context.clone(); info!("test_inline_additional_properties({:?}) - X-Span-ID: {:?}", param, context.get().0.clone()); - Err("Generic failuare".into()) + Err("Generic failure".into()) } /// test json serialization of form data @@ -301,7 +301,7 @@ impl Api for Server where C: Has + Send + Sync { let context = context.clone(); info!("test_json_form_data(\"{}\", \"{}\") - X-Span-ID: {:?}", param, param2, context.get().0.clone()); - Err("Generic failuare".into()) + Err("Generic failure".into()) } /// To test class name in snake case @@ -312,7 +312,7 @@ impl Api for Server where C: Has + Send + Sync { let context = context.clone(); info!("test_classname({:?}) - X-Span-ID: {:?}", body, context.get().0.clone()); - Err("Generic failuare".into()) + Err("Generic failure".into()) } /// Add a new pet to the store @@ -323,7 +323,7 @@ impl Api for Server where C: Has + Send + Sync { let context = context.clone(); info!("add_pet({:?}) - X-Span-ID: {:?}", body, context.get().0.clone()); - Err("Generic failuare".into()) + Err("Generic failure".into()) } /// Deletes a pet @@ -335,7 +335,7 @@ impl Api for Server where C: Has + Send + Sync { let context = context.clone(); info!("delete_pet({}, {:?}) - X-Span-ID: {:?}", pet_id, api_key, context.get().0.clone()); - Err("Generic failuare".into()) + Err("Generic failure".into()) } /// Finds Pets by status @@ -346,7 +346,7 @@ impl Api for Server where C: Has + Send + Sync { let context = context.clone(); info!("find_pets_by_status({:?}) - X-Span-ID: {:?}", status, context.get().0.clone()); - Err("Generic failuare".into()) + Err("Generic failure".into()) } /// Finds Pets by tags @@ -357,7 +357,7 @@ impl Api for Server where C: Has + Send + Sync { let context = context.clone(); info!("find_pets_by_tags({:?}) - X-Span-ID: {:?}", tags, context.get().0.clone()); - Err("Generic failuare".into()) + Err("Generic failure".into()) } /// Find pet by ID @@ -368,7 +368,7 @@ impl Api for Server where C: Has + Send + Sync { let context = context.clone(); info!("get_pet_by_id({}) - X-Span-ID: {:?}", pet_id, context.get().0.clone()); - Err("Generic failuare".into()) + Err("Generic failure".into()) } /// Update an existing pet @@ -379,7 +379,7 @@ impl Api for Server where C: Has + Send + Sync { let context = context.clone(); info!("update_pet({:?}) - X-Span-ID: {:?}", body, context.get().0.clone()); - Err("Generic failuare".into()) + Err("Generic failure".into()) } /// Updates a pet in the store with form data @@ -392,7 +392,7 @@ impl Api for Server where C: Has + Send + Sync { let context = context.clone(); info!("update_pet_with_form({}, {:?}, {:?}) - X-Span-ID: {:?}", pet_id, name, status, context.get().0.clone()); - Err("Generic failuare".into()) + Err("Generic failure".into()) } /// uploads an image @@ -405,7 +405,7 @@ impl Api for Server where C: Has + Send + Sync { let context = context.clone(); info!("upload_file({}, {:?}, {:?}) - X-Span-ID: {:?}", pet_id, additional_metadata, file, context.get().0.clone()); - Err("Generic failuare".into()) + Err("Generic failure".into()) } /// Delete purchase order by ID @@ -416,7 +416,7 @@ impl Api for Server where C: Has + Send + Sync { let context = context.clone(); info!("delete_order(\"{}\") - X-Span-ID: {:?}", order_id, context.get().0.clone()); - Err("Generic failuare".into()) + Err("Generic failure".into()) } /// Returns pet inventories by status @@ -426,7 +426,7 @@ impl Api for Server where C: Has + Send + Sync { let context = context.clone(); info!("get_inventory() - X-Span-ID: {:?}", context.get().0.clone()); - Err("Generic failuare".into()) + Err("Generic failure".into()) } /// Find purchase order by ID @@ -437,7 +437,7 @@ impl Api for Server where C: Has + Send + Sync { let context = context.clone(); info!("get_order_by_id({}) - X-Span-ID: {:?}", order_id, context.get().0.clone()); - Err("Generic failuare".into()) + Err("Generic failure".into()) } /// Place an order for a pet @@ -448,7 +448,7 @@ impl Api for Server where C: Has + Send + Sync { let context = context.clone(); info!("place_order({:?}) - X-Span-ID: {:?}", body, context.get().0.clone()); - Err("Generic failuare".into()) + Err("Generic failure".into()) } /// Create user @@ -459,7 +459,7 @@ impl Api for Server where C: Has + Send + Sync { let context = context.clone(); info!("create_user({:?}) - X-Span-ID: {:?}", body, context.get().0.clone()); - Err("Generic failuare".into()) + Err("Generic failure".into()) } /// Creates list of users with given input array @@ -470,7 +470,7 @@ impl Api for Server where C: Has + Send + Sync { let context = context.clone(); info!("create_users_with_array_input({:?}) - X-Span-ID: {:?}", body, context.get().0.clone()); - Err("Generic failuare".into()) + Err("Generic failure".into()) } /// Creates list of users with given input array @@ -481,7 +481,7 @@ impl Api for Server where C: Has + Send + Sync { let context = context.clone(); info!("create_users_with_list_input({:?}) - X-Span-ID: {:?}", body, context.get().0.clone()); - Err("Generic failuare".into()) + Err("Generic failure".into()) } /// Delete user @@ -492,7 +492,7 @@ impl Api for Server where C: Has + Send + Sync { let context = context.clone(); info!("delete_user(\"{}\") - X-Span-ID: {:?}", username, context.get().0.clone()); - Err("Generic failuare".into()) + Err("Generic failure".into()) } /// Get user by user name @@ -503,7 +503,7 @@ impl Api for Server where C: Has + Send + Sync { let context = context.clone(); info!("get_user_by_name(\"{}\") - X-Span-ID: {:?}", username, context.get().0.clone()); - Err("Generic failuare".into()) + Err("Generic failure".into()) } /// Logs user into the system @@ -515,7 +515,7 @@ impl Api for Server where C: Has + Send + Sync { let context = context.clone(); info!("login_user(\"{}\", \"{}\") - X-Span-ID: {:?}", username, password, context.get().0.clone()); - Err("Generic failuare".into()) + Err("Generic failure".into()) } /// Logs out current logged in user session @@ -525,7 +525,7 @@ impl Api for Server where C: Has + Send + Sync { let context = context.clone(); info!("logout_user() - X-Span-ID: {:?}", context.get().0.clone()); - Err("Generic failuare".into()) + Err("Generic failure".into()) } /// Updated user @@ -537,7 +537,7 @@ impl Api for Server where C: Has + Send + Sync { let context = context.clone(); info!("update_user(\"{}\", {:?}) - X-Span-ID: {:?}", username, body, context.get().0.clone()); - Err("Generic failuare".into()) + Err("Generic failure".into()) } } diff --git a/samples/server/petstore/rust-server/output/ping-bearer-auth/examples/server/server.rs b/samples/server/petstore/rust-server/output/ping-bearer-auth/examples/server/server.rs index 9bb9de4523c..194e848d662 100644 --- a/samples/server/petstore/rust-server/output/ping-bearer-auth/examples/server/server.rs +++ b/samples/server/petstore/rust-server/output/ping-bearer-auth/examples/server/server.rs @@ -51,7 +51,7 @@ pub async fn create(addr: &str, https: bool) { // Server authentication ssl.set_private_key_file("examples/server-key.pem", SslFiletype::PEM).expect("Failed to set private key"); - ssl.set_certificate_chain_file("examples/server-chain.pem").expect("Failed to set cerificate chain"); + ssl.set_certificate_chain_file("examples/server-chain.pem").expect("Failed to set certificate chain"); ssl.check_private_key().expect("Failed to check private key"); let tls_acceptor = Arc::new(ssl.build()); @@ -111,7 +111,7 @@ impl Api for Server where C: Has + Send + Sync { let context = context.clone(); info!("ping_get() - X-Span-ID: {:?}", context.get().0.clone()); - Err("Generic failuare".into()) + Err("Generic failure".into()) } } diff --git a/samples/server/petstore/rust-server/output/rust-server-test/examples/server/server.rs b/samples/server/petstore/rust-server/output/rust-server-test/examples/server/server.rs index ceea97f998c..99dd9f40f05 100644 --- a/samples/server/petstore/rust-server/output/rust-server-test/examples/server/server.rs +++ b/samples/server/petstore/rust-server/output/rust-server-test/examples/server/server.rs @@ -51,7 +51,7 @@ pub async fn create(addr: &str, https: bool) { // Server authentication ssl.set_private_key_file("examples/server-key.pem", SslFiletype::PEM).expect("Failed to set private key"); - ssl.set_certificate_chain_file("examples/server-chain.pem").expect("Failed to set cerificate chain"); + ssl.set_certificate_chain_file("examples/server-chain.pem").expect("Failed to set certificate chain"); ssl.check_private_key().expect("Failed to check private key"); let tls_acceptor = Arc::new(ssl.build()); @@ -119,7 +119,7 @@ impl Api for Server where C: Has + Send + Sync { let context = context.clone(); info!("all_of_get() - X-Span-ID: {:?}", context.get().0.clone()); - Err("Generic failuare".into()) + Err("Generic failure".into()) } /// A dummy endpoint to make the spec valid. @@ -129,7 +129,7 @@ impl Api for Server where C: Has + Send + Sync { let context = context.clone(); info!("dummy_get() - X-Span-ID: {:?}", context.get().0.clone()); - Err("Generic failuare".into()) + Err("Generic failure".into()) } async fn dummy_put( @@ -139,7 +139,7 @@ impl Api for Server where C: Has + Send + Sync { let context = context.clone(); info!("dummy_put({:?}) - X-Span-ID: {:?}", nested_response, context.get().0.clone()); - Err("Generic failuare".into()) + Err("Generic failure".into()) } /// Get a file @@ -149,7 +149,7 @@ impl Api for Server where C: Has + Send + Sync { let context = context.clone(); info!("file_response_get() - X-Span-ID: {:?}", context.get().0.clone()); - Err("Generic failuare".into()) + Err("Generic failure".into()) } async fn get_structured_yaml( @@ -158,7 +158,7 @@ impl Api for Server where C: Has + Send + Sync { let context = context.clone(); info!("get_structured_yaml() - X-Span-ID: {:?}", context.get().0.clone()); - Err("Generic failuare".into()) + Err("Generic failure".into()) } /// Test HTML handling @@ -169,7 +169,7 @@ impl Api for Server where C: Has + Send + Sync { let context = context.clone(); info!("html_post(\"{}\") - X-Span-ID: {:?}", body, context.get().0.clone()); - Err("Generic failuare".into()) + Err("Generic failure".into()) } async fn post_yaml( @@ -179,7 +179,7 @@ impl Api for Server where C: Has + Send + Sync { let context = context.clone(); info!("post_yaml(\"{}\") - X-Span-ID: {:?}", value, context.get().0.clone()); - Err("Generic failuare".into()) + Err("Generic failure".into()) } /// Get an arbitrary JSON blob. @@ -189,7 +189,7 @@ impl Api for Server where C: Has + Send + Sync { let context = context.clone(); info!("raw_json_get() - X-Span-ID: {:?}", context.get().0.clone()); - Err("Generic failuare".into()) + Err("Generic failure".into()) } /// Send an arbitrary JSON blob @@ -200,7 +200,7 @@ impl Api for Server where C: Has + Send + Sync { let context = context.clone(); info!("solo_object_post({:?}) - X-Span-ID: {:?}", value, context.get().0.clone()); - Err("Generic failuare".into()) + Err("Generic failure".into()) } } diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/FakeApi.java index 3483152cefc..37a84ded100 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/FakeApi.java @@ -366,7 +366,7 @@ public interface FakeApi { /** - * PUT /fake/test-query-paramters + * PUT /fake/test-query-parameters * To test the collection format in query parameters * * @param pipe (required) @@ -381,7 +381,7 @@ public interface FakeApi { @ApiResponse(code = 200, message = "Success") }) @RequestMapping( method = RequestMethod.PUT, - value = "/fake/test-query-paramters" + value = "/fake/test-query-parameters" ) default CompletableFuture> testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context) { return CompletableFuture.completedFuture(new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED)); diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/FakeApi.java index 0a5b32defdc..da110ee1f4d 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/FakeApi.java @@ -361,7 +361,7 @@ public interface FakeApi { /** - * PUT /fake/test-query-paramters + * PUT /fake/test-query-parameters * To test the collection format in query parameters * * @param pipe (required) @@ -376,7 +376,7 @@ public interface FakeApi { @ApiResponse(code = 200, message = "Success") }) @RequestMapping( method = RequestMethod.PUT, - value = "/fake/test-query-paramters" + value = "/fake/test-query-parameters" ) default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); diff --git a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/api/FakeApi.java index 90e4f2a7a32..93faf124ac1 100644 --- a/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/spring-mvc-no-nullable/src/main/java/org/openapitools/api/FakeApi.java @@ -361,7 +361,7 @@ public interface FakeApi { /** - * PUT /fake/test-query-paramters + * PUT /fake/test-query-parameters * To test the collection format in query parameters * * @param pipe (required) @@ -376,7 +376,7 @@ public interface FakeApi { @ApiResponse(code = 200, message = "Success") }) @RequestMapping( method = RequestMethod.PUT, - value = "/fake/test-query-paramters" + value = "/fake/test-query-parameters" ) default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); diff --git a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/api/FakeApi.java index 79c4042fb38..ab87b7d4a0a 100644 --- a/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/spring-mvc-spring-pageable/src/main/java/org/openapitools/api/FakeApi.java @@ -361,7 +361,7 @@ public interface FakeApi { /** - * PUT /fake/test-query-paramters + * PUT /fake/test-query-parameters * To test the collection format in query parameters * * @param pipe (required) @@ -376,7 +376,7 @@ public interface FakeApi { @ApiResponse(code = 200, message = "Success") }) @RequestMapping( method = RequestMethod.PUT, - value = "/fake/test-query-paramters" + value = "/fake/test-query-parameters" ) default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/FakeApi.java index 90e4f2a7a32..93faf124ac1 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/FakeApi.java @@ -361,7 +361,7 @@ public interface FakeApi { /** - * PUT /fake/test-query-paramters + * PUT /fake/test-query-parameters * To test the collection format in query parameters * * @param pipe (required) @@ -376,7 +376,7 @@ public interface FakeApi { @ApiResponse(code = 200, message = "Success") }) @RequestMapping( method = RequestMethod.PUT, - value = "/fake/test-query-paramters" + value = "/fake/test-query-parameters" ) default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/FakeApi.java index 22b063b8cd5..4937e4193ca 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/FakeApi.java @@ -296,7 +296,7 @@ public interface FakeApi { /** - * PUT /fake/test-query-paramters + * PUT /fake/test-query-parameters * To test the collection format in query parameters * * @param pipe (required) @@ -311,7 +311,7 @@ public interface FakeApi { @ApiResponse(code = 200, message = "Success") }) @RequestMapping( method = RequestMethod.PUT, - value = "/fake/test-query-paramters" + value = "/fake/test-query-parameters" ) ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context); diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/FakeApiController.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/FakeApiController.java index 4c2f5f71305..ab53df36903 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/FakeApiController.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/FakeApiController.java @@ -251,7 +251,7 @@ public class FakeApiController implements FakeApi { } /** - * PUT /fake/test-query-paramters + * PUT /fake/test-query-parameters * To test the collection format in query parameters * * @param pipe (required) diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/FakeApi.java index 90e4f2a7a32..93faf124ac1 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/FakeApi.java @@ -361,7 +361,7 @@ public interface FakeApi { /** - * PUT /fake/test-query-paramters + * PUT /fake/test-query-parameters * To test the collection format in query parameters * * @param pipe (required) @@ -376,7 +376,7 @@ public interface FakeApi { @ApiResponse(code = 200, message = "Success") }) @RequestMapping( method = RequestMethod.PUT, - value = "/fake/test-query-paramters" + value = "/fake/test-query-parameters" ) default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/FakeApi.java index f1fd40f15b9..54ac7ed4e6e 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/FakeApi.java @@ -326,7 +326,7 @@ public interface FakeApi { /** - * PUT /fake/test-query-paramters + * PUT /fake/test-query-parameters * To test the collection format in query parameters * * @param pipe (required) @@ -341,7 +341,7 @@ public interface FakeApi { @ApiResponse(code = 200, message = "Success") }) @RequestMapping( method = RequestMethod.PUT, - value = "/fake/test-query-paramters" + value = "/fake/test-query-parameters" ) default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context) { return getDelegate().testQueryParameterCollectionFormat(pipe, ioutil, http, url, context); diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/FakeApiDelegate.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/FakeApiDelegate.java index 502adad9e44..32a862f8273 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/FakeApiDelegate.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/FakeApiDelegate.java @@ -273,7 +273,7 @@ public interface FakeApiDelegate { } /** - * PUT /fake/test-query-paramters + * PUT /fake/test-query-parameters * To test the collection format in query parameters * * @param pipe (required) diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/FakeApi.java index f1fd40f15b9..54ac7ed4e6e 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/FakeApi.java @@ -326,7 +326,7 @@ public interface FakeApi { /** - * PUT /fake/test-query-paramters + * PUT /fake/test-query-parameters * To test the collection format in query parameters * * @param pipe (required) @@ -341,7 +341,7 @@ public interface FakeApi { @ApiResponse(code = 200, message = "Success") }) @RequestMapping( method = RequestMethod.PUT, - value = "/fake/test-query-paramters" + value = "/fake/test-query-parameters" ) default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context) { return getDelegate().testQueryParameterCollectionFormat(pipe, ioutil, http, url, context); diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/FakeApiDelegate.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/FakeApiDelegate.java index 502adad9e44..32a862f8273 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/FakeApiDelegate.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/FakeApiDelegate.java @@ -273,7 +273,7 @@ public interface FakeApiDelegate { } /** - * PUT /fake/test-query-paramters + * PUT /fake/test-query-parameters * To test the collection format in query parameters * * @param pipe (required) diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/FakeApi.java index ffa65c5bae6..bd7c7e0c39a 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/FakeApi.java @@ -387,7 +387,7 @@ public interface FakeApi { /** - * PUT /fake/test-query-paramters + * PUT /fake/test-query-parameters * To test the collection format in query parameters * * @param pipe (required) @@ -404,7 +404,7 @@ public interface FakeApi { }) @RequestMapping( method = RequestMethod.PUT, - value = "/fake/test-query-paramters" + value = "/fake/test-query-parameters" ) default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/FakeApi.java index 141637fb7f6..64553f1997b 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/FakeApi.java @@ -330,7 +330,7 @@ public interface FakeApi { /** - * PUT /fake/test-query-paramters + * PUT /fake/test-query-parameters * To test the collection format in query parameters * * @param pipe (required) @@ -345,7 +345,7 @@ public interface FakeApi { @ApiResponse(code = 200, message = "Success") }) @RequestMapping( method = RequestMethod.PUT, - value = "/fake/test-query-paramters" + value = "/fake/test-query-parameters" ) default Mono> testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context, @springfox.documentation.annotations.ApiIgnore final ServerWebExchange exchange) { return getDelegate().testQueryParameterCollectionFormat(pipe, ioutil, http, url, context, exchange); diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/FakeApiDelegate.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/FakeApiDelegate.java index 9b9179cd33c..f79e5dc614f 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/FakeApiDelegate.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/FakeApiDelegate.java @@ -312,7 +312,7 @@ public interface FakeApiDelegate { } /** - * PUT /fake/test-query-paramters + * PUT /fake/test-query-parameters * To test the collection format in query parameters * * @param pipe (required) diff --git a/samples/server/petstore/springboot-reactive/src/main/resources/openapi.yaml b/samples/server/petstore/springboot-reactive/src/main/resources/openapi.yaml index 7d2de524fc6..d6386dc39bf 100644 --- a/samples/server/petstore/springboot-reactive/src/main/resources/openapi.yaml +++ b/samples/server/petstore/springboot-reactive/src/main/resources/openapi.yaml @@ -1232,7 +1232,7 @@ paths: x-accepts: application/json x-tags: - tag: fake - /fake/test-query-paramters: + /fake/test-query-parameters: put: description: To test the collection format in query parameters operationId: testQueryParameterCollectionFormat diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/FakeApi.java index b1325db5d23..cb6c10ef69d 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/FakeApi.java @@ -296,7 +296,7 @@ public interface FakeApi { /** - * PUT /fake/test-query-paramters + * PUT /fake/test-query-parameters * To test the collection format in query parameters * * @param pipe (required) @@ -311,7 +311,7 @@ public interface FakeApi { @ApiResponse(code = 200, message = "Success") }) @RequestMapping( method = RequestMethod.PUT, - value = "/fake/test-query-paramters" + value = "/fake/test-query-parameters" ) ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context); diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/FakeApiController.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/FakeApiController.java index 00c6f256233..8fc941c7545 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/FakeApiController.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/FakeApiController.java @@ -222,7 +222,7 @@ public class FakeApiController implements FakeApi { } /** - * PUT /fake/test-query-paramters + * PUT /fake/test-query-parameters * To test the collection format in query parameters * * @param pipe (required) diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/FakeApiDelegate.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/FakeApiDelegate.java index 5fc182db2fb..3a442bdc25c 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/FakeApiDelegate.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/FakeApiDelegate.java @@ -208,7 +208,7 @@ public interface FakeApiDelegate { String param2); /** - * PUT /fake/test-query-paramters + * PUT /fake/test-query-parameters * To test the collection format in query parameters * * @param pipe (required) diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/FakeApi.java index 2004f29f1fe..254f26510bb 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/FakeApi.java @@ -326,7 +326,7 @@ public interface FakeApi { /** - * PUT /fake/test-query-paramters + * PUT /fake/test-query-parameters * To test the collection format in query parameters * * @param pipe (required) @@ -341,7 +341,7 @@ public interface FakeApi { @ApiResponse(code = 200, message = "Success") }) @RequestMapping( method = RequestMethod.PUT, - value = "/fake/test-query-paramters" + value = "/fake/test-query-parameters" ) default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context) { return getDelegate().testQueryParameterCollectionFormat(pipe, ioutil, http, url, context); diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/FakeApiDelegate.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/FakeApiDelegate.java index c0031af96ed..61a6142cc5e 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/FakeApiDelegate.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/FakeApiDelegate.java @@ -273,7 +273,7 @@ public interface FakeApiDelegate { } /** - * PUT /fake/test-query-paramters + * PUT /fake/test-query-parameters * To test the collection format in query parameters * * @param pipe (required) diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/FakeApi.java index b1325db5d23..cb6c10ef69d 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/FakeApi.java @@ -296,7 +296,7 @@ public interface FakeApi { /** - * PUT /fake/test-query-paramters + * PUT /fake/test-query-parameters * To test the collection format in query parameters * * @param pipe (required) @@ -311,7 +311,7 @@ public interface FakeApi { @ApiResponse(code = 200, message = "Success") }) @RequestMapping( method = RequestMethod.PUT, - value = "/fake/test-query-paramters" + value = "/fake/test-query-parameters" ) ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context); diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/FakeApiController.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/FakeApiController.java index 31874a06b44..99873d39bc3 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/FakeApiController.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/FakeApiController.java @@ -251,7 +251,7 @@ public class FakeApiController implements FakeApi { } /** - * PUT /fake/test-query-paramters + * PUT /fake/test-query-parameters * To test the collection format in query parameters * * @param pipe (required) diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/FakeApi.java index 79c4042fb38..ab87b7d4a0a 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/FakeApi.java @@ -361,7 +361,7 @@ public interface FakeApi { /** - * PUT /fake/test-query-paramters + * PUT /fake/test-query-parameters * To test the collection format in query parameters * * @param pipe (required) @@ -376,7 +376,7 @@ public interface FakeApi { @ApiResponse(code = 200, message = "Success") }) @RequestMapping( method = RequestMethod.PUT, - value = "/fake/test-query-paramters" + value = "/fake/test-query-parameters" ) default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/FakeApi.java index ad9a1a8c2b9..cf4f7fa4160 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/FakeApi.java @@ -361,7 +361,7 @@ public interface FakeApi { /** - * PUT /fake/test-query-paramters + * PUT /fake/test-query-parameters * To test the collection format in query parameters * * @param pipe (required) @@ -376,7 +376,7 @@ public interface FakeApi { @ApiResponse(code = 200, message = "Success") }) @RequestMapping( method = RequestMethod.PUT, - value = "/fake/test-query-paramters" + value = "/fake/test-query-parameters" ) default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/FakeApi.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/FakeApi.java index 4ac3165622a..99fa484245f 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/FakeApi.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/FakeApi.java @@ -377,7 +377,7 @@ public interface FakeApi { /** - * PUT /fake/test-query-paramters + * PUT /fake/test-query-parameters * To test the collection format in query parameters * * @param pipe (required) @@ -393,7 +393,7 @@ public interface FakeApi { @ApiResponse(code = 200, message = "Success") }) @RequestMapping( method = RequestMethod.PUT, - value = "/fake/test-query-paramters" + value = "/fake/test-query-parameters" ) default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/api/FakeApi.java index 90e4f2a7a32..93faf124ac1 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/api/FakeApi.java @@ -361,7 +361,7 @@ public interface FakeApi { /** - * PUT /fake/test-query-paramters + * PUT /fake/test-query-parameters * To test the collection format in query parameters * * @param pipe (required) @@ -376,7 +376,7 @@ public interface FakeApi { @ApiResponse(code = 200, message = "Success") }) @RequestMapping( method = RequestMethod.PUT, - value = "/fake/test-query-paramters" + value = "/fake/test-query-parameters" ) default ResponseEntity testQueryParameterCollectionFormat(@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List pipe,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List ioutil,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List http,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List url,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List context) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED);