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? -[](https://join.slack.com/t/openapi-generator/shared_invite/enQtNzAyNDMyOTU0OTE1LTY5ZDBiNDI5NzI5ZjQ1Y2E5OWVjMjZkYzY1ZGM2MWQ4YWFjMzcyNDY5MGI4NjQxNDBiMTlmZTc5NjY2ZTQ5MGM) +[](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).|
* 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 @@
null
openapi-petstore-0.1.0.0: Auto-generated openapi-petstore API Client
OpenAPIPetstore.API.Fake
Contents
Description
createXmlItem Source #
Arguments
request content-type (MimeType)
MimeType
"xmlItem" - XmlItem Body
POST /fake/create_xml_item
creates an XmlItem
this route creates an XmlItem
data CreateXmlItem Source #
Defined in OpenAPIPetstore.API.Fake
text/xml; charset=utf-8
text/xml; charset=utf-16
text/xml
application/xml; charset=utf-8
application/xml; charset=utf-16
application/xml
Body Param XmlItem - XmlItem Body
Methods
setBodyParam :: (Consumes CreateXmlItem contentType, MimeRender contentType XmlItem) => OpenAPIPetstoreRequest CreateXmlItem contentType res accept -> XmlItem -> OpenAPIPetstoreRequest CreateXmlItem contentType res accept Source #
fakeOuterBooleanSerialize Source #
request accept (MimeType)
POST /fake/outer/boolean
Test serialization of outer boolean types
data FakeOuterBooleanSerialize Source #
*/*
Body Param "body" - Input boolean as post body
setBodyParam :: (Consumes FakeOuterBooleanSerialize contentType, MimeRender contentType BodyBool) => OpenAPIPetstoreRequest FakeOuterBooleanSerialize contentType res accept -> BodyBool -> OpenAPIPetstoreRequest FakeOuterBooleanSerialize contentType res accept Source #
fakeOuterCompositeSerialize Source #
POST /fake/outer/composite
Test serialization of object with outer number type
data FakeOuterCompositeSerialize Source #
Body Param "body" - Input composite as post body
setBodyParam :: (Consumes FakeOuterCompositeSerialize contentType, MimeRender contentType OuterComposite) => OpenAPIPetstoreRequest FakeOuterCompositeSerialize contentType res accept -> OuterComposite -> OpenAPIPetstoreRequest FakeOuterCompositeSerialize contentType res accept Source #
fakeOuterNumberSerialize Source #
POST /fake/outer/number
Test serialization of outer number types
data FakeOuterNumberSerialize Source #
Body Param "body" - Input number as post body
setBodyParam :: (Consumes FakeOuterNumberSerialize contentType, MimeRender contentType BodyDouble) => OpenAPIPetstoreRequest FakeOuterNumberSerialize contentType res accept -> BodyDouble -> OpenAPIPetstoreRequest FakeOuterNumberSerialize contentType res accept Source #
fakeOuterStringSerialize Source #
POST /fake/outer/string
Test serialization of outer string types
data FakeOuterStringSerialize Source #
Body Param "body" - Input string as post body
setBodyParam :: (Consumes FakeOuterStringSerialize contentType, MimeRender contentType BodyText) => OpenAPIPetstoreRequest FakeOuterStringSerialize contentType res accept -> BodyText -> OpenAPIPetstoreRequest FakeOuterStringSerialize contentType res accept Source #
testBodyWithFileSchema Source #
"body"
PUT /fake/body-with-file-schema
For this test, the body for this request much reference a schema named File.
File
data TestBodyWithFileSchema Source #
application/json
setBodyParam :: (Consumes TestBodyWithFileSchema contentType, MimeRender contentType FileSchemaTestClass) => OpenAPIPetstoreRequest TestBodyWithFileSchema contentType res accept -> FileSchemaTestClass -> OpenAPIPetstoreRequest TestBodyWithFileSchema contentType res accept Source #
testBodyWithQueryParams Source #
"query"
PUT /fake/body-with-query-params
data TestBodyWithQueryParams Source #
setBodyParam :: (Consumes TestBodyWithQueryParams contentType, MimeRender contentType User) => OpenAPIPetstoreRequest TestBodyWithQueryParams contentType res accept -> User -> OpenAPIPetstoreRequest TestBodyWithQueryParams contentType res accept Source #
testClientModel Source #
"body" - client model
PATCH /fake
To test "client" model
data TestClientModel Source #
Body Param "body" - client model
setBodyParam :: (Consumes TestClientModel contentType, MimeRender contentType Client) => OpenAPIPetstoreRequest TestClientModel contentType res accept -> Client -> OpenAPIPetstoreRequest TestClientModel contentType res accept Source #
testEndpointParameters Source #
"number" - None
"double" - None
"patternWithoutDelimiter" - None
"byte" - None
POST /fake
Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
AuthMethod: AuthBasicHttpBasicTest
AuthBasicHttpBasicTest
data TestEndpointParameters Source #
application/x-www-form-urlencoded
Optional Param "password" - None
applyOptionalParam :: OpenAPIPetstoreRequest TestEndpointParameters contentType res accept -> Password -> OpenAPIPetstoreRequest TestEndpointParameters contentType res accept Source #
(-&-) :: OpenAPIPetstoreRequest TestEndpointParameters contentType res accept -> Password -> OpenAPIPetstoreRequest TestEndpointParameters contentType res accept Source #
Optional Param "string" - None
applyOptionalParam :: OpenAPIPetstoreRequest TestEndpointParameters contentType res accept -> ParamString -> OpenAPIPetstoreRequest TestEndpointParameters contentType res accept Source #
(-&-) :: OpenAPIPetstoreRequest TestEndpointParameters contentType res accept -> ParamString -> OpenAPIPetstoreRequest TestEndpointParameters contentType res accept Source #
Optional Param "integer" - None
applyOptionalParam :: OpenAPIPetstoreRequest TestEndpointParameters contentType res accept -> ParamInteger -> OpenAPIPetstoreRequest TestEndpointParameters contentType res accept Source #
(-&-) :: OpenAPIPetstoreRequest TestEndpointParameters contentType res accept -> ParamInteger -> OpenAPIPetstoreRequest TestEndpointParameters contentType res accept Source #
Optional Param "float" - None
applyOptionalParam :: OpenAPIPetstoreRequest TestEndpointParameters contentType res accept -> ParamFloat -> OpenAPIPetstoreRequest TestEndpointParameters contentType res accept Source #
(-&-) :: OpenAPIPetstoreRequest TestEndpointParameters contentType res accept -> ParamFloat -> OpenAPIPetstoreRequest TestEndpointParameters contentType res accept Source #
Optional Param "dateTime" - None
applyOptionalParam :: OpenAPIPetstoreRequest TestEndpointParameters contentType res accept -> ParamDateTime -> OpenAPIPetstoreRequest TestEndpointParameters contentType res accept Source #
(-&-) :: OpenAPIPetstoreRequest TestEndpointParameters contentType res accept -> ParamDateTime -> OpenAPIPetstoreRequest TestEndpointParameters contentType res accept Source #
Optional Param "date" - None
applyOptionalParam :: OpenAPIPetstoreRequest TestEndpointParameters contentType res accept -> ParamDate -> OpenAPIPetstoreRequest TestEndpointParameters contentType res accept Source #
(-&-) :: OpenAPIPetstoreRequest TestEndpointParameters contentType res accept -> ParamDate -> OpenAPIPetstoreRequest TestEndpointParameters contentType res accept Source #
Optional Param "binary" - None
applyOptionalParam :: OpenAPIPetstoreRequest TestEndpointParameters contentType res accept -> ParamBinary -> OpenAPIPetstoreRequest TestEndpointParameters contentType res accept Source #
(-&-) :: OpenAPIPetstoreRequest TestEndpointParameters contentType res accept -> ParamBinary -> OpenAPIPetstoreRequest TestEndpointParameters contentType res accept Source #
Optional Param "int64" - None
applyOptionalParam :: OpenAPIPetstoreRequest TestEndpointParameters contentType res accept -> Int64 -> OpenAPIPetstoreRequest TestEndpointParameters contentType res accept Source #
(-&-) :: OpenAPIPetstoreRequest TestEndpointParameters contentType res accept -> Int64 -> OpenAPIPetstoreRequest TestEndpointParameters contentType res accept Source #
Optional Param "int32" - None
applyOptionalParam :: OpenAPIPetstoreRequest TestEndpointParameters contentType res accept -> Int32 -> OpenAPIPetstoreRequest TestEndpointParameters contentType res accept Source #
(-&-) :: OpenAPIPetstoreRequest TestEndpointParameters contentType res accept -> Int32 -> OpenAPIPetstoreRequest TestEndpointParameters contentType res accept Source #
Optional Param "callback" - None
applyOptionalParam :: OpenAPIPetstoreRequest TestEndpointParameters contentType res accept -> Callback -> OpenAPIPetstoreRequest TestEndpointParameters contentType res accept Source #
(-&-) :: OpenAPIPetstoreRequest TestEndpointParameters contentType res accept -> Callback -> OpenAPIPetstoreRequest TestEndpointParameters contentType res accept Source #
testEnumParameters :: Consumes TestEnumParameters MimeFormUrlEncoded => OpenAPIPetstoreRequest TestEnumParameters MimeFormUrlEncoded NoContent MimeNoContent Source #
GET /fake
To test enum parameters
data TestEnumParameters Source #
Optional Param "enum_query_string_array" - Query parameter enum test (string array)
applyOptionalParam :: OpenAPIPetstoreRequest TestEnumParameters contentType res accept -> EnumQueryStringArray -> OpenAPIPetstoreRequest TestEnumParameters contentType res accept Source #
(-&-) :: OpenAPIPetstoreRequest TestEnumParameters contentType res accept -> EnumQueryStringArray -> OpenAPIPetstoreRequest TestEnumParameters contentType res accept Source #
Optional Param "enum_query_string" - Query parameter enum test (string)
applyOptionalParam :: OpenAPIPetstoreRequest TestEnumParameters contentType res accept -> EnumQueryString -> OpenAPIPetstoreRequest TestEnumParameters contentType res accept Source #
(-&-) :: OpenAPIPetstoreRequest TestEnumParameters contentType res accept -> EnumQueryString -> OpenAPIPetstoreRequest TestEnumParameters contentType res accept Source #
Optional Param "enum_query_integer" - Query parameter enum test (double)
applyOptionalParam :: OpenAPIPetstoreRequest TestEnumParameters contentType res accept -> EnumQueryInteger -> OpenAPIPetstoreRequest TestEnumParameters contentType res accept Source #
(-&-) :: OpenAPIPetstoreRequest TestEnumParameters contentType res accept -> EnumQueryInteger -> OpenAPIPetstoreRequest TestEnumParameters contentType res accept Source #
Optional Param "enum_query_double" - Query parameter enum test (double)
applyOptionalParam :: OpenAPIPetstoreRequest TestEnumParameters contentType res accept -> EnumQueryDouble -> OpenAPIPetstoreRequest TestEnumParameters contentType res accept Source #
(-&-) :: OpenAPIPetstoreRequest TestEnumParameters contentType res accept -> EnumQueryDouble -> OpenAPIPetstoreRequest TestEnumParameters contentType res accept Source #
Optional Param "enum_header_string_array" - Header parameter enum test (string array)
applyOptionalParam :: OpenAPIPetstoreRequest TestEnumParameters contentType res accept -> EnumHeaderStringArray -> OpenAPIPetstoreRequest TestEnumParameters contentType res accept Source #
(-&-) :: OpenAPIPetstoreRequest TestEnumParameters contentType res accept -> EnumHeaderStringArray -> OpenAPIPetstoreRequest TestEnumParameters contentType res accept Source #
Optional Param "enum_header_string" - Header parameter enum test (string)
applyOptionalParam :: OpenAPIPetstoreRequest TestEnumParameters contentType res accept -> EnumHeaderString -> OpenAPIPetstoreRequest TestEnumParameters contentType res accept Source #
(-&-) :: OpenAPIPetstoreRequest TestEnumParameters contentType res accept -> EnumHeaderString -> OpenAPIPetstoreRequest TestEnumParameters contentType res accept Source #
Optional Param "enum_form_string_array" - Form parameter enum test (string array)
applyOptionalParam :: OpenAPIPetstoreRequest TestEnumParameters contentType res accept -> EnumFormStringArray -> OpenAPIPetstoreRequest TestEnumParameters contentType res accept Source #
(-&-) :: OpenAPIPetstoreRequest TestEnumParameters contentType res accept -> EnumFormStringArray -> OpenAPIPetstoreRequest TestEnumParameters contentType res accept Source #
Optional Param "enum_form_string" - Form parameter enum test (string)
applyOptionalParam :: OpenAPIPetstoreRequest TestEnumParameters contentType res accept -> EnumFormString -> OpenAPIPetstoreRequest TestEnumParameters contentType res accept Source #
(-&-) :: OpenAPIPetstoreRequest TestEnumParameters contentType res accept -> EnumFormString -> OpenAPIPetstoreRequest TestEnumParameters contentType res accept Source #
testGroupParameters Source #
"requiredStringGroup" - Required String in group parameters
"requiredBooleanGroup" - Required Boolean in group parameters
"requiredInt64Group" - Required Integer in group parameters
DELETE /fake
Fake endpoint to test group parameters (optional)
data TestGroupParameters Source #
Optional Param "string_group" - String in group parameters
applyOptionalParam :: OpenAPIPetstoreRequest TestGroupParameters contentType res accept -> StringGroup -> OpenAPIPetstoreRequest TestGroupParameters contentType res accept Source #
(-&-) :: OpenAPIPetstoreRequest TestGroupParameters contentType res accept -> StringGroup -> OpenAPIPetstoreRequest TestGroupParameters contentType res accept Source #
Optional Param "int64_group" - Integer in group parameters
applyOptionalParam :: OpenAPIPetstoreRequest TestGroupParameters contentType res accept -> Int64Group -> OpenAPIPetstoreRequest TestGroupParameters contentType res accept Source #
(-&-) :: OpenAPIPetstoreRequest TestGroupParameters contentType res accept -> Int64Group -> OpenAPIPetstoreRequest TestGroupParameters contentType res accept Source #
Optional Param "boolean_group" - Boolean in group parameters
applyOptionalParam :: OpenAPIPetstoreRequest TestGroupParameters contentType res accept -> BooleanGroup -> OpenAPIPetstoreRequest TestGroupParameters contentType res accept Source #
(-&-) :: OpenAPIPetstoreRequest TestGroupParameters contentType res accept -> BooleanGroup -> OpenAPIPetstoreRequest TestGroupParameters contentType res accept Source #
testInlineAdditionalProperties Source #
"param" - request body
POST /fake/inline-additionalProperties
test inline additionalProperties
data TestInlineAdditionalProperties Source #
Body Param "param" - request body
setBodyParam :: (Consumes TestInlineAdditionalProperties contentType, MimeRender contentType ParamMapMapStringText) => OpenAPIPetstoreRequest TestInlineAdditionalProperties contentType res accept -> ParamMapMapStringText -> OpenAPIPetstoreRequest TestInlineAdditionalProperties contentType res accept Source #
testJsonFormData Source #
"param" - field1
"param2" - field2
GET /fake/jsonFormData
test json serialization of form data
data TestJsonFormData Source #
testQueryParameterCollectionFormat Source #
"pipe"
"ioutil"
"http"
"url"
"context"
PUT /fake/test-query-paramters
To test the collection format in query parameters
data TestQueryParameterCollectionFormat Source #
PUT /fake/test-query-parameters
--- PUT /fake/test-query-paramters +-- PUT /fake/test-query-parameters --
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}]