diff --git a/.travis.yml b/.travis.yml index d6e2888db441..74241bfc6a4d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -201,7 +201,7 @@ after_success: echo "Pushed to $DOCKER_CODEGEN_CLI_IMAGE_NAME"; fi; fi; - ## NOTE; we will do the followign manually instead as the page doesn't need to be updated in every single travis build + ## NOTE; we will do the following manually instead as the page doesn't need to be updated in every single travis build ## publish latest website, variables below are secure environment variables which are unavailable to PRs from forks. # - if [ "$TRAVIS_BRANCH" = "master" ] && [ -z $TRAVIS_TAG ] && [ "$TRAVIS_PULL_REQUEST" == "false" ]; then # sed -i "s/Vector{UInt8}/Vector\{UInt8\}/g" docs/generators/julia-client.md; diff --git a/bin/utils/test_file_list.yaml b/bin/utils/test_file_list.yaml index 5c63f356e280..15b2c505541b 100644 --- a/bin/utils/test_file_list.yaml +++ b/bin/utils/test_file_list.yaml @@ -10,7 +10,7 @@ - filename: "samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/ClientTest.java" sha256: 325fdd5d7e2c97790c0fb44f712ab7b2ba022d7e1a5b0056f47b07f342682b6d - filename: "samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/JSONTest.java" - sha256: e673d9928c8eb848262d0116fe0d28db832e128671a810a7c966d06d90cb9b63 + sha256: 44aef898ae3f5ac75e3847aa24a8eca259eb922be920162df0b725a6b751a6ca - filename: "samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/api/PetApiTest.java" sha256: 8b1b8f2a2ad00ccb090873a94a5f73e328b98317d2ec715f53bd7a1accb2a023 - filename: "samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/PetTest.java" diff --git a/docs/generators/postgresql-schema.md b/docs/generators/postgresql-schema.md index b4959234ae6e..ee85c7e680e0 100644 --- a/docs/generators/postgresql-schema.md +++ b/docs/generators/postgresql-schema.md @@ -21,7 +21,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl |defaultDatabaseName|Database name that will be used for all generated PostgreSQL DDL and DML statements.| || |idAutoIncEnabled|If `true`, generates autoincrement PostgreSQL types `SERIAL` and `BIGSERIAL` for `int32` and `int64` respectively for integer fields with name 'id'.| |false| |identifierNamingConvention|Naming convention of PostgreSQL idebntifiers (table names and column names).|
**snake_case**
Transform named to 'snake_case'.
**original**
Leave original names as in `YAML` file.
|snake_case| -|jsonDataType|Use of PostgreSQL data types for complex model properties.|
**json**
Generate `JSON` fields. Value is stored in `JSON` data type field as human-readable text. Value compliance with JSON standard is checked.
**jsonb**
Generate `JSONB` fields. Value is stored in `JSONB` data type field in binary format. `JSONB` data type is generally nore efficient than `JSON` but it is not human-readable. Value compliance with JSON standard is checked.
**off**
Generate `TEXT` fields. Just store the value as plain text. Value compliance with JSON standard is not checked.
|json| +|jsonDataType|Use of PostgreSQL data types for complex model properties.|
**json**
Generate `JSON` fields. Value is stored in `JSON` data type field as human-readable text. Value compliance with JSON standard is checked.
**jsonb**
Generate `JSONB` fields. Value is stored in `JSONB` data type field in binary format. `JSONB` data type is generally more efficient than `JSON` but it is not human-readable. Value compliance with JSON standard is checked.
**off**
Generate `TEXT` fields. Just store the value as plain text. Value compliance with JSON standard is not checked.
|json| |namedParametersEnabled|Generates query examples with named variables in value placeholders (eg.`:name`,`:quantity`) if `true`. Otherwise, generates question marks `?` in value placeholders.| |false| ## IMPORT MAPPING diff --git a/docs/generators/swift5.md b/docs/generators/swift5.md index a46bd33730f3..9d565bf5993f 100644 --- a/docs/generators/swift5.md +++ b/docs/generators/swift5.md @@ -56,7 +56,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl |useCustomDateWithoutTime|Uses a custom type to decode and encode dates without time information to support OpenAPIs date format (default: false)| |false| |useJsonEncodable|Make models conform to JSONEncodable protocol (default: true)| |true| |useSPMFileStructure|Use SPM file structure and set the source path to Sources/{{projectName}} (default: false).| |null| -|validatable|Make validation rules and validator for model properies (default: true)| |true| +|validatable|Make validation rules and validator for model properties (default: true)| |true| ## IMPORT MAPPING diff --git a/docs/generators/swift6.md b/docs/generators/swift6.md index b80a1d7996ab..a49865462eba 100644 --- a/docs/generators/swift6.md +++ b/docs/generators/swift6.md @@ -58,7 +58,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl |useCustomDateWithoutTime|Uses a custom type to decode and encode dates without time information to support OpenAPIs date format (default: false)| |false| |useJsonEncodable|Make models conform to JSONEncodable protocol (default: true)| |true| |useSPMFileStructure|Use SPM file structure and set the source path to Sources/{{projectName}} (default: true).| |null| -|validatable|Make validation rules and validator for model properies (default: true)| |true| +|validatable|Make validation rules and validator for model properties (default: true)| |true| ## IMPORT MAPPING diff --git a/modules/openapi-generator-cli/src/main/java/org/openapitools/codegen/cmd/Generate.java b/modules/openapi-generator-cli/src/main/java/org/openapitools/codegen/cmd/Generate.java index 6ce6a8ffb301..ace86eb27252 100644 --- a/modules/openapi-generator-cli/src/main/java/org/openapitools/codegen/cmd/Generate.java +++ b/modules/openapi-generator-cli/src/main/java/org/openapitools/codegen/cmd/Generate.java @@ -162,7 +162,7 @@ public class Generate extends OpenApiGeneratorCommand { @Option( name = {"--openapi-generator-ignore-list"}, - title = ".openapi-generaotr-ignore list", + title = ".openapi-generator-ignore list", description = "specifies entries in the .openapi-generator-ignore file relative/path/to/file1,relative/path/to/file2. For example: README.md,pom.xml" + " You can also have multiple occurrences of this option.") private List openapiGeneratorIgnoreList = new ArrayList<>(); diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java index a015dee2a21b..9ff41e592a4e 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java @@ -7915,7 +7915,7 @@ public CodegenParameter fromRequestBody(RequestBody body, Set imports, S if (original.getMinimum() != null) { codegenParameter.setMinimum(String.valueOf(original.getMinimum().doubleValue())); } - /* comment out below as we don't store `title` in the codegen parametera the moment + /* comment out below as we don't store `title` in the codegen parameter at the moment if (original.getTitle() != null) { codegenParameter.setTitle(original.getTitle()); } diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/InlineModelResolver.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/InlineModelResolver.java index 8cdf045a4249..e45cc3df9b92 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/InlineModelResolver.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/InlineModelResolver.java @@ -207,7 +207,7 @@ private String getInlineSchemaName(HttpMethod httpVerb, String pathname) { /** * Return false if model can be represented by primitives e.g. string, object - * without properties, array or map of other model (model contanier), etc. + * without properties, array or map of other model (model container), etc. *

* Return true if a model should be generated e.g. object with properties, * enum, oneOf, allOf, anyOf, etc. @@ -220,7 +220,7 @@ private boolean isModelNeeded(Schema schema) { /** * Return false if model can be represented by primitives e.g. string, object - * without properties, array or map of other model (model contanier), etc. + * without properties, array or map of other model (model container), etc. *

* Return true if a model should be generated e.g. object with properties, * enum, oneOf, allOf, anyOf, etc. @@ -1043,7 +1043,7 @@ private void copyVendorExtensions(Schema source, Schema target) { * Add the schemas to the components * * @param name name of the inline schema - * @param schema inilne schema + * @param schema inline schema * @return the actual model name (based on inlineSchemaNameMapping if provided) */ private String addSchemas(String name, Schema schema) { diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/OpenAPINormalizer.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/OpenAPINormalizer.java index 25265ef0f548..46ec390bf0d4 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/OpenAPINormalizer.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/OpenAPINormalizer.java @@ -836,7 +836,7 @@ private Schema normalizeComplexComposedSchema(Schema schema, Set visited } // ===================== a list of rules ===================== - // all rules (functions ) start with the word "process" + // all rules (functions) start with the word "process" /** * Child schemas in `allOf` is considered a parent if it's a `$ref` (instead of inline schema). diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractGoCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractGoCodegen.java index 3bc48fb57de3..cdec5424ca8d 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractGoCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractGoCodegen.java @@ -791,7 +791,7 @@ public ModelsMap postProcessModels(ModelsMap objs) { } // construct data tag in the template: x-go-datatag - // originl template + // original template // `json:"{{{baseName}}}{{^required}},omitempty{{/required}}"{{#withXml}} xml:"{{{baseName}}}{{#isXmlAttribute}},attr{{/isXmlAttribute}}"{{/withXml}}{{#withValidate}} validate:"{{validate}}"{{/withValidate}}{{#vendorExtensions.x-go-custom-tag}} {{{.}}}{{/vendorExtensions.x-go-custom-tag}}` String goDataTag = "json:\"" + cp.baseName; if (!cp.required) { 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 960a5c8d71a2..89fe6938af64 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 @@ -936,7 +936,7 @@ private boolean startsWithTwoUppercaseLetters(String name) { @Override public String toParamName(String name) { - // obtain the name from parameterNameMapping directly if provided + // obtain the name from parameterNameMapping directly if provided if (parameterNameMapping.containsKey(name)) { return parameterNameMapping.get(name); } @@ -1077,10 +1077,10 @@ private String getBeanValidation(Schema items) { } if (items.get$ref() != null) { - Map shemas = this.openAPI.getComponents().getSchemas(); + Map schemas = this.openAPI.getComponents().getSchemas(); String ref = ModelUtils.getSimpleRef(items.get$ref()); if (ref != null) { - Schema schema = shemas.get(ref); + Schema schema = schemas.get(ref); if (schema == null || ModelUtils.isObjectSchema(schema)) { return "@Valid "; } 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 b850b6bffc80..43cc08e3dfce 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 @@ -435,7 +435,7 @@ public String toVarName(String name) { } // translate @ for properties (like @type) to at_. - // Otherwise an additional "type" property will leed to duplcates + // Otherwise an additional "type" property will lead to duplicates name = name.replaceAll("^@", "at_"); // sanitize 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 f6813081563c..9fa261694f61 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 @@ -1827,7 +1827,7 @@ private PythonType stringType(IJsonSchemaValidationProperties cp) { } return pt; } else { - if ("password".equals(cp.getFormat())) { // TDOO avoid using format, use `is` boolean flag instead + if ("password".equals(cp.getFormat())) { // TODO avoid using format, use `is` boolean flag instead moduleImports.add("pydantic", "SecretStr"); return new PythonType("SecretStr"); } else { diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractPythonPydanticV1Codegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractPythonPydanticV1Codegen.java index c697bc8f2346..ec629c1ce6cc 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractPythonPydanticV1Codegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractPythonPydanticV1Codegen.java @@ -1090,7 +1090,7 @@ private String getPydanticType(CodegenParameter cp, pydanticImports.add("constr"); return String.format(Locale.ROOT, "constr(%s)", StringUtils.join(fieldCustomization, ", ")); } else { - if ("password".equals(cp.getFormat())) { // TDOO avoid using format, use `is` boolean flag instead + if ("password".equals(cp.getFormat())) { // TODO avoid using format, use `is` boolean flag instead pydanticImports.add("SecretStr"); return "SecretStr"; } else { @@ -1375,7 +1375,7 @@ private String getPydanticType(CodegenProperty cp, pydanticImports.add("constr"); return String.format(Locale.ROOT, "constr(%s)", StringUtils.join(fieldCustomization, ", ")); } else { - if ("password".equals(cp.getFormat())) { // TDOO avoid using format, use `is` boolean flag instead + if ("password".equals(cp.getFormat())) { // TODO avoid using format, use `is` boolean flag instead pydanticImports.add("SecretStr"); return "SecretStr"; } else { diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AspNetServerCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AspNetServerCodegen.java index 5a0f5e5d9afa..12c39f9f3d94 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AspNetServerCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AspNetServerCodegen.java @@ -804,10 +804,10 @@ private void setIsFramework() { additionalProperties.put(TARGET_FRAMEWORK, "netcoreapp" + aspnetCoreVersion); } - setAddititonalPropertyForFramework(); + setAdditionalPropertyForFramework(); } - private void setAddititonalPropertyForFramework() { + private void setAdditionalPropertyForFramework() { String targetFramework = ((String)additionalProperties.get(TARGET_FRAMEWORK)); if (targetFramework.startsWith("net6.0") || targetFramework.startsWith("net7.0") || diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/CSharpFunctionsServerCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/CSharpFunctionsServerCodegen.java index 4871f6d44fd3..61f4ef6bae87 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/CSharpFunctionsServerCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/CSharpFunctionsServerCodegen.java @@ -599,10 +599,10 @@ private void setAzureFunctionsVersion() { //set .NET target version String targetFrameworkVersion = "net" + netCoreVersion.getOptValue(); additionalProperties.put(TARGET_FRAMEWORK, targetFrameworkVersion); - setAddititonalPropertyForFramework(); + setAdditionalPropertyForFramework(); } - private void setAddititonalPropertyForFramework() { + private void setAdditionalPropertyForFramework() { if (((String)additionalProperties.get(TARGET_FRAMEWORK)).startsWith("net6.0")) { additionalProperties.put(NET_60_OR_LATER, true); } diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/CppRestbedServerCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/CppRestbedServerCodegen.java index 55d383a6b26f..8b5d2fa3d12d 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/CppRestbedServerCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/CppRestbedServerCodegen.java @@ -302,11 +302,11 @@ private String capitalizeFirstChar(String str) { } private String convertPathSegmentToResourceNamePart(String pathSegment) { - String convertedSegnemt = pathSegment; + String convertedSegment = pathSegment; if (pathSegment.matches(OPEN_API_PATH_PARAM_PATTERN)) { - convertedSegnemt = pathSegment.substring(1, pathSegment.length() - 1); + convertedSegment = pathSegment.substring(1, pathSegment.length() - 1); } - return capitalizeFirstChar(sanitizeName(convertedSegnemt)); + return capitalizeFirstChar(sanitizeName(convertedSegment)); } private String convertPathParamPattern(String pathSegment) { diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/KotlinServerCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/KotlinServerCodegen.java index 57f8a1961ef3..7ce5f76ce16a 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/KotlinServerCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/KotlinServerCodegen.java @@ -452,7 +452,7 @@ private boolean isKtor2Or3() { /** * Returns true if latest version of ktor is used. * - * @return true if latest veresion of ktor is used. + * @return true if latest version of ktor is used. */ private boolean isKtor() { return Constants.KTOR.equals(library); diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/PostgresqlSchemaCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/PostgresqlSchemaCodegen.java index 5910be7699ab..b3ecedfd4b86 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/PostgresqlSchemaCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/PostgresqlSchemaCodegen.java @@ -313,7 +313,7 @@ public PostgresqlSchemaCodegen() { "Use of PostgreSQL data types for complex model properties."); jsonDataTypeOpt.addEnum("json", "Generate `JSON` fields. Value is stored in `JSON` data type field as human-readable text. Value compliance with JSON standard is checked.") .addEnum("jsonb", - "Generate `JSONB` fields. Value is stored in `JSONB` data type field in binary format. `JSONB` data type is generally nore efficient than `JSON` but it is not human-readable. Value compliance with JSON standard is checked.") + "Generate `JSONB` fields. Value is stored in `JSONB` data type field in binary format. `JSONB` data type is generally more efficient than `JSON` but it is not human-readable. Value compliance with JSON standard is checked.") .addEnum("off", "Generate `TEXT` fields. Just store the value as plain text. Value compliance with JSON standard is not checked.") .setDefault("json"); cliOptions.add(jsonDataTypeOpt); diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/ScalaCaskServerCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/ScalaCaskServerCodegen.java index 9339370f286e..426b336966c2 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/ScalaCaskServerCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/ScalaCaskServerCodegen.java @@ -460,7 +460,7 @@ public ParamPart(String name, CodegenParameter param) { * {{{ * * @cask.get("/user", subpath = true) - * def userRouteDescriminator(request: cask.Request) = { + * def userRouteDiscriminator(request: cask.Request) = { * request.remainingPathSegments match { * case Seq("logout") => logoutUser(request) * case Seq("login") => loginUser(request) @@ -758,7 +758,7 @@ private static boolean doesNotNeedMapping(final CodegenProperty p, final Set postProcessAllModels(Map objs) return modelsMap; } - private Map makeRefiined(Set imports, String dataType, ArrayList refined) { + private Map makeRefined(Set imports, String dataType, ArrayList refined) { Map vendorExtensions = new HashMap<>(); if (!refined.isEmpty()) { imports.add("And"); @@ -426,7 +426,7 @@ private Map refineProp(IJsonSchemaValidationProperties prop, Set } catch (IndexOutOfBoundsException ignored) { } } - vendorExtensions.putAll(makeRefiined(imports, prop.getDataType(), refined)); + vendorExtensions.putAll(makeRefined(imports, prop.getDataType(), refined)); } if ("Int".equals(prop.getDataType()) @@ -455,7 +455,7 @@ private Map refineProp(IJsonSchemaValidationProperties prop, Set imports.add("LessEqual"); } } - vendorExtensions.putAll(makeRefiined(imports, prop.getDataType(), refined)); + vendorExtensions.putAll(makeRefined(imports, prop.getDataType(), refined)); } if (prop.getIsUuid() || "Uuid".equals(prop.getDataType())) { @@ -476,7 +476,7 @@ private Map refineProp(IJsonSchemaValidationProperties prop, Set imports.add("MaxSize"); } - vendorExtensions.putAll(makeRefiined(imports, prop.getDataType(), refined)); + vendorExtensions.putAll(makeRefined(imports, prop.getDataType(), refined)); } return vendorExtensions; 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 16ce68597cbb..37b97ebe9955 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 @@ -322,7 +322,7 @@ public Swift5ClientCodegen() { .defaultValue(Boolean.FALSE.toString())); cliOptions.add(new CliOption(VALIDATABLE, - "Make validation rules and validator for model properies (default: true)") + "Make validation rules and validator for model properties (default: true)") .defaultValue(Boolean.TRUE.toString())); supportedLibraries.put(LIBRARY_URLSESSION, "[DEFAULT] HTTP client: URLSession"); diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/Swift6ClientCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/Swift6ClientCodegen.java index 8c1bb2e0ffc7..284d05247739 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/Swift6ClientCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/Swift6ClientCodegen.java @@ -326,7 +326,7 @@ public Swift6ClientCodegen() { .defaultValue(Boolean.FALSE.toString())); cliOptions.add(new CliOption(VALIDATABLE, - "Make validation rules and validator for model properies (default: true)") + "Make validation rules and validator for model properties (default: true)") .defaultValue(Boolean.TRUE.toString())); cliOptions.add(new CliOption(API_STATIC_METHOD, diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/SwiftCombineClientCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/SwiftCombineClientCodegen.java index 95bd6c3b0bb7..0985f0c3364f 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/SwiftCombineClientCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/SwiftCombineClientCodegen.java @@ -746,8 +746,8 @@ protected void addVendorExtensions(CodegenParameter cp, CodegenOperation operati CodegenModel baseModel = modelMaps.get(cp.items.dataType); boolean isBaseTypeEnum = cp.items.isEnum || cp.isEnum || (baseModel != null && baseModel.isEnum); cp.vendorExtensions.put("x-swift-is-base-type-enum", isBaseTypeEnum); - boolean isBaseTypeUdid = cp.items.isUuid || cp.isUuid; - cp.vendorExtensions.put("x-swift-is-base-type-udid", isBaseTypeUdid); + boolean isBaseTypeUuid = cp.items.isUuid || cp.isUuid; + cp.vendorExtensions.put("x-swift-is-base-type-uuid", isBaseTypeUuid); boolean useEncoder = !isBaseTypeEnum && !cp.items.isString || (baseModel != null && !baseModel.isString); cp.vendorExtensions.put("x-swift-use-encoder", useEncoder); diff --git a/modules/openapi-generator/src/main/resources/Java/libraries/native/api.mustache b/modules/openapi-generator/src/main/resources/Java/libraries/native/api.mustache index 309ee2fc3214..366e3689df7f 100644 --- a/modules/openapi-generator/src/main/resources/Java/libraries/native/api.mustache +++ b/modules/openapi-generator/src/main/resources/Java/libraries/native/api.mustache @@ -280,7 +280,7 @@ public class {{classname}} { {{! The `available` method would work with a `PushbackInputStream`, because we could read 1 byte to check if it exists then push it back so Jackson can read it again. The issue with that is that it will also insert an ascii character for "head of input" and that will break Jackson as it does not handle special whitespace characters. }} {{! A fix for that problem is to read it into a string and remove those characters, but if we need to read it before giving it to jackson to fix the string then just reading it into a string as is to do an emptiness check is the cleaner solution. }} {{! We could also manipulate the inputstream to remove that bad character, but string manipulation is easier to read and this codepath is not asyncronus so we do not gain anything by reading the stream later. }} - {{! This fix does make it unsuitable for large amounts of data because `InputStream.readAllbytes` is not meant for it, but a syncronus client is already not the right tool for that.}} + {{! This fix does make it unsuitable for large amounts of data because `InputStream.readAllbytes` is not meant for it, but a synchronous client is already not the right tool for that.}} if (localVarResponse.body() == null) { return new ApiResponse<{{{returnType}}}>( localVarResponse.statusCode(), diff --git a/modules/openapi-generator/src/main/resources/csharp-functions/JsonSubTypesTests.mustache b/modules/openapi-generator/src/main/resources/csharp-functions/JsonSubTypesTests.mustache index 9b1f66624d74..55b1d51837d9 100644 --- a/modules/openapi-generator/src/main/resources/csharp-functions/JsonSubTypesTests.mustache +++ b/modules/openapi-generator/src/main/resources/csharp-functions/JsonSubTypesTests.mustache @@ -17,17 +17,17 @@ namespace {{packageName}}.Test.Client [Test] public void TestSimpleJsonSubTypesExample() { - var annimal = + var animal = JsonConvert.DeserializeObject("{\"Kind\":\"Dog\",\"Breed\":\"Jack Russell Terrier\"}"); - Assert.AreEqual("Jack Russell Terrier", (annimal as Dog)?.Breed); + Assert.AreEqual("Jack Russell Terrier", (animal as Dog)?.Breed); } [Test] public void DeserializeObjectWithCustomMapping() { - var annimal = + var animal = JsonConvert.DeserializeObject("{\"Sound\":\"Bark\",\"Breed\":\"Jack Russell Terrier\"}"); - Assert.AreEqual("Jack Russell Terrier", (annimal as Dog2)?.Breed); + Assert.AreEqual("Jack Russell Terrier", (animal as Dog2)?.Breed); } [Test] diff --git a/modules/openapi-generator/src/main/resources/erlang-server/server.mustache b/modules/openapi-generator/src/main/resources/erlang-server/server.mustache index 86b4654a02a1..60e4b68346f5 100644 --- a/modules/openapi-generator/src/main/resources/erlang-server/server.mustache +++ b/modules/openapi-generator/src/main/resources/erlang-server/server.mustache @@ -18,7 +18,7 @@ start(ID, Params) -> Transport = maps:get(transport, Params, tcp), TransportOpts = maps:get(transport_opts, Params, #{}), - ProtocolOpts = maps:get(procotol_opts, Params, #{}), + ProtocolOpts = maps:get(protocol_opts, Params, #{}), LogicHandler = maps:get(logic_handler, Params, ?DEFAULT_LOGIC_HANDLER), CowboyOpts = get_cowboy_config(LogicHandler, ProtocolOpts), case Transport of diff --git a/modules/openapi-generator/src/main/resources/gdscript/model.handlebars b/modules/openapi-generator/src/main/resources/gdscript/model.handlebars index 1eeb8a0479c0..199d4d27b558 100644 --- a/modules/openapi-generator/src/main/resources/gdscript/model.handlebars +++ b/modules/openapi-generator/src/main/resources/gdscript/model.handlebars @@ -43,7 +43,7 @@ {{/if}} __{{name}}__was__set = true {{name}} = value -{{! Flag used to only serialize what has been explicitely set. (no nullable types, anyway null might be legit) }} +{{! Flag used to only serialize what has been explicitly set. (no nullable types, anyway null might be legit) }} var __{{name}}__was__set := false {{! Store the allowed values if the property is an enum }} {{#if isEnum}} diff --git a/modules/openapi-generator/src/main/resources/htmlDocs2/index.mustache b/modules/openapi-generator/src/main/resources/htmlDocs2/index.mustache index ec5d8c742f69..0e3162bc37dc 100644 --- a/modules/openapi-generator/src/main/resources/htmlDocs2/index.mustache +++ b/modules/openapi-generator/src/main/resources/htmlDocs2/index.mustache @@ -111,10 +111,10 @@ } else { // Use a for loop instead of forEach to avoid nested functions // Otherwise "return" will not work properly - for(var propt in currentNode){ - if (currentNode.hasOwnProperty(propt)) { - currentChild = currentNode[propt] - if (id == propt) { + for(var prop in currentNode){ + if (currentNode.hasOwnProperty(prop)) { + currentChild = currentNode[prop] + if (id == prop) { return currentChild; } else { // Search in the current child diff --git a/modules/openapi-generator/src/main/resources/java-helidon/client/libraries/se/api_impl.mustache b/modules/openapi-generator/src/main/resources/java-helidon/client/libraries/se/api_impl.mustache index 034dc0a903a6..6167bed11e5f 100644 --- a/modules/openapi-generator/src/main/resources/java-helidon/client/libraries/se/api_impl.mustache +++ b/modules/openapi-generator/src/main/resources/java-helidon/client/libraries/se/api_impl.mustache @@ -115,7 +115,7 @@ public class {{classname}}Impl implements {{classname}} { {{#isExplode}} {{#hasVars}} {{#vars}} - queryParams.addAll(ApiClent.parameterToPairs("{{baseName}}", {{paramName}}.{{getter}}())); + queryParams.addAll(ApiClient.parameterToPairs("{{baseName}}", {{paramName}}.{{getter}}())); {{/vars}} {{/hasVars}} {{^hasVars}} diff --git a/modules/openapi-generator/src/main/resources/java-helidon/client/libraries/se/api_impl_for_v4.mustache b/modules/openapi-generator/src/main/resources/java-helidon/client/libraries/se/api_impl_for_v4.mustache index 39aacae7b945..72d616ee1f51 100644 --- a/modules/openapi-generator/src/main/resources/java-helidon/client/libraries/se/api_impl_for_v4.mustache +++ b/modules/openapi-generator/src/main/resources/java-helidon/client/libraries/se/api_impl_for_v4.mustache @@ -105,7 +105,7 @@ public class {{classname}}Impl implements {{classname}} { {{#isExplode}} {{#hasVars}} {{#vars}} - queryParams.addAll(ApiClent.parameterToPairs("{{baseName}}", {{paramName}}.{{getter}}())); + queryParams.addAll(ApiClient.parameterToPairs("{{baseName}}", {{paramName}}.{{getter}}())); {{/vars}} {{/hasVars}} {{^hasVars}} diff --git a/modules/openapi-generator/src/main/resources/php/libraries/psr-18/ApiException.mustache b/modules/openapi-generator/src/main/resources/php/libraries/psr-18/ApiException.mustache index e3f055abafb7..c3ea7ad7f5c2 100644 --- a/modules/openapi-generator/src/main/resources/php/libraries/psr-18/ApiException.mustache +++ b/modules/openapi-generator/src/main/resources/php/libraries/psr-18/ApiException.mustache @@ -90,7 +90,7 @@ class ApiException extends RequestException } /** - * Sets the deseralized response object (during deserialization) + * Sets the deserialized response object (during deserialization) * * @param mixed $obj Deserialized response object * @@ -102,7 +102,7 @@ class ApiException extends RequestException } /** - * Gets the deseralized response object (during deserialization) + * Gets the deserialized response object (during deserialization) * * @return mixed the deserialized response object */ diff --git a/modules/openapi-generator/src/main/resources/powershell/http_signature_auth.mustache b/modules/openapi-generator/src/main/resources/powershell/http_signature_auth.mustache index 532eb1a88fb5..8476a543820d 100644 --- a/modules/openapi-generator/src/main/resources/powershell/http_signature_auth.mustache +++ b/modules/openapi-generator/src/main/resources/powershell/http_signature_auth.mustache @@ -175,8 +175,8 @@ function Get-{{{apiNamePrefix}}}RSASignature { $ecKeyBase64String = $keyStr.Replace($ecKeyHeader, "").Replace($ecKeyFooter, "").Trim() $keyBytes = [System.Convert]::FromBase64String($ecKeyBase64String) $rsa = [System.Security.Cryptography.RSA]::Create() - [int]$bytCount = 0 - $rsa.ImportRSAPrivateKey($keyBytes, [ref] $bytCount) + [int]$byteCount = 0 + $rsa.ImportRSAPrivateKey($keyBytes, [ref] $byteCount) if ($SigningAlgorithm -eq "RSASSA-PSS") { $signedBytes = $rsa.SignHash($DataToSign, $hashAlgo, [System.Security.Cryptography.RSASignaturePadding]::Pss) @@ -247,11 +247,11 @@ function Get-{{{apiNamePrefix}}}ECDSASignature { $keyBytes = [System.Convert]::FromBase64String($ecKeyBase64String) $ecdsa = [System.Security.Cryptography.ECDsa]::Create() - [int]$bytCount =0 + [int]$byteCount =0 if (![string]::IsNullOrEmpty($KeyPassPhrase)) { - $ecdsa.ImportEncryptedPkcs8PrivateKey($KeyPassPhrase,$keyBytes,[ref]$bytCount) + $ecdsa.ImportEncryptedPkcs8PrivateKey($KeyPassPhrase,$keyBytes,[ref]$byteCount) } else { - $ecdsa.ImportPkcs8PrivateKey($keyBytes,[ref]$bytCount) + $ecdsa.ImportPkcs8PrivateKey($keyBytes,[ref]$byteCount) } $signedBytes = $ecdsa.SignHash($DataToSign) diff --git a/modules/openapi-generator/src/main/resources/r/api_client.mustache b/modules/openapi-generator/src/main/resources/r/api_client.mustache index 72287876e969..2a50b0263bda 100644 --- a/modules/openapi-generator/src/main/resources/r/api_client.mustache +++ b/modules/openapi-generator/src/main/resources/r/api_client.mustache @@ -437,7 +437,7 @@ ApiClient <- R6::R6Class( #' #' @param local_var_resp The API response #' @param return_type The target return type for the endpoint (e.g., `"object"`). If `NULL` text will be left as-is. - #' @return If the raw response is corecable to text, return the text. Otherwise return the raw resposne. + #' @return If the raw response is corecable to text, return the text. Otherwise return the raw response. DeserializeResponse = function(local_var_resp, return_type = NULL) { text <- local_var_resp$response_as_text() if (is.na(text)) { @@ -454,8 +454,8 @@ ApiClient <- R6::R6Class( #' The function will write out data. #' #' 1. If binary data is detected it will use `writeBin` - #' 2. If the raw response is coercable to text, the text will be written to a file - #' 3. If the raw response is not coercable to text, the raw response will be written + #' 2. If the raw response is coercible to text, the text will be written to a file + #' 3. If the raw response is not coercible to text, the raw response will be written #' #' @param local_var_resp The API response #' @param file The name of the data file to save the result diff --git a/modules/openapi-generator/src/main/resources/r/libraries/httr2/api_client.mustache b/modules/openapi-generator/src/main/resources/r/libraries/httr2/api_client.mustache index 194083b2d38c..3020d69ff821 100644 --- a/modules/openapi-generator/src/main/resources/r/libraries/httr2/api_client.mustache +++ b/modules/openapi-generator/src/main/resources/r/libraries/httr2/api_client.mustache @@ -450,7 +450,7 @@ ApiClient <- R6::R6Class( #' #' @param local_var_resp The API response #' @param return_type The target return type for the endpoint (e.g., `"object"`). If `NULL` text will be left as-is. - #' @return If the raw response is corecable to text, return the text. Otherwise return the raw resposne. + #' @return If the raw response is corecable to text, return the text. Otherwise return the raw response. DeserializeResponse = function(local_var_resp, return_type = NULL) { text <- local_var_resp$response_as_text() if (is.na(text)) { @@ -467,8 +467,8 @@ ApiClient <- R6::R6Class( #' The function will write out data. #' #' 1. If binary data is detected it will use `writeBin` - #' 2. If the raw response is coercable to text, the text will be written to a file - #' 3. If the raw response is not coercable to text, the raw response will be written + #' 2. If the raw response is coercible to text, the text will be written to a file + #' 3. If the raw response is not coercible to text, the raw response will be written #' #' @param local_var_resp The API response #' @param file The name of the data file to save the result diff --git a/modules/openapi-generator/src/main/resources/swift-combine/api.mustache b/modules/openapi-generator/src/main/resources/swift-combine/api.mustache index db49e368692d..8290f1e8d64e 100644 --- a/modules/openapi-generator/src/main/resources/swift-combine/api.mustache +++ b/modules/openapi-generator/src/main/resources/swift-combine/api.mustache @@ -74,7 +74,7 @@ open class {{classname}} { /// - defaultResponse: {{.}}{{/defaultResponse}} {{#authMethods}} /// - {{#isBasicBasic}}BASIC{{/isBasicBasic}}{{#isOAuth}}OAuth{{/isOAuth}}{{#isApiKey}}API Key{{/isApiKey}}: - /// - type: {{type}}{{#keyParamName}} {{keyParamName}} {{#isKeyInQuery}}(QUERY){{/isKeyInQuery}}{{#isKeyInHeaer}}(HEADER){{/isKeyInHeaer}}{{/keyParamName}} + /// - type: {{type}}{{#keyParamName}} {{keyParamName}} {{#isKeyInQuery}}(QUERY){{/isKeyInQuery}}{{#isKeyInHeader}}(HEADER){{/isKeyInHeader}}{{/keyParamName}} /// - name: {{name}} {{/authMethods}} {{#hasResponseHeaders}} diff --git a/modules/openapi-generator/src/main/resources/swift-combine/toString.mustache b/modules/openapi-generator/src/main/resources/swift-combine/toString.mustache index 5535cae98f1b..53ffae5b3b66 100644 --- a/modules/openapi-generator/src/main/resources/swift-combine/toString.mustache +++ b/modules/openapi-generator/src/main/resources/swift-combine/toString.mustache @@ -1 +1 @@ -{{#isDateTime}}OpenISO8601DateFormatter.shared.string(from: {{paramName}}){{/isDateTime}}{{#vendorExtensions.x-swift-use-encoder}}String(data: try self.encoder.encode({{paramName}}), encoding: .utf8) ?? ""{{/vendorExtensions.x-swift-use-encoder}}{{^vendorExtensions.x-swift-use-encoder}}{{#isArray}}{{paramName}}{{#vendorExtensions.x-swift-is-base-type-udid}}.map { $0.uuidString }{{/vendorExtensions.x-swift-is-base-type-udid}}{{#vendorExtensions.x-swift-is-base-type-enum}}.map { $0.rawValue }{{/vendorExtensions.x-swift-is-base-type-enum}}.joined(separator: ","){{/isArray}}{{^isArray}}{{#vendorExtensions.x-swift-is-enum-type}}{{paramName}}.rawValue{{/vendorExtensions.x-swift-is-enum-type}}{{^isEnum}}{{#isString}}{{#isUuid}}{{paramName}}.uuidString{{/isUuid}}{{^isUuid}}{{paramName}}{{/isUuid}}{{/isString}}{{#isInteger}}"\({{paramName}})"{{/isInteger}}{{#isDouble}}"\({{paramName}})"{{/isDouble}}{{#isFloat}}"\({{paramName}})"{{/isFloat}}{{#isNumber}}"\({{paramName}})"{{/isNumber}}{{#isLong}}"\({{paramName}})"{{/isLong}}{{#isBoolean}}{{paramName}} ? "true" : "false"{{/isBoolean}}{{/isEnum}}{{/isArray}}{{/vendorExtensions.x-swift-use-encoder}} \ No newline at end of file +{{#isDateTime}}OpenISO8601DateFormatter.shared.string(from: {{paramName}}){{/isDateTime}}{{#vendorExtensions.x-swift-use-encoder}}String(data: try self.encoder.encode({{paramName}}), encoding: .utf8) ?? ""{{/vendorExtensions.x-swift-use-encoder}}{{^vendorExtensions.x-swift-use-encoder}}{{#isArray}}{{paramName}}{{#vendorExtensions.x-swift-is-base-type-uuid}}.map { $0.uuidString }{{/vendorExtensions.x-swift-is-base-type-uuid}}{{#vendorExtensions.x-swift-is-base-type-enum}}.map { $0.rawValue }{{/vendorExtensions.x-swift-is-base-type-enum}}.joined(separator: ","){{/isArray}}{{^isArray}}{{#vendorExtensions.x-swift-is-enum-type}}{{paramName}}.rawValue{{/vendorExtensions.x-swift-is-enum-type}}{{^isEnum}}{{#isString}}{{#isUuid}}{{paramName}}.uuidString{{/isUuid}}{{^isUuid}}{{paramName}}{{/isUuid}}{{/isString}}{{#isInteger}}"\({{paramName}})"{{/isInteger}}{{#isDouble}}"\({{paramName}})"{{/isDouble}}{{#isFloat}}"\({{paramName}})"{{/isFloat}}{{#isNumber}}"\({{paramName}})"{{/isNumber}}{{#isLong}}"\({{paramName}})"{{/isLong}}{{#isBoolean}}{{paramName}} ? "true" : "false"{{/isBoolean}}{{/isEnum}}{{/isArray}}{{/vendorExtensions.x-swift-use-encoder}} \ No newline at end of file diff --git a/modules/openapi-generator/src/main/resources/swift5/Validation.mustache b/modules/openapi-generator/src/main/resources/swift5/Validation.mustache index 70e3abfb5057..91bbcf788555 100644 --- a/modules/openapi-generator/src/main/resources/swift5/Validation.mustache +++ b/modules/openapi-generator/src/main/resources/swift5/Validation.mustache @@ -77,11 +77,11 @@ import Foundation /// - Throws: `ValidationError` if the numeric is invalid against the rule. {{#nonPublicApi}}internal{{/nonPublicApi}}{{^nonPublicApi}}public{{/nonPublicApi}} static func validate(_ numeric: T, against rule: NumericRule) throws -> T { var error = ValidationError(kinds: []) - if let minium = rule.minimum { - if !rule.exclusiveMinimum, minium > numeric { + if let minimum = rule.minimum { + if !rule.exclusiveMinimum, minimum > numeric { error.kinds.insert(.minimum) } - if rule.exclusiveMinimum, minium >= numeric { + if rule.exclusiveMinimum, minimum >= numeric { error.kinds.insert(.minimum) } } @@ -109,11 +109,11 @@ import Foundation /// - Throws: `ValidationError` if the numeric is invalid against the rule. {{#nonPublicApi}}internal{{/nonPublicApi}}{{^nonPublicApi}}public{{/nonPublicApi}} static func validate(_ numeric: T, against rule: NumericRule) throws -> T { var error = ValidationError(kinds: []) - if let minium = rule.minimum { - if !rule.exclusiveMinimum, minium > numeric { + if let minimum = rule.minimum { + if !rule.exclusiveMinimum, minimum > numeric { error.kinds.insert(.minimum) } - if rule.exclusiveMinimum, minium >= numeric { + if rule.exclusiveMinimum, minimum >= numeric { error.kinds.insert(.minimum) } } diff --git a/modules/openapi-generator/src/main/resources/swift6/Validation.mustache b/modules/openapi-generator/src/main/resources/swift6/Validation.mustache index 148a5123760d..2a2dab67d0c4 100644 --- a/modules/openapi-generator/src/main/resources/swift6/Validation.mustache +++ b/modules/openapi-generator/src/main/resources/swift6/Validation.mustache @@ -78,11 +78,11 @@ extension NumericRule: Sendable where T: Sendable {} /// - Throws: `ValidationError` if the numeric is invalid against the rule. {{#nonPublicApi}}internal{{/nonPublicApi}}{{^nonPublicApi}}public{{/nonPublicApi}} static func validate(_ numeric: T, against rule: NumericRule) throws -> T { var error = ValidationError(kinds: []) - if let minium = rule.minimum { - if !rule.exclusiveMinimum, minium > numeric { + if let minimum = rule.minimum { + if !rule.exclusiveMinimum, minimum > numeric { error.kinds.insert(.minimum) } - if rule.exclusiveMinimum, minium >= numeric { + if rule.exclusiveMinimum, minimum >= numeric { error.kinds.insert(.minimum) } } @@ -110,11 +110,11 @@ extension NumericRule: Sendable where T: Sendable {} /// - Throws: `ValidationError` if the numeric is invalid against the rule. {{#nonPublicApi}}internal{{/nonPublicApi}}{{^nonPublicApi}}public{{/nonPublicApi}} static func validate(_ numeric: T, against rule: NumericRule) throws -> T { var error = ValidationError(kinds: []) - if let minium = rule.minimum { - if !rule.exclusiveMinimum, minium > numeric { + if let minimum = rule.minimum { + if !rule.exclusiveMinimum, minimum > numeric { error.kinds.insert(.minimum) } - if rule.exclusiveMinimum, minium >= numeric { + if rule.exclusiveMinimum, minimum >= numeric { error.kinds.insert(.minimum) } } diff --git a/modules/openapi-generator/src/main/resources/zapier/authentication.mustache b/modules/openapi-generator/src/main/resources/zapier/authentication.mustache index 8a1bf2e76b5e..7f62337d3c75 100644 --- a/modules/openapi-generator/src/main/resources/zapier/authentication.mustache +++ b/modules/openapi-generator/src/main/resources/zapier/authentication.mustache @@ -1,4 +1,4 @@ module.exports = { - // TODO: authentication logic + // TODO: authentication logic // https://platform.zapier.com/cli_tutorials/getting-started#adding-authentication }; \ No newline at end of file diff --git a/modules/openapi-generator/src/test/java/org/openapitools/codegen/java/helidon/JavaHelidonCommonCodegenPackagePrefixTest.java b/modules/openapi-generator/src/test/java/org/openapitools/codegen/java/helidon/JavaHelidonCommonCodegenPackagePrefixTest.java index f8d50b337dba..17bf3a24b176 100644 --- a/modules/openapi-generator/src/test/java/org/openapitools/codegen/java/helidon/JavaHelidonCommonCodegenPackagePrefixTest.java +++ b/modules/openapi-generator/src/test/java/org/openapitools/codegen/java/helidon/JavaHelidonCommonCodegenPackagePrefixTest.java @@ -192,7 +192,7 @@ private void checkFileForPackagePrefix(List files, return; } - // The SE server generates 'import {{rootJavaEEPackage}}.json.stream.JsonParser;' in POJOs for JSON-B seriolization. + // The SE server generates 'import {{rootJavaEEPackage}}.json.stream.JsonParser;' in POJOs for JSON-B serialization. TestUtils.ensureContainsFile(files, Paths.get(outputDir).toFile(), generatedFilePath(generatorName, libraryName)); TestUtils.assertFileContains(Paths.get(outputDir + "/" + generatedFilePath(generatorName, libraryName)), "import " + expectedPrefix + ".json.stream.JsonParser;"); diff --git a/modules/openapi-generator/src/test/java/org/openapitools/codegen/java/spring/SpringCodegenTest.java b/modules/openapi-generator/src/test/java/org/openapitools/codegen/java/spring/SpringCodegenTest.java index f2d7bd627458..c19c50fd5060 100644 --- a/modules/openapi-generator/src/test/java/org/openapitools/codegen/java/spring/SpringCodegenTest.java +++ b/modules/openapi-generator/src/test/java/org/openapitools/codegen/java/spring/SpringCodegenTest.java @@ -4470,7 +4470,7 @@ public void multiLineTagDescription() throws IOException { Map files = generateFromContract("src/test/resources/3_0/spring/issue12474-multiline-description.yaml", SPRING_BOOT, additionalProperties); JavaFileAssert.assertThat(files.get("PingTagApi.java")) - .fileContains("This is a multine tag : * tag item 1 * tag item 2 "); + .fileContains("This is a multiline tag : * tag item 1 * tag item 2 "); } @Test diff --git a/modules/openapi-generator/src/test/java/org/openapitools/codegen/postgresql/PostgresqlSchemaCodegenTest.java b/modules/openapi-generator/src/test/java/org/openapitools/codegen/postgresql/PostgresqlSchemaCodegenTest.java index e97613dce294..67433dd37b8e 100644 --- a/modules/openapi-generator/src/test/java/org/openapitools/codegen/postgresql/PostgresqlSchemaCodegenTest.java +++ b/modules/openapi-generator/src/test/java/org/openapitools/codegen/postgresql/PostgresqlSchemaCodegenTest.java @@ -204,7 +204,7 @@ public void testIsReservedWord() { "abort", "absent", "access", "action", "admin", "after", "alter", "always", "array", "atomic", "attach", "base64", "before", "begin", "bigint", "binary", "btrim", "cache", "called", "chain", "check", "class", "close", "cobol", "column", "commit", "count", "create", "cross", "cursor", "cycle", "define", "degree", "delete", "depth", "deref", "detach", "domain", "double", "empty", "enable", "equals", "error", "escape", "event", "every", "except", "exists", "false", "family", "fetch", "filter", "final", "finish", "first", "float", "floor", "force", "format", "found", "freeze", "fusion", "global", "grant", "group", "groups", "having", "header", "ignore", "ilike", "import", "indent", "index", "inline", "inner", "inout", "input", "insert", "isnull", "label", "large", "least", "length", "level", "limit", "listen", "local", "locked", "log10", "logged", "lower", "ltrim", "match", "member", "merge", "method", "minute", "module", "month", "mumps", "names", "nchar", "nclob", "nested", "notify", "nowait", "ntile", "nullif", "nulls", "number", "object", "octets", "offset", "option", "order", "others", "outer", "output", "owned", "owner", "parser", "pascal", "period", "plans", "policy", "power", "prior", "prune", "public", "quote", "quotes", "range", "reads", "rename", "reset", "result", "return", "revoke", "right", "rollup", "rtrim", "scalar", "scale", "schema", "scope", "scroll", "search", "second", "select", "server", "setof", "share", "simple", "source", "space", "stable", "start", "state", "static", "stdin", "stdout", "stored", "strict", "string", "strip", "style", "subset", "sysid", "system", "table", "tables", "target", "token", "treat", "types", "under", "union", "unique", "unlink", "unnest", "until", "update", "upper", "usage", "using", "utf16", "utf32", "vacuum" )); ArrayList falseFixture = new ArrayList(Arrays.asList( - "after_nine", "cpu", "delay_key_write", "form", "host", "install", "key_block_size", "max_size", "noo_one", "particle", "quarter", "relay", "first_do", "status", "until_now", "variables" + "after_nine", "cpu", "delay_key_write", "form", "host", "install", "key_block_size", "max_size", "no_one", "particle", "quarter", "relay", "first_do", "status", "until_now", "variables" )); for(String trueValue : trueFixture) { Assert.assertTrue(reservedWords.contains(trueValue), "'" + trueValue + "' isn't PostgreSQL reserved word"); diff --git a/modules/openapi-generator/src/test/java/org/openapitools/codegen/ruby/RubyClientCodegenTest.java b/modules/openapi-generator/src/test/java/org/openapitools/codegen/ruby/RubyClientCodegenTest.java index 07362649ff64..b9c02d1f2552 100644 --- a/modules/openapi-generator/src/test/java/org/openapitools/codegen/ruby/RubyClientCodegenTest.java +++ b/modules/openapi-generator/src/test/java/org/openapitools/codegen/ruby/RubyClientCodegenTest.java @@ -737,7 +737,7 @@ public void testRegularExpressionOpenAPISchemaVersion3() { // Assert.assertEquals(op.allParams.get(6).pattern, "/^[\\pattern\\d{3}$/i"); // alternation_with_forward_slash '/ax$|/bx$' Assert.assertEquals(op.allParams.get(7).pattern, "/ax$|/bx$"); - // patten_starts_ends_with_slash '/root/' + // pattern_starts_ends_with_slash '/root/' Assert.assertEquals(op.allParams.get(8).pattern, "/root/"); } } diff --git a/modules/openapi-generator/src/test/java/org/openapitools/codegen/utils/YamlConfigUtilsTest.java b/modules/openapi-generator/src/test/java/org/openapitools/codegen/utils/YamlConfigUtilsTest.java index e36eac81b80d..a7b8bf9fc7a9 100644 --- a/modules/openapi-generator/src/test/java/org/openapitools/codegen/utils/YamlConfigUtilsTest.java +++ b/modules/openapi-generator/src/test/java/org/openapitools/codegen/utils/YamlConfigUtilsTest.java @@ -18,7 +18,7 @@ public void testLoadConfigAsMap() { YamlConfig firstItem = yamlConfig.get("firstItem"); assertThat(firstItem.getStringConfig()).isEqualTo("Hello"); assertThat(firstItem.getNumberConfig()).isEqualTo(42); - assertThat(firstItem.getObjectConfig().getAttribut()).isEqualTo("openapi"); + assertThat(firstItem.getObjectConfig().getAttribute()).isEqualTo("openapi"); assertThat(firstItem.getArrayConfig()).hasSize(2); assertThat(firstItem.getArrayConfig().get(0)).isEqualTo("one"); assertThat(firstItem.getArrayConfig().get(1)).isEqualTo("two"); @@ -40,6 +40,6 @@ static class YamlConfig { @Data static class ObjectConfig { - private String attribut; + private String attribute; } } \ No newline at end of file diff --git a/modules/openapi-generator/src/test/resources/2_0/c/petstore.yaml b/modules/openapi-generator/src/test/resources/2_0/c/petstore.yaml index d8d01947081c..83a794103e08 100644 --- a/modules/openapi-generator/src/test/resources/2_0/c/petstore.yaml +++ b/modules/openapi-generator/src/test/resources/2_0/c/petstore.yaml @@ -898,7 +898,7 @@ definitions: type: string format: uuid default: 1111-2222-3333-4444 - model_with_set_propertes: + model_with_set_properties: description: to test set properties type: object properties: diff --git a/modules/openapi-generator/src/test/resources/3_0/csharp/dates-api.yaml b/modules/openapi-generator/src/test/resources/3_0/csharp/dates-api.yaml index 34fd6fa65d71..7cbd93918b6b 100644 --- a/modules/openapi-generator/src/test/resources/3_0/csharp/dates-api.yaml +++ b/modules/openapi-generator/src/test/resources/3_0/csharp/dates-api.yaml @@ -2,7 +2,7 @@ openapi: 3.0.0 info: title: OpenAPI Dates version: 1.0.0 - description: Thic spec contains endpoints with dates in different formats + description: This spec contains endpoints with dates in different formats license: name: Apache-2.0 url: 'https://www.apache.org/licenses/LICENSE-2.0.html' diff --git a/modules/openapi-generator/src/test/resources/3_0/issue_1517.yaml b/modules/openapi-generator/src/test/resources/3_0/issue_1517.yaml index 102fd68000e9..75e018408392 100644 --- a/modules/openapi-generator/src/test/resources/3_0/issue_1517.yaml +++ b/modules/openapi-generator/src/test/resources/3_0/issue_1517.yaml @@ -55,7 +55,7 @@ paths: schema: type: string pattern: '/ax$|/bx$' - - name: patten_starts_ends_with_slash + - name: pattern_starts_ends_with_slash in: header schema: type: string diff --git a/modules/openapi-generator/src/test/resources/3_0/issue_15511.yaml b/modules/openapi-generator/src/test/resources/3_0/issue_15511.yaml index 51280fd9306d..0be9bee53ab6 100644 --- a/modules/openapi-generator/src/test/resources/3_0/issue_15511.yaml +++ b/modules/openapi-generator/src/test/resources/3_0/issue_15511.yaml @@ -32,7 +32,7 @@ paths: - $ref: '#/components/schemas/LoginResponseModel' - $ref: '#/components/schemas/TokenRefreshResponseModel' default: - description: An error occured + description: An error occurred content: application/json: schema: @@ -55,7 +55,7 @@ components: [expires_in, access_token, refresh_token] TokenRefreshResponseModel: type: object - description: Be aware, that we may either receive a new refresh token in the response or not. In case where we do not receive a new refresh token we must use the refresh token from the old token for subsequent token refreshs. + description: Be aware, that we may either receive a new refresh token in the response or not. In case where we do not receive a new refresh token we must use the refresh token from the old token for subsequent token refreshes. properties: expires_in: type: integer diff --git a/modules/openapi-generator/src/test/resources/3_0/issue_6726.yaml b/modules/openapi-generator/src/test/resources/3_0/issue_6726.yaml index 68304012d533..f2abdd511007 100644 --- a/modules/openapi-generator/src/test/resources/3_0/issue_6726.yaml +++ b/modules/openapi-generator/src/test/resources/3_0/issue_6726.yaml @@ -3046,7 +3046,7 @@ paths: '/api/v1/videos/{id}/stats/timeseries/{metric}': get: - summary: Get timeserie stats of a video + summary: Get timeseries stats of a video tags: - Video Stats security: @@ -3081,7 +3081,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VideoStatsTimeserie' + $ref: '#/components/schemas/VideoStatsTimeseries' /api/v1/videos/upload: post: @@ -5036,7 +5036,7 @@ paths: - $ref: '#/components/parameters/name' - name: withStats in: query - description: include daily view statistics for the last 30 days and total views (only if authentified as the account user) + description: include daily view statistics for the last 30 days and total views (only if authenticated as the account user) schema: type: boolean - $ref: '#/components/parameters/start' @@ -8317,7 +8317,7 @@ components: retentionPercent: type: number - VideoStatsTimeserie: + VideoStatsTimeseries: properties: data: type: array diff --git a/modules/openapi-generator/src/test/resources/3_0/issues-anytype-object-set-petstore-everything.yaml b/modules/openapi-generator/src/test/resources/3_0/issues-anytype-object-set-petstore-everything.yaml index da9323c15127..eb5bab3f0cbb 100644 --- a/modules/openapi-generator/src/test/resources/3_0/issues-anytype-object-set-petstore-everything.yaml +++ b/modules/openapi-generator/src/test/resources/3_0/issues-anytype-object-set-petstore-everything.yaml @@ -763,9 +763,9 @@ components: - pending - sold - # ----------------------------------------------------------------------- - # Properties that dedicate this configuration to some issues or checkings - # ----------------------------------------------------------------------- + # ---------------------------------------------------------------------- + # Properties that dedicate this configuration to some issues or checkins + # ---------------------------------------------------------------------- # https://github.com/OpenAPITools/openapi-generator/issues/2769 # object property (leading to Object.h) diff --git a/modules/openapi-generator/src/test/resources/3_0/java/petstore-with-fake-endpoints-models-for-testing-okhttp-gson.yaml b/modules/openapi-generator/src/test/resources/3_0/java/petstore-with-fake-endpoints-models-for-testing-okhttp-gson.yaml index fa56ab5043cf..8af81b6c6ab4 100644 --- a/modules/openapi-generator/src/test/resources/3_0/java/petstore-with-fake-endpoints-models-for-testing-okhttp-gson.yaml +++ b/modules/openapi-generator/src/test/resources/3_0/java/petstore-with-fake-endpoints-models-for-testing-okhttp-gson.yaml @@ -2706,7 +2706,7 @@ components: type: string type_: type: string - InteralOnly: + InternalOnly: type: object x-internal: true properties: diff --git a/modules/openapi-generator/src/test/resources/3_0/jetbrains/CheckoutService-v71.yaml b/modules/openapi-generator/src/test/resources/3_0/jetbrains/CheckoutService-v71.yaml index 4377a5707dc9..3bd984f188c8 100644 --- a/modules/openapi-generator/src/test/resources/3_0/jetbrains/CheckoutService-v71.yaml +++ b/modules/openapi-generator/src/test/resources/3_0/jetbrains/CheckoutService-v71.yaml @@ -2362,7 +2362,7 @@ components: properties: chAccAgeInd: description: "Length of time that the cardholder has had the account with\ - \ the 3DS Requestor. \nAllowed values:\n* **01** \u2014 No account\n*\ + \ the 3DS Requester. \nAllowed values:\n* **01** \u2014 No account\n*\ \ **02** \u2014 Created during this transaction\n* **03** \u2014 Less\ \ than 30 days\n* **04** \u2014 30\u201360 days\n* **05** \u2014 More\ \ than 60 days" @@ -2376,13 +2376,13 @@ components: minLength: 2 type: string chAccChange: - description: "Date that the cardholder\u2019s account with the 3DS Requestor\ + description: "Date that the cardholder\u2019s account with the 3DS Requester\ \ was last changed, including Billing or Shipping address, new payment\ \ account, or new user(s) added. \nFormat: **YYYYMMDD**" type: string chAccChangeInd: description: "Length of time since the cardholder\u2019s account information\ - \ with the 3DS Requestor was last changed, including Billing or Shipping\ + \ with the 3DS Requester was last changed, including Billing or Shipping\ \ address, new payment account, or new user(s) added. \nAllowed values:\n\ * **01** \u2014 Changed during this transaction\n* **02** \u2014 Less\ \ than 30 days\n* **03** \u2014 30\u201360 days\n* **04** \u2014 More\ @@ -2396,12 +2396,12 @@ components: minLength: 2 type: string chAccPwChange: - description: "Date that cardholder\u2019s account with the 3DS Requestor\ + description: "Date that cardholder\u2019s account with the 3DS Requester\ \ had a password change or account reset. \nFormat: **YYYYMMDD**" type: string chAccPwChangeInd: description: "Indicates the length of time since the cardholder\u2019s account\ - \ with the 3DS Requestor had a password change or account reset. \nAllowed\ + \ with the 3DS Requester had a password change or account reset. \nAllowed\ \ values:\n* **01** \u2014 No change\n* **02** \u2014 Changed during this\ \ transaction\n* **03** \u2014 Less than 30 days\n* **04** \u2014 30\u2013\ 60 days\n* **05** \u2014 More than 60 days" @@ -2415,7 +2415,7 @@ components: minLength: 2 type: string chAccString: - description: "Date that the cardholder opened the account with the 3DS Requestor.\ + description: "Date that the cardholder opened the account with the 3DS Requester.\ \ \nFormat: **YYYYMMDD**" type: string nbPurchaseAccount: @@ -2424,11 +2424,11 @@ components: type: string paymentAccAge: description: "String that the payment account was enrolled in the cardholder\u2019\ - s account with the 3DS Requestor. \nFormat: **YYYYMMDD**" + s account with the 3DS Requester. \nFormat: **YYYYMMDD**" type: string paymentAccInd: description: "Indicates the length of time that the payment account was\ - \ enrolled in the cardholder\u2019s account with the 3DS Requestor. \n\ + \ enrolled in the cardholder\u2019s account with the 3DS Requester. \n\ Allowed values:\n* **01** \u2014 No account (guest checkout)\n* **02**\ \ \u2014 During this transaction\n* **03** \u2014 Less than 30 days\n\ * **04** \u2014 30\u201360 days\n* **05** \u2014 More than 60 days" @@ -2447,11 +2447,11 @@ components: type: string shipAddressUsage: description: "String when the shipping address used for this transaction\ - \ was first used with the 3DS Requestor. \nFormat: **YYYYMMDD**" + \ was first used with the 3DS Requester. \nFormat: **YYYYMMDD**" type: string shipAddressUsageInd: description: "Indicates when the shipping address used for this transaction\ - \ was first used with the 3DS Requestor. \nAllowed values:\n* **01** \u2014\ + \ was first used with the 3DS Requester. \nAllowed values:\n* **01** \u2014\ \ This transaction\n* **02** \u2014 Less than 30 days\n* **03** \u2014\ \ 30\u201360 days\n* **04** \u2014 More than 60 days" enum: @@ -2474,7 +2474,7 @@ components: minLength: 2 type: string suspiciousAccActivity: - description: "Indicates whether the 3DS Requestor has experienced suspicious\ + description: "Indicates whether the 3DS Requester has experienced suspicious\ \ activity (including previous fraud) on the cardholder account. \nAllowed\ \ values:\n* **01** \u2014 No suspicious activity has been observed\n\ * **02** \u2014 Suspicious activity has been observed" @@ -2486,13 +2486,13 @@ components: type: string txnActivityDay: description: 'Number of transactions (successful and abandoned) for this - cardholder account with the 3DS Requestor across all payment accounts + cardholder account with the 3DS Requester across all payment accounts in the previous 24 hours. Max length: 3 characters.' maxLength: 3 type: string txnActivityYear: description: 'Number of transactions (successful and abandoned) for this - cardholder account with the 3DS Requestor across all payment accounts + cardholder account with the 3DS Requester across all payment accounts in the previous year. Max length: 3 characters.' maxLength: 3 type: string @@ -7521,7 +7521,7 @@ components: description: The address where to send the invoice. $ref: '#/components/schemas/Address' paymentMethod: - description: the used paymentMetohd + description: the used paymentMethod $ref: '#/components/schemas/CardDetails' shopperEmail: description: the email address of the person @@ -7556,7 +7556,7 @@ components: description: indicates where the money is going type: string walletOwnerTaxId: - description: indicates the tax identifier of the fund recepient + description: indicates the tax identifier of the fund recipient type: string type: object GenericIssuerPaymentMethodDetails: @@ -11792,7 +11792,7 @@ components: * PREPAID_NONRELOADABLE - * DEFFERED_DEBIT + * DEFERRED_DEBIT > This functionality requires additional configuration on Adyen''s end. @@ -12876,7 +12876,7 @@ components: acctInfo: x-addedInVersion: '68' description: "Additional information about the Cardholder\u2019s account\ - \ provided by the 3DS Requestor." + \ provided by the 3DS Requester." $ref: '#/components/schemas/AcctInfo' acctType: x-addedInVersion: '68' @@ -12926,7 +12926,7 @@ components: challengeIndicator: deprecated: true x-deprecatedInVersion: '68' - x-deprecatedMessage: Use `threeDSRequestorChallengeInd` instead. + x-deprecatedMessage: Use `threeDSRequesterChallengeInd` instead. description: 'Possibility to specify a preference for receiving a challenge from the issuer. @@ -13083,20 +13083,20 @@ components: threeDSCompInd: description: Completion indicator for the device fingerprinting. type: string - threeDSRequestorAuthenticationInd: + threeDSRequesterAuthenticationInd: x-addedInVersion: '68' description: Indicates the type of Authentication request. type: string - threeDSRequestorAuthenticationInfo: + threeDSRequesterAuthenticationInfo: x-addedInVersion: '68' - description: Information about how the 3DS Requestor authenticated the cardholder + description: Information about how the 3DS Requester authenticated the cardholder before or during the transaction - $ref: '#/components/schemas/ThreeDSRequestorAuthenticationInfo' - threeDSRequestorChallengeInd: + $ref: '#/components/schemas/ThreeDSRequesterAuthenticationInfo' + threeDSRequesterChallengeInd: x-addedInVersion: '68' description: "Indicates whether a challenge is requested for this transaction.\ \ Possible values:\n* **01** \u2014 No preference\n* **02** \u2014 No\ - \ challenge requested\n* **03** \u2014 Challenge requested (3DS Requestor\ + \ challenge requested\n* **03** \u2014 Challenge requested (3DS Requester\ \ preference)\n* **04** \u2014 Challenge requested (Mandate)\n* **05**\ \ \u2014 No challenge (transactional risk analysis is already performed)\n\ * **06** \u2014 Data Only" @@ -13108,22 +13108,22 @@ components: - '05' - '06' type: string - threeDSRequestorID: + threeDSRequesterID: description: Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only) - for Visa. Unique 3D Secure requestor identifier assigned by the Directory + for Visa. Unique 3D Secure requester identifier assigned by the Directory Server when you enrol for 3D Secure 2. type: string - threeDSRequestorName: + threeDSRequesterName: description: Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only) - for Visa. Unique 3D Secure requestor name assigned by the Directory Server + for Visa. Unique 3D Secure requester name assigned by the Directory Server when you enrol for 3D Secure 2. type: string - threeDSRequestorPriorAuthenticationInfo: + threeDSRequesterPriorAuthenticationInfo: x-addedInVersion: '68' - description: Information about how the 3DS Requestor authenticated the cardholder + description: Information about how the 3DS Requester authenticated the cardholder as part of a previous 3DS transaction. - $ref: '#/components/schemas/ThreeDSRequestorPriorAuthenticationInfo' - threeDSRequestorURL: + $ref: '#/components/schemas/ThreeDSRequesterPriorAuthenticationInfo' + threeDSRequesterURL: description: URL of the (customer service) website that will be shown to the shopper in case of technical errors during the 3D Secure 2 process. type: string @@ -13170,7 +13170,7 @@ components: acctInfo: x-addedInVersion: '68' description: "Additional information about the Cardholder\u2019s account\ - \ provided by the 3DS Requestor." + \ provided by the 3DS Requester." $ref: '#/components/schemas/AcctInfo' acctType: x-addedInVersion: '68' @@ -13220,7 +13220,7 @@ components: challengeIndicator: deprecated: true x-deprecatedInVersion: '68' - x-deprecatedMessage: Use `threeDSRequestorChallengeInd` instead. + x-deprecatedMessage: Use `threeDSRequesterChallengeInd` instead. description: 'Possibility to specify a preference for receiving a challenge from the issuer. @@ -13350,20 +13350,20 @@ components: threeDSCompInd: description: Completion indicator for the device fingerprinting. type: string - threeDSRequestorAuthenticationInd: + threeDSRequesterAuthenticationInd: x-addedInVersion: '68' description: Indicates the type of Authentication request. type: string - threeDSRequestorAuthenticationInfo: + threeDSRequesterAuthenticationInfo: x-addedInVersion: '68' - description: Information about how the 3DS Requestor authenticated the cardholder + description: Information about how the 3DS Requester authenticated the cardholder before or during the transaction - $ref: '#/components/schemas/ThreeDSRequestorAuthenticationInfo' - threeDSRequestorChallengeInd: + $ref: '#/components/schemas/ThreeDSRequesterAuthenticationInfo' + threeDSRequesterChallengeInd: x-addedInVersion: '68' description: "Indicates whether a challenge is requested for this transaction.\ \ Possible values:\n* **01** \u2014 No preference\n* **02** \u2014 No\ - \ challenge requested\n* **03** \u2014 Challenge requested (3DS Requestor\ + \ challenge requested\n* **03** \u2014 Challenge requested (3DS Requester\ \ preference)\n* **04** \u2014 Challenge requested (Mandate)\n* **05**\ \ \u2014 No challenge (transactional risk analysis is already performed)\n\ * **06** \u2014 Data Only" @@ -13375,22 +13375,22 @@ components: - '05' - '06' type: string - threeDSRequestorID: + threeDSRequesterID: description: Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only) - for Visa. Unique 3D Secure requestor identifier assigned by the Directory + for Visa. Unique 3D Secure requester identifier assigned by the Directory Server when you enrol for 3D Secure 2. type: string - threeDSRequestorName: + threeDSRequesterName: description: Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only) - for Visa. Unique 3D Secure requestor name assigned by the Directory Server + for Visa. Unique 3D Secure requester name assigned by the Directory Server when you enrol for 3D Secure 2. type: string - threeDSRequestorPriorAuthenticationInfo: + threeDSRequesterPriorAuthenticationInfo: x-addedInVersion: '68' - description: Information about how the 3DS Requestor authenticated the cardholder + description: Information about how the 3DS Requester authenticated the cardholder as part of a previous 3DS transaction. - $ref: '#/components/schemas/ThreeDSRequestorPriorAuthenticationInfo' - threeDSRequestorURL: + $ref: '#/components/schemas/ThreeDSRequesterPriorAuthenticationInfo' + threeDSRequesterURL: description: URL of the (customer service) website that will be shown to the shopper in case of technical errors during the 3D Secure 2 process. type: string @@ -13533,11 +13533,11 @@ components: description: Risk score calculated by Cartes Bancaires Directory Server (DS). type: string - threeDSRequestorChallengeInd: + threeDSRequesterChallengeInd: x-addedInVersion: '68' description: "Indicates whether a challenge is requested for this transaction.\ \ Possible values:\n* **01** \u2014 No preference\n* **02** \u2014 No\ - \ challenge requested\n* **03** \u2014 Challenge requested (3DS Requestor\ + \ challenge requested\n* **03** \u2014 Challenge requested (3DS Requester\ \ preference)\n* **04** \u2014 Challenge requested (Mandate)\n* **05**\ \ \u2014 No challenge (transactional risk analysis is already performed)\n\ * **06** \u2014 Data Only" @@ -13618,7 +13618,7 @@ components: - 2.2.0 type: string type: object - ThreeDSRequestorAuthenticationInfo: + ThreeDSRequesterAuthenticationInfo: properties: threeDSReqAuthData: description: 'Data that documents and supports a specific authentication @@ -13626,15 +13626,15 @@ components: type: string threeDSReqAuthMethod: description: "Mechanism used by the Cardholder to authenticate to the 3DS\ - \ Requestor. Allowed values:\n* **01** \u2014 No 3DS Requestor authentication\ + \ Requester. Allowed values:\n* **01** \u2014 No 3DS Requester authentication\ \ occurred (for example, cardholder \u201Clogged in\u201D as guest).\n\ - * **02** \u2014 Login to the cardholder account at the 3DS Requestor system\ - \ using 3DS Requestor\u2019s own credentials.\n* **03** \u2014 Login to\ - \ the cardholder account at the 3DS Requestor system using federated ID.\n\ - * **04** \u2014 Login to the cardholder account at the 3DS Requestor system\ + * **02** \u2014 Login to the cardholder account at the 3DS Requester system\ + \ using 3DS Requester\u2019s own credentials.\n* **03** \u2014 Login to\ + \ the cardholder account at the 3DS Requester system using federated ID.\n\ + * **04** \u2014 Login to the cardholder account at the 3DS Requester system\ \ using issuer credentials.\n* **05** \u2014 Login to the cardholder account\ - \ at the 3DS Requestor system using third-party authentication.\n* **06**\ - \ \u2014 Login to the cardholder account at the 3DS Requestor system using\ + \ at the 3DS Requester system using third-party authentication.\n* **06**\ + \ \u2014 Login to the cardholder account at the 3DS Requester system using\ \ FIDO Authenticator." enum: - '01' @@ -13653,7 +13653,7 @@ components: minLength: 12 type: string type: object - ThreeDSRequestorPriorAuthenticationInfo: + ThreeDSRequesterPriorAuthenticationInfo: properties: threeDSReqPriorAuthData: description: 'Data that documents and supports a specific authentication @@ -13661,7 +13661,7 @@ components: type: string threeDSReqPriorAuthMethod: description: "Mechanism used by the Cardholder to previously authenticate\ - \ to the 3DS Requestor. Allowed values:\n* **01** \u2014 Frictionless\ + \ to the 3DS Requester. Allowed values:\n* **01** \u2014 Frictionless\ \ authentication occurred by ACS.\n* **02** \u2014 Cardholder challenge\ \ occurred by ACS.\n* **03** \u2014 AVS verified.\n* **04** \u2014 Other\ \ issuer methods." diff --git a/modules/openapi-generator/src/test/resources/3_0/jetbrains/ManagementService-v3.json b/modules/openapi-generator/src/test/resources/3_0/jetbrains/ManagementService-v3.json index 74b530588bdb..aed17d1fe60b 100644 --- a/modules/openapi-generator/src/test/resources/3_0/jetbrains/ManagementService-v3.json +++ b/modules/openapi-generator/src/test/resources/3_0/jetbrains/ManagementService-v3.json @@ -660,7 +660,7 @@ "Android files - company level" ], "summary" : "Get a list of Android certificates", - "description" : "Returns a list of the Android certificates that are available for the company identified in the path.\nTypically, these certificates enable running apps on Android payment terminals. The certifcates in the list have been uploaded to Adyen and can be installed or uninstalled on Android terminals through [terminal actions](https://docs.adyen.com/point-of-sale/automating-terminal-management/terminal-actions-api).\n\nTo make this request, your API credential must have one of the following [roles](https://docs.adyen.com/development-resources/api-credentials#api-permissions):\n* Management API—Android files read\n* Management API—Android files read and write\n* Management API—Terminal actions read\n* Management API—Terminal actions read and write", + "description" : "Returns a list of the Android certificates that are available for the company identified in the path.\nTypically, these certificates enable running apps on Android payment terminals. The certificates in the list have been uploaded to Adyen and can be installed or uninstalled on Android terminals through [terminal actions](https://docs.adyen.com/point-of-sale/automating-terminal-management/terminal-actions-api).\n\nTo make this request, your API credential must have one of the following [roles](https://docs.adyen.com/development-resources/api-credentials#api-permissions):\n* Management API—Android files read\n* Management API—Android files read and write\n* Management API—Terminal actions read\n* Management API—Terminal actions read and write", "operationId" : "get-companies-companyId-androidCertificates", "x-sortIndex" : 2, "x-methodName" : "listAndroidCertificates", @@ -15247,7 +15247,7 @@ "AdditionalSettings" : { "properties" : { "includeEventCodes" : { - "description" : "Object containing list of event codes for which the notifcation will be sent. ", + "description" : "Object containing list of event codes for which the notification will be sent. ", "items" : { "type" : "string" }, @@ -15266,14 +15266,14 @@ "AdditionalSettingsResponse" : { "properties" : { "excludeEventCodes" : { - "description" : "Object containing list of event codes for which the notifcation will not be sent. ", + "description" : "Object containing list of event codes for which the notification will not be sent. ", "items" : { "type" : "string" }, "type" : "array" }, "includeEventCodes" : { - "description" : "Object containing list of event codes for which the notifcation will be sent. ", + "description" : "Object containing list of event codes for which the notification will be sent. ", "items" : { "type" : "string" }, @@ -16722,7 +16722,7 @@ "type" : "string" }, "reason" : { - "description" : "A descripton of what caused the notification.", + "description" : "A description of what caused the notification.", "type" : "string" }, "success" : { @@ -25952,7 +25952,7 @@ }, "patch-merchants-merchantId-stores-storeId-patch-stores-splitConfiguration-200" : { "summary" : "Split configuration added to store", - "description" : "Example response after adding a split confuguration to the store", + "description" : "Example response after adding a split configuration to the store", "value" : { "id" : "YOUR_STORE_ID", "address" : { diff --git a/modules/openapi-generator/src/test/resources/3_0/jetbrains/MgmtApi.json b/modules/openapi-generator/src/test/resources/3_0/jetbrains/MgmtApi.json index 3b8a3c9e03fa..c0d013bf87e4 100644 --- a/modules/openapi-generator/src/test/resources/3_0/jetbrains/MgmtApi.json +++ b/modules/openapi-generator/src/test/resources/3_0/jetbrains/MgmtApi.json @@ -686,7 +686,7 @@ "Android files - company level" ], "summary" : "Get a list of Android certificates", - "description" : "Returns a list of the Android certificates that are available for the company identified in the path.\nTypically, these certificates enable running apps on Android payment terminals. The certifcates in the list have been uploaded to Adyen and can be installed or uninstalled on Android terminals through [terminal actions](https://docs.adyen.com/point-of-sale/automating-terminal-management/terminal-actions-api).\n\nTo make this request, your API credential must have one of the following [roles](https://docs.adyen.com/development-resources/api-credentials#api-permissions):\n* Management API—Android files read\n* Management API—Android files read and write\n* Management API—Terminal actions read\n* Management API—Terminal actions read and write", + "description" : "Returns a list of the Android certificates that are available for the company identified in the path.\nTypically, these certificates enable running apps on Android payment terminals. The certificates in the list have been uploaded to Adyen and can be installed or uninstalled on Android terminals through [terminal actions](https://docs.adyen.com/point-of-sale/automating-terminal-management/terminal-actions-api).\n\nTo make this request, your API credential must have one of the following [roles](https://docs.adyen.com/development-resources/api-credentials#api-permissions):\n* Management API—Android files read\n* Management API—Android files read and write\n* Management API—Terminal actions read\n* Management API—Terminal actions read and write", "operationId" : "get-companies-companyId-androidCertificates", "x-groupName" : "Android files - company level", "x-sortIndex" : 2, @@ -15344,7 +15344,7 @@ "AdditionalSettings" : { "properties" : { "includeEventCodes" : { - "description" : "Object containing list of event codes for which the notifcation will be sent. ", + "description" : "Object containing list of event codes for which the notification will be sent. ", "items" : { "type" : "string" }, @@ -15363,14 +15363,14 @@ "AdditionalSettingsResponse" : { "properties" : { "excludeEventCodes" : { - "description" : "Object containing list of event codes for which the notifcation will not be sent. ", + "description" : "Object containing list of event codes for which the notification will not be sent. ", "items" : { "type" : "string" }, "type" : "array" }, "includeEventCodes" : { - "description" : "Object containing list of event codes for which the notifcation will be sent. ", + "description" : "Object containing list of event codes for which the notification will be sent. ", "items" : { "type" : "string" }, @@ -16812,7 +16812,7 @@ "type" : "string" }, "reason" : { - "description" : "A descripton of what caused the notification.", + "description" : "A description of what caused the notification.", "type" : "string" }, "success" : { @@ -25942,7 +25942,7 @@ }, "patch-merchants-merchantId-stores-storeId-patch-stores-splitConfiguration-200" : { "summary" : "Split configuration added to store", - "description" : "Example response after adding a split confuguration to the store", + "description" : "Example response after adding a split configuration to the store", "value" : { "id" : "YOUR_STORE_ID", "address" : { diff --git a/modules/openapi-generator/src/test/resources/3_0/jetbrains/environmentgeneration/CustomHeaders.yaml b/modules/openapi-generator/src/test/resources/3_0/jetbrains/environmentgeneration/CustomHeaders.yaml index f0782835b284..707db7a5c4f3 100644 --- a/modules/openapi-generator/src/test/resources/3_0/jetbrains/environmentgeneration/CustomHeaders.yaml +++ b/modules/openapi-generator/src/test/resources/3_0/jetbrains/environmentgeneration/CustomHeaders.yaml @@ -282,7 +282,7 @@ components: type: object properties: time: - description: Game time in seconds the event ocurred + description: Game time in seconds the event occurred type: integer event: description: Event that occurred @@ -323,7 +323,7 @@ components: description: Gold Per Minute obtained by this player type: integer gold_reasons: - description: Object containing information on how the player gainined gold over the course of the match + description: Object containing information on how the player gained gold over the course of the match type: object gold_spent: description: How much gold the player spent @@ -641,7 +641,7 @@ components: description: Object with information on when the player last purchased an item type: object first_purchase_time: - description: Object with information on when the player first puchased an item + description: Object with information on when the player first purchased an item type: object item_win: description: Object with information on whether or not the item won @@ -1550,7 +1550,7 @@ components: description: ranks type: object properties: - commmand: + command: description: command type: string rowCount: @@ -1615,7 +1615,7 @@ components: description: mmr type: object properties: - commmand: + command: description: command type: string rowCount: @@ -1680,7 +1680,7 @@ components: description: country_mmr type: object properties: - commmand: + command: description: command type: string rowCount: @@ -2174,7 +2174,7 @@ components: description: The number of games where this scenario occurred type: string wins: - description: The number of games won where this scenario occured + description: The number of games won where this scenario occurred type: string SchemaResponse: title: SchemaResponse diff --git a/modules/openapi-generator/src/test/resources/3_0/jetbrains/environmentgeneration/CustomVariable.yaml b/modules/openapi-generator/src/test/resources/3_0/jetbrains/environmentgeneration/CustomVariable.yaml index f0782835b284..707db7a5c4f3 100644 --- a/modules/openapi-generator/src/test/resources/3_0/jetbrains/environmentgeneration/CustomVariable.yaml +++ b/modules/openapi-generator/src/test/resources/3_0/jetbrains/environmentgeneration/CustomVariable.yaml @@ -282,7 +282,7 @@ components: type: object properties: time: - description: Game time in seconds the event ocurred + description: Game time in seconds the event occurred type: integer event: description: Event that occurred @@ -323,7 +323,7 @@ components: description: Gold Per Minute obtained by this player type: integer gold_reasons: - description: Object containing information on how the player gainined gold over the course of the match + description: Object containing information on how the player gained gold over the course of the match type: object gold_spent: description: How much gold the player spent @@ -641,7 +641,7 @@ components: description: Object with information on when the player last purchased an item type: object first_purchase_time: - description: Object with information on when the player first puchased an item + description: Object with information on when the player first purchased an item type: object item_win: description: Object with information on whether or not the item won @@ -1550,7 +1550,7 @@ components: description: ranks type: object properties: - commmand: + command: description: command type: string rowCount: @@ -1615,7 +1615,7 @@ components: description: mmr type: object properties: - commmand: + command: description: command type: string rowCount: @@ -1680,7 +1680,7 @@ components: description: country_mmr type: object properties: - commmand: + command: description: command type: string rowCount: @@ -2174,7 +2174,7 @@ components: description: The number of games where this scenario occurred type: string wins: - description: The number of games won where this scenario occured + description: The number of games won where this scenario occurred type: string SchemaResponse: title: SchemaResponse diff --git a/modules/openapi-generator/src/test/resources/3_0/jetbrains/environmentgeneration/Header.yaml b/modules/openapi-generator/src/test/resources/3_0/jetbrains/environmentgeneration/Header.yaml index 2ea26dbfa4e6..41ac23068da7 100644 --- a/modules/openapi-generator/src/test/resources/3_0/jetbrains/environmentgeneration/Header.yaml +++ b/modules/openapi-generator/src/test/resources/3_0/jetbrains/environmentgeneration/Header.yaml @@ -282,7 +282,7 @@ components: type: object properties: time: - description: Game time in seconds the event ocurred + description: Game time in seconds the event occurred type: integer event: description: Event that occurred @@ -323,7 +323,7 @@ components: description: Gold Per Minute obtained by this player type: integer gold_reasons: - description: Object containing information on how the player gainined gold over the course of the match + description: Object containing information on how the player gained gold over the course of the match type: object gold_spent: description: How much gold the player spent @@ -641,7 +641,7 @@ components: description: Object with information on when the player last purchased an item type: object first_purchase_time: - description: Object with information on when the player first puchased an item + description: Object with information on when the player first purchased an item type: object item_win: description: Object with information on whether or not the item won @@ -1550,7 +1550,7 @@ components: description: ranks type: object properties: - commmand: + command: description: command type: string rowCount: @@ -1615,7 +1615,7 @@ components: description: mmr type: object properties: - commmand: + command: description: command type: string rowCount: @@ -1680,7 +1680,7 @@ components: description: country_mmr type: object properties: - commmand: + command: description: command type: string rowCount: @@ -2174,7 +2174,7 @@ components: description: The number of games where this scenario occurred type: string wins: - description: The number of games won where this scenario occured + description: The number of games won where this scenario occurred type: string SchemaResponse: title: SchemaResponse diff --git a/modules/openapi-generator/src/test/resources/3_0/jetbrains/environmentgeneration/Path.yaml b/modules/openapi-generator/src/test/resources/3_0/jetbrains/environmentgeneration/Path.yaml index 479bc3c1a624..7249c2ad49e9 100644 --- a/modules/openapi-generator/src/test/resources/3_0/jetbrains/environmentgeneration/Path.yaml +++ b/modules/openapi-generator/src/test/resources/3_0/jetbrains/environmentgeneration/Path.yaml @@ -282,7 +282,7 @@ components: type: object properties: time: - description: Game time in seconds the event ocurred + description: Game time in seconds the event occurred type: integer event: description: Event that occurred @@ -323,7 +323,7 @@ components: description: Gold Per Minute obtained by this player type: integer gold_reasons: - description: Object containing information on how the player gainined gold over the course of the match + description: Object containing information on how the player gained gold over the course of the match type: object gold_spent: description: How much gold the player spent @@ -641,7 +641,7 @@ components: description: Object with information on when the player last purchased an item type: object first_purchase_time: - description: Object with information on when the player first puchased an item + description: Object with information on when the player first purchased an item type: object item_win: description: Object with information on whether or not the item won @@ -1550,7 +1550,7 @@ components: description: ranks type: object properties: - commmand: + command: description: command type: string rowCount: @@ -1615,7 +1615,7 @@ components: description: mmr type: object properties: - commmand: + command: description: command type: string rowCount: @@ -1680,7 +1680,7 @@ components: description: country_mmr type: object properties: - commmand: + command: description: command type: string rowCount: @@ -2174,7 +2174,7 @@ components: description: The number of games where this scenario occurred type: string wins: - description: The number of games won where this scenario occured + description: The number of games won where this scenario occurred type: string SchemaResponse: title: SchemaResponse diff --git a/modules/openapi-generator/src/test/resources/3_0/jetbrains/environmentgeneration/QueryParam.yaml b/modules/openapi-generator/src/test/resources/3_0/jetbrains/environmentgeneration/QueryParam.yaml index 05a4d2fa6a52..fb92d4f39b90 100644 --- a/modules/openapi-generator/src/test/resources/3_0/jetbrains/environmentgeneration/QueryParam.yaml +++ b/modules/openapi-generator/src/test/resources/3_0/jetbrains/environmentgeneration/QueryParam.yaml @@ -282,7 +282,7 @@ components: type: object properties: time: - description: Game time in seconds the event ocurred + description: Game time in seconds the event occurred type: integer event: description: Event that occurred @@ -323,7 +323,7 @@ components: description: Gold Per Minute obtained by this player type: integer gold_reasons: - description: Object containing information on how the player gainined gold over the course of the match + description: Object containing information on how the player gained gold over the course of the match type: object gold_spent: description: How much gold the player spent @@ -641,7 +641,7 @@ components: description: Object with information on when the player last purchased an item type: object first_purchase_time: - description: Object with information on when the player first puchased an item + description: Object with information on when the player first purchased an item type: object item_win: description: Object with information on whether or not the item won @@ -1550,7 +1550,7 @@ components: description: ranks type: object properties: - commmand: + command: description: command type: string rowCount: @@ -1615,7 +1615,7 @@ components: description: mmr type: object properties: - commmand: + command: description: command type: string rowCount: @@ -1680,7 +1680,7 @@ components: description: country_mmr type: object properties: - commmand: + command: description: command type: string rowCount: @@ -2174,7 +2174,7 @@ components: description: The number of games where this scenario occurred type: string wins: - description: The number of games won where this scenario occured + description: The number of games won where this scenario occurred type: string SchemaResponse: title: SchemaResponse diff --git a/modules/openapi-generator/src/test/resources/3_0/jetbrains/environmentgeneration/Simple.yaml b/modules/openapi-generator/src/test/resources/3_0/jetbrains/environmentgeneration/Simple.yaml index f0782835b284..707db7a5c4f3 100644 --- a/modules/openapi-generator/src/test/resources/3_0/jetbrains/environmentgeneration/Simple.yaml +++ b/modules/openapi-generator/src/test/resources/3_0/jetbrains/environmentgeneration/Simple.yaml @@ -282,7 +282,7 @@ components: type: object properties: time: - description: Game time in seconds the event ocurred + description: Game time in seconds the event occurred type: integer event: description: Event that occurred @@ -323,7 +323,7 @@ components: description: Gold Per Minute obtained by this player type: integer gold_reasons: - description: Object containing information on how the player gainined gold over the course of the match + description: Object containing information on how the player gained gold over the course of the match type: object gold_spent: description: How much gold the player spent @@ -641,7 +641,7 @@ components: description: Object with information on when the player last purchased an item type: object first_purchase_time: - description: Object with information on when the player first puchased an item + description: Object with information on when the player first purchased an item type: object item_win: description: Object with information on whether or not the item won @@ -1550,7 +1550,7 @@ components: description: ranks type: object properties: - commmand: + command: description: command type: string rowCount: @@ -1615,7 +1615,7 @@ components: description: mmr type: object properties: - commmand: + command: description: command type: string rowCount: @@ -1680,7 +1680,7 @@ components: description: country_mmr type: object properties: - commmand: + command: description: command type: string rowCount: @@ -2174,7 +2174,7 @@ components: description: The number of games where this scenario occurred type: string wins: - description: The number of games won where this scenario occured + description: The number of games won where this scenario occurred type: string SchemaResponse: title: SchemaResponse diff --git a/modules/openapi-generator/src/test/resources/3_0/jetbrains/github.json b/modules/openapi-generator/src/test/resources/3_0/jetbrains/github.json index ed62ce62b1e6..f8a2a3ae5198 100644 --- a/modules/openapi-generator/src/test/resources/3_0/jetbrains/github.json +++ b/modules/openapi-generator/src/test/resources/3_0/jetbrains/github.json @@ -19042,7 +19042,7 @@ } }, "204": { - "description": "Response if team has permission for the repository. This is the response when the repository media type hasn't been provded in the Accept header." + "description": "Response if team has permission for the repository. This is the response when the repository media type hasn't been provided in the Accept header." }, "404": { "description": "Not Found if team does not have permission for the repository" @@ -87353,7 +87353,7 @@ }, "dependabot_secrets": { "type": "string", - "description": "The leve of permission to grant the access token to manage Dependabot secrets.", + "description": "The level of permission to grant the access token to manage Dependabot secrets.", "enum": [ "read", "write" @@ -88701,7 +88701,7 @@ }, "name": { "type": "string", - "example": "Github - Code thigns happen here", + "example": "Github - Code things happen here", "nullable": true }, "avatar_url": { @@ -89414,7 +89414,7 @@ }, "value": { "type": "string", - "description": "The value of the advisory identifer.", + "description": "The value of the advisory identifier.", "readOnly": true } }, @@ -94039,7 +94039,7 @@ } }, "location": { - "description": "The initally assigned location of a new codespace.", + "description": "The initially assigned location of a new codespace.", "enum": [ "EastUs", "SouthEastAsia", @@ -104414,7 +104414,7 @@ "items": { "type": "string" }, - "description": "Any errors that ocurred during processing of the delivery.", + "description": "Any errors that occurred during processing of the delivery.", "readOnly": true, "nullable": true } @@ -104462,7 +104462,7 @@ "example": "Invalid owner on line 7:\n\n * user\n ^" }, "path": { - "description": "The path of the file where the error occured.", + "description": "The path of the file where the error occurred.", "type": "string", "example": ".github/CODEOWNERS" } @@ -116528,7 +116528,7 @@ } }, "location": { - "description": "The initally assigned location of a new codespace.", + "description": "The initially assigned location of a new codespace.", "enum": [ "EastUs", "SouthEastAsia", @@ -130140,7 +130140,7 @@ "repository": { "$ref": "#/components/schemas/repository-webhooks" }, - "requestor": { + "requester": { "title": "User", "type": "object", "nullable": true, @@ -131243,7 +131243,7 @@ "workflow_job_run", "environment", "reviewers", - "requestor", + "requester", "repository", "organization", "sender" @@ -264048,7 +264048,7 @@ "description": { "type": "string" }, - "is_custom_ammount": { + "is_custom_amount": { "type": "boolean" }, "is_custom_amount": { @@ -264388,7 +264388,7 @@ "description": { "type": "string" }, - "is_custom_ammount": { + "is_custom_amount": { "type": "boolean" }, "is_custom_amount": { @@ -264745,7 +264745,7 @@ "description": { "type": "string" }, - "is_custom_ammount": { + "is_custom_amount": { "type": "boolean" }, "is_custom_amount": { @@ -265090,7 +265090,7 @@ "description": { "type": "string" }, - "is_custom_ammount": { + "is_custom_amount": { "type": "boolean" }, "is_custom_amount": { @@ -265166,7 +265166,7 @@ "description": { "type": "string" }, - "is_custom_ammount": { + "is_custom_amount": { "type": "boolean" }, "is_custom_amount": { @@ -265493,7 +265493,7 @@ "description": { "type": "string" }, - "is_custom_ammount": { + "is_custom_amount": { "type": "boolean" }, "is_custom_amount": { @@ -265570,7 +265570,7 @@ "description": { "type": "string" }, - "is_custom_ammount": { + "is_custom_amount": { "type": "boolean" }, "is_custom_amount": { @@ -265893,7 +265893,7 @@ "description": { "type": "string" }, - "is_custom_ammount": { + "is_custom_amount": { "type": "boolean" }, "is_custom_amount": { diff --git a/modules/openapi-generator/src/test/resources/3_0/opendota.json b/modules/openapi-generator/src/test/resources/3_0/opendota.json index 3f59c3cb699b..bd00bec7c64c 100644 --- a/modules/openapi-generator/src/test/resources/3_0/opendota.json +++ b/modules/openapi-generator/src/test/resources/3_0/opendota.json @@ -1 +1 @@ -{"openapi":"3.0.3","info":{"title":"OpenDota API","description":"# Introduction\nThe OpenDota API provides Dota 2 related data including advanced match data extracted from match replays.\n\nYou can find data that can be used to convert hero and ability IDs and other information provided by the API from the [dotaconstants](https://github.com/odota/dotaconstants) repository.\n\n**Beginning 2018-04-22, the OpenDota API is limited to 50,000 free calls per month and 60 requests/minute** We offer a Premium Tier with unlimited API calls and higher rate limits. Check out the [API page](https://www.opendota.com/api-keys) to learn more.\n","version":"20.0.0"},"servers":[{"url":"https://api.opendota.com/api"}],"components":{"securitySchemes":{"api_key":{"type":"apiKey","name":"api_key","description":"Use an API key to remove monthly call limits and to receive higher rate limits. [Learn more and get your API key](https://www.opendota.com/api-keys).\n Usage example: https://api.opendota.com/api/matches/271145478?api_key=YOUR-API-KEY\n \n API key can also be sent using the authorization header \"Authorization: Bearer YOUR-API-KEY\"\n ","in":"query"}},"schemas":{"MatchResponse":{"title":"MatchResponse","type":"object","properties":{"match_id":{"description":"The ID number of the match assigned by Valve","type":"integer"},"barracks_status_dire":{"description":"Bitmask. An integer that represents a binary of which barracks are still standing. 63 would mean all barracks still stand at the end of the game.","type":"integer"},"barracks_status_radiant":{"description":"Bitmask. An integer that represents a binary of which barracks are still standing. 63 would mean all barracks still stand at the end of the game.","type":"integer"},"chat":{"description":"Array containing information on the chat of the game","type":"array","items":{"type":"object","properties":{"time":{"description":"Time in seconds at which the message was said","type":"integer"},"unit":{"description":"Name of the player who sent the message","type":"string"},"key":{"description":"The message the player sent","type":"string"},"slot":{"description":"slot","type":"integer"},"player_slot":{"description":"Which slot the player is in. 0-127 are Radiant, 128-255 are Dire","type":"integer"}}}},"cluster":{"description":"cluster","type":"integer"},"cosmetics":{"description":"cosmetics","type":"object","additionalProperties":{"type":"integer"}},"dire_score":{"description":"Final score for Dire (number of kills on Radiant)","type":"integer"},"draft_timings":{"description":"draft_timings","type":"array","items":{"description":"draft_stage","type":"object","properties":{"order":{"description":"order","type":"integer"},"pick":{"description":"pick","type":"boolean"},"active_team":{"description":"active_team","type":"integer"},"hero_id":{"description":"The ID value of the hero played","type":"integer"},"player_slot":{"description":"Which slot the player is in. 0-127 are Radiant, 128-255 are Dire","type":"integer"},"extra_time":{"description":"extra_time","type":"integer"},"total_time_taken":{"description":"total_time_taken","type":"integer"}}}},"duration":{"description":"Duration of the game in seconds","type":"integer"},"engine":{"description":"engine","type":"integer"},"first_blood_time":{"description":"Time in seconds at which first blood occurred","type":"integer"},"game_mode":{"description":"Integer corresponding to game mode played. List of constants can be found here: https://github.com/odota/dotaconstants/blob/master/json/game_mode.json","type":"integer"},"human_players":{"description":"Number of human players in the game","type":"integer"},"leagueid":{"description":"leagueid","type":"integer"},"lobby_type":{"description":"Integer corresponding to lobby type of match. List of constants can be found here: https://github.com/odota/dotaconstants/blob/master/json/lobby_type.json","type":"integer"},"match_seq_num":{"description":"match_seq_num","type":"integer"},"negative_votes":{"description":"Number of negative votes the replay received in the in-game client","type":"integer"},"objectives":{"description":"objectives","type":"array","items":{"type":"object"}},"picks_bans":{"description":"Array containing information on the draft. Each item contains a boolean relating to whether the choice is a pick or a ban, the hero ID, the team the picked or banned it, and the order.","type":"array","items":{"type":"object","properties":{"is_pick":{"description":"Boolean indicating whether the choice is a pick or a ban","type":"boolean"},"hero_id":{"description":"The hero ID","type":"integer"},"team":{"description":"The team that picked or banned the hero","type":"integer"},"order":{"description":"The order of the pick or ban","type":"integer"}}}},"positive_votes":{"description":"Number of positive votes the replay received in the in-game client","type":"integer"},"radiant_gold_adv":{"description":"Array of the Radiant gold advantage at each minute in the game. A negative number means that Radiant is behind, and thus it is their gold disadvantage. ","type":"array","items":{"type":"number"}},"radiant_score":{"description":"Final score for Radiant (number of kills on Radiant)","type":"integer"},"radiant_win":{"description":"Boolean indicating whether Radiant won the match","type":"boolean"},"radiant_xp_adv":{"description":"Array of the Radiant experience advantage at each minute in the game. A negative number means that Radiant is behind, and thus it is their experience disadvantage. ","type":"array","items":{"type":"number"}},"start_time":{"description":"The Unix timestamp at which the game started","type":"integer"},"teamfights":{"description":"teamfights","type":"array","items":{"type":"array","items":{"type":"object"}}},"tower_status_dire":{"description":"Bitmask. An integer that represents a binary of which Dire towers are still standing.","type":"integer"},"tower_status_radiant":{"description":"Bitmask. An integer that represents a binary of which Radiant towers are still standing.","type":"integer"},"version":{"description":"Parse version, used internally by OpenDota","type":"integer"},"replay_salt":{"description":"replay_salt","type":"integer"},"series_id":{"description":"series_id","type":"integer"},"series_type":{"description":"series_type","type":"integer"},"radiant_team":{"description":"radiant_team","type":"object"},"dire_team":{"description":"dire_team","type":"object"},"league":{"description":"league","type":"object"},"skill":{"description":"Skill bracket assigned by Valve (Normal, High, Very High)","type":"integer"},"players":{"description":"Array of information on individual players","type":"array","items":{"description":"player","type":"object","properties":{"match_id":{"description":"Match ID","type":"integer"},"player_slot":{"description":"Which slot the player is in. 0-127 are Radiant, 128-255 are Dire","type":"integer"},"ability_upgrades_arr":{"description":"An array describing how abilities were upgraded","type":"array","items":{"type":"integer"}},"ability_uses":{"description":"Object containing information on how many times the played used their abilities","type":"object"},"ability_targets":{"description":"Object containing information on who the player used their abilities on","type":"object"},"damage_targets":{"description":"Object containing information on how and how much damage the player dealt to other heroes","type":"object"},"account_id":{"description":"account_id","type":"integer"},"actions":{"description":"Object containing information on how many and what type of actions the player issued to their hero","type":"object"},"additional_units":{"description":"Object containing information on additional units the player had under their control","type":"array","items":{"type":"object"},"nullable":true},"assists":{"description":"Number of assists the player had","type":"integer"},"backpack_0":{"description":"Item in backpack slot 0","type":"integer"},"backpack_1":{"description":"Item in backpack slot 1","type":"integer"},"backpack_2":{"description":"Item in backpack slot 2","type":"integer"},"buyback_log":{"description":"Array containing information about buybacks","type":"array","items":{"type":"object","properties":{"time":{"description":"Time in seconds the buyback occurred","type":"integer"},"slot":{"description":"slot","type":"integer"},"player_slot":{"description":"Which slot the player is in. 0-127 are Radiant, 128-255 are Dire","type":"integer"}}}},"camps_stacked":{"description":"Number of camps stacked","type":"integer"},"connection_log":{"description":"Array containing information about the player's disconnections and reconnections","type":"array","items":{"type":"object","properties":{"time":{"description":"Game time in seconds the event ocurred","type":"integer"},"event":{"description":"Event that occurred","type":"string"},"player_slot":{"description":"Which slot the player is in. 0-127 are Radiant, 128-255 are Dire","type":"integer"}}}},"creeps_stacked":{"description":"Number of creeps stacked","type":"integer"},"damage":{"description":"Object containing information about damage dealt by the player to different units","type":"object"},"damage_inflictor":{"description":"Object containing information about about the sources of this player's damage to heroes","type":"object"},"damage_inflictor_received":{"description":"Object containing information about the sources of damage received by this player from heroes","type":"object"},"damage_taken":{"description":"Object containing information about from whom the player took damage","type":"object"},"deaths":{"description":"Number of deaths","type":"integer"},"denies":{"description":"Number of denies","type":"integer"},"dn_t":{"description":"Array containing number of denies at different times of the match","type":"array","items":{"type":"integer"}},"gold":{"description":"Gold at the end of the game","type":"integer"},"gold_per_min":{"description":"Gold Per Minute obtained by this player","type":"integer"},"gold_reasons":{"description":"Object containing information on how the player gainined gold over the course of the match","type":"object"},"gold_spent":{"description":"How much gold the player spent","type":"integer"},"gold_t":{"description":"Array containing total gold at different times of the match","type":"array","items":{"type":"integer"}},"hero_damage":{"description":"Hero Damage Dealt","type":"integer"},"hero_healing":{"description":"Hero Healing Done","type":"integer"},"hero_hits":{"description":"Object containing information on how many ticks of damages the hero inflicted with different spells and damage inflictors","type":"object"},"hero_id":{"description":"The ID value of the hero played","type":"integer"},"item_0":{"description":"Item in the player's first slot","type":"integer"},"item_1":{"description":"Item in the player's second slot","type":"integer"},"item_2":{"description":"Item in the player's third slot","type":"integer"},"item_3":{"description":"Item in the player's fourth slot","type":"integer"},"item_4":{"description":"Item in the player's fifth slot","type":"integer"},"item_5":{"description":"Item in the player's sixth slot","type":"integer"},"item_uses":{"description":"Object containing information about how many times a player used items","type":"object"},"kill_streaks":{"description":"Object containing information about the player's killstreaks","type":"object"},"killed":{"description":"Object containing information about what units the player killed","type":"object"},"killed_by":{"description":"Object containing information about who killed the player","type":"object"},"kills":{"description":"Number of kills","type":"integer"},"kills_log":{"description":"Array containing information on which hero the player killed at what time","type":"array","items":{"type":"object","properties":{"time":{"description":"Time in seconds the player killed the hero","type":"integer"},"key":{"description":"Hero killed","type":"string"}}}},"lane_pos":{"description":"Object containing information on lane position","type":"object"},"last_hits":{"description":"Number of last hits","type":"integer"},"leaver_status":{"description":"Integer describing whether or not the player left the game. 0: didn't leave. 1: left safely. 2+: Abandoned","type":"integer"},"level":{"description":"Level at the end of the game","type":"integer"},"lh_t":{"description":"Array describing last hits at each minute in the game","type":"array","items":{"type":"integer"}},"life_state":{"description":"life_state","type":"object"},"max_hero_hit":{"description":"Object with information on the highest damage instance the player inflicted","type":"object"},"multi_kills":{"description":"Object with information on the number of the number of multikills the player had","type":"object"},"obs":{"description":"Object with information on where the player placed observer wards. The location takes the form (outer number, inner number) and are from ~64-192.","type":"object"},"obs_left_log":{"description":"obs_left_log","type":"array","items":{"type":"object"}},"obs_log":{"description":"Object containing information on when and where the player placed observer wards","type":"array","items":{"type":"object"}},"obs_placed":{"description":"Total number of observer wards placed","type":"integer"},"party_id":{"description":"party_id","type":"integer"},"permanent_buffs":{"description":"Array describing permanent buffs the player had at the end of the game. List of constants can be found here: https://github.com/odota/dotaconstants/blob/master/json/permanent_buffs.json","type":"array","items":{"type":"object"}},"pings":{"description":"Total number of pings","type":"integer"},"purchase":{"description":"Object containing information on the items the player purchased","type":"object"},"purchase_log":{"description":"Object containing information on when items were purchased","type":"array","items":{"type":"object","properties":{"time":{"description":"Time in seconds the item was bought","type":"integer"},"key":{"description":"String item ID","type":"string"},"charges":{"description":"Integer amount of charges","type":"integer"}}}},"rune_pickups":{"description":"Number of runes picked up","type":"integer"},"runes":{"description":"Object with information about which runes the player picked up","type":"object","additionalProperties":{"type":"integer"}},"runes_log":{"description":"Array with information on when runes were picked up","type":"array","items":{"type":"object","properties":{"time":{"description":"Time in seconds rune picked up","type":"integer"},"key":{"description":"key","type":"integer"}}}},"sen":{"description":"Object with information on where sentries were placed. The location takes the form (outer number, inner number) and are from ~64-192.","type":"object"},"sen_left_log":{"description":"Array containing information on when and where the player placed sentries","type":"array","items":{"type":"object"}},"sen_log":{"description":"Array with information on when and where sentries were placed by the player","type":"array","items":{"type":"object"}},"sen_placed":{"description":"How many sentries were placed by the player","type":"integer"},"stuns":{"description":"Total stun duration of all stuns by the player","type":"number"},"times":{"description":"Time in seconds corresponding to the time of entries of other arrays in the match.","type":"array","items":{"type":"integer"}},"tower_damage":{"description":"Total tower damage done by the player","type":"integer"},"xp_per_min":{"description":"Experience Per Minute obtained by the player","type":"integer"},"xp_reasons":{"description":"Object containing information on the sources of this player's experience","type":"object"},"xp_t":{"description":"Experience at each minute of the game","type":"array","items":{"type":"integer"}},"personaname":{"description":"personaname","type":"string","nullable":true},"name":{"description":"name","type":"string","nullable":true},"last_login":{"description":"Time of player's last login","type":"string","format":"date-time","nullable":true},"radiant_win":{"description":"Boolean indicating whether Radiant won the match","type":"boolean"},"start_time":{"description":"Start time of the match in seconds since 1970","type":"integer"},"duration":{"description":"Duration of the game in seconds","type":"integer"},"cluster":{"description":"cluster","type":"integer"},"lobby_type":{"description":"Integer corresponding to lobby type of match. List of constants can be found here: https://github.com/odota/dotaconstants/blob/master/json/lobby_type.json","type":"integer"},"game_mode":{"description":"Integer corresponding to game mode played. List of constants can be found here: https://github.com/odota/dotaconstants/blob/master/json/game_mode.json","type":"integer"},"patch":{"description":"Integer representing the patch the game was played on","type":"integer"},"region":{"description":"Integer corresponding to the region the game was played on","type":"integer"},"isRadiant":{"description":"Boolean for whether or not the player is on Radiant","type":"boolean"},"win":{"description":"Binary integer representing whether or not the player won","type":"integer"},"lose":{"description":"Binary integer representing whether or not the player lost","type":"integer"},"total_gold":{"description":"Total gold at the end of the game","type":"integer"},"total_xp":{"description":"Total experience at the end of the game","type":"integer"},"kills_per_min":{"description":"Number of kills per minute","type":"number"},"kda":{"description":"kda","type":"number"},"abandons":{"description":"abandons","type":"integer"},"neutral_kills":{"description":"Total number of neutral creeps killed","type":"integer"},"tower_kills":{"description":"Total number of tower kills the player had","type":"integer"},"courier_kills":{"description":"Total number of courier kills the player had","type":"integer"},"lane_kills":{"description":"Total number of lane creeps killed by the player","type":"integer"},"hero_kills":{"description":"Total number of heroes killed by the player","type":"integer"},"observer_kills":{"description":"Total number of observer wards killed by the player","type":"integer"},"sentry_kills":{"description":"Total number of sentry wards killed by the player","type":"integer"},"roshan_kills":{"description":"Total number of roshan kills (last hit on roshan) the player had","type":"integer"},"necronomicon_kills":{"description":"Total number of Necronomicon creeps killed by the player","type":"integer"},"ancient_kills":{"description":"Total number of Ancient creeps killed by the player","type":"integer"},"buyback_count":{"description":"Total number of buyback the player used","type":"integer"},"observer_uses":{"description":"Number of observer wards used","type":"integer"},"sentry_uses":{"description":"Number of sentry wards used","type":"integer"},"lane_efficiency":{"description":"lane_efficiency","type":"number"},"lane_efficiency_pct":{"description":"lane_efficiency_pct","type":"number"},"lane":{"description":"Integer referring to which lane the hero laned in","type":"integer","nullable":true},"lane_role":{"description":"lane_role","type":"integer","nullable":true},"is_roaming":{"description":"Boolean referring to whether or not the player roamed","type":"boolean","nullable":true},"purchase_time":{"description":"Object with information on when the player last purchased an item","type":"object"},"first_purchase_time":{"description":"Object with information on when the player first puchased an item","type":"object"},"item_win":{"description":"Object with information on whether or not the item won","type":"object"},"item_usage":{"description":"Object containing binary integers the tell whether the item was purchased by the player (note: this is always 1)","type":"object"},"purchase_tpscroll":{"description":"Total number of TP scrolls purchased by the player","type":"integer"},"actions_per_min":{"description":"Actions per minute","type":"integer"},"life_state_dead":{"description":"life_state_dead","type":"integer"},"rank_tier":{"description":"The rank tier of the player. Tens place indicates rank, ones place indicates stars.","type":"integer"},"cosmetics":{"description":"cosmetics","type":"array","items":{"type":"object","properties":{"item_id":{"type":"integer"},"name":{"type":"string"},"prefab":{"type":"string"},"creation_date":{"type":"string","format":"date-time","nullable":true},"image_inventory":{"type":"string","nullable":true},"image_path":{"type":"string","nullable":true},"item_description":{"type":"string","nullable":true},"item_name":{"type":"string"},"item_rarity":{"type":"string","nullable":true},"item_type_name":{"type":"string","nullable":true},"used_by_heroes":{"type":"string","nullable":true}}}},"benchmarks":{"description":"Object containing information on certain benchmarks like GPM, XPM, KDA, tower damage, etc","type":"object"}}}},"patch":{"description":"Information on the patch version the game is played on","type":"integer"},"region":{"description":"Integer corresponding to the region the game was played on","type":"integer"},"all_word_counts":{"description":"Word counts of the all chat messages in the player's games","type":"object"},"my_word_counts":{"description":"Word counts of the player's all chat messages","type":"object"},"throw":{"description":"Maximum gold advantage of the player's team if they lost the match","type":"integer"},"comeback":{"description":"Maximum gold disadvantage of the player's team if they won the match","type":"integer"},"loss":{"description":"Maximum gold disadvantage of the player's team if they lost the match","type":"integer"},"win":{"description":"Maximum gold advantage of the player's team if they won the match","type":"integer"},"replay_url":{"description":"replay_url","type":"string"}}},"PlayersByRankResponse":{"title":"PlayersByRankResponse","type":"array","items":{"type":"object","properties":{"account_id":{"description":"account_id","type":"number"},"rank_tier":{"description":"Integer indicating the rank/medal of the player","type":"number"},"fh_unavailable":{"description":"Indicates if we were unable to fetch full history for this player due to privacy settings","type":"boolean","nullable":true}}}},"PlayersResponse":{"title":"PlayerResponse","type":"object","properties":{"solo_competitive_rank":{"description":"solo_competitive_rank","type":"integer","nullable":true},"competitive_rank":{"description":"competitive_rank","type":"integer","nullable":true},"rank_tier":{"description":"rank_tier","type":"number","nullable":true},"leaderboard_rank":{"description":"leaderboard_rank","type":"number","nullable":true},"mmr_estimate":{"description":"mmr_estimate","type":"object","properties":{"estimate":{"description":"estimate","type":"number","nullable":true}}},"profile":{"description":"profile","type":"object","properties":{"account_id":{"description":"account_id","type":"integer"},"personaname":{"description":"personaname","type":"string","nullable":true},"name":{"description":"name","type":"string","nullable":true},"plus":{"description":"Boolean indicating status of current Dota Plus subscription","type":"boolean"},"cheese":{"description":"cheese","type":"integer","nullable":true},"steamid":{"description":"steamid","type":"string","nullable":true},"avatar":{"description":"avatar","type":"string","nullable":true},"avatarmedium":{"description":"avatarmedium","type":"string","nullable":true},"avatarfull":{"description":"avatarfull","type":"string","nullable":true},"profileurl":{"description":"profileurl","type":"string","nullable":true},"last_login":{"description":"last_login","type":"string","nullable":true},"loccountrycode":{"description":"loccountrycode","type":"string","nullable":true},"is_contributor":{"description":"Boolean indicating if the user contributed to the development of OpenDota","type":"boolean","default":false},"is_subscriber":{"description":"Boolean indicating if the user subscribed to OpenDota","type":"boolean","default":false}}}}},"PlayerWinLossResponse":{"title":"PlayerWinLossResponse","type":"object","properties":{"win":{"description":"Number of wins","type":"integer"},"lose":{"description":"Number of loses","type":"integer"}}},"PlayerRecentMatchesResponse":{"title":"PlayerRecentMatchesResponse","description":"match","type":"object","properties":{"match_id":{"description":"Match ID","type":"integer"},"player_slot":{"description":"Which slot the player is in. 0-127 are Radiant, 128-255 are Dire","type":"integer"},"radiant_win":{"description":"Boolean indicating whether Radiant won the match","type":"boolean"},"duration":{"description":"Duration of the game in seconds","type":"integer"},"game_mode":{"description":"Integer corresponding to game mode played. List of constants can be found here: https://github.com/odota/dotaconstants/blob/master/json/game_mode.json","type":"integer"},"lobby_type":{"description":"Integer corresponding to lobby type of match. List of constants can be found here: https://github.com/odota/dotaconstants/blob/master/json/lobby_type.json","type":"integer"},"hero_id":{"description":"The ID value of the hero played","type":"integer"},"start_time":{"description":"Start time of the match in seconds elapsed since 1970","type":"integer"},"version":{"description":"version","type":"integer","nullable":true},"kills":{"description":"Total kills the player had at the end of the match","type":"integer"},"deaths":{"description":"Total deaths the player had at the end of the match","type":"integer"},"assists":{"description":"Total assists the player had at the end of the match","type":"integer"},"skill":{"description":"Skill bracket assigned by Valve (Normal, High, Very High). If the skill is unknown, will return null.","type":"integer","nullable":true},"average_rank":{"description":"Average rank of players with public match data","type":"integer","nullable":true},"xp_per_min":{"description":"Experience Per Minute obtained by the player","type":"integer"},"gold_per_min":{"description":"Average gold per minute of the player","type":"integer"},"hero_damage":{"description":"Total hero damage to enemy heroes","type":"integer"},"hero_healing":{"description":"Total healing of ally heroes","type":"integer"},"last_hits":{"description":"Total last hits the player had at the end of the match","type":"integer"},"lane":{"description":"Integer corresponding to which lane the player laned in for the match","type":"integer","nullable":true},"lane_role":{"description":"lane_role","type":"integer","nullable":true},"is_roaming":{"description":"Boolean describing whether or not the player roamed","type":"boolean","nullable":true},"cluster":{"description":"cluster","type":"integer"},"leaver_status":{"description":"Integer describing whether or not the player left the game. 0: didn't leave. 1: left safely. 2+: Abandoned","type":"integer"},"party_size":{"description":"Size of the players party. If not in a party, will return 1.","type":"integer","nullable":true}}},"PlayerMatchesResponse":{"title":"PlayerMatchesResponse","description":"Object containing information on the match","type":"object","properties":{"match_id":{"description":"Match ID","type":"integer"},"player_slot":{"description":"Which slot the player is in. 0-127 are Radiant, 128-255 are Dire","type":"integer"},"radiant_win":{"description":"Boolean indicating whether Radiant won the match","type":"boolean"},"duration":{"description":"Duration of the game in seconds","type":"integer"},"game_mode":{"description":"Integer corresponding to game mode played. List of constants can be found here: https://github.com/odota/dotaconstants/blob/master/json/game_mode.json","type":"integer"},"lobby_type":{"description":"Integer corresponding to lobby type of match. List of constants can be found here: https://github.com/odota/dotaconstants/blob/master/json/lobby_type.json","type":"integer"},"hero_id":{"description":"The ID value of the hero played","type":"integer"},"start_time":{"description":"Time the game started in seconds since 1970","type":"integer"},"version":{"description":"version","type":"integer","nullable":true},"kills":{"description":"Total kills the player had at the end of the game","type":"integer"},"deaths":{"description":"Total deaths the player had at the end of the game","type":"integer"},"assists":{"description":"Total assists the player had at the end of the game","type":"integer"},"skill":{"description":"Skill bracket assigned by Valve (Normal, High, Very High)","type":"integer","nullable":true},"average_rank":{"description":"Average rank of players with public match data","type":"integer","nullable":true},"leaver_status":{"description":"Integer describing whether or not the player left the game. 0: didn't leave. 1: left safely. 2+: Abandoned","type":"integer"},"party_size":{"description":"Size of the player's party","type":"integer","nullable":true}}},"PlayerHeroesResponse":{"title":"PlayerHeroesResponse","description":"hero","type":"object","properties":{"hero_id":{"description":"The ID value of the hero played","type":"string"},"last_played":{"description":"last_played","type":"integer"},"games":{"description":"games","type":"integer"},"win":{"description":"win","type":"integer"},"with_games":{"description":"with_games","type":"integer"},"with_win":{"description":"with_win","type":"integer"},"against_games":{"description":"against_games","type":"integer"},"against_win":{"description":"against_win","type":"integer"}}},"PlayerPeersResponse":{"title":"PlayerPeersResponse","type":"object","properties":{"account_id":{"description":"account_id","type":"integer"},"last_played":{"description":"last_played","type":"integer"},"win":{"description":"win","type":"integer"},"games":{"description":"games","type":"integer"},"with_win":{"description":"with_win","type":"integer"},"with_games":{"description":"with_games","type":"integer"},"against_win":{"description":"against_win","type":"integer"},"against_games":{"description":"against_games","type":"integer"},"with_gpm_sum":{"description":"with_gpm_sum","type":"integer"},"with_xpm_sum":{"description":"with_xpm_sum","type":"integer"},"personaname":{"description":"personaname","type":"string","nullable":true},"name":{"description":"name","type":"string","nullable":true},"is_contributor":{"description":"is_contributor","type":"boolean"},"is_subscriber":{"description":"is_subscriber","type":"boolean"},"last_login":{"description":"last_login","type":"string","nullable":true},"avatar":{"description":"avatar","type":"string","nullable":true},"avatarfull":{"description":"avatarfull","type":"string","nullable":true}}},"PlayerProsResponse":{"title":"PlayerProsResponse","type":"object","properties":{"account_id":{"description":"account_id","type":"integer"},"name":{"description":"name","type":"string"},"country_code":{"description":"country_code","type":"string"},"fantasy_role":{"description":"fantasy_role","type":"integer"},"team_id":{"description":"team_id","type":"integer"},"team_name":{"description":"team_name","type":"string","nullable":true},"team_tag":{"description":"team_tag","type":"string","nullable":true},"is_locked":{"description":"is_locked","type":"boolean"},"is_pro":{"description":"is_pro","type":"boolean"},"locked_until":{"description":"locked_until","type":"integer","nullable":true},"steamid":{"description":"steamid","type":"string","nullable":true},"avatar":{"description":"avatar","type":"string","nullable":true},"avatarmedium":{"description":"avatarmedium","type":"string","nullable":true},"avatarfull":{"description":"avatarfull","type":"string","nullable":true},"profileurl":{"description":"profileurl","type":"string","nullable":true},"last_login":{"description":"last_login","type":"string","format":"date-time","nullable":true},"full_history_time":{"description":"full_history_time","type":"string","format":"date-time","nullable":true},"cheese":{"description":"cheese","type":"integer","nullable":true},"fh_unavailable":{"description":"fh_unavailable","type":"boolean","nullable":true},"loccountrycode":{"description":"loccountrycode","type":"string","nullable":true},"last_played":{"description":"last_played","type":"integer","nullable":true},"win":{"description":"win","type":"integer"},"games":{"description":"games","type":"integer"},"with_win":{"description":"with_win","type":"integer"},"with_games":{"description":"with_games","type":"integer"},"against_win":{"description":"against_win","type":"integer"},"against_games":{"description":"against_games","type":"integer"},"with_gpm_sum":{"description":"with_gpm_sum","type":"integer","nullable":true},"with_xpm_sum":{"description":"with_xpm_sum","type":"integer","nullable":true}}},"PlayerTotalsResponse":{"title":"PlayerTotalsResponse","type":"object","properties":{"field":{"description":"field","type":"string"},"n":{"description":"number","type":"integer"},"sum":{"description":"sum","type":"number"}}},"PlayerCountsResponse":{"title":"PlayerCountsResponse","type":"object","properties":{"leaver_status":{"description":"Integer describing whether or not the player left the game. 0: didn't leave. 1: left safely. 2+: Abandoned","type":"object"},"game_mode":{"description":"Integer corresponding to game mode played. List of constants can be found here: https://github.com/odota/dotaconstants/blob/master/json/game_mode.json","type":"object"},"lobby_type":{"description":"Integer corresponding to lobby type of match. List of constants can be found here: https://github.com/odota/dotaconstants/blob/master/json/lobby_type.json","type":"object"},"lane_role":{"description":"lane_role","type":"object"},"region":{"description":"Integer corresponding to the region the game was played on","type":"object"},"patch":{"description":"patch","type":"object"}}},"PlayerWardMapResponse":{"title":"PlayerWardMapResponse","type":"object","properties":{"obs":{"description":"obs","type":"object"},"sen":{"description":"sen","type":"object"}}},"PlayerWordCloudResponse":{"title":"PlayerWordCloudResponse","type":"object","properties":{"my_word_counts":{"description":"my_word_counts","type":"object"},"all_word_counts":{"description":"all_word_counts","type":"object"}}},"PlayerRatingsResponse":{"title":"PlayerRatingsResponse","type":"object","properties":{"account_id":{"description":"account_id","type":"integer"},"match_id":{"description":"match_id","type":"integer"},"solo_competitive_rank":{"description":"solo_competitive_rank","type":"integer","nullable":true},"competitive_rank":{"description":"competitive_rank","type":"integer"},"time":{"description":"time","type":"integer"}}},"PlayerRankingsResponse":{"title":"PlayerRankingsResponse","type":"object","properties":{"hero_id":{"description":"The ID value of the hero played","type":"integer"},"score":{"description":"hero_score","type":"number"},"percent_rank":{"description":"percent_rank","type":"number"},"card":{"description":"numeric_rank","type":"integer"}}},"TeamObjectResponse":{"title":"TeamObjectResponse","type":"object","properties":{"team_id":{"description":"Team's identifier","type":"integer"},"rating":{"description":"The Elo rating of the team","type":"number"},"wins":{"description":"The number of games won by this team","type":"integer"},"losses":{"description":"The number of losses by this team","type":"integer"},"last_match_time":{"description":"The Unix timestamp of the last match played by this team","type":"integer"},"name":{"description":"Team name, eg. 'Newbee'","type":"string"},"tag":{"description":"The team tag/abbreviation","type":"string"}}},"MatchObjectResponse":{"title":"MatchObjectResponse","type":"object","properties":{"match_id":{"description":"Used to identify individual matches, e.g. 3703866531","type":"integer"},"duration":{"description":"Length of the match","type":"integer"},"start_time":{"description":"Unix timestamp of when the match began","type":"integer"},"radiant_team_id":{"description":"The Radiant's team_id","type":"integer"},"radiant_name":{"description":"The Radiant's team name","type":"string"},"dire_team_id":{"description":"The Dire's team_id","type":"integer"},"dire_name":{"description":"The Dire's team name","type":"string"},"leagueid":{"description":"Identifier for the league the match took place in","type":"integer"},"league_name":{"description":"Name of league the match took place in","type":"string"},"series_id":{"description":"Identifier for the series of the match","type":"integer"},"series_type":{"description":"Type of series the match was","type":"integer"},"radiant_score":{"description":"Number of kills the Radiant team had when the match ended","type":"integer"},"dire_score":{"description":"Number of kills the Dire team had when the match ended","type":"integer"},"radiant_win":{"description":"Whether or not the Radiant won the match","type":"boolean"},"radiant":{"description":"Whether the team/player/hero was on Radiant","type":"boolean"}}},"TeamMatchObjectResponse":{"title":"TeamMatchObjectResponse","type":"object","properties":{"match_id":{"description":"Used to identify individual matches, e.g. 3703866531","type":"integer"},"radiant":{"description":"Whether the team/player/hero was on Radiant","type":"boolean"},"radiant_win":{"description":"Whether or not the Radiant won the match","type":"boolean"},"radiant_score":{"description":"Number of kills the Radiant team had when the match ended","type":"integer"},"dire_score":{"description":"Number of kills the Dire team had when the match ended","type":"integer"},"duration":{"description":"Length of the match","type":"integer"},"start_time":{"description":"Unix timestamp of when the match began","type":"integer"},"leagueid":{"description":"Identifier for the league the match took place in","type":"integer"},"league_name":{"description":"Name of league the match took place in","type":"string"},"cluster":{"description":"cluster","type":"integer"},"opposing_team_id":{"description":"Opposing team identifier","type":"integer"},"opposing_team_name":{"description":"Opposing team name, e.g. 'Evil Geniuses'","type":"string","nullable":true},"opposing_team_logo":{"description":"Opposing team logo url","type":"string"}}},"HeroObjectResponse":{"title":"HeroObjectResponse","type":"object","properties":{"id":{"description":"Numeric identifier for the hero object","type":"integer"},"name":{"description":"Dota hero command name, e.g. 'npc_dota_hero_antimage'","type":"string"},"localized_name":{"description":"Hero name, e.g. 'Anti-Mage'","type":"string"},"primary_attr":{"description":"Hero primary shorthand attribute name, e.g. 'agi'","type":"string"},"attack_type":{"description":"Hero attack type, either 'Melee' or 'Ranged'","type":"string"},"roles":{"type":"array","items":{"description":"A hero's role in the game","type":"string"}}}},"PlayerObjectResponse":{"title":"PlayerObjectResponse","type":"object","properties":{"account_id":{"description":"Player's account identifier","type":"integer"},"steamid":{"description":"Player's steam identifier","type":"string"},"avatar":{"description":"Steam picture URL (small picture)","type":"string"},"avatarmedium":{"description":"Steam picture URL (medium picture)","type":"string"},"avatarfull":{"description":"Steam picture URL (full picture)","type":"string"},"profileurl":{"description":"Steam profile URL","type":"string"},"personaname":{"description":"Player's Steam name","type":"string"},"last_login":{"description":"Date and time of last login to OpenDota","type":"string","format":"date-time"},"full_history_time":{"description":"Date and time of last request to refresh player's match history","type":"string","format":"date-time"},"cheese":{"description":"Amount of dollars the player has donated to OpenDota","type":"integer"},"fh_unavailable":{"description":"Whether the refresh of player' match history failed","type":"boolean"},"loccountrycode":{"description":"Player's country identifier, e.g. US","type":"string"},"name":{"description":"Verified player name, e.g. 'Miracle-'","type":"string"},"country_code":{"description":"Player's country code","type":"string"},"fantasy_role":{"description":"Player's ingame role (core: 1 or support: 2)","type":"integer"},"team_id":{"description":"Player's team identifier","type":"integer"},"team_name":{"description":"Player's team name, e.g. 'Evil Geniuses'","type":"string"},"team_tag":{"description":"Player's team shorthand tag, e.g. 'EG'","type":"string"},"is_locked":{"description":"Whether the roster lock is active","type":"boolean"},"is_pro":{"description":"Whether the player is professional or not","type":"boolean"},"locked_until":{"description":"When the roster lock will end","type":"integer"}}},"LeagueObjectResponse":{"title":"LeagueObjectResponse","type":"object","properties":{"leagueid":{"description":"leagueid","type":"integer"},"ticket":{"description":"ticket","type":"string"},"banner":{"description":"banner","type":"string"},"tier":{"description":"tier","type":"string"},"name":{"description":"name","type":"string"}}},"PublicMatchesResponse":{"title":"PublicMatchesResponse","type":"object","properties":{"match_id":{"description":"match_id","type":"integer"},"match_seq_num":{"description":"match_seq_num","type":"integer"},"radiant_win":{"description":"Boolean indicating whether Radiant won the match","type":"boolean"},"start_time":{"description":"start_time","type":"integer"},"duration":{"description":"Duration of the game in seconds","type":"integer"},"radiant_team":{"description":"radiant_team","type":"string"},"dire_team":{"description":"dire_team","type":"string"}}},"ParsedMatchesResponse":{"title":"ParsedMatchesResponse","type":"object","properties":{"match_id":{"description":"match_id","type":"integer"}}},"MetadataResponse":{"title":"MetadataResponse","type":"object","properties":{"banner":{"description":"banner","type":"object","nullable":true}}},"DistributionsResponse":{"title":"DistributionsResponse","type":"object","properties":{"ranks":{"description":"ranks","type":"object","properties":{"commmand":{"description":"command","type":"string"},"rowCount":{"description":"rowCount","type":"integer"},"rows":{"description":"rows","type":"array","items":{"type":"object","properties":{"bin":{"description":"bin","type":"integer"},"bin_name":{"description":"bin_name","type":"integer"},"count":{"description":"count","type":"integer"},"cumulative_sum":{"description":"cumulative_sum","type":"integer"}}}},"fields":{"description":"fields","type":"array","items":{"type":"object","properties":{"name":{"description":"name","type":"string"},"tableID":{"description":"tableID","type":"integer"},"columnID":{"description":"columnID","type":"integer"},"dataTypeID":{"description":"dataTypeID","type":"integer"},"dataTypeSize":{"description":"dataTypeSize","type":"integer"},"dataTypeModifier":{"description":"dataTypeModifier","type":"integer"},"format":{"description":"format","type":"string"}}}},"rowAsArray":{"description":"rowAsArray","type":"boolean"},"sum":{"description":"sum","type":"object","properties":{"count":{"description":"count","type":"integer"}}}}},"mmr":{"description":"mmr","type":"object","properties":{"commmand":{"description":"command","type":"string"},"rowCount":{"description":"rowCount","type":"integer"},"rows":{"description":"rows","type":"array","items":{"type":"object","properties":{"bin":{"description":"bin","type":"integer"},"bin_name":{"description":"bin_name","type":"integer"},"count":{"description":"count","type":"integer"},"cumulative_sum":{"description":"cumulative_sum","type":"integer"}}}},"fields":{"description":"fields","type":"array","items":{"type":"object","properties":{"name":{"description":"name","type":"string"},"tableID":{"description":"tableID","type":"integer"},"columnID":{"description":"columnID","type":"integer"},"dataTypeID":{"description":"dataTypeID","type":"integer"},"dataTypeSize":{"description":"dataTypeSize","type":"integer"},"dataTypeModifier":{"description":"dataTypeModifier","type":"integer"},"format":{"description":"format","type":"string"}}}},"rowAsArray":{"description":"rowAsArray","type":"boolean"},"sum":{"description":"sum","type":"object","properties":{"count":{"description":"count","type":"integer"}}}}},"country_mmr":{"description":"country_mmr","type":"object","properties":{"commmand":{"description":"command","type":"string"},"rowCount":{"description":"rowCount","type":"integer"},"rows":{"description":"rows","type":"array","items":{"type":"object","properties":{"loccountrycode":{"description":"loccountrycode","type":"string","nullable":true},"count":{"description":"count","type":"integer"},"avg":{"description":"avg","type":"string"},"common":{"description":"common","type":"string"}}}},"fields":{"description":"fields","type":"array","items":{"type":"object","properties":{"name":{"description":"name","type":"string"},"tableID":{"description":"tableID","type":"integer"},"columnID":{"description":"columnID","type":"integer"},"dataTypeID":{"description":"dataTypeID","type":"integer"},"dataTypeSize":{"description":"dataTypeSize","type":"integer"},"dataTypeModifier":{"description":"dataTypeModifier","type":"integer"},"format":{"description":"format","type":"string"}}}},"rowAsArray":{"description":"rowAsArray","type":"boolean"}}}}},"SearchResponse":{"title":"SearchResponse","type":"object","properties":{"account_id":{"description":"account_id","type":"integer"},"avatarfull":{"description":"avatarfull","type":"string","nullable":true},"personaname":{"description":"personaname","type":"string","nullable":true},"last_match_time":{"description":"last_match_time. May not be present or null.","type":"string"},"similarity":{"description":"similarity","type":"number"}}},"RankingsResponse":{"title":"RankingsResponse","type":"object","properties":{"hero_id":{"description":"The ID value of the hero played","type":"integer"},"rankings":{"description":"rankings","type":"array","items":{"type":"object","properties":{"account_id":{"description":"account_id","type":"integer"},"score":{"description":"score","type":"number"},"steamid":{"description":"steamid","type":"string","nullable":true},"avatar":{"description":"avatar","type":"string","nullable":true},"avatarmedium":{"description":"avatarmedium","type":"string","nullable":true},"avatarfull":{"description":"avatarfull","type":"string","nullable":true},"profileurl":{"description":"profileurl","type":"string","nullable":true},"personaname":{"description":"personaname","type":"string","nullable":true},"last_login":{"description":"last_login","type":"string","format":"date-time","nullable":true},"full_history_time":{"description":"full_history_time","type":"string","format":"date-time"},"cheese":{"description":"cheese","type":"integer","nullable":true},"fh_unavailable":{"description":"fh_unavailable","type":"boolean","nullable":true},"loccountrycode":{"description":"loccountrycode","type":"string","nullable":true},"rank_tier":{"description":"rank_tier","type":"integer","nullable":true}}}}}},"BenchmarksResponse":{"title":"BenchmarksResponse","type":"object","properties":{"hero_id":{"description":"The ID value of the hero played","type":"integer"},"result":{"description":"result","type":"object","properties":{"gold_per_min":{"type":"array","items":{"type":"object","properties":{"percentile":{"description":"percentile","type":"number"},"value":{"description":"value","type":"number"}}}},"xp_per_min":{"type":"array","items":{"type":"object","properties":{"percentile":{"description":"percentile","type":"number"},"value":{"description":"value","type":"number"}}}},"kills_per_min":{"type":"array","items":{"type":"object","properties":{"percentile":{"description":"percentile","type":"number"},"value":{"description":"value","type":"number"}}}},"last_hits_per_min":{"type":"array","items":{"type":"object","properties":{"percentile":{"description":"percentile","type":"number"},"value":{"description":"value","type":"number"}}}},"hero_damage_per_min":{"type":"array","items":{"type":"object","properties":{"percentile":{"description":"percentile","type":"number"},"value":{"description":"value","type":"number"}}}},"hero_healing_per_min":{"type":"array","items":{"type":"object","properties":{"percentile":{"description":"percentile","type":"number"},"value":{"description":"value","type":"number"}}}},"tower_damage":{"type":"array","items":{"type":"object","properties":{"percentile":{"description":"percentile","type":"number"},"value":{"description":"value","type":"integer"}}}}}}}},"HeroStatsResponse":{"title":"HeroStatsResponse","type":"object","properties":{"id":{"description":"id","type":"integer"},"name":{"description":"name","type":"string"},"localized_name":{"description":"localized_name","type":"string"},"img":{"description":"img","type":"string"},"icon":{"description":"icon","type":"string"},"pro_win":{"description":"pro_win","type":"integer"},"pro_pick":{"description":"pro_pick","type":"integer"},"hero_id":{"description":"The ID value of the hero played","type":"integer"},"pro_ban":{"description":"pro_ban","type":"integer"},"1_pick":{"description":"Herald picks","type":"integer"},"1_win":{"description":"Herald wins","type":"integer"},"2_pick":{"description":"Guardian picks","type":"integer"},"2_win":{"description":"Guardian wins","type":"integer"},"3_pick":{"description":"Crusader picks","type":"integer"},"3_win":{"description":"Crusader wins","type":"integer"},"4_pick":{"description":"Archon picks","type":"integer"},"4_win":{"description":"Archon wins","type":"integer"},"5_pick":{"description":"Legend picks","type":"integer"},"5_win":{"description":"Legend wins","type":"integer"},"6_pick":{"description":"Ancient picks","type":"integer"},"6_win":{"description":"Ancient wins","type":"integer"},"7_pick":{"description":"Divine picks","type":"integer"},"7_win":{"description":"Divine wins","type":"integer"},"8_pick":{"description":"Immortal picks","type":"integer"},"8_win":{"description":"Immortal wins","type":"integer"},"turbo_pick":{"description":"Picks in Turbo mode this month","type":"integer"},"turbo_win":{"description":"Wins in Turbo mode this month","type":"integer"}}},"HeroMatchupsResponse":{"title":"HeroMatchupsResponse","type":"object","properties":{"hero_id":{"description":"Numeric identifier for the hero object","type":"integer"},"games_played":{"description":"Number of games played","type":"integer"},"wins":{"description":"Number of games won","type":"integer"}}},"HeroDurationsResponse":{"title":"HeroDurationsResponse","type":"object","properties":{"duration_bin":{"description":"Lower bound of number of seconds the match lasted","type":"string"},"games_played":{"description":"Number of games played","type":"integer"},"wins":{"description":"Number of wins","type":"integer"}}},"HeroItemPopularityResponse":{"title":"HeroItemPopularityResponse","type":"object","properties":{"start_game_items":{"description":"Items bought before game started","type":"object","properties":{"item":{"description":"Number of item bought","type":"integer"}}},"early_game_items":{"description":"Items bought in the first 10 min of the game, with cost at least 700","type":"object","properties":{"item":{"description":"Number of item bought","type":"integer"}}},"mid_game_items":{"description":"Items bought between 10 and 25 min of the game, with cost at least 2000","type":"object","properties":{"item":{"description":"Number of item bought","type":"integer"}}},"late_game_items":{"description":"Items bought at least 25 min after game started, with cost at least 4000","type":"object","properties":{"item":{"description":"Number of item bought","type":"integer"}}}}},"TeamPlayersResponse":{"title":"TeamPlayersResponse","type":"object","properties":{"account_id":{"description":"The player account ID","type":"string"},"name":{"description":"The player name","type":"string"},"games_played":{"description":"Number of games played","type":"integer"},"wins":{"description":"Number of wins","type":"integer"},"is_current_team_member":{"description":"If this player is on the current roster","type":"boolean"}}},"TeamHeroesResponse":{"title":"TeamHeroesResponse","type":"object","properties":{"hero_id":{"description":"The hero ID","type":"integer"},"name":{"description":"The hero name","type":"string"},"games_played":{"description":"Number of games played","type":"integer"},"wins":{"description":"Number of wins","type":"integer"}}},"ReplaysResponse":{"title":"ReplaysResponse","type":"object","properties":{"match_id":{"description":"match_id","type":"integer"},"cluster":{"description":"cluster","type":"integer"},"replay_salt":{"description":"replay_salt","type":"integer"}}},"RecordsResponse":{"title":"RecordsResponse","type":"object","properties":{"match_id":{"description":"match_id","type":"string"},"start_time":{"description":"start_time","type":"string"},"hero_id":{"description":"The ID value of the hero played","type":"string"},"score":{"description":"score","type":"string"}}},"ScenarioItemTimingsResponse":{"title":"ScenarioItemTimingsResponse","type":"object","properties":{"hero_id":{"description":"Hero ID","type":"integer"},"item":{"description":"Purchased item","type":"string"},"time":{"description":"Ingame time in seconds before the item was purchased","type":"integer"},"games":{"description":"The number of games where the hero bought this item before this time","type":"string"},"wins":{"description":"The number of games won where the hero bought this item before this time","type":"string"}}},"ScenarioLaneRolesResponse":{"title":"ScenarioLaneRolesResponse","type":"object","properties":{"hero_id":{"description":"Hero ID","type":"integer"},"lane_role":{"description":"The hero's lane role","type":"integer"},"time":{"description":"Maximum game length in seconds","type":"integer"},"games":{"description":"The number of games where the hero played in this lane role","type":"string"},"wins":{"description":"The number of games won where the hero played in this lane role","type":"string"}}},"ScenarioMiscResponse":{"title":"ScenarioMiscResponse","type":"object","properties":{"scenario":{"description":"The scenario's name or description","type":"string"},"is_radiant":{"description":"Boolean indicating whether Radiant executed this scenario","type":"boolean"},"region":{"description":"Region the game was played in","type":"integer"},"games":{"description":"The number of games where this scenario occurred","type":"string"},"wins":{"description":"The number of games won where this scenario occured","type":"string"}}},"SchemaResponse":{"title":"SchemaResponse","type":"object","properties":{"table_name":{"description":"table_name","type":"string"},"column_name":{"description":"column_name","type":"string"},"data_type":{"description":"data_type","type":"string"}}}},"parameters":{"matchIdParam":{"name":"match_id","in":"path","required":true,"schema":{"type":"integer"}},"accountIdParam":{"name":"account_id","in":"path","description":"Steam32 account ID","required":true,"schema":{"type":"integer"}},"teamIdPathParam":{"name":"team_id","in":"path","description":"Team ID","required":true,"schema":{"type":"integer"}},"leagueIdPathParam":{"name":"league_id","in":"path","description":"League ID","required":true,"schema":{"type":"integer"}},"heroIdPathParam":{"name":"hero_id","in":"path","description":"Hero ID","required":true,"schema":{"type":"integer"}},"fieldParam":{"name":"field","in":"path","description":"Field to aggregate on","required":true,"schema":{"type":"string"}},"limitParam":{"name":"limit","in":"query","description":"Number of matches to limit to","required":false,"schema":{"type":"integer"}},"offsetParam":{"name":"offset","in":"query","description":"Number of matches to offset start by","required":false,"schema":{"type":"integer"}},"projectParam":{"name":"project","in":"query","description":"Fields to project (array)","required":false,"schema":{"type":"string"}},"winParam":{"name":"win","in":"query","description":"Whether the player won","required":false,"schema":{"type":"integer"}},"patchParam":{"name":"patch","in":"query","description":"Patch ID","required":false,"schema":{"type":"integer"}},"gameModeParam":{"name":"game_mode","in":"query","description":"Game Mode ID","required":false,"schema":{"type":"integer"}},"lobbyTypeParam":{"name":"lobby_type","in":"query","description":"Lobby type ID","required":false,"schema":{"type":"integer"}},"regionParam":{"name":"region","in":"query","description":"Region ID","required":false,"schema":{"type":"integer"}},"dateParam":{"name":"date","in":"query","description":"Days previous","required":false,"schema":{"type":"integer"}},"laneRoleParam":{"name":"lane_role","in":"query","description":"Lane Role ID","required":false,"schema":{"type":"integer"}},"heroIdParam":{"name":"hero_id","in":"query","description":"Hero ID","required":false,"schema":{"type":"integer"}},"isRadiantParam":{"name":"is_radiant","in":"query","description":"Whether the player was radiant","required":false,"schema":{"type":"integer"}},"withHeroIdParam":{"name":"with_hero_id","in":"query","description":"Hero IDs on the player's team (array)","required":false,"schema":{"type":"integer"}},"againstHeroIdParam":{"name":"against_hero_id","in":"query","description":"Hero IDs against the player's team (array)","required":false,"schema":{"type":"integer"}},"withAccountIdParam":{"name":"with_account_id","in":"query","description":"Account IDs on the player's team (array)","required":false,"schema":{"type":"integer"}},"againstAccountIdParam":{"name":"against_account_id","in":"query","description":"Account IDs against the player's team (array)","required":false,"schema":{"type":"integer"}},"includedAccountIdParam":{"name":"included_account_id","in":"query","description":"Account IDs in the match (array)","required":false,"schema":{"type":"integer"}},"excludedAccountIdParam":{"name":"excluded_account_id","in":"query","description":"Account IDs not in the match (array)","required":false,"schema":{"type":"integer"}},"significantParam":{"name":"significant","in":"query","description":"Whether the match was significant for aggregation purposes. Defaults to 1 (true), set this to 0 to return data for non-standard modes/matches.","required":false,"schema":{"type":"integer"}},"sortParam":{"name":"sort","in":"query","description":"The field to return matches sorted by in descending order","required":false,"schema":{"type":"string"}},"havingParam":{"name":"having","in":"query","description":"The minimum number of games played, for filtering hero stats","required":false,"schema":{"type":"integer"}},"minMmrParam":{"name":"min_mmr","in":"query","description":"Minimum average MMR","required":false,"schema":{"type":"integer"}},"maxMmrParam":{"name":"max_mmr","in":"query","description":"Maximum average MMR","required":false,"schema":{"type":"integer"}},"minTimeParam":{"name":"min_time","in":"query","description":"Minimum start time (Unix time)","required":false,"schema":{"type":"integer"}},"maxTimeParam":{"name":"max_time","in":"query","description":"Maximum start time (Unix time)","required":false,"schema":{"type":"integer"}},"mmrAscendingParam":{"name":"mmr_ascending","in":"query","description":"Order by MMR ascending","required":false,"schema":{"type":"integer"}},"mmrDescendingParam":{"name":"mmr_descending","in":"query","description":"Order by MMR descending","required":false,"schema":{"type":"integer"}},"lessThanMatchIdParam":{"name":"less_than_match_id","in":"query","description":"Get matches with a match ID lower than this value","required":false,"schema":{"type":"integer"}},"matchOverviewParam":{"name":"overview","in":"query","description":"Only fetch data required for match overview page","required":false,"schema":{"type":"integer"}},"scenarioParam":{"name":"scenario","in":"query","description":"pos_chat_1min,neg_chat_1min,courier_kill,first_blood","required":false,"schema":{"type":"string"}}}},"paths":{"/matches/{match_id}":{"get":{"summary":"GET /matches/{match_id}","description":"Match data","tags":["matches"],"parameters":[{"$ref":"#/components/parameters/matchIdParam"}],"responses":{"200":{"description":"Success","content":{"application/json; charset=utf-8":{"schema":{"$ref":"#/components/schemas/MatchResponse"}}}}}}},"/playersByRank":{"get":{"summary":"GET /playersByRank","description":"Players ordered by rank/medal tier","tags":["playersByRank"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json; charset=utf-8":{"schema":{"$ref":"#/components/schemas/PlayersByRankResponse"}}}}}}},"/players/{account_id}":{"get":{"summary":"GET /players/{account_id}","description":"Player data","tags":["players"],"parameters":[{"$ref":"#/components/parameters/accountIdParam"}],"responses":{"200":{"description":"Success","content":{"application/json; charset=utf-8":{"schema":{"$ref":"#/components/schemas/PlayersResponse"}}}}}}},"/players/{account_id}/wl":{"get":{"summary":"GET /players/{account_id}/wl","description":"Win/Loss count","tags":["players"],"parameters":[{"$ref":"#/components/parameters/accountIdParam"},{"$ref":"#/components/parameters/limitParam"},{"$ref":"#/components/parameters/offsetParam"},{"$ref":"#/components/parameters/winParam"},{"$ref":"#/components/parameters/patchParam"},{"$ref":"#/components/parameters/gameModeParam"},{"$ref":"#/components/parameters/lobbyTypeParam"},{"$ref":"#/components/parameters/regionParam"},{"$ref":"#/components/parameters/dateParam"},{"$ref":"#/components/parameters/laneRoleParam"},{"$ref":"#/components/parameters/heroIdParam"},{"$ref":"#/components/parameters/isRadiantParam"},{"$ref":"#/components/parameters/includedAccountIdParam"},{"$ref":"#/components/parameters/excludedAccountIdParam"},{"$ref":"#/components/parameters/withHeroIdParam"},{"$ref":"#/components/parameters/againstHeroIdParam"},{"$ref":"#/components/parameters/significantParam"},{"$ref":"#/components/parameters/havingParam"},{"$ref":"#/components/parameters/sortParam"}],"responses":{"200":{"description":"Success","content":{"application/json; charset=utf-8":{"schema":{"$ref":"#/components/schemas/PlayerWinLossResponse"}}}}}}},"/players/{account_id}/recentMatches":{"get":{"summary":"GET /players/{account_id}/recentMatches","description":"Recent matches played","tags":["players"],"parameters":[{"$ref":"#/components/parameters/accountIdParam"}],"responses":{"200":{"description":"Success","content":{"application/json; charset=utf-8":{"schema":{"type":"array","items":{"type":"object","items":{"$ref":"#/components/schemas/PlayerRecentMatchesResponse"}}}}}}}}},"/players/{account_id}/matches":{"get":{"summary":"GET /players/{account_id}/matches","description":"Matches played","tags":["players"],"parameters":[{"$ref":"#/components/parameters/accountIdParam"},{"$ref":"#/components/parameters/limitParam"},{"$ref":"#/components/parameters/offsetParam"},{"$ref":"#/components/parameters/winParam"},{"$ref":"#/components/parameters/patchParam"},{"$ref":"#/components/parameters/gameModeParam"},{"$ref":"#/components/parameters/lobbyTypeParam"},{"$ref":"#/components/parameters/regionParam"},{"$ref":"#/components/parameters/dateParam"},{"$ref":"#/components/parameters/laneRoleParam"},{"$ref":"#/components/parameters/heroIdParam"},{"$ref":"#/components/parameters/isRadiantParam"},{"$ref":"#/components/parameters/includedAccountIdParam"},{"$ref":"#/components/parameters/excludedAccountIdParam"},{"$ref":"#/components/parameters/withHeroIdParam"},{"$ref":"#/components/parameters/againstHeroIdParam"},{"$ref":"#/components/parameters/significantParam"},{"$ref":"#/components/parameters/havingParam"},{"$ref":"#/components/parameters/sortParam"},{"$ref":"#/components/parameters/projectParam"}],"responses":{"200":{"description":"Success","content":{"application/json; charset=utf-8":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PlayerMatchesResponse"}}}}}}}},"/players/{account_id}/heroes":{"get":{"summary":"GET /players/{account_id}/heroes","description":"Heroes played","tags":["players"],"parameters":[{"$ref":"#/components/parameters/accountIdParam"},{"$ref":"#/components/parameters/limitParam"},{"$ref":"#/components/parameters/offsetParam"},{"$ref":"#/components/parameters/winParam"},{"$ref":"#/components/parameters/patchParam"},{"$ref":"#/components/parameters/gameModeParam"},{"$ref":"#/components/parameters/lobbyTypeParam"},{"$ref":"#/components/parameters/regionParam"},{"$ref":"#/components/parameters/dateParam"},{"$ref":"#/components/parameters/laneRoleParam"},{"$ref":"#/components/parameters/heroIdParam"},{"$ref":"#/components/parameters/isRadiantParam"},{"$ref":"#/components/parameters/includedAccountIdParam"},{"$ref":"#/components/parameters/excludedAccountIdParam"},{"$ref":"#/components/parameters/withHeroIdParam"},{"$ref":"#/components/parameters/againstHeroIdParam"},{"$ref":"#/components/parameters/significantParam"},{"$ref":"#/components/parameters/havingParam"},{"$ref":"#/components/parameters/sortParam"}],"responses":{"200":{"description":"Success","content":{"application/json; charset=utf-8":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PlayerHeroesResponse"}}}}}}}},"/players/{account_id}/peers":{"get":{"summary":"GET /players/{account_id}/peers","description":"Players played with","tags":["players"],"parameters":[{"$ref":"#/components/parameters/accountIdParam"},{"$ref":"#/components/parameters/limitParam"},{"$ref":"#/components/parameters/offsetParam"},{"$ref":"#/components/parameters/winParam"},{"$ref":"#/components/parameters/patchParam"},{"$ref":"#/components/parameters/gameModeParam"},{"$ref":"#/components/parameters/lobbyTypeParam"},{"$ref":"#/components/parameters/regionParam"},{"$ref":"#/components/parameters/dateParam"},{"$ref":"#/components/parameters/laneRoleParam"},{"$ref":"#/components/parameters/heroIdParam"},{"$ref":"#/components/parameters/isRadiantParam"},{"$ref":"#/components/parameters/includedAccountIdParam"},{"$ref":"#/components/parameters/excludedAccountIdParam"},{"$ref":"#/components/parameters/withHeroIdParam"},{"$ref":"#/components/parameters/againstHeroIdParam"},{"$ref":"#/components/parameters/significantParam"},{"$ref":"#/components/parameters/havingParam"},{"$ref":"#/components/parameters/sortParam"}],"responses":{"200":{"description":"Success","content":{"application/json; charset=utf-8":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PlayerPeersResponse"}}}}}}}},"/players/{account_id}/pros":{"get":{"summary":"GET /players/{account_id}/pros","description":"Pro players played with","tags":["players"],"parameters":[{"$ref":"#/components/parameters/accountIdParam"},{"$ref":"#/components/parameters/limitParam"},{"$ref":"#/components/parameters/offsetParam"},{"$ref":"#/components/parameters/winParam"},{"$ref":"#/components/parameters/patchParam"},{"$ref":"#/components/parameters/gameModeParam"},{"$ref":"#/components/parameters/lobbyTypeParam"},{"$ref":"#/components/parameters/regionParam"},{"$ref":"#/components/parameters/dateParam"},{"$ref":"#/components/parameters/laneRoleParam"},{"$ref":"#/components/parameters/heroIdParam"},{"$ref":"#/components/parameters/isRadiantParam"},{"$ref":"#/components/parameters/includedAccountIdParam"},{"$ref":"#/components/parameters/excludedAccountIdParam"},{"$ref":"#/components/parameters/withHeroIdParam"},{"$ref":"#/components/parameters/againstHeroIdParam"},{"$ref":"#/components/parameters/significantParam"},{"$ref":"#/components/parameters/havingParam"},{"$ref":"#/components/parameters/sortParam"}],"responses":{"200":{"description":"Success","content":{"application/json; charset=utf-8":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PlayerProsResponse"}}}}}}}},"/players/{account_id}/totals":{"get":{"summary":"GET /players/{account_id}/totals","description":"Totals in stats","tags":["players"],"parameters":[{"$ref":"#/components/parameters/accountIdParam"},{"$ref":"#/components/parameters/limitParam"},{"$ref":"#/components/parameters/offsetParam"},{"$ref":"#/components/parameters/winParam"},{"$ref":"#/components/parameters/patchParam"},{"$ref":"#/components/parameters/gameModeParam"},{"$ref":"#/components/parameters/lobbyTypeParam"},{"$ref":"#/components/parameters/regionParam"},{"$ref":"#/components/parameters/dateParam"},{"$ref":"#/components/parameters/laneRoleParam"},{"$ref":"#/components/parameters/heroIdParam"},{"$ref":"#/components/parameters/isRadiantParam"},{"$ref":"#/components/parameters/includedAccountIdParam"},{"$ref":"#/components/parameters/excludedAccountIdParam"},{"$ref":"#/components/parameters/withHeroIdParam"},{"$ref":"#/components/parameters/againstHeroIdParam"},{"$ref":"#/components/parameters/significantParam"},{"$ref":"#/components/parameters/havingParam"},{"$ref":"#/components/parameters/sortParam"}],"responses":{"200":{"description":"Success","content":{"application/json; charset=utf-8":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PlayerTotalsResponse"}}}}}}}},"/players/{account_id}/counts":{"get":{"summary":"GET /players/{account_id}/counts","description":"Counts in categories","tags":["players"],"parameters":[{"$ref":"#/components/parameters/accountIdParam"},{"$ref":"#/components/parameters/limitParam"},{"$ref":"#/components/parameters/offsetParam"},{"$ref":"#/components/parameters/winParam"},{"$ref":"#/components/parameters/patchParam"},{"$ref":"#/components/parameters/gameModeParam"},{"$ref":"#/components/parameters/lobbyTypeParam"},{"$ref":"#/components/parameters/regionParam"},{"$ref":"#/components/parameters/dateParam"},{"$ref":"#/components/parameters/laneRoleParam"},{"$ref":"#/components/parameters/heroIdParam"},{"$ref":"#/components/parameters/isRadiantParam"},{"$ref":"#/components/parameters/includedAccountIdParam"},{"$ref":"#/components/parameters/excludedAccountIdParam"},{"$ref":"#/components/parameters/withHeroIdParam"},{"$ref":"#/components/parameters/againstHeroIdParam"},{"$ref":"#/components/parameters/significantParam"},{"$ref":"#/components/parameters/havingParam"},{"$ref":"#/components/parameters/sortParam"}],"responses":{"200":{"description":"Success","content":{"application/json; charset=utf-8":{"schema":{"$ref":"#/components/schemas/PlayerCountsResponse"}}}}}}},"/players/{account_id}/histograms/{field}":{"get":{"summary":"GET /players/{account_id}/histograms","description":"Distribution of matches in a single stat","tags":["players"],"parameters":[{"$ref":"#/components/parameters/accountIdParam"},{"$ref":"#/components/parameters/limitParam"},{"$ref":"#/components/parameters/offsetParam"},{"$ref":"#/components/parameters/winParam"},{"$ref":"#/components/parameters/patchParam"},{"$ref":"#/components/parameters/gameModeParam"},{"$ref":"#/components/parameters/lobbyTypeParam"},{"$ref":"#/components/parameters/regionParam"},{"$ref":"#/components/parameters/dateParam"},{"$ref":"#/components/parameters/laneRoleParam"},{"$ref":"#/components/parameters/heroIdParam"},{"$ref":"#/components/parameters/isRadiantParam"},{"$ref":"#/components/parameters/includedAccountIdParam"},{"$ref":"#/components/parameters/excludedAccountIdParam"},{"$ref":"#/components/parameters/withHeroIdParam"},{"$ref":"#/components/parameters/againstHeroIdParam"},{"$ref":"#/components/parameters/significantParam"},{"$ref":"#/components/parameters/havingParam"},{"$ref":"#/components/parameters/sortParam"},{"$ref":"#/components/parameters/fieldParam"}],"responses":{"200":{"description":"Success","content":{"application/json; charset=utf-8":{"schema":{"type":"array","items":{"title":"PlayerHistogramsResponse","type":"object"}}}}}}}},"/players/{account_id}/wardmap":{"get":{"summary":"GET /players/{account_id}/wardmap","description":"Wards placed in matches played","tags":["players"],"parameters":[{"$ref":"#/components/parameters/accountIdParam"},{"$ref":"#/components/parameters/limitParam"},{"$ref":"#/components/parameters/offsetParam"},{"$ref":"#/components/parameters/winParam"},{"$ref":"#/components/parameters/patchParam"},{"$ref":"#/components/parameters/gameModeParam"},{"$ref":"#/components/parameters/lobbyTypeParam"},{"$ref":"#/components/parameters/regionParam"},{"$ref":"#/components/parameters/dateParam"},{"$ref":"#/components/parameters/laneRoleParam"},{"$ref":"#/components/parameters/heroIdParam"},{"$ref":"#/components/parameters/isRadiantParam"},{"$ref":"#/components/parameters/includedAccountIdParam"},{"$ref":"#/components/parameters/excludedAccountIdParam"},{"$ref":"#/components/parameters/withHeroIdParam"},{"$ref":"#/components/parameters/againstHeroIdParam"},{"$ref":"#/components/parameters/significantParam"},{"$ref":"#/components/parameters/havingParam"},{"$ref":"#/components/parameters/sortParam"}],"responses":{"200":{"description":"Success","content":{"application/json; charset=utf-8":{"schema":{"$ref":"#/components/schemas/PlayerWardMapResponse"}}}}}}},"/players/{account_id}/wordcloud":{"get":{"summary":"GET /players/{account_id}/wordcloud","description":"Words said/read in matches played","tags":["players"],"parameters":[{"$ref":"#/components/parameters/accountIdParam"},{"$ref":"#/components/parameters/limitParam"},{"$ref":"#/components/parameters/offsetParam"},{"$ref":"#/components/parameters/winParam"},{"$ref":"#/components/parameters/patchParam"},{"$ref":"#/components/parameters/gameModeParam"},{"$ref":"#/components/parameters/lobbyTypeParam"},{"$ref":"#/components/parameters/regionParam"},{"$ref":"#/components/parameters/dateParam"},{"$ref":"#/components/parameters/laneRoleParam"},{"$ref":"#/components/parameters/heroIdParam"},{"$ref":"#/components/parameters/isRadiantParam"},{"$ref":"#/components/parameters/includedAccountIdParam"},{"$ref":"#/components/parameters/excludedAccountIdParam"},{"$ref":"#/components/parameters/withHeroIdParam"},{"$ref":"#/components/parameters/againstHeroIdParam"},{"$ref":"#/components/parameters/significantParam"},{"$ref":"#/components/parameters/havingParam"},{"$ref":"#/components/parameters/sortParam"}],"responses":{"200":{"description":"Success","content":{"application/json; charset=utf-8":{"schema":{"$ref":"#/components/schemas/PlayerWordCloudResponse"}}}}}}},"/players/{account_id}/ratings":{"get":{"summary":"GET /players/{account_id}/ratings","description":"Player rating history","tags":["players"],"parameters":[{"$ref":"#/components/parameters/accountIdParam"}],"responses":{"200":{"description":"Success","content":{"application/json; charset=utf-8":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PlayerRatingsResponse"}}}}}}}},"/players/{account_id}/rankings":{"get":{"summary":"GET /players/{account_id}/rankings","description":"Player hero rankings","tags":["players"],"parameters":[{"$ref":"#/components/parameters/accountIdParam"}],"responses":{"200":{"description":"Success","content":{"application/json; charset=utf-8":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PlayerRankingsResponse"}}}}}}}},"/players/{account_id}/refresh":{"post":{"summary":"POST /players/{account_id}/refresh","description":"Refresh player match history","tags":["players"],"parameters":[{"$ref":"#/components/parameters/accountIdParam"}],"responses":{"200":{"description":"Success","content":{"application/json; charset=utf-8":{"schema":{"title":"PlayerRefreshResponse","type":"object"}}}}}}},"/proPlayers":{"get":{"summary":"GET /proPlayers","description":"Get list of pro players","tags":["pro players"],"responses":{"200":{"description":"Success","content":{"application/json; charset=utf-8":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PlayerObjectResponse"}}}}}}}},"/proMatches":{"get":{"summary":"GET /proMatches","description":"Get list of pro matches","tags":["pro matches"],"parameters":[{"$ref":"#/components/parameters/lessThanMatchIdParam"}],"responses":{"200":{"description":"Success","content":{"application/json; charset=utf-8":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/MatchObjectResponse"}}}}}}}},"/publicMatches":{"get":{"summary":"GET /publicMatches","description":"Get list of randomly sampled public matches","tags":["public matches"],"parameters":[{"$ref":"#/components/parameters/mmrAscendingParam"},{"$ref":"#/components/parameters/mmrDescendingParam"},{"$ref":"#/components/parameters/lessThanMatchIdParam"}],"responses":{"200":{"description":"Success","content":{"application/json; charset=utf-8":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PublicMatchesResponse"}}}}}}}},"/parsedMatches":{"get":{"summary":"GET /parsedMatches","description":"Get list of parsed match IDs","tags":["parsed matches"],"parameters":[{"$ref":"#/components/parameters/lessThanMatchIdParam"}],"responses":{"200":{"description":"Success","content":{"application/json; charset=utf-8":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ParsedMatchesResponse"}}}}}}}},"/explorer":{"get":{"summary":"GET /explorer","description":"Submit arbitrary SQL queries to the database","tags":["explorer"],"parameters":[{"name":"sql","in":"query","description":"The PostgreSQL query as percent-encoded string.","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json; charset=utf-8":{"schema":{"title":"ExplorerResponse","type":"object"}}}}}}},"/metadata":{"get":{"summary":"GET /metadata","description":"Site metadata","tags":["metadata"],"responses":{"200":{"description":"Success","content":{"application/json; charset=utf-8":{"schema":{"$ref":"#/components/schemas/MetadataResponse"}}}}}}},"/distributions":{"get":{"summary":"GET /distributions","description":"Distributions of MMR data by bracket and country","tags":["distributions"],"responses":{"200":{"description":"Success","content":{"application/json; charset=utf-8":{"schema":{"$ref":"#/components/schemas/DistributionsResponse"}}}}}}},"/search":{"get":{"summary":"GET /search","description":"Search players by personaname.","tags":["search"],"parameters":[{"name":"q","in":"query","description":"Search string","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json; charset=utf-8":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SearchResponse"}}}}}}}},"/rankings":{"get":{"summary":"GET /rankings","description":"Top players by hero","tags":["rankings"],"parameters":[{"name":"hero_id","in":"query","description":"Hero ID","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json; charset=utf-8":{"schema":{"$ref":"#/components/schemas/RankingsResponse"}}}}}}},"/benchmarks":{"get":{"summary":"GET /benchmarks","description":"Benchmarks of average stat values for a hero","tags":["benchmarks"],"parameters":[{"name":"hero_id","in":"query","description":"Hero ID","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json; charset=utf-8":{"schema":{"$ref":"#/components/schemas/BenchmarksResponse"}}}}}}},"/status":{"get":{"summary":"GET /status","description":"Get current service statistics","tags":["status"],"responses":{"200":{"description":"Success","content":{"application/json; charset=utf-8":{"schema":{"title":"StatusResponse","type":"object"}}}}}}},"/health":{"get":{"summary":"GET /health","description":"Get service health data","tags":["health"],"responses":{"200":{"description":"Success","content":{"application/json; charset=utf-8":{"schema":{"title":"HealthResponse","type":"object"}}}}}}},"/request/{jobId}":{"get":{"summary":"GET /request/{jobId}","description":"Get parse request state","tags":["request"],"parameters":[{"name":"jobId","in":"path","description":"The job ID to query.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json; charset=utf-8":{"schema":{"title":"RequestJobResponse","type":"object"}}}}}}},"/request/{match_id}":{"post":{"summary":"POST /request/{match_id}","description":"Submit a new parse request","tags":["request"],"parameters":[{"$ref":"#/components/parameters/matchIdParam"}],"responses":{"200":{"description":"Success","content":{"application/json; charset=utf-8":{"schema":{"title":"RequestMatchResponse","type":"object"}}}}}}},"/findMatches":{"get":{"summary":"GET /","description":"Finds recent matches by heroes played","tags":["findMatches"],"parameters":[{"name":"teamA","in":"query","description":"Hero IDs on first team (array)","required":false,"style":"form","explode":false,"schema":{"type":"array","items":{"type":"integer"}}},{"name":"teamB","in":"query","description":"Hero IDs on second team (array)","required":false,"style":"form","explode":false,"schema":{"type":"array","items":{"type":"integer"}}}],"responses":{"200":{"description":"Success","content":{"application/json; charset=utf-8":{"schema":{"title":"FindMatchesResponse","type":"array","items":{"type":"object"}}}}}}}},"/heroes":{"get":{"summary":"GET /heroes","description":"Get hero data","tags":["heroes"],"responses":{"200":{"description":"Success","content":{"application/json; charset=utf-8":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/HeroObjectResponse"}}}}}}}},"/heroStats":{"get":{"summary":"GET /heroStats","description":"Get stats about hero performance in recent matches","tags":["hero stats"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json; charset=utf-8":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/HeroStatsResponse"}}}}}}}},"/heroes/{hero_id}/matches":{"get":{"summary":"GET /heroes/{hero_id}/matches","description":"Get recent matches with a hero","tags":["heroes"],"parameters":[{"$ref":"#/components/parameters/heroIdPathParam"}],"responses":{"200":{"description":"Success","content":{"application/json; charset=utf-8":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/MatchObjectResponse"}}}}}}}},"/heroes/{hero_id}/matchups":{"get":{"summary":"GET /heroes/{hero_id}/matchups","description":"Get results against other heroes for a hero","tags":["heroes"],"parameters":[{"$ref":"#/components/parameters/heroIdPathParam"}],"responses":{"200":{"description":"Success","content":{"application/json; charset=utf-8":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/HeroMatchupsResponse"}}}}}}}},"/heroes/{hero_id}/durations":{"get":{"summary":"GET /heroes/{hero_id}/durations","description":"Get hero performance over a range of match durations","tags":["heroes"],"parameters":[{"$ref":"#/components/parameters/heroIdPathParam"}],"responses":{"200":{"description":"Success","content":{"application/json; charset=utf-8":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/HeroDurationsResponse"}}}}}}}},"/heroes/{hero_id}/players":{"get":{"summary":"GET /heroes/{hero_id}/players","description":"Get players who have played this hero","tags":["heroes"],"parameters":[{"$ref":"#/components/parameters/heroIdPathParam"}],"responses":{"200":{"description":"Success","content":{"application/json; charset=utf-8":{"schema":{"type":"array","items":{"type":"array","items":{"$ref":"#/components/schemas/PlayerObjectResponse"}}}}}}}}},"/heroes/{hero_id}/itemPopularity":{"get":{"summary":"GET /heroes/{hero_id}/itemPopularity","description":"Get item popularity of hero categoried by start, early, mid and late game, analyzed from professional games","tags":["heroes"],"parameters":[{"$ref":"#/components/parameters/heroIdPathParam"}],"responses":{"200":{"description":"Success","content":{"application/json; charset=utf-8":{"schema":{"$ref":"#/components/schemas/HeroItemPopularityResponse"}}}}}}},"/leagues":{"get":{"summary":"GET /leagues","description":"Get league data","tags":["leagues"],"responses":{"200":{"description":"Success","content":{"application/json; charset=utf-8":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/LeagueObjectResponse"}}}}}}}},"/leagues/{league_id}":{"get":{"summary":"GET /leagues/{league_id}","description":"Get data for a league","tags":["leagues"],"parameters":[{"$ref":"#/components/parameters/leagueIdPathParam"}],"responses":{"200":{"description":"Success","content":{"application/json; charset=utf-8":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/LeagueObjectResponse"}}}}}}}},"/leagues/{league_id}/matches":{"get":{"summary":"GET /leagues/{league_id}/matches","description":"Get matches for a team","tags":["leagues"],"parameters":[{"$ref":"#/components/parameters/leagueIdPathParam"}],"responses":{"200":{"description":"Success","content":{"application/json; charset=utf-8":{"schema":{"$ref":"#/components/schemas/MatchObjectResponse"}}}}}}},"/leagues/{league_id}/teams":{"get":{"summary":"GET /leagues/{league_id}/teams","description":"Get teams for a league","tags":["leagues"],"parameters":[{"$ref":"#/components/parameters/leagueIdPathParam"}],"responses":{"200":{"description":"Success","content":{"application/json; charset=utf-8":{"schema":{"$ref":"#/components/schemas/TeamObjectResponse"}}}}}}},"/teams":{"get":{"summary":"GET /teams","description":"Get team data","tags":["teams"],"parameters":[{"name":"page","in":"query","description":"Page number, zero indexed. Each page returns up to 1000 entries.","required":false,"schema":{"type":"integer"}}],"responses":{"200":{"description":"Success","content":{"application/json; charset=utf-8":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/TeamObjectResponse"}}}}}}}},"/teams/{team_id}":{"get":{"summary":"GET /teams/{team_id}","description":"Get data for a team","tags":["teams"],"parameters":[{"$ref":"#/components/parameters/teamIdPathParam"}],"responses":{"200":{"description":"Success","content":{"application/json; charset=utf-8":{"schema":{"$ref":"#/components/schemas/TeamObjectResponse"}}}}}}},"/teams/{team_id}/matches":{"get":{"summary":"GET /teams/{team_id}/matches","description":"Get matches for a team","tags":["teams"],"parameters":[{"$ref":"#/components/parameters/teamIdPathParam"}],"responses":{"200":{"description":"Success","content":{"application/json; charset=utf-8":{"schema":{"$ref":"#/components/schemas/TeamMatchObjectResponse"}}}}}}},"/teams/{team_id}/players":{"get":{"summary":"GET /teams/{team_id}/players","description":"Get players who have played for a team","tags":["teams"],"parameters":[{"$ref":"#/components/parameters/teamIdPathParam"}],"responses":{"200":{"description":"Success","content":{"application/json; charset=utf-8":{"schema":{"$ref":"#/components/schemas/TeamPlayersResponse"}}}}}}},"/teams/{team_id}/heroes":{"get":{"summary":"GET /teams/{team_id}/heroes","description":"Get heroes for a team","tags":["teams"],"parameters":[{"$ref":"#/components/parameters/teamIdPathParam"}],"responses":{"200":{"description":"Success","content":{"application/json; charset=utf-8":{"schema":{"$ref":"#/components/schemas/TeamHeroesResponse"}}}}}}},"/replays":{"get":{"summary":"GET /replays","description":"Get data to construct a replay URL with","tags":["replays"],"parameters":[{"$ref":"#/components/parameters/matchIdParam"}],"responses":{"200":{"description":"Success","content":{"application/json; charset=utf-8":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ReplaysResponse"}}}}}}}},"/records/{field}":{"get":{"summary":"GET /records/{field}","description":"Get top performances in a stat","tags":["records"],"parameters":[{"name":"field","in":"path","description":"Field name to query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json; charset=utf-8":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/RecordsResponse"}}}}}}}},"/live":{"get":{"summary":"GET /live","description":"Get top currently ongoing live games","tags":["live"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json; charset=utf-8":{"schema":{"type":"array","items":{"title":"LiveResponse","type":"object","properties":{}}}}}}}}},"/scenarios/itemTimings":{"get":{"summary":"GET /scenarios/itemTimings","description":"Win rates for certain item timings on a hero for items that cost at least 1400 gold","tags":["scenarios"],"parameters":[{"name":"item","in":"query","description":"Filter by item name e.g. \"spirit_vessel\"","required":false,"schema":{"type":"string"}},{"$ref":"#/components/parameters/heroIdParam"}],"responses":{"200":{"description":"Success","content":{"application/json; charset=utf-8":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ScenarioItemTimingsResponse"}}}}}}}},"/scenarios/laneRoles":{"get":{"summary":"GET /scenarios/laneRoles","description":"Win rates for heroes in certain lane roles","tags":["scenarios"],"parameters":[{"name":"lane_role","in":"query","description":"Filter by lane role 1-4 (Safe, Mid, Off, Jungle)","required":false,"schema":{"type":"string"}},{"$ref":"#/components/parameters/heroIdParam"}],"responses":{"200":{"description":"Success","content":{"application/json; charset=utf-8":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ScenarioLaneRolesResponse"}}}}}}}},"/scenarios/misc":{"get":{"summary":"GET /scenarios/misc","description":"Miscellaneous team scenarios","tags":["scenarios"],"parameters":[{"$ref":"#/components/parameters/scenarioParam"}],"responses":{"200":{"description":"Success","content":{"application/json; charset=utf-8":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ScenarioMiscResponse"}}}}}}}},"/schema":{"get":{"summary":"GET /schema","description":"Get database schema","tags":["schema"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json; charset=utf-8":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SchemaResponse"}}}}}}}},"/constants/{resource}":{"get":{"summary":"GET /constants","description":"Get static game data mirrored from the dotaconstants repository.","tags":["constants"],"parameters":[{"name":"resource","in":"path","description":"Resource name e.g. `heroes`. [List of resources](https://github.com/odota/dotaconstants/tree/master/build)","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json; charset=utf-8":{"schema":{"nullable":true,"oneOf":[{"type":"object","additionalProperties":{"title":"ConstantResourceResponse"}},{"type":"array","items":{"oneOf":[{"type":"object","additionalProperties":{"title":"ConstantResourceResponse"}},{"type":"integer"}]}}]}}}}}}},"/constants":{"get":{"summary":"GET /constants","description":"Gets an array of available resources.","tags":["constants"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json; charset=utf-8":{"schema":{"type":"array","items":{"title":"ConstantsResponse","type":"string"}}}}}}}}}} \ No newline at end of file +{"openapi":"3.0.3","info":{"title":"OpenDota API","description":"# Introduction\nThe OpenDota API provides Dota 2 related data including advanced match data extracted from match replays.\n\nYou can find data that can be used to convert hero and ability IDs and other information provided by the API from the [dotaconstants](https://github.com/odota/dotaconstants) repository.\n\n**Beginning 2018-04-22, the OpenDota API is limited to 50,000 free calls per month and 60 requests/minute** We offer a Premium Tier with unlimited API calls and higher rate limits. Check out the [API page](https://www.opendota.com/api-keys) to learn more.\n","version":"20.0.0"},"servers":[{"url":"https://api.opendota.com/api"}],"components":{"securitySchemes":{"api_key":{"type":"apiKey","name":"api_key","description":"Use an API key to remove monthly call limits and to receive higher rate limits. [Learn more and get your API key](https://www.opendota.com/api-keys).\n Usage example: https://api.opendota.com/api/matches/271145478?api_key=YOUR-API-KEY\n \n API key can also be sent using the authorization header \"Authorization: Bearer YOUR-API-KEY\"\n ","in":"query"}},"schemas":{"MatchResponse":{"title":"MatchResponse","type":"object","properties":{"match_id":{"description":"The ID number of the match assigned by Valve","type":"integer"},"barracks_status_dire":{"description":"Bitmask. An integer that represents a binary of which barracks are still standing. 63 would mean all barracks still stand at the end of the game.","type":"integer"},"barracks_status_radiant":{"description":"Bitmask. An integer that represents a binary of which barracks are still standing. 63 would mean all barracks still stand at the end of the game.","type":"integer"},"chat":{"description":"Array containing information on the chat of the game","type":"array","items":{"type":"object","properties":{"time":{"description":"Time in seconds at which the message was said","type":"integer"},"unit":{"description":"Name of the player who sent the message","type":"string"},"key":{"description":"The message the player sent","type":"string"},"slot":{"description":"slot","type":"integer"},"player_slot":{"description":"Which slot the player is in. 0-127 are Radiant, 128-255 are Dire","type":"integer"}}}},"cluster":{"description":"cluster","type":"integer"},"cosmetics":{"description":"cosmetics","type":"object","additionalProperties":{"type":"integer"}},"dire_score":{"description":"Final score for Dire (number of kills on Radiant)","type":"integer"},"draft_timings":{"description":"draft_timings","type":"array","items":{"description":"draft_stage","type":"object","properties":{"order":{"description":"order","type":"integer"},"pick":{"description":"pick","type":"boolean"},"active_team":{"description":"active_team","type":"integer"},"hero_id":{"description":"The ID value of the hero played","type":"integer"},"player_slot":{"description":"Which slot the player is in. 0-127 are Radiant, 128-255 are Dire","type":"integer"},"extra_time":{"description":"extra_time","type":"integer"},"total_time_taken":{"description":"total_time_taken","type":"integer"}}}},"duration":{"description":"Duration of the game in seconds","type":"integer"},"engine":{"description":"engine","type":"integer"},"first_blood_time":{"description":"Time in seconds at which first blood occurred","type":"integer"},"game_mode":{"description":"Integer corresponding to game mode played. List of constants can be found here: https://github.com/odota/dotaconstants/blob/master/json/game_mode.json","type":"integer"},"human_players":{"description":"Number of human players in the game","type":"integer"},"leagueid":{"description":"leagueid","type":"integer"},"lobby_type":{"description":"Integer corresponding to lobby type of match. List of constants can be found here: https://github.com/odota/dotaconstants/blob/master/json/lobby_type.json","type":"integer"},"match_seq_num":{"description":"match_seq_num","type":"integer"},"negative_votes":{"description":"Number of negative votes the replay received in the in-game client","type":"integer"},"objectives":{"description":"objectives","type":"array","items":{"type":"object"}},"picks_bans":{"description":"Array containing information on the draft. Each item contains a boolean relating to whether the choice is a pick or a ban, the hero ID, the team the picked or banned it, and the order.","type":"array","items":{"type":"object","properties":{"is_pick":{"description":"Boolean indicating whether the choice is a pick or a ban","type":"boolean"},"hero_id":{"description":"The hero ID","type":"integer"},"team":{"description":"The team that picked or banned the hero","type":"integer"},"order":{"description":"The order of the pick or ban","type":"integer"}}}},"positive_votes":{"description":"Number of positive votes the replay received in the in-game client","type":"integer"},"radiant_gold_adv":{"description":"Array of the Radiant gold advantage at each minute in the game. A negative number means that Radiant is behind, and thus it is their gold disadvantage. ","type":"array","items":{"type":"number"}},"radiant_score":{"description":"Final score for Radiant (number of kills on Radiant)","type":"integer"},"radiant_win":{"description":"Boolean indicating whether Radiant won the match","type":"boolean"},"radiant_xp_adv":{"description":"Array of the Radiant experience advantage at each minute in the game. A negative number means that Radiant is behind, and thus it is their experience disadvantage. ","type":"array","items":{"type":"number"}},"start_time":{"description":"The Unix timestamp at which the game started","type":"integer"},"teamfights":{"description":"teamfights","type":"array","items":{"type":"array","items":{"type":"object"}}},"tower_status_dire":{"description":"Bitmask. An integer that represents a binary of which Dire towers are still standing.","type":"integer"},"tower_status_radiant":{"description":"Bitmask. An integer that represents a binary of which Radiant towers are still standing.","type":"integer"},"version":{"description":"Parse version, used internally by OpenDota","type":"integer"},"replay_salt":{"description":"replay_salt","type":"integer"},"series_id":{"description":"series_id","type":"integer"},"series_type":{"description":"series_type","type":"integer"},"radiant_team":{"description":"radiant_team","type":"object"},"dire_team":{"description":"dire_team","type":"object"},"league":{"description":"league","type":"object"},"skill":{"description":"Skill bracket assigned by Valve (Normal, High, Very High)","type":"integer"},"players":{"description":"Array of information on individual players","type":"array","items":{"description":"player","type":"object","properties":{"match_id":{"description":"Match ID","type":"integer"},"player_slot":{"description":"Which slot the player is in. 0-127 are Radiant, 128-255 are Dire","type":"integer"},"ability_upgrades_arr":{"description":"An array describing how abilities were upgraded","type":"array","items":{"type":"integer"}},"ability_uses":{"description":"Object containing information on how many times the played used their abilities","type":"object"},"ability_targets":{"description":"Object containing information on who the player used their abilities on","type":"object"},"damage_targets":{"description":"Object containing information on how and how much damage the player dealt to other heroes","type":"object"},"account_id":{"description":"account_id","type":"integer"},"actions":{"description":"Object containing information on how many and what type of actions the player issued to their hero","type":"object"},"additional_units":{"description":"Object containing information on additional units the player had under their control","type":"array","items":{"type":"object"},"nullable":true},"assists":{"description":"Number of assists the player had","type":"integer"},"backpack_0":{"description":"Item in backpack slot 0","type":"integer"},"backpack_1":{"description":"Item in backpack slot 1","type":"integer"},"backpack_2":{"description":"Item in backpack slot 2","type":"integer"},"buyback_log":{"description":"Array containing information about buybacks","type":"array","items":{"type":"object","properties":{"time":{"description":"Time in seconds the buyback occurred","type":"integer"},"slot":{"description":"slot","type":"integer"},"player_slot":{"description":"Which slot the player is in. 0-127 are Radiant, 128-255 are Dire","type":"integer"}}}},"camps_stacked":{"description":"Number of camps stacked","type":"integer"},"connection_log":{"description":"Array containing information about the player's disconnections and reconnections","type":"array","items":{"type":"object","properties":{"time":{"description":"Game time in seconds the event occurred","type":"integer"},"event":{"description":"Event that occurred","type":"string"},"player_slot":{"description":"Which slot the player is in. 0-127 are Radiant, 128-255 are Dire","type":"integer"}}}},"creeps_stacked":{"description":"Number of creeps stacked","type":"integer"},"damage":{"description":"Object containing information about damage dealt by the player to different units","type":"object"},"damage_inflictor":{"description":"Object containing information about about the sources of this player's damage to heroes","type":"object"},"damage_inflictor_received":{"description":"Object containing information about the sources of damage received by this player from heroes","type":"object"},"damage_taken":{"description":"Object containing information about from whom the player took damage","type":"object"},"deaths":{"description":"Number of deaths","type":"integer"},"denies":{"description":"Number of denies","type":"integer"},"dn_t":{"description":"Array containing number of denies at different times of the match","type":"array","items":{"type":"integer"}},"gold":{"description":"Gold at the end of the game","type":"integer"},"gold_per_min":{"description":"Gold Per Minute obtained by this player","type":"integer"},"gold_reasons":{"description":"Object containing information on how the player gained gold over the course of the match","type":"object"},"gold_spent":{"description":"How much gold the player spent","type":"integer"},"gold_t":{"description":"Array containing total gold at different times of the match","type":"array","items":{"type":"integer"}},"hero_damage":{"description":"Hero Damage Dealt","type":"integer"},"hero_healing":{"description":"Hero Healing Done","type":"integer"},"hero_hits":{"description":"Object containing information on how many ticks of damages the hero inflicted with different spells and damage inflictors","type":"object"},"hero_id":{"description":"The ID value of the hero played","type":"integer"},"item_0":{"description":"Item in the player's first slot","type":"integer"},"item_1":{"description":"Item in the player's second slot","type":"integer"},"item_2":{"description":"Item in the player's third slot","type":"integer"},"item_3":{"description":"Item in the player's fourth slot","type":"integer"},"item_4":{"description":"Item in the player's fifth slot","type":"integer"},"item_5":{"description":"Item in the player's sixth slot","type":"integer"},"item_uses":{"description":"Object containing information about how many times a player used items","type":"object"},"kill_streaks":{"description":"Object containing information about the player's killstreaks","type":"object"},"killed":{"description":"Object containing information about what units the player killed","type":"object"},"killed_by":{"description":"Object containing information about who killed the player","type":"object"},"kills":{"description":"Number of kills","type":"integer"},"kills_log":{"description":"Array containing information on which hero the player killed at what time","type":"array","items":{"type":"object","properties":{"time":{"description":"Time in seconds the player killed the hero","type":"integer"},"key":{"description":"Hero killed","type":"string"}}}},"lane_pos":{"description":"Object containing information on lane position","type":"object"},"last_hits":{"description":"Number of last hits","type":"integer"},"leaver_status":{"description":"Integer describing whether or not the player left the game. 0: didn't leave. 1: left safely. 2+: Abandoned","type":"integer"},"level":{"description":"Level at the end of the game","type":"integer"},"lh_t":{"description":"Array describing last hits at each minute in the game","type":"array","items":{"type":"integer"}},"life_state":{"description":"life_state","type":"object"},"max_hero_hit":{"description":"Object with information on the highest damage instance the player inflicted","type":"object"},"multi_kills":{"description":"Object with information on the number of the number of multikills the player had","type":"object"},"obs":{"description":"Object with information on where the player placed observer wards. The location takes the form (outer number, inner number) and are from ~64-192.","type":"object"},"obs_left_log":{"description":"obs_left_log","type":"array","items":{"type":"object"}},"obs_log":{"description":"Object containing information on when and where the player placed observer wards","type":"array","items":{"type":"object"}},"obs_placed":{"description":"Total number of observer wards placed","type":"integer"},"party_id":{"description":"party_id","type":"integer"},"permanent_buffs":{"description":"Array describing permanent buffs the player had at the end of the game. List of constants can be found here: https://github.com/odota/dotaconstants/blob/master/json/permanent_buffs.json","type":"array","items":{"type":"object"}},"pings":{"description":"Total number of pings","type":"integer"},"purchase":{"description":"Object containing information on the items the player purchased","type":"object"},"purchase_log":{"description":"Object containing information on when items were purchased","type":"array","items":{"type":"object","properties":{"time":{"description":"Time in seconds the item was bought","type":"integer"},"key":{"description":"String item ID","type":"string"},"charges":{"description":"Integer amount of charges","type":"integer"}}}},"rune_pickups":{"description":"Number of runes picked up","type":"integer"},"runes":{"description":"Object with information about which runes the player picked up","type":"object","additionalProperties":{"type":"integer"}},"runes_log":{"description":"Array with information on when runes were picked up","type":"array","items":{"type":"object","properties":{"time":{"description":"Time in seconds rune picked up","type":"integer"},"key":{"description":"key","type":"integer"}}}},"sen":{"description":"Object with information on where sentries were placed. The location takes the form (outer number, inner number) and are from ~64-192.","type":"object"},"sen_left_log":{"description":"Array containing information on when and where the player placed sentries","type":"array","items":{"type":"object"}},"sen_log":{"description":"Array with information on when and where sentries were placed by the player","type":"array","items":{"type":"object"}},"sen_placed":{"description":"How many sentries were placed by the player","type":"integer"},"stuns":{"description":"Total stun duration of all stuns by the player","type":"number"},"times":{"description":"Time in seconds corresponding to the time of entries of other arrays in the match.","type":"array","items":{"type":"integer"}},"tower_damage":{"description":"Total tower damage done by the player","type":"integer"},"xp_per_min":{"description":"Experience Per Minute obtained by the player","type":"integer"},"xp_reasons":{"description":"Object containing information on the sources of this player's experience","type":"object"},"xp_t":{"description":"Experience at each minute of the game","type":"array","items":{"type":"integer"}},"personaname":{"description":"personaname","type":"string","nullable":true},"name":{"description":"name","type":"string","nullable":true},"last_login":{"description":"Time of player's last login","type":"string","format":"date-time","nullable":true},"radiant_win":{"description":"Boolean indicating whether Radiant won the match","type":"boolean"},"start_time":{"description":"Start time of the match in seconds since 1970","type":"integer"},"duration":{"description":"Duration of the game in seconds","type":"integer"},"cluster":{"description":"cluster","type":"integer"},"lobby_type":{"description":"Integer corresponding to lobby type of match. List of constants can be found here: https://github.com/odota/dotaconstants/blob/master/json/lobby_type.json","type":"integer"},"game_mode":{"description":"Integer corresponding to game mode played. List of constants can be found here: https://github.com/odota/dotaconstants/blob/master/json/game_mode.json","type":"integer"},"patch":{"description":"Integer representing the patch the game was played on","type":"integer"},"region":{"description":"Integer corresponding to the region the game was played on","type":"integer"},"isRadiant":{"description":"Boolean for whether or not the player is on Radiant","type":"boolean"},"win":{"description":"Binary integer representing whether or not the player won","type":"integer"},"lose":{"description":"Binary integer representing whether or not the player lost","type":"integer"},"total_gold":{"description":"Total gold at the end of the game","type":"integer"},"total_xp":{"description":"Total experience at the end of the game","type":"integer"},"kills_per_min":{"description":"Number of kills per minute","type":"number"},"kda":{"description":"kda","type":"number"},"abandons":{"description":"abandons","type":"integer"},"neutral_kills":{"description":"Total number of neutral creeps killed","type":"integer"},"tower_kills":{"description":"Total number of tower kills the player had","type":"integer"},"courier_kills":{"description":"Total number of courier kills the player had","type":"integer"},"lane_kills":{"description":"Total number of lane creeps killed by the player","type":"integer"},"hero_kills":{"description":"Total number of heroes killed by the player","type":"integer"},"observer_kills":{"description":"Total number of observer wards killed by the player","type":"integer"},"sentry_kills":{"description":"Total number of sentry wards killed by the player","type":"integer"},"roshan_kills":{"description":"Total number of roshan kills (last hit on roshan) the player had","type":"integer"},"necronomicon_kills":{"description":"Total number of Necronomicon creeps killed by the player","type":"integer"},"ancient_kills":{"description":"Total number of Ancient creeps killed by the player","type":"integer"},"buyback_count":{"description":"Total number of buyback the player used","type":"integer"},"observer_uses":{"description":"Number of observer wards used","type":"integer"},"sentry_uses":{"description":"Number of sentry wards used","type":"integer"},"lane_efficiency":{"description":"lane_efficiency","type":"number"},"lane_efficiency_pct":{"description":"lane_efficiency_pct","type":"number"},"lane":{"description":"Integer referring to which lane the hero laned in","type":"integer","nullable":true},"lane_role":{"description":"lane_role","type":"integer","nullable":true},"is_roaming":{"description":"Boolean referring to whether or not the player roamed","type":"boolean","nullable":true},"purchase_time":{"description":"Object with information on when the player last purchased an item","type":"object"},"first_purchase_time":{"description":"Object with information on when the player first purchased an item","type":"object"},"item_win":{"description":"Object with information on whether or not the item won","type":"object"},"item_usage":{"description":"Object containing binary integers the tell whether the item was purchased by the player (note: this is always 1)","type":"object"},"purchase_tpscroll":{"description":"Total number of TP scrolls purchased by the player","type":"integer"},"actions_per_min":{"description":"Actions per minute","type":"integer"},"life_state_dead":{"description":"life_state_dead","type":"integer"},"rank_tier":{"description":"The rank tier of the player. Tens place indicates rank, ones place indicates stars.","type":"integer"},"cosmetics":{"description":"cosmetics","type":"array","items":{"type":"object","properties":{"item_id":{"type":"integer"},"name":{"type":"string"},"prefab":{"type":"string"},"creation_date":{"type":"string","format":"date-time","nullable":true},"image_inventory":{"type":"string","nullable":true},"image_path":{"type":"string","nullable":true},"item_description":{"type":"string","nullable":true},"item_name":{"type":"string"},"item_rarity":{"type":"string","nullable":true},"item_type_name":{"type":"string","nullable":true},"used_by_heroes":{"type":"string","nullable":true}}}},"benchmarks":{"description":"Object containing information on certain benchmarks like GPM, XPM, KDA, tower damage, etc","type":"object"}}}},"patch":{"description":"Information on the patch version the game is played on","type":"integer"},"region":{"description":"Integer corresponding to the region the game was played on","type":"integer"},"all_word_counts":{"description":"Word counts of the all chat messages in the player's games","type":"object"},"my_word_counts":{"description":"Word counts of the player's all chat messages","type":"object"},"throw":{"description":"Maximum gold advantage of the player's team if they lost the match","type":"integer"},"comeback":{"description":"Maximum gold disadvantage of the player's team if they won the match","type":"integer"},"loss":{"description":"Maximum gold disadvantage of the player's team if they lost the match","type":"integer"},"win":{"description":"Maximum gold advantage of the player's team if they won the match","type":"integer"},"replay_url":{"description":"replay_url","type":"string"}}},"PlayersByRankResponse":{"title":"PlayersByRankResponse","type":"array","items":{"type":"object","properties":{"account_id":{"description":"account_id","type":"number"},"rank_tier":{"description":"Integer indicating the rank/medal of the player","type":"number"},"fh_unavailable":{"description":"Indicates if we were unable to fetch full history for this player due to privacy settings","type":"boolean","nullable":true}}}},"PlayersResponse":{"title":"PlayerResponse","type":"object","properties":{"solo_competitive_rank":{"description":"solo_competitive_rank","type":"integer","nullable":true},"competitive_rank":{"description":"competitive_rank","type":"integer","nullable":true},"rank_tier":{"description":"rank_tier","type":"number","nullable":true},"leaderboard_rank":{"description":"leaderboard_rank","type":"number","nullable":true},"mmr_estimate":{"description":"mmr_estimate","type":"object","properties":{"estimate":{"description":"estimate","type":"number","nullable":true}}},"profile":{"description":"profile","type":"object","properties":{"account_id":{"description":"account_id","type":"integer"},"personaname":{"description":"personaname","type":"string","nullable":true},"name":{"description":"name","type":"string","nullable":true},"plus":{"description":"Boolean indicating status of current Dota Plus subscription","type":"boolean"},"cheese":{"description":"cheese","type":"integer","nullable":true},"steamid":{"description":"steamid","type":"string","nullable":true},"avatar":{"description":"avatar","type":"string","nullable":true},"avatarmedium":{"description":"avatarmedium","type":"string","nullable":true},"avatarfull":{"description":"avatarfull","type":"string","nullable":true},"profileurl":{"description":"profileurl","type":"string","nullable":true},"last_login":{"description":"last_login","type":"string","nullable":true},"loccountrycode":{"description":"loccountrycode","type":"string","nullable":true},"is_contributor":{"description":"Boolean indicating if the user contributed to the development of OpenDota","type":"boolean","default":false},"is_subscriber":{"description":"Boolean indicating if the user subscribed to OpenDota","type":"boolean","default":false}}}}},"PlayerWinLossResponse":{"title":"PlayerWinLossResponse","type":"object","properties":{"win":{"description":"Number of wins","type":"integer"},"lose":{"description":"Number of loses","type":"integer"}}},"PlayerRecentMatchesResponse":{"title":"PlayerRecentMatchesResponse","description":"match","type":"object","properties":{"match_id":{"description":"Match ID","type":"integer"},"player_slot":{"description":"Which slot the player is in. 0-127 are Radiant, 128-255 are Dire","type":"integer"},"radiant_win":{"description":"Boolean indicating whether Radiant won the match","type":"boolean"},"duration":{"description":"Duration of the game in seconds","type":"integer"},"game_mode":{"description":"Integer corresponding to game mode played. List of constants can be found here: https://github.com/odota/dotaconstants/blob/master/json/game_mode.json","type":"integer"},"lobby_type":{"description":"Integer corresponding to lobby type of match. List of constants can be found here: https://github.com/odota/dotaconstants/blob/master/json/lobby_type.json","type":"integer"},"hero_id":{"description":"The ID value of the hero played","type":"integer"},"start_time":{"description":"Start time of the match in seconds elapsed since 1970","type":"integer"},"version":{"description":"version","type":"integer","nullable":true},"kills":{"description":"Total kills the player had at the end of the match","type":"integer"},"deaths":{"description":"Total deaths the player had at the end of the match","type":"integer"},"assists":{"description":"Total assists the player had at the end of the match","type":"integer"},"skill":{"description":"Skill bracket assigned by Valve (Normal, High, Very High). If the skill is unknown, will return null.","type":"integer","nullable":true},"average_rank":{"description":"Average rank of players with public match data","type":"integer","nullable":true},"xp_per_min":{"description":"Experience Per Minute obtained by the player","type":"integer"},"gold_per_min":{"description":"Average gold per minute of the player","type":"integer"},"hero_damage":{"description":"Total hero damage to enemy heroes","type":"integer"},"hero_healing":{"description":"Total healing of ally heroes","type":"integer"},"last_hits":{"description":"Total last hits the player had at the end of the match","type":"integer"},"lane":{"description":"Integer corresponding to which lane the player laned in for the match","type":"integer","nullable":true},"lane_role":{"description":"lane_role","type":"integer","nullable":true},"is_roaming":{"description":"Boolean describing whether or not the player roamed","type":"boolean","nullable":true},"cluster":{"description":"cluster","type":"integer"},"leaver_status":{"description":"Integer describing whether or not the player left the game. 0: didn't leave. 1: left safely. 2+: Abandoned","type":"integer"},"party_size":{"description":"Size of the players party. If not in a party, will return 1.","type":"integer","nullable":true}}},"PlayerMatchesResponse":{"title":"PlayerMatchesResponse","description":"Object containing information on the match","type":"object","properties":{"match_id":{"description":"Match ID","type":"integer"},"player_slot":{"description":"Which slot the player is in. 0-127 are Radiant, 128-255 are Dire","type":"integer"},"radiant_win":{"description":"Boolean indicating whether Radiant won the match","type":"boolean"},"duration":{"description":"Duration of the game in seconds","type":"integer"},"game_mode":{"description":"Integer corresponding to game mode played. List of constants can be found here: https://github.com/odota/dotaconstants/blob/master/json/game_mode.json","type":"integer"},"lobby_type":{"description":"Integer corresponding to lobby type of match. List of constants can be found here: https://github.com/odota/dotaconstants/blob/master/json/lobby_type.json","type":"integer"},"hero_id":{"description":"The ID value of the hero played","type":"integer"},"start_time":{"description":"Time the game started in seconds since 1970","type":"integer"},"version":{"description":"version","type":"integer","nullable":true},"kills":{"description":"Total kills the player had at the end of the game","type":"integer"},"deaths":{"description":"Total deaths the player had at the end of the game","type":"integer"},"assists":{"description":"Total assists the player had at the end of the game","type":"integer"},"skill":{"description":"Skill bracket assigned by Valve (Normal, High, Very High)","type":"integer","nullable":true},"average_rank":{"description":"Average rank of players with public match data","type":"integer","nullable":true},"leaver_status":{"description":"Integer describing whether or not the player left the game. 0: didn't leave. 1: left safely. 2+: Abandoned","type":"integer"},"party_size":{"description":"Size of the player's party","type":"integer","nullable":true}}},"PlayerHeroesResponse":{"title":"PlayerHeroesResponse","description":"hero","type":"object","properties":{"hero_id":{"description":"The ID value of the hero played","type":"string"},"last_played":{"description":"last_played","type":"integer"},"games":{"description":"games","type":"integer"},"win":{"description":"win","type":"integer"},"with_games":{"description":"with_games","type":"integer"},"with_win":{"description":"with_win","type":"integer"},"against_games":{"description":"against_games","type":"integer"},"against_win":{"description":"against_win","type":"integer"}}},"PlayerPeersResponse":{"title":"PlayerPeersResponse","type":"object","properties":{"account_id":{"description":"account_id","type":"integer"},"last_played":{"description":"last_played","type":"integer"},"win":{"description":"win","type":"integer"},"games":{"description":"games","type":"integer"},"with_win":{"description":"with_win","type":"integer"},"with_games":{"description":"with_games","type":"integer"},"against_win":{"description":"against_win","type":"integer"},"against_games":{"description":"against_games","type":"integer"},"with_gpm_sum":{"description":"with_gpm_sum","type":"integer"},"with_xpm_sum":{"description":"with_xpm_sum","type":"integer"},"personaname":{"description":"personaname","type":"string","nullable":true},"name":{"description":"name","type":"string","nullable":true},"is_contributor":{"description":"is_contributor","type":"boolean"},"is_subscriber":{"description":"is_subscriber","type":"boolean"},"last_login":{"description":"last_login","type":"string","nullable":true},"avatar":{"description":"avatar","type":"string","nullable":true},"avatarfull":{"description":"avatarfull","type":"string","nullable":true}}},"PlayerProsResponse":{"title":"PlayerProsResponse","type":"object","properties":{"account_id":{"description":"account_id","type":"integer"},"name":{"description":"name","type":"string"},"country_code":{"description":"country_code","type":"string"},"fantasy_role":{"description":"fantasy_role","type":"integer"},"team_id":{"description":"team_id","type":"integer"},"team_name":{"description":"team_name","type":"string","nullable":true},"team_tag":{"description":"team_tag","type":"string","nullable":true},"is_locked":{"description":"is_locked","type":"boolean"},"is_pro":{"description":"is_pro","type":"boolean"},"locked_until":{"description":"locked_until","type":"integer","nullable":true},"steamid":{"description":"steamid","type":"string","nullable":true},"avatar":{"description":"avatar","type":"string","nullable":true},"avatarmedium":{"description":"avatarmedium","type":"string","nullable":true},"avatarfull":{"description":"avatarfull","type":"string","nullable":true},"profileurl":{"description":"profileurl","type":"string","nullable":true},"last_login":{"description":"last_login","type":"string","format":"date-time","nullable":true},"full_history_time":{"description":"full_history_time","type":"string","format":"date-time","nullable":true},"cheese":{"description":"cheese","type":"integer","nullable":true},"fh_unavailable":{"description":"fh_unavailable","type":"boolean","nullable":true},"loccountrycode":{"description":"loccountrycode","type":"string","nullable":true},"last_played":{"description":"last_played","type":"integer","nullable":true},"win":{"description":"win","type":"integer"},"games":{"description":"games","type":"integer"},"with_win":{"description":"with_win","type":"integer"},"with_games":{"description":"with_games","type":"integer"},"against_win":{"description":"against_win","type":"integer"},"against_games":{"description":"against_games","type":"integer"},"with_gpm_sum":{"description":"with_gpm_sum","type":"integer","nullable":true},"with_xpm_sum":{"description":"with_xpm_sum","type":"integer","nullable":true}}},"PlayerTotalsResponse":{"title":"PlayerTotalsResponse","type":"object","properties":{"field":{"description":"field","type":"string"},"n":{"description":"number","type":"integer"},"sum":{"description":"sum","type":"number"}}},"PlayerCountsResponse":{"title":"PlayerCountsResponse","type":"object","properties":{"leaver_status":{"description":"Integer describing whether or not the player left the game. 0: didn't leave. 1: left safely. 2+: Abandoned","type":"object"},"game_mode":{"description":"Integer corresponding to game mode played. List of constants can be found here: https://github.com/odota/dotaconstants/blob/master/json/game_mode.json","type":"object"},"lobby_type":{"description":"Integer corresponding to lobby type of match. List of constants can be found here: https://github.com/odota/dotaconstants/blob/master/json/lobby_type.json","type":"object"},"lane_role":{"description":"lane_role","type":"object"},"region":{"description":"Integer corresponding to the region the game was played on","type":"object"},"patch":{"description":"patch","type":"object"}}},"PlayerWardMapResponse":{"title":"PlayerWardMapResponse","type":"object","properties":{"obs":{"description":"obs","type":"object"},"sen":{"description":"sen","type":"object"}}},"PlayerWordCloudResponse":{"title":"PlayerWordCloudResponse","type":"object","properties":{"my_word_counts":{"description":"my_word_counts","type":"object"},"all_word_counts":{"description":"all_word_counts","type":"object"}}},"PlayerRatingsResponse":{"title":"PlayerRatingsResponse","type":"object","properties":{"account_id":{"description":"account_id","type":"integer"},"match_id":{"description":"match_id","type":"integer"},"solo_competitive_rank":{"description":"solo_competitive_rank","type":"integer","nullable":true},"competitive_rank":{"description":"competitive_rank","type":"integer"},"time":{"description":"time","type":"integer"}}},"PlayerRankingsResponse":{"title":"PlayerRankingsResponse","type":"object","properties":{"hero_id":{"description":"The ID value of the hero played","type":"integer"},"score":{"description":"hero_score","type":"number"},"percent_rank":{"description":"percent_rank","type":"number"},"card":{"description":"numeric_rank","type":"integer"}}},"TeamObjectResponse":{"title":"TeamObjectResponse","type":"object","properties":{"team_id":{"description":"Team's identifier","type":"integer"},"rating":{"description":"The Elo rating of the team","type":"number"},"wins":{"description":"The number of games won by this team","type":"integer"},"losses":{"description":"The number of losses by this team","type":"integer"},"last_match_time":{"description":"The Unix timestamp of the last match played by this team","type":"integer"},"name":{"description":"Team name, eg. 'Newbee'","type":"string"},"tag":{"description":"The team tag/abbreviation","type":"string"}}},"MatchObjectResponse":{"title":"MatchObjectResponse","type":"object","properties":{"match_id":{"description":"Used to identify individual matches, e.g. 3703866531","type":"integer"},"duration":{"description":"Length of the match","type":"integer"},"start_time":{"description":"Unix timestamp of when the match began","type":"integer"},"radiant_team_id":{"description":"The Radiant's team_id","type":"integer"},"radiant_name":{"description":"The Radiant's team name","type":"string"},"dire_team_id":{"description":"The Dire's team_id","type":"integer"},"dire_name":{"description":"The Dire's team name","type":"string"},"leagueid":{"description":"Identifier for the league the match took place in","type":"integer"},"league_name":{"description":"Name of league the match took place in","type":"string"},"series_id":{"description":"Identifier for the series of the match","type":"integer"},"series_type":{"description":"Type of series the match was","type":"integer"},"radiant_score":{"description":"Number of kills the Radiant team had when the match ended","type":"integer"},"dire_score":{"description":"Number of kills the Dire team had when the match ended","type":"integer"},"radiant_win":{"description":"Whether or not the Radiant won the match","type":"boolean"},"radiant":{"description":"Whether the team/player/hero was on Radiant","type":"boolean"}}},"TeamMatchObjectResponse":{"title":"TeamMatchObjectResponse","type":"object","properties":{"match_id":{"description":"Used to identify individual matches, e.g. 3703866531","type":"integer"},"radiant":{"description":"Whether the team/player/hero was on Radiant","type":"boolean"},"radiant_win":{"description":"Whether or not the Radiant won the match","type":"boolean"},"radiant_score":{"description":"Number of kills the Radiant team had when the match ended","type":"integer"},"dire_score":{"description":"Number of kills the Dire team had when the match ended","type":"integer"},"duration":{"description":"Length of the match","type":"integer"},"start_time":{"description":"Unix timestamp of when the match began","type":"integer"},"leagueid":{"description":"Identifier for the league the match took place in","type":"integer"},"league_name":{"description":"Name of league the match took place in","type":"string"},"cluster":{"description":"cluster","type":"integer"},"opposing_team_id":{"description":"Opposing team identifier","type":"integer"},"opposing_team_name":{"description":"Opposing team name, e.g. 'Evil Geniuses'","type":"string","nullable":true},"opposing_team_logo":{"description":"Opposing team logo url","type":"string"}}},"HeroObjectResponse":{"title":"HeroObjectResponse","type":"object","properties":{"id":{"description":"Numeric identifier for the hero object","type":"integer"},"name":{"description":"Dota hero command name, e.g. 'npc_dota_hero_antimage'","type":"string"},"localized_name":{"description":"Hero name, e.g. 'Anti-Mage'","type":"string"},"primary_attr":{"description":"Hero primary shorthand attribute name, e.g. 'agi'","type":"string"},"attack_type":{"description":"Hero attack type, either 'Melee' or 'Ranged'","type":"string"},"roles":{"type":"array","items":{"description":"A hero's role in the game","type":"string"}}}},"PlayerObjectResponse":{"title":"PlayerObjectResponse","type":"object","properties":{"account_id":{"description":"Player's account identifier","type":"integer"},"steamid":{"description":"Player's steam identifier","type":"string"},"avatar":{"description":"Steam picture URL (small picture)","type":"string"},"avatarmedium":{"description":"Steam picture URL (medium picture)","type":"string"},"avatarfull":{"description":"Steam picture URL (full picture)","type":"string"},"profileurl":{"description":"Steam profile URL","type":"string"},"personaname":{"description":"Player's Steam name","type":"string"},"last_login":{"description":"Date and time of last login to OpenDota","type":"string","format":"date-time"},"full_history_time":{"description":"Date and time of last request to refresh player's match history","type":"string","format":"date-time"},"cheese":{"description":"Amount of dollars the player has donated to OpenDota","type":"integer"},"fh_unavailable":{"description":"Whether the refresh of player' match history failed","type":"boolean"},"loccountrycode":{"description":"Player's country identifier, e.g. US","type":"string"},"name":{"description":"Verified player name, e.g. 'Miracle-'","type":"string"},"country_code":{"description":"Player's country code","type":"string"},"fantasy_role":{"description":"Player's ingame role (core: 1 or support: 2)","type":"integer"},"team_id":{"description":"Player's team identifier","type":"integer"},"team_name":{"description":"Player's team name, e.g. 'Evil Geniuses'","type":"string"},"team_tag":{"description":"Player's team shorthand tag, e.g. 'EG'","type":"string"},"is_locked":{"description":"Whether the roster lock is active","type":"boolean"},"is_pro":{"description":"Whether the player is professional or not","type":"boolean"},"locked_until":{"description":"When the roster lock will end","type":"integer"}}},"LeagueObjectResponse":{"title":"LeagueObjectResponse","type":"object","properties":{"leagueid":{"description":"leagueid","type":"integer"},"ticket":{"description":"ticket","type":"string"},"banner":{"description":"banner","type":"string"},"tier":{"description":"tier","type":"string"},"name":{"description":"name","type":"string"}}},"PublicMatchesResponse":{"title":"PublicMatchesResponse","type":"object","properties":{"match_id":{"description":"match_id","type":"integer"},"match_seq_num":{"description":"match_seq_num","type":"integer"},"radiant_win":{"description":"Boolean indicating whether Radiant won the match","type":"boolean"},"start_time":{"description":"start_time","type":"integer"},"duration":{"description":"Duration of the game in seconds","type":"integer"},"radiant_team":{"description":"radiant_team","type":"string"},"dire_team":{"description":"dire_team","type":"string"}}},"ParsedMatchesResponse":{"title":"ParsedMatchesResponse","type":"object","properties":{"match_id":{"description":"match_id","type":"integer"}}},"MetadataResponse":{"title":"MetadataResponse","type":"object","properties":{"banner":{"description":"banner","type":"object","nullable":true}}},"DistributionsResponse":{"title":"DistributionsResponse","type":"object","properties":{"ranks":{"description":"ranks","type":"object","properties":{"command":{"description":"command","type":"string"},"rowCount":{"description":"rowCount","type":"integer"},"rows":{"description":"rows","type":"array","items":{"type":"object","properties":{"bin":{"description":"bin","type":"integer"},"bin_name":{"description":"bin_name","type":"integer"},"count":{"description":"count","type":"integer"},"cumulative_sum":{"description":"cumulative_sum","type":"integer"}}}},"fields":{"description":"fields","type":"array","items":{"type":"object","properties":{"name":{"description":"name","type":"string"},"tableID":{"description":"tableID","type":"integer"},"columnID":{"description":"columnID","type":"integer"},"dataTypeID":{"description":"dataTypeID","type":"integer"},"dataTypeSize":{"description":"dataTypeSize","type":"integer"},"dataTypeModifier":{"description":"dataTypeModifier","type":"integer"},"format":{"description":"format","type":"string"}}}},"rowAsArray":{"description":"rowAsArray","type":"boolean"},"sum":{"description":"sum","type":"object","properties":{"count":{"description":"count","type":"integer"}}}}},"mmr":{"description":"mmr","type":"object","properties":{"command":{"description":"command","type":"string"},"rowCount":{"description":"rowCount","type":"integer"},"rows":{"description":"rows","type":"array","items":{"type":"object","properties":{"bin":{"description":"bin","type":"integer"},"bin_name":{"description":"bin_name","type":"integer"},"count":{"description":"count","type":"integer"},"cumulative_sum":{"description":"cumulative_sum","type":"integer"}}}},"fields":{"description":"fields","type":"array","items":{"type":"object","properties":{"name":{"description":"name","type":"string"},"tableID":{"description":"tableID","type":"integer"},"columnID":{"description":"columnID","type":"integer"},"dataTypeID":{"description":"dataTypeID","type":"integer"},"dataTypeSize":{"description":"dataTypeSize","type":"integer"},"dataTypeModifier":{"description":"dataTypeModifier","type":"integer"},"format":{"description":"format","type":"string"}}}},"rowAsArray":{"description":"rowAsArray","type":"boolean"},"sum":{"description":"sum","type":"object","properties":{"count":{"description":"count","type":"integer"}}}}},"country_mmr":{"description":"country_mmr","type":"object","properties":{"command":{"description":"command","type":"string"},"rowCount":{"description":"rowCount","type":"integer"},"rows":{"description":"rows","type":"array","items":{"type":"object","properties":{"loccountrycode":{"description":"loccountrycode","type":"string","nullable":true},"count":{"description":"count","type":"integer"},"avg":{"description":"avg","type":"string"},"common":{"description":"common","type":"string"}}}},"fields":{"description":"fields","type":"array","items":{"type":"object","properties":{"name":{"description":"name","type":"string"},"tableID":{"description":"tableID","type":"integer"},"columnID":{"description":"columnID","type":"integer"},"dataTypeID":{"description":"dataTypeID","type":"integer"},"dataTypeSize":{"description":"dataTypeSize","type":"integer"},"dataTypeModifier":{"description":"dataTypeModifier","type":"integer"},"format":{"description":"format","type":"string"}}}},"rowAsArray":{"description":"rowAsArray","type":"boolean"}}}}},"SearchResponse":{"title":"SearchResponse","type":"object","properties":{"account_id":{"description":"account_id","type":"integer"},"avatarfull":{"description":"avatarfull","type":"string","nullable":true},"personaname":{"description":"personaname","type":"string","nullable":true},"last_match_time":{"description":"last_match_time. May not be present or null.","type":"string"},"similarity":{"description":"similarity","type":"number"}}},"RankingsResponse":{"title":"RankingsResponse","type":"object","properties":{"hero_id":{"description":"The ID value of the hero played","type":"integer"},"rankings":{"description":"rankings","type":"array","items":{"type":"object","properties":{"account_id":{"description":"account_id","type":"integer"},"score":{"description":"score","type":"number"},"steamid":{"description":"steamid","type":"string","nullable":true},"avatar":{"description":"avatar","type":"string","nullable":true},"avatarmedium":{"description":"avatarmedium","type":"string","nullable":true},"avatarfull":{"description":"avatarfull","type":"string","nullable":true},"profileurl":{"description":"profileurl","type":"string","nullable":true},"personaname":{"description":"personaname","type":"string","nullable":true},"last_login":{"description":"last_login","type":"string","format":"date-time","nullable":true},"full_history_time":{"description":"full_history_time","type":"string","format":"date-time"},"cheese":{"description":"cheese","type":"integer","nullable":true},"fh_unavailable":{"description":"fh_unavailable","type":"boolean","nullable":true},"loccountrycode":{"description":"loccountrycode","type":"string","nullable":true},"rank_tier":{"description":"rank_tier","type":"integer","nullable":true}}}}}},"BenchmarksResponse":{"title":"BenchmarksResponse","type":"object","properties":{"hero_id":{"description":"The ID value of the hero played","type":"integer"},"result":{"description":"result","type":"object","properties":{"gold_per_min":{"type":"array","items":{"type":"object","properties":{"percentile":{"description":"percentile","type":"number"},"value":{"description":"value","type":"number"}}}},"xp_per_min":{"type":"array","items":{"type":"object","properties":{"percentile":{"description":"percentile","type":"number"},"value":{"description":"value","type":"number"}}}},"kills_per_min":{"type":"array","items":{"type":"object","properties":{"percentile":{"description":"percentile","type":"number"},"value":{"description":"value","type":"number"}}}},"last_hits_per_min":{"type":"array","items":{"type":"object","properties":{"percentile":{"description":"percentile","type":"number"},"value":{"description":"value","type":"number"}}}},"hero_damage_per_min":{"type":"array","items":{"type":"object","properties":{"percentile":{"description":"percentile","type":"number"},"value":{"description":"value","type":"number"}}}},"hero_healing_per_min":{"type":"array","items":{"type":"object","properties":{"percentile":{"description":"percentile","type":"number"},"value":{"description":"value","type":"number"}}}},"tower_damage":{"type":"array","items":{"type":"object","properties":{"percentile":{"description":"percentile","type":"number"},"value":{"description":"value","type":"integer"}}}}}}}},"HeroStatsResponse":{"title":"HeroStatsResponse","type":"object","properties":{"id":{"description":"id","type":"integer"},"name":{"description":"name","type":"string"},"localized_name":{"description":"localized_name","type":"string"},"img":{"description":"img","type":"string"},"icon":{"description":"icon","type":"string"},"pro_win":{"description":"pro_win","type":"integer"},"pro_pick":{"description":"pro_pick","type":"integer"},"hero_id":{"description":"The ID value of the hero played","type":"integer"},"pro_ban":{"description":"pro_ban","type":"integer"},"1_pick":{"description":"Herald picks","type":"integer"},"1_win":{"description":"Herald wins","type":"integer"},"2_pick":{"description":"Guardian picks","type":"integer"},"2_win":{"description":"Guardian wins","type":"integer"},"3_pick":{"description":"Crusader picks","type":"integer"},"3_win":{"description":"Crusader wins","type":"integer"},"4_pick":{"description":"Archon picks","type":"integer"},"4_win":{"description":"Archon wins","type":"integer"},"5_pick":{"description":"Legend picks","type":"integer"},"5_win":{"description":"Legend wins","type":"integer"},"6_pick":{"description":"Ancient picks","type":"integer"},"6_win":{"description":"Ancient wins","type":"integer"},"7_pick":{"description":"Divine picks","type":"integer"},"7_win":{"description":"Divine wins","type":"integer"},"8_pick":{"description":"Immortal picks","type":"integer"},"8_win":{"description":"Immortal wins","type":"integer"},"turbo_pick":{"description":"Picks in Turbo mode this month","type":"integer"},"turbo_win":{"description":"Wins in Turbo mode this month","type":"integer"}}},"HeroMatchupsResponse":{"title":"HeroMatchupsResponse","type":"object","properties":{"hero_id":{"description":"Numeric identifier for the hero object","type":"integer"},"games_played":{"description":"Number of games played","type":"integer"},"wins":{"description":"Number of games won","type":"integer"}}},"HeroDurationsResponse":{"title":"HeroDurationsResponse","type":"object","properties":{"duration_bin":{"description":"Lower bound of number of seconds the match lasted","type":"string"},"games_played":{"description":"Number of games played","type":"integer"},"wins":{"description":"Number of wins","type":"integer"}}},"HeroItemPopularityResponse":{"title":"HeroItemPopularityResponse","type":"object","properties":{"start_game_items":{"description":"Items bought before game started","type":"object","properties":{"item":{"description":"Number of item bought","type":"integer"}}},"early_game_items":{"description":"Items bought in the first 10 min of the game, with cost at least 700","type":"object","properties":{"item":{"description":"Number of item bought","type":"integer"}}},"mid_game_items":{"description":"Items bought between 10 and 25 min of the game, with cost at least 2000","type":"object","properties":{"item":{"description":"Number of item bought","type":"integer"}}},"late_game_items":{"description":"Items bought at least 25 min after game started, with cost at least 4000","type":"object","properties":{"item":{"description":"Number of item bought","type":"integer"}}}}},"TeamPlayersResponse":{"title":"TeamPlayersResponse","type":"object","properties":{"account_id":{"description":"The player account ID","type":"string"},"name":{"description":"The player name","type":"string"},"games_played":{"description":"Number of games played","type":"integer"},"wins":{"description":"Number of wins","type":"integer"},"is_current_team_member":{"description":"If this player is on the current roster","type":"boolean"}}},"TeamHeroesResponse":{"title":"TeamHeroesResponse","type":"object","properties":{"hero_id":{"description":"The hero ID","type":"integer"},"name":{"description":"The hero name","type":"string"},"games_played":{"description":"Number of games played","type":"integer"},"wins":{"description":"Number of wins","type":"integer"}}},"ReplaysResponse":{"title":"ReplaysResponse","type":"object","properties":{"match_id":{"description":"match_id","type":"integer"},"cluster":{"description":"cluster","type":"integer"},"replay_salt":{"description":"replay_salt","type":"integer"}}},"RecordsResponse":{"title":"RecordsResponse","type":"object","properties":{"match_id":{"description":"match_id","type":"string"},"start_time":{"description":"start_time","type":"string"},"hero_id":{"description":"The ID value of the hero played","type":"string"},"score":{"description":"score","type":"string"}}},"ScenarioItemTimingsResponse":{"title":"ScenarioItemTimingsResponse","type":"object","properties":{"hero_id":{"description":"Hero ID","type":"integer"},"item":{"description":"Purchased item","type":"string"},"time":{"description":"Ingame time in seconds before the item was purchased","type":"integer"},"games":{"description":"The number of games where the hero bought this item before this time","type":"string"},"wins":{"description":"The number of games won where the hero bought this item before this time","type":"string"}}},"ScenarioLaneRolesResponse":{"title":"ScenarioLaneRolesResponse","type":"object","properties":{"hero_id":{"description":"Hero ID","type":"integer"},"lane_role":{"description":"The hero's lane role","type":"integer"},"time":{"description":"Maximum game length in seconds","type":"integer"},"games":{"description":"The number of games where the hero played in this lane role","type":"string"},"wins":{"description":"The number of games won where the hero played in this lane role","type":"string"}}},"ScenarioMiscResponse":{"title":"ScenarioMiscResponse","type":"object","properties":{"scenario":{"description":"The scenario's name or description","type":"string"},"is_radiant":{"description":"Boolean indicating whether Radiant executed this scenario","type":"boolean"},"region":{"description":"Region the game was played in","type":"integer"},"games":{"description":"The number of games where this scenario occurred","type":"string"},"wins":{"description":"The number of games won where this scenario occurred","type":"string"}}},"SchemaResponse":{"title":"SchemaResponse","type":"object","properties":{"table_name":{"description":"table_name","type":"string"},"column_name":{"description":"column_name","type":"string"},"data_type":{"description":"data_type","type":"string"}}}},"parameters":{"matchIdParam":{"name":"match_id","in":"path","required":true,"schema":{"type":"integer"}},"accountIdParam":{"name":"account_id","in":"path","description":"Steam32 account ID","required":true,"schema":{"type":"integer"}},"teamIdPathParam":{"name":"team_id","in":"path","description":"Team ID","required":true,"schema":{"type":"integer"}},"leagueIdPathParam":{"name":"league_id","in":"path","description":"League ID","required":true,"schema":{"type":"integer"}},"heroIdPathParam":{"name":"hero_id","in":"path","description":"Hero ID","required":true,"schema":{"type":"integer"}},"fieldParam":{"name":"field","in":"path","description":"Field to aggregate on","required":true,"schema":{"type":"string"}},"limitParam":{"name":"limit","in":"query","description":"Number of matches to limit to","required":false,"schema":{"type":"integer"}},"offsetParam":{"name":"offset","in":"query","description":"Number of matches to offset start by","required":false,"schema":{"type":"integer"}},"projectParam":{"name":"project","in":"query","description":"Fields to project (array)","required":false,"schema":{"type":"string"}},"winParam":{"name":"win","in":"query","description":"Whether the player won","required":false,"schema":{"type":"integer"}},"patchParam":{"name":"patch","in":"query","description":"Patch ID","required":false,"schema":{"type":"integer"}},"gameModeParam":{"name":"game_mode","in":"query","description":"Game Mode ID","required":false,"schema":{"type":"integer"}},"lobbyTypeParam":{"name":"lobby_type","in":"query","description":"Lobby type ID","required":false,"schema":{"type":"integer"}},"regionParam":{"name":"region","in":"query","description":"Region ID","required":false,"schema":{"type":"integer"}},"dateParam":{"name":"date","in":"query","description":"Days previous","required":false,"schema":{"type":"integer"}},"laneRoleParam":{"name":"lane_role","in":"query","description":"Lane Role ID","required":false,"schema":{"type":"integer"}},"heroIdParam":{"name":"hero_id","in":"query","description":"Hero ID","required":false,"schema":{"type":"integer"}},"isRadiantParam":{"name":"is_radiant","in":"query","description":"Whether the player was radiant","required":false,"schema":{"type":"integer"}},"withHeroIdParam":{"name":"with_hero_id","in":"query","description":"Hero IDs on the player's team (array)","required":false,"schema":{"type":"integer"}},"againstHeroIdParam":{"name":"against_hero_id","in":"query","description":"Hero IDs against the player's team (array)","required":false,"schema":{"type":"integer"}},"withAccountIdParam":{"name":"with_account_id","in":"query","description":"Account IDs on the player's team (array)","required":false,"schema":{"type":"integer"}},"againstAccountIdParam":{"name":"against_account_id","in":"query","description":"Account IDs against the player's team (array)","required":false,"schema":{"type":"integer"}},"includedAccountIdParam":{"name":"included_account_id","in":"query","description":"Account IDs in the match (array)","required":false,"schema":{"type":"integer"}},"excludedAccountIdParam":{"name":"excluded_account_id","in":"query","description":"Account IDs not in the match (array)","required":false,"schema":{"type":"integer"}},"significantParam":{"name":"significant","in":"query","description":"Whether the match was significant for aggregation purposes. Defaults to 1 (true), set this to 0 to return data for non-standard modes/matches.","required":false,"schema":{"type":"integer"}},"sortParam":{"name":"sort","in":"query","description":"The field to return matches sorted by in descending order","required":false,"schema":{"type":"string"}},"havingParam":{"name":"having","in":"query","description":"The minimum number of games played, for filtering hero stats","required":false,"schema":{"type":"integer"}},"minMmrParam":{"name":"min_mmr","in":"query","description":"Minimum average MMR","required":false,"schema":{"type":"integer"}},"maxMmrParam":{"name":"max_mmr","in":"query","description":"Maximum average MMR","required":false,"schema":{"type":"integer"}},"minTimeParam":{"name":"min_time","in":"query","description":"Minimum start time (Unix time)","required":false,"schema":{"type":"integer"}},"maxTimeParam":{"name":"max_time","in":"query","description":"Maximum start time (Unix time)","required":false,"schema":{"type":"integer"}},"mmrAscendingParam":{"name":"mmr_ascending","in":"query","description":"Order by MMR ascending","required":false,"schema":{"type":"integer"}},"mmrDescendingParam":{"name":"mmr_descending","in":"query","description":"Order by MMR descending","required":false,"schema":{"type":"integer"}},"lessThanMatchIdParam":{"name":"less_than_match_id","in":"query","description":"Get matches with a match ID lower than this value","required":false,"schema":{"type":"integer"}},"matchOverviewParam":{"name":"overview","in":"query","description":"Only fetch data required for match overview page","required":false,"schema":{"type":"integer"}},"scenarioParam":{"name":"scenario","in":"query","description":"pos_chat_1min,neg_chat_1min,courier_kill,first_blood","required":false,"schema":{"type":"string"}}}},"paths":{"/matches/{match_id}":{"get":{"summary":"GET /matches/{match_id}","description":"Match data","tags":["matches"],"parameters":[{"$ref":"#/components/parameters/matchIdParam"}],"responses":{"200":{"description":"Success","content":{"application/json; charset=utf-8":{"schema":{"$ref":"#/components/schemas/MatchResponse"}}}}}}},"/playersByRank":{"get":{"summary":"GET /playersByRank","description":"Players ordered by rank/medal tier","tags":["playersByRank"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json; charset=utf-8":{"schema":{"$ref":"#/components/schemas/PlayersByRankResponse"}}}}}}},"/players/{account_id}":{"get":{"summary":"GET /players/{account_id}","description":"Player data","tags":["players"],"parameters":[{"$ref":"#/components/parameters/accountIdParam"}],"responses":{"200":{"description":"Success","content":{"application/json; charset=utf-8":{"schema":{"$ref":"#/components/schemas/PlayersResponse"}}}}}}},"/players/{account_id}/wl":{"get":{"summary":"GET /players/{account_id}/wl","description":"Win/Loss count","tags":["players"],"parameters":[{"$ref":"#/components/parameters/accountIdParam"},{"$ref":"#/components/parameters/limitParam"},{"$ref":"#/components/parameters/offsetParam"},{"$ref":"#/components/parameters/winParam"},{"$ref":"#/components/parameters/patchParam"},{"$ref":"#/components/parameters/gameModeParam"},{"$ref":"#/components/parameters/lobbyTypeParam"},{"$ref":"#/components/parameters/regionParam"},{"$ref":"#/components/parameters/dateParam"},{"$ref":"#/components/parameters/laneRoleParam"},{"$ref":"#/components/parameters/heroIdParam"},{"$ref":"#/components/parameters/isRadiantParam"},{"$ref":"#/components/parameters/includedAccountIdParam"},{"$ref":"#/components/parameters/excludedAccountIdParam"},{"$ref":"#/components/parameters/withHeroIdParam"},{"$ref":"#/components/parameters/againstHeroIdParam"},{"$ref":"#/components/parameters/significantParam"},{"$ref":"#/components/parameters/havingParam"},{"$ref":"#/components/parameters/sortParam"}],"responses":{"200":{"description":"Success","content":{"application/json; charset=utf-8":{"schema":{"$ref":"#/components/schemas/PlayerWinLossResponse"}}}}}}},"/players/{account_id}/recentMatches":{"get":{"summary":"GET /players/{account_id}/recentMatches","description":"Recent matches played","tags":["players"],"parameters":[{"$ref":"#/components/parameters/accountIdParam"}],"responses":{"200":{"description":"Success","content":{"application/json; charset=utf-8":{"schema":{"type":"array","items":{"type":"object","items":{"$ref":"#/components/schemas/PlayerRecentMatchesResponse"}}}}}}}}},"/players/{account_id}/matches":{"get":{"summary":"GET /players/{account_id}/matches","description":"Matches played","tags":["players"],"parameters":[{"$ref":"#/components/parameters/accountIdParam"},{"$ref":"#/components/parameters/limitParam"},{"$ref":"#/components/parameters/offsetParam"},{"$ref":"#/components/parameters/winParam"},{"$ref":"#/components/parameters/patchParam"},{"$ref":"#/components/parameters/gameModeParam"},{"$ref":"#/components/parameters/lobbyTypeParam"},{"$ref":"#/components/parameters/regionParam"},{"$ref":"#/components/parameters/dateParam"},{"$ref":"#/components/parameters/laneRoleParam"},{"$ref":"#/components/parameters/heroIdParam"},{"$ref":"#/components/parameters/isRadiantParam"},{"$ref":"#/components/parameters/includedAccountIdParam"},{"$ref":"#/components/parameters/excludedAccountIdParam"},{"$ref":"#/components/parameters/withHeroIdParam"},{"$ref":"#/components/parameters/againstHeroIdParam"},{"$ref":"#/components/parameters/significantParam"},{"$ref":"#/components/parameters/havingParam"},{"$ref":"#/components/parameters/sortParam"},{"$ref":"#/components/parameters/projectParam"}],"responses":{"200":{"description":"Success","content":{"application/json; charset=utf-8":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PlayerMatchesResponse"}}}}}}}},"/players/{account_id}/heroes":{"get":{"summary":"GET /players/{account_id}/heroes","description":"Heroes played","tags":["players"],"parameters":[{"$ref":"#/components/parameters/accountIdParam"},{"$ref":"#/components/parameters/limitParam"},{"$ref":"#/components/parameters/offsetParam"},{"$ref":"#/components/parameters/winParam"},{"$ref":"#/components/parameters/patchParam"},{"$ref":"#/components/parameters/gameModeParam"},{"$ref":"#/components/parameters/lobbyTypeParam"},{"$ref":"#/components/parameters/regionParam"},{"$ref":"#/components/parameters/dateParam"},{"$ref":"#/components/parameters/laneRoleParam"},{"$ref":"#/components/parameters/heroIdParam"},{"$ref":"#/components/parameters/isRadiantParam"},{"$ref":"#/components/parameters/includedAccountIdParam"},{"$ref":"#/components/parameters/excludedAccountIdParam"},{"$ref":"#/components/parameters/withHeroIdParam"},{"$ref":"#/components/parameters/againstHeroIdParam"},{"$ref":"#/components/parameters/significantParam"},{"$ref":"#/components/parameters/havingParam"},{"$ref":"#/components/parameters/sortParam"}],"responses":{"200":{"description":"Success","content":{"application/json; charset=utf-8":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PlayerHeroesResponse"}}}}}}}},"/players/{account_id}/peers":{"get":{"summary":"GET /players/{account_id}/peers","description":"Players played with","tags":["players"],"parameters":[{"$ref":"#/components/parameters/accountIdParam"},{"$ref":"#/components/parameters/limitParam"},{"$ref":"#/components/parameters/offsetParam"},{"$ref":"#/components/parameters/winParam"},{"$ref":"#/components/parameters/patchParam"},{"$ref":"#/components/parameters/gameModeParam"},{"$ref":"#/components/parameters/lobbyTypeParam"},{"$ref":"#/components/parameters/regionParam"},{"$ref":"#/components/parameters/dateParam"},{"$ref":"#/components/parameters/laneRoleParam"},{"$ref":"#/components/parameters/heroIdParam"},{"$ref":"#/components/parameters/isRadiantParam"},{"$ref":"#/components/parameters/includedAccountIdParam"},{"$ref":"#/components/parameters/excludedAccountIdParam"},{"$ref":"#/components/parameters/withHeroIdParam"},{"$ref":"#/components/parameters/againstHeroIdParam"},{"$ref":"#/components/parameters/significantParam"},{"$ref":"#/components/parameters/havingParam"},{"$ref":"#/components/parameters/sortParam"}],"responses":{"200":{"description":"Success","content":{"application/json; charset=utf-8":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PlayerPeersResponse"}}}}}}}},"/players/{account_id}/pros":{"get":{"summary":"GET /players/{account_id}/pros","description":"Pro players played with","tags":["players"],"parameters":[{"$ref":"#/components/parameters/accountIdParam"},{"$ref":"#/components/parameters/limitParam"},{"$ref":"#/components/parameters/offsetParam"},{"$ref":"#/components/parameters/winParam"},{"$ref":"#/components/parameters/patchParam"},{"$ref":"#/components/parameters/gameModeParam"},{"$ref":"#/components/parameters/lobbyTypeParam"},{"$ref":"#/components/parameters/regionParam"},{"$ref":"#/components/parameters/dateParam"},{"$ref":"#/components/parameters/laneRoleParam"},{"$ref":"#/components/parameters/heroIdParam"},{"$ref":"#/components/parameters/isRadiantParam"},{"$ref":"#/components/parameters/includedAccountIdParam"},{"$ref":"#/components/parameters/excludedAccountIdParam"},{"$ref":"#/components/parameters/withHeroIdParam"},{"$ref":"#/components/parameters/againstHeroIdParam"},{"$ref":"#/components/parameters/significantParam"},{"$ref":"#/components/parameters/havingParam"},{"$ref":"#/components/parameters/sortParam"}],"responses":{"200":{"description":"Success","content":{"application/json; charset=utf-8":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PlayerProsResponse"}}}}}}}},"/players/{account_id}/totals":{"get":{"summary":"GET /players/{account_id}/totals","description":"Totals in stats","tags":["players"],"parameters":[{"$ref":"#/components/parameters/accountIdParam"},{"$ref":"#/components/parameters/limitParam"},{"$ref":"#/components/parameters/offsetParam"},{"$ref":"#/components/parameters/winParam"},{"$ref":"#/components/parameters/patchParam"},{"$ref":"#/components/parameters/gameModeParam"},{"$ref":"#/components/parameters/lobbyTypeParam"},{"$ref":"#/components/parameters/regionParam"},{"$ref":"#/components/parameters/dateParam"},{"$ref":"#/components/parameters/laneRoleParam"},{"$ref":"#/components/parameters/heroIdParam"},{"$ref":"#/components/parameters/isRadiantParam"},{"$ref":"#/components/parameters/includedAccountIdParam"},{"$ref":"#/components/parameters/excludedAccountIdParam"},{"$ref":"#/components/parameters/withHeroIdParam"},{"$ref":"#/components/parameters/againstHeroIdParam"},{"$ref":"#/components/parameters/significantParam"},{"$ref":"#/components/parameters/havingParam"},{"$ref":"#/components/parameters/sortParam"}],"responses":{"200":{"description":"Success","content":{"application/json; charset=utf-8":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PlayerTotalsResponse"}}}}}}}},"/players/{account_id}/counts":{"get":{"summary":"GET /players/{account_id}/counts","description":"Counts in categories","tags":["players"],"parameters":[{"$ref":"#/components/parameters/accountIdParam"},{"$ref":"#/components/parameters/limitParam"},{"$ref":"#/components/parameters/offsetParam"},{"$ref":"#/components/parameters/winParam"},{"$ref":"#/components/parameters/patchParam"},{"$ref":"#/components/parameters/gameModeParam"},{"$ref":"#/components/parameters/lobbyTypeParam"},{"$ref":"#/components/parameters/regionParam"},{"$ref":"#/components/parameters/dateParam"},{"$ref":"#/components/parameters/laneRoleParam"},{"$ref":"#/components/parameters/heroIdParam"},{"$ref":"#/components/parameters/isRadiantParam"},{"$ref":"#/components/parameters/includedAccountIdParam"},{"$ref":"#/components/parameters/excludedAccountIdParam"},{"$ref":"#/components/parameters/withHeroIdParam"},{"$ref":"#/components/parameters/againstHeroIdParam"},{"$ref":"#/components/parameters/significantParam"},{"$ref":"#/components/parameters/havingParam"},{"$ref":"#/components/parameters/sortParam"}],"responses":{"200":{"description":"Success","content":{"application/json; charset=utf-8":{"schema":{"$ref":"#/components/schemas/PlayerCountsResponse"}}}}}}},"/players/{account_id}/histograms/{field}":{"get":{"summary":"GET /players/{account_id}/histograms","description":"Distribution of matches in a single stat","tags":["players"],"parameters":[{"$ref":"#/components/parameters/accountIdParam"},{"$ref":"#/components/parameters/limitParam"},{"$ref":"#/components/parameters/offsetParam"},{"$ref":"#/components/parameters/winParam"},{"$ref":"#/components/parameters/patchParam"},{"$ref":"#/components/parameters/gameModeParam"},{"$ref":"#/components/parameters/lobbyTypeParam"},{"$ref":"#/components/parameters/regionParam"},{"$ref":"#/components/parameters/dateParam"},{"$ref":"#/components/parameters/laneRoleParam"},{"$ref":"#/components/parameters/heroIdParam"},{"$ref":"#/components/parameters/isRadiantParam"},{"$ref":"#/components/parameters/includedAccountIdParam"},{"$ref":"#/components/parameters/excludedAccountIdParam"},{"$ref":"#/components/parameters/withHeroIdParam"},{"$ref":"#/components/parameters/againstHeroIdParam"},{"$ref":"#/components/parameters/significantParam"},{"$ref":"#/components/parameters/havingParam"},{"$ref":"#/components/parameters/sortParam"},{"$ref":"#/components/parameters/fieldParam"}],"responses":{"200":{"description":"Success","content":{"application/json; charset=utf-8":{"schema":{"type":"array","items":{"title":"PlayerHistogramsResponse","type":"object"}}}}}}}},"/players/{account_id}/wardmap":{"get":{"summary":"GET /players/{account_id}/wardmap","description":"Wards placed in matches played","tags":["players"],"parameters":[{"$ref":"#/components/parameters/accountIdParam"},{"$ref":"#/components/parameters/limitParam"},{"$ref":"#/components/parameters/offsetParam"},{"$ref":"#/components/parameters/winParam"},{"$ref":"#/components/parameters/patchParam"},{"$ref":"#/components/parameters/gameModeParam"},{"$ref":"#/components/parameters/lobbyTypeParam"},{"$ref":"#/components/parameters/regionParam"},{"$ref":"#/components/parameters/dateParam"},{"$ref":"#/components/parameters/laneRoleParam"},{"$ref":"#/components/parameters/heroIdParam"},{"$ref":"#/components/parameters/isRadiantParam"},{"$ref":"#/components/parameters/includedAccountIdParam"},{"$ref":"#/components/parameters/excludedAccountIdParam"},{"$ref":"#/components/parameters/withHeroIdParam"},{"$ref":"#/components/parameters/againstHeroIdParam"},{"$ref":"#/components/parameters/significantParam"},{"$ref":"#/components/parameters/havingParam"},{"$ref":"#/components/parameters/sortParam"}],"responses":{"200":{"description":"Success","content":{"application/json; charset=utf-8":{"schema":{"$ref":"#/components/schemas/PlayerWardMapResponse"}}}}}}},"/players/{account_id}/wordcloud":{"get":{"summary":"GET /players/{account_id}/wordcloud","description":"Words said/read in matches played","tags":["players"],"parameters":[{"$ref":"#/components/parameters/accountIdParam"},{"$ref":"#/components/parameters/limitParam"},{"$ref":"#/components/parameters/offsetParam"},{"$ref":"#/components/parameters/winParam"},{"$ref":"#/components/parameters/patchParam"},{"$ref":"#/components/parameters/gameModeParam"},{"$ref":"#/components/parameters/lobbyTypeParam"},{"$ref":"#/components/parameters/regionParam"},{"$ref":"#/components/parameters/dateParam"},{"$ref":"#/components/parameters/laneRoleParam"},{"$ref":"#/components/parameters/heroIdParam"},{"$ref":"#/components/parameters/isRadiantParam"},{"$ref":"#/components/parameters/includedAccountIdParam"},{"$ref":"#/components/parameters/excludedAccountIdParam"},{"$ref":"#/components/parameters/withHeroIdParam"},{"$ref":"#/components/parameters/againstHeroIdParam"},{"$ref":"#/components/parameters/significantParam"},{"$ref":"#/components/parameters/havingParam"},{"$ref":"#/components/parameters/sortParam"}],"responses":{"200":{"description":"Success","content":{"application/json; charset=utf-8":{"schema":{"$ref":"#/components/schemas/PlayerWordCloudResponse"}}}}}}},"/players/{account_id}/ratings":{"get":{"summary":"GET /players/{account_id}/ratings","description":"Player rating history","tags":["players"],"parameters":[{"$ref":"#/components/parameters/accountIdParam"}],"responses":{"200":{"description":"Success","content":{"application/json; charset=utf-8":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PlayerRatingsResponse"}}}}}}}},"/players/{account_id}/rankings":{"get":{"summary":"GET /players/{account_id}/rankings","description":"Player hero rankings","tags":["players"],"parameters":[{"$ref":"#/components/parameters/accountIdParam"}],"responses":{"200":{"description":"Success","content":{"application/json; charset=utf-8":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PlayerRankingsResponse"}}}}}}}},"/players/{account_id}/refresh":{"post":{"summary":"POST /players/{account_id}/refresh","description":"Refresh player match history","tags":["players"],"parameters":[{"$ref":"#/components/parameters/accountIdParam"}],"responses":{"200":{"description":"Success","content":{"application/json; charset=utf-8":{"schema":{"title":"PlayerRefreshResponse","type":"object"}}}}}}},"/proPlayers":{"get":{"summary":"GET /proPlayers","description":"Get list of pro players","tags":["pro players"],"responses":{"200":{"description":"Success","content":{"application/json; charset=utf-8":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PlayerObjectResponse"}}}}}}}},"/proMatches":{"get":{"summary":"GET /proMatches","description":"Get list of pro matches","tags":["pro matches"],"parameters":[{"$ref":"#/components/parameters/lessThanMatchIdParam"}],"responses":{"200":{"description":"Success","content":{"application/json; charset=utf-8":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/MatchObjectResponse"}}}}}}}},"/publicMatches":{"get":{"summary":"GET /publicMatches","description":"Get list of randomly sampled public matches","tags":["public matches"],"parameters":[{"$ref":"#/components/parameters/mmrAscendingParam"},{"$ref":"#/components/parameters/mmrDescendingParam"},{"$ref":"#/components/parameters/lessThanMatchIdParam"}],"responses":{"200":{"description":"Success","content":{"application/json; charset=utf-8":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PublicMatchesResponse"}}}}}}}},"/parsedMatches":{"get":{"summary":"GET /parsedMatches","description":"Get list of parsed match IDs","tags":["parsed matches"],"parameters":[{"$ref":"#/components/parameters/lessThanMatchIdParam"}],"responses":{"200":{"description":"Success","content":{"application/json; charset=utf-8":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ParsedMatchesResponse"}}}}}}}},"/explorer":{"get":{"summary":"GET /explorer","description":"Submit arbitrary SQL queries to the database","tags":["explorer"],"parameters":[{"name":"sql","in":"query","description":"The PostgreSQL query as percent-encoded string.","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json; charset=utf-8":{"schema":{"title":"ExplorerResponse","type":"object"}}}}}}},"/metadata":{"get":{"summary":"GET /metadata","description":"Site metadata","tags":["metadata"],"responses":{"200":{"description":"Success","content":{"application/json; charset=utf-8":{"schema":{"$ref":"#/components/schemas/MetadataResponse"}}}}}}},"/distributions":{"get":{"summary":"GET /distributions","description":"Distributions of MMR data by bracket and country","tags":["distributions"],"responses":{"200":{"description":"Success","content":{"application/json; charset=utf-8":{"schema":{"$ref":"#/components/schemas/DistributionsResponse"}}}}}}},"/search":{"get":{"summary":"GET /search","description":"Search players by personaname.","tags":["search"],"parameters":[{"name":"q","in":"query","description":"Search string","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json; charset=utf-8":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SearchResponse"}}}}}}}},"/rankings":{"get":{"summary":"GET /rankings","description":"Top players by hero","tags":["rankings"],"parameters":[{"name":"hero_id","in":"query","description":"Hero ID","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json; charset=utf-8":{"schema":{"$ref":"#/components/schemas/RankingsResponse"}}}}}}},"/benchmarks":{"get":{"summary":"GET /benchmarks","description":"Benchmarks of average stat values for a hero","tags":["benchmarks"],"parameters":[{"name":"hero_id","in":"query","description":"Hero ID","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json; charset=utf-8":{"schema":{"$ref":"#/components/schemas/BenchmarksResponse"}}}}}}},"/status":{"get":{"summary":"GET /status","description":"Get current service statistics","tags":["status"],"responses":{"200":{"description":"Success","content":{"application/json; charset=utf-8":{"schema":{"title":"StatusResponse","type":"object"}}}}}}},"/health":{"get":{"summary":"GET /health","description":"Get service health data","tags":["health"],"responses":{"200":{"description":"Success","content":{"application/json; charset=utf-8":{"schema":{"title":"HealthResponse","type":"object"}}}}}}},"/request/{jobId}":{"get":{"summary":"GET /request/{jobId}","description":"Get parse request state","tags":["request"],"parameters":[{"name":"jobId","in":"path","description":"The job ID to query.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json; charset=utf-8":{"schema":{"title":"RequestJobResponse","type":"object"}}}}}}},"/request/{match_id}":{"post":{"summary":"POST /request/{match_id}","description":"Submit a new parse request","tags":["request"],"parameters":[{"$ref":"#/components/parameters/matchIdParam"}],"responses":{"200":{"description":"Success","content":{"application/json; charset=utf-8":{"schema":{"title":"RequestMatchResponse","type":"object"}}}}}}},"/findMatches":{"get":{"summary":"GET /","description":"Finds recent matches by heroes played","tags":["findMatches"],"parameters":[{"name":"teamA","in":"query","description":"Hero IDs on first team (array)","required":false,"style":"form","explode":false,"schema":{"type":"array","items":{"type":"integer"}}},{"name":"teamB","in":"query","description":"Hero IDs on second team (array)","required":false,"style":"form","explode":false,"schema":{"type":"array","items":{"type":"integer"}}}],"responses":{"200":{"description":"Success","content":{"application/json; charset=utf-8":{"schema":{"title":"FindMatchesResponse","type":"array","items":{"type":"object"}}}}}}}},"/heroes":{"get":{"summary":"GET /heroes","description":"Get hero data","tags":["heroes"],"responses":{"200":{"description":"Success","content":{"application/json; charset=utf-8":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/HeroObjectResponse"}}}}}}}},"/heroStats":{"get":{"summary":"GET /heroStats","description":"Get stats about hero performance in recent matches","tags":["hero stats"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json; charset=utf-8":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/HeroStatsResponse"}}}}}}}},"/heroes/{hero_id}/matches":{"get":{"summary":"GET /heroes/{hero_id}/matches","description":"Get recent matches with a hero","tags":["heroes"],"parameters":[{"$ref":"#/components/parameters/heroIdPathParam"}],"responses":{"200":{"description":"Success","content":{"application/json; charset=utf-8":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/MatchObjectResponse"}}}}}}}},"/heroes/{hero_id}/matchups":{"get":{"summary":"GET /heroes/{hero_id}/matchups","description":"Get results against other heroes for a hero","tags":["heroes"],"parameters":[{"$ref":"#/components/parameters/heroIdPathParam"}],"responses":{"200":{"description":"Success","content":{"application/json; charset=utf-8":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/HeroMatchupsResponse"}}}}}}}},"/heroes/{hero_id}/durations":{"get":{"summary":"GET /heroes/{hero_id}/durations","description":"Get hero performance over a range of match durations","tags":["heroes"],"parameters":[{"$ref":"#/components/parameters/heroIdPathParam"}],"responses":{"200":{"description":"Success","content":{"application/json; charset=utf-8":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/HeroDurationsResponse"}}}}}}}},"/heroes/{hero_id}/players":{"get":{"summary":"GET /heroes/{hero_id}/players","description":"Get players who have played this hero","tags":["heroes"],"parameters":[{"$ref":"#/components/parameters/heroIdPathParam"}],"responses":{"200":{"description":"Success","content":{"application/json; charset=utf-8":{"schema":{"type":"array","items":{"type":"array","items":{"$ref":"#/components/schemas/PlayerObjectResponse"}}}}}}}}},"/heroes/{hero_id}/itemPopularity":{"get":{"summary":"GET /heroes/{hero_id}/itemPopularity","description":"Get item popularity of hero categorized by start, early, mid and late game, analyzed from professional games","tags":["heroes"],"parameters":[{"$ref":"#/components/parameters/heroIdPathParam"}],"responses":{"200":{"description":"Success","content":{"application/json; charset=utf-8":{"schema":{"$ref":"#/components/schemas/HeroItemPopularityResponse"}}}}}}},"/leagues":{"get":{"summary":"GET /leagues","description":"Get league data","tags":["leagues"],"responses":{"200":{"description":"Success","content":{"application/json; charset=utf-8":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/LeagueObjectResponse"}}}}}}}},"/leagues/{league_id}":{"get":{"summary":"GET /leagues/{league_id}","description":"Get data for a league","tags":["leagues"],"parameters":[{"$ref":"#/components/parameters/leagueIdPathParam"}],"responses":{"200":{"description":"Success","content":{"application/json; charset=utf-8":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/LeagueObjectResponse"}}}}}}}},"/leagues/{league_id}/matches":{"get":{"summary":"GET /leagues/{league_id}/matches","description":"Get matches for a team","tags":["leagues"],"parameters":[{"$ref":"#/components/parameters/leagueIdPathParam"}],"responses":{"200":{"description":"Success","content":{"application/json; charset=utf-8":{"schema":{"$ref":"#/components/schemas/MatchObjectResponse"}}}}}}},"/leagues/{league_id}/teams":{"get":{"summary":"GET /leagues/{league_id}/teams","description":"Get teams for a league","tags":["leagues"],"parameters":[{"$ref":"#/components/parameters/leagueIdPathParam"}],"responses":{"200":{"description":"Success","content":{"application/json; charset=utf-8":{"schema":{"$ref":"#/components/schemas/TeamObjectResponse"}}}}}}},"/teams":{"get":{"summary":"GET /teams","description":"Get team data","tags":["teams"],"parameters":[{"name":"page","in":"query","description":"Page number, zero indexed. Each page returns up to 1000 entries.","required":false,"schema":{"type":"integer"}}],"responses":{"200":{"description":"Success","content":{"application/json; charset=utf-8":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/TeamObjectResponse"}}}}}}}},"/teams/{team_id}":{"get":{"summary":"GET /teams/{team_id}","description":"Get data for a team","tags":["teams"],"parameters":[{"$ref":"#/components/parameters/teamIdPathParam"}],"responses":{"200":{"description":"Success","content":{"application/json; charset=utf-8":{"schema":{"$ref":"#/components/schemas/TeamObjectResponse"}}}}}}},"/teams/{team_id}/matches":{"get":{"summary":"GET /teams/{team_id}/matches","description":"Get matches for a team","tags":["teams"],"parameters":[{"$ref":"#/components/parameters/teamIdPathParam"}],"responses":{"200":{"description":"Success","content":{"application/json; charset=utf-8":{"schema":{"$ref":"#/components/schemas/TeamMatchObjectResponse"}}}}}}},"/teams/{team_id}/players":{"get":{"summary":"GET /teams/{team_id}/players","description":"Get players who have played for a team","tags":["teams"],"parameters":[{"$ref":"#/components/parameters/teamIdPathParam"}],"responses":{"200":{"description":"Success","content":{"application/json; charset=utf-8":{"schema":{"$ref":"#/components/schemas/TeamPlayersResponse"}}}}}}},"/teams/{team_id}/heroes":{"get":{"summary":"GET /teams/{team_id}/heroes","description":"Get heroes for a team","tags":["teams"],"parameters":[{"$ref":"#/components/parameters/teamIdPathParam"}],"responses":{"200":{"description":"Success","content":{"application/json; charset=utf-8":{"schema":{"$ref":"#/components/schemas/TeamHeroesResponse"}}}}}}},"/replays":{"get":{"summary":"GET /replays","description":"Get data to construct a replay URL with","tags":["replays"],"parameters":[{"$ref":"#/components/parameters/matchIdParam"}],"responses":{"200":{"description":"Success","content":{"application/json; charset=utf-8":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ReplaysResponse"}}}}}}}},"/records/{field}":{"get":{"summary":"GET /records/{field}","description":"Get top performances in a stat","tags":["records"],"parameters":[{"name":"field","in":"path","description":"Field name to query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json; charset=utf-8":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/RecordsResponse"}}}}}}}},"/live":{"get":{"summary":"GET /live","description":"Get top currently ongoing live games","tags":["live"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json; charset=utf-8":{"schema":{"type":"array","items":{"title":"LiveResponse","type":"object","properties":{}}}}}}}}},"/scenarios/itemTimings":{"get":{"summary":"GET /scenarios/itemTimings","description":"Win rates for certain item timings on a hero for items that cost at least 1400 gold","tags":["scenarios"],"parameters":[{"name":"item","in":"query","description":"Filter by item name e.g. \"spirit_vessel\"","required":false,"schema":{"type":"string"}},{"$ref":"#/components/parameters/heroIdParam"}],"responses":{"200":{"description":"Success","content":{"application/json; charset=utf-8":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ScenarioItemTimingsResponse"}}}}}}}},"/scenarios/laneRoles":{"get":{"summary":"GET /scenarios/laneRoles","description":"Win rates for heroes in certain lane roles","tags":["scenarios"],"parameters":[{"name":"lane_role","in":"query","description":"Filter by lane role 1-4 (Safe, Mid, Off, Jungle)","required":false,"schema":{"type":"string"}},{"$ref":"#/components/parameters/heroIdParam"}],"responses":{"200":{"description":"Success","content":{"application/json; charset=utf-8":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ScenarioLaneRolesResponse"}}}}}}}},"/scenarios/misc":{"get":{"summary":"GET /scenarios/misc","description":"Miscellaneous team scenarios","tags":["scenarios"],"parameters":[{"$ref":"#/components/parameters/scenarioParam"}],"responses":{"200":{"description":"Success","content":{"application/json; charset=utf-8":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ScenarioMiscResponse"}}}}}}}},"/schema":{"get":{"summary":"GET /schema","description":"Get database schema","tags":["schema"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json; charset=utf-8":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SchemaResponse"}}}}}}}},"/constants/{resource}":{"get":{"summary":"GET /constants","description":"Get static game data mirrored from the dotaconstants repository.","tags":["constants"],"parameters":[{"name":"resource","in":"path","description":"Resource name e.g. `heroes`. [List of resources](https://github.com/odota/dotaconstants/tree/master/build)","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json; charset=utf-8":{"schema":{"nullable":true,"oneOf":[{"type":"object","additionalProperties":{"title":"ConstantResourceResponse"}},{"type":"array","items":{"oneOf":[{"type":"object","additionalProperties":{"title":"ConstantResourceResponse"}},{"type":"integer"}]}}]}}}}}}},"/constants":{"get":{"summary":"GET /constants","description":"Gets an array of available resources.","tags":["constants"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json; charset=utf-8":{"schema":{"type":"array","items":{"title":"ConstantsResponse","type":"string"}}}}}}}}}} \ No newline at end of file diff --git a/modules/openapi-generator/src/test/resources/3_0/python/petstore-with-fake-endpoints-models-for-testing.yaml b/modules/openapi-generator/src/test/resources/3_0/python/petstore-with-fake-endpoints-models-for-testing.yaml index c647aa74f4d8..ec8f71087399 100644 --- a/modules/openapi-generator/src/test/resources/3_0/python/petstore-with-fake-endpoints-models-for-testing.yaml +++ b/modules/openapi-generator/src/test/resources/3_0/python/petstore-with-fake-endpoints-models-for-testing.yaml @@ -861,7 +861,7 @@ paths: format: int64 responses: '400': - description: Someting wrong + description: Something wrong /fake/outer/number: post: tags: @@ -2108,7 +2108,7 @@ components: - 'Description for 56' x-enum-varnames: - FortyTwo - - Eigtheen + - Eighteen - FiftySix enum_string_vendor_ext: type: string diff --git a/modules/openapi-generator/src/test/resources/3_0/ruby/petstore-with-fake-endpoints-models-for-testing.yaml b/modules/openapi-generator/src/test/resources/3_0/ruby/petstore-with-fake-endpoints-models-for-testing.yaml index 9cdb45fcd65d..b94ec07dff9c 100644 --- a/modules/openapi-generator/src/test/resources/3_0/ruby/petstore-with-fake-endpoints-models-for-testing.yaml +++ b/modules/openapi-generator/src/test/resources/3_0/ruby/petstore-with-fake-endpoints-models-for-testing.yaml @@ -2113,7 +2113,7 @@ components: oneOf: - $ref: '#/components/schemas/whale' - $ref: '#/components/schemas/zebra' - mamal_with_enum: + mammal_with_enum: oneOf: - $ref: '#/components/schemas/cow' mammal: diff --git a/modules/openapi-generator/src/test/resources/3_0/spring/issue12474-multiline-description.yaml b/modules/openapi-generator/src/test/resources/3_0/spring/issue12474-multiline-description.yaml index 12b471c0fdd7..31cb595ef4bf 100644 --- a/modules/openapi-generator/src/test/resources/3_0/spring/issue12474-multiline-description.yaml +++ b/modules/openapi-generator/src/test/resources/3_0/spring/issue12474-multiline-description.yaml @@ -6,7 +6,7 @@ info: tags: - name: pingTag description: | - This is a multine tag : + This is a multiline tag : * tag item 1 * tag item 2 diff --git a/modules/openapi-generator/src/test/resources/3_1/java/petstore.yaml b/modules/openapi-generator/src/test/resources/3_1/java/petstore.yaml index 44ccd02645fc..33463b780c08 100644 --- a/modules/openapi-generator/src/test/resources/3_1/java/petstore.yaml +++ b/modules/openapi-generator/src/test/resources/3_1/java/petstore.yaml @@ -976,7 +976,7 @@ components: description: string or int type: [string, integer] OneOfStringOrInt: - description: string or int (onefOf) + description: string or int (oneOf) oneOf: - type: string - type: integer @@ -1022,7 +1022,7 @@ components: properties: {} type: object title: HTTPValidationError - # okhttp-gson doesnot support array of string + # okhttp-gson doesn't support array of string #AnyOfArray: # anyOf: # - type: array diff --git a/modules/openapi-generator/src/test/resources/yamlConfigMap.yaml b/modules/openapi-generator/src/test/resources/yamlConfigMap.yaml index 47309d197321..62efe85d49e0 100644 --- a/modules/openapi-generator/src/test/resources/yamlConfigMap.yaml +++ b/modules/openapi-generator/src/test/resources/yamlConfigMap.yaml @@ -2,7 +2,7 @@ firstItem: stringConfig: 'Hello' numberConfig: 42 objectConfig: - attribut: 'openapi' + attribute: 'openapi' arrayConfig: - 'one' - 'two' diff --git a/samples/client/echo_api/powershell/src/PSOpenAPITools/Private/HttpSignatureAuth.ps1 b/samples/client/echo_api/powershell/src/PSOpenAPITools/Private/HttpSignatureAuth.ps1 index c0d7175768c0..811e978d4145 100644 --- a/samples/client/echo_api/powershell/src/PSOpenAPITools/Private/HttpSignatureAuth.ps1 +++ b/samples/client/echo_api/powershell/src/PSOpenAPITools/Private/HttpSignatureAuth.ps1 @@ -182,8 +182,8 @@ function Get-RSASignature { $ecKeyBase64String = $keyStr.Replace($ecKeyHeader, "").Replace($ecKeyFooter, "").Trim() $keyBytes = [System.Convert]::FromBase64String($ecKeyBase64String) $rsa = [System.Security.Cryptography.RSA]::Create() - [int]$bytCount = 0 - $rsa.ImportRSAPrivateKey($keyBytes, [ref] $bytCount) + [int]$byteCount = 0 + $rsa.ImportRSAPrivateKey($keyBytes, [ref] $byteCount) if ($SigningAlgorithm -eq "RSASSA-PSS") { $signedBytes = $rsa.SignHash($DataToSign, $hashAlgo, [System.Security.Cryptography.RSASignaturePadding]::Pss) @@ -254,11 +254,11 @@ function Get-ECDSASignature { $keyBytes = [System.Convert]::FromBase64String($ecKeyBase64String) $ecdsa = [System.Security.Cryptography.ECDsa]::Create() - [int]$bytCount =0 + [int]$byteCount =0 if (![string]::IsNullOrEmpty($KeyPassPhrase)) { - $ecdsa.ImportEncryptedPkcs8PrivateKey($KeyPassPhrase,$keyBytes,[ref]$bytCount) + $ecdsa.ImportEncryptedPkcs8PrivateKey($KeyPassPhrase,$keyBytes,[ref]$byteCount) } else { - $ecdsa.ImportPkcs8PrivateKey($keyBytes,[ref]$bytCount) + $ecdsa.ImportPkcs8PrivateKey($keyBytes,[ref]$byteCount) } $signedBytes = $ecdsa.SignHash($DataToSign) diff --git a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/tests/test_manual.py b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/tests/test_manual.py index 1a5d0bb4d83f..daf18d8fa6c7 100644 --- a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/tests/test_manual.py +++ b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/tests/test_manual.py @@ -49,7 +49,7 @@ def testEnumRefString(self): def testDateTimeQueryWithDateTimeFormat(self): api_instance = openapi_client.QueryApi() - datetime_format_backup = api_instance.api_client.configuration.datetime_format # backup dateime_format + datetime_format_backup = api_instance.api_client.configuration.datetime_format # backup datetime_format api_instance.api_client.configuration.datetime_format = "%Y-%m-%d %a %H:%M:%S%Z" datetime_query = datetime.datetime.fromisoformat('2013-10-20T19:20:30-05:00') # datetime | (optional) date_query = datetime.date(2013, 10, 20) # date | (optional) @@ -87,7 +87,7 @@ def testAdditionalPropertiesNotDefined(self): except ValueError as err: self.assertEqual("Error due to additional fields (not defined in NumberPropertiesOnly) in the input: float", str(err)) - def testApplicatinOctetStreamBinaryBodyParameter(self): + def testApplicationOctetStreamBinaryBodyParameter(self): api_instance = openapi_client.BodyApi() binary_body = base64.b64decode(self.gif_base64) api_response = api_instance.test_body_application_octetstream_binary(binary_body) @@ -96,7 +96,7 @@ def testApplicatinOctetStreamBinaryBodyParameter(self): self.assertEqual(e.headers["Content-Type"], 'application/octet-stream') self.assertEqual(bytes(e.body, "utf-8"), b'GIF89a\x01\x00\x01\x00\xef\xbf\xbd\x01\x00\xef\xbf\xbd\xef\xbf\xbd\xef\xbf\xbd\x00\x00\x00!\xef\xbf\xbd\x04\x01\n\x00\x01\x00,\x00\x00\x00\x00\x01\x00\x01\x00\x00\x02\x02L\x01\x00;') - def testApplicatinOctetStreamBinaryBodyParameterWithFile(self): + def testApplicationOctetStreamBinaryBodyParameterWithFile(self): api_instance = openapi_client.BodyApi() try: api_response = api_instance.test_body_application_octetstream_binary("invalid_file_path") @@ -175,7 +175,7 @@ def test_from_to_methods(self): assert pet2.category is not None self.assertEqual(pet2.category.id, 1) - def echoServerResponseParaserTest(self): + def echoServerResponseParserTest(self): s = """POST /echo/body/Pet/response_string HTTP/1.1 Host: localhost:3000 Accept-Encoding: identity diff --git a/samples/client/echo_api/python-pydantic-v1/test/test_manual.py b/samples/client/echo_api/python-pydantic-v1/test/test_manual.py index 202cf2dd1963..1f5230f3fd32 100644 --- a/samples/client/echo_api/python-pydantic-v1/test/test_manual.py +++ b/samples/client/echo_api/python-pydantic-v1/test/test_manual.py @@ -49,7 +49,7 @@ def testEnumRefString(self): def testDateTimeQueryWithDateTimeFormat(self): api_instance = openapi_client.QueryApi() - datetime_format_backup = api_instance.api_client.configuration.datetime_format # backup dateime_format + datetime_format_backup = api_instance.api_client.configuration.datetime_format # backup datetime_format api_instance.api_client.configuration.datetime_format = "%Y-%m-%d %a %H:%M:%S%Z" datetime_query = datetime.datetime.fromisoformat('2013-10-20T19:20:30-05:00') # datetime | (optional) date_query = '2013-10-20' # date | (optional) @@ -94,7 +94,7 @@ def testNumberPropertiesOnly(self): # self.assertEqual(n.float, 456.2) self.assertEqual(n.double, 34.3) - def testApplicatinOctetStreamBinaryBodyParameter(self): + def testApplicationOctetStreamBinaryBodyParameter(self): api_instance = openapi_client.BodyApi() binary_body = base64.b64decode(self.gif_base64) api_response = api_instance.test_body_application_octetstream_binary(binary_body) @@ -103,7 +103,7 @@ def testApplicatinOctetStreamBinaryBodyParameter(self): self.assertEqual(e.headers["Content-Type"], 'application/octet-stream') self.assertEqual(bytes(e.body, "utf-8"), b'GIF89a\x01\x00\x01\x00\xef\xbf\xbd\x01\x00\xef\xbf\xbd\xef\xbf\xbd\xef\xbf\xbd\x00\x00\x00!\xef\xbf\xbd\x04\x01\n\x00\x01\x00,\x00\x00\x00\x00\x01\x00\x01\x00\x00\x02\x02L\x01\x00;') - def testApplicatinOctetStreamBinaryBodyParameterWithFile(self): + def testApplicationOctetStreamBinaryBodyParameterWithFile(self): api_instance = openapi_client.BodyApi() try: api_response = api_instance.test_body_application_octetstream_binary("invalid_file_path") @@ -127,7 +127,7 @@ def testBodyParameter(self): self.assertEqual(api_response, "{}") # assertion to ensure {} is sent in the body api_response = api_instance.test_echo_body_tag_response_string(None) - self.assertEqual(api_response, "") # assertion to ensure emtpy string is sent in the body + self.assertEqual(api_response, "") # assertion to ensure empty string is sent in the body api_response = api_instance.test_echo_body_free_form_object_response_string({}) self.assertEqual(api_response, "{}") # assertion to ensure {} is sent in the body @@ -156,7 +156,7 @@ def test_parameters_to_url_query_list_value(self): self.assertEqual(params, "list=1&list=2&list=3") - def echoServerResponseParaserTest(self): + def echoServerResponseParserTest(self): s = """POST /echo/body/Pet/response_string HTTP/1.1 Host: localhost:3000 Accept-Encoding: identity diff --git a/samples/client/echo_api/python/tests/test_manual.py b/samples/client/echo_api/python/tests/test_manual.py index 8572845b9ab8..790b60c79dc0 100644 --- a/samples/client/echo_api/python/tests/test_manual.py +++ b/samples/client/echo_api/python/tests/test_manual.py @@ -94,7 +94,7 @@ def test_query_style_form_explode_false_array_string_test(self): def testDateTimeQueryWithDateTimeFormat(self): api_instance = openapi_client.QueryApi() - datetime_format_backup = api_instance.api_client.configuration.datetime_format # backup dateime_format + datetime_format_backup = api_instance.api_client.configuration.datetime_format # backup datetime_format api_instance.api_client.configuration.datetime_format = "%Y-%m-%d %a %H:%M:%S%Z" datetime_query = datetime.datetime.fromisoformat('2013-10-20T19:20:30-05:00') # datetime | (optional) date_query = datetime.date(2013, 10, 20) # date | (optional) @@ -148,7 +148,7 @@ def testNumberPropertiesOnly(self): # self.assertEqual(n.float, 456.2) self.assertEqual(n.double, 34.3) - def testApplicatinOctetStreamBinaryBodyParameter(self): + def testApplicationOctetStreamBinaryBodyParameter(self): api_instance = openapi_client.BodyApi() binary_body = base64.b64decode(self.gif_base64) api_response = api_instance.test_body_application_octetstream_binary(binary_body) @@ -157,7 +157,7 @@ def testApplicatinOctetStreamBinaryBodyParameter(self): self.assertEqual(e.headers["Content-Type"], 'application/octet-stream') self.assertEqual(bytes(e.body, "utf-8"), b'GIF89a\x01\x00\x01\x00\xef\xbf\xbd\x01\x00\xef\xbf\xbd\xef\xbf\xbd\xef\xbf\xbd\x00\x00\x00!\xef\xbf\xbd\x04\x01\n\x00\x01\x00,\x00\x00\x00\x00\x01\x00\x01\x00\x00\x02\x02L\x01\x00;') - def testApplicatinOctetStreamBinaryBodyParameterWithFile(self): + def testApplicationOctetStreamBinaryBodyParameterWithFile(self): api_instance = openapi_client.BodyApi() try: api_response = api_instance.test_body_application_octetstream_binary("invalid_file_path") @@ -184,7 +184,7 @@ def testBodyParameter(self): self.assertEqual(api_response, "{}") # assertion to ensure {} is sent in the body api_response = api_instance.test_echo_body_tag_response_string(None) - self.assertEqual(api_response, "") # assertion to ensure emtpy string is sent in the body + self.assertEqual(api_response, "") # assertion to ensure empty string is sent in the body def testAuthHttpBasic(self): api_instance = openapi_client.AuthApi() @@ -249,7 +249,7 @@ def test_parameters_to_url_query_list_value(self): params = client.parameters_to_url_query(params=[('list', [1, 2, 3])], collection_formats={'list': 'multi'}) self.assertEqual(params, "list=1&list=2&list=3") - def echoServerResponseParaserTest(self): + def echoServerResponseParserTest(self): s = """POST /echo/body/Pet/response_string HTTP/1.1 Host: localhost:3000 Accept-Encoding: identity diff --git a/samples/client/echo_api/r/R/api_client.R b/samples/client/echo_api/r/R/api_client.R index ab9094f67dab..78edd45d748b 100644 --- a/samples/client/echo_api/r/R/api_client.R +++ b/samples/client/echo_api/r/R/api_client.R @@ -389,7 +389,7 @@ ApiClient <- R6::R6Class( #' #' @param local_var_resp The API response #' @param return_type The target return type for the endpoint (e.g., `"object"`). If `NULL` text will be left as-is. - #' @return If the raw response is corecable to text, return the text. Otherwise return the raw resposne. + #' @return If the raw response is corecable to text, return the text. Otherwise return the raw response. DeserializeResponse = function(local_var_resp, return_type = NULL) { text <- local_var_resp$response_as_text() if (is.na(text)) { @@ -406,8 +406,8 @@ ApiClient <- R6::R6Class( #' The function will write out data. #' #' 1. If binary data is detected it will use `writeBin` - #' 2. If the raw response is coercable to text, the text will be written to a file - #' 3. If the raw response is not coercable to text, the raw response will be written + #' 2. If the raw response is coercible to text, the text will be written to a file + #' 3. If the raw response is not coercible to text, the raw response will be written #' #' @param local_var_resp The API response #' @param file The name of the data file to save the result diff --git a/samples/client/petstore/R-httr2-wrapper/R/api_client.R b/samples/client/petstore/R-httr2-wrapper/R/api_client.R index f89465e25bbc..954f772e3914 100644 --- a/samples/client/petstore/R-httr2-wrapper/R/api_client.R +++ b/samples/client/petstore/R-httr2-wrapper/R/api_client.R @@ -439,7 +439,7 @@ ApiClient <- R6::R6Class( #' #' @param local_var_resp The API response #' @param return_type The target return type for the endpoint (e.g., `"object"`). If `NULL` text will be left as-is. - #' @return If the raw response is corecable to text, return the text. Otherwise return the raw resposne. + #' @return If the raw response is corecable to text, return the text. Otherwise return the raw response. DeserializeResponse = function(local_var_resp, return_type = NULL) { text <- local_var_resp$response_as_text() if (is.na(text)) { @@ -456,8 +456,8 @@ ApiClient <- R6::R6Class( #' The function will write out data. #' #' 1. If binary data is detected it will use `writeBin` - #' 2. If the raw response is coercable to text, the text will be written to a file - #' 3. If the raw response is not coercable to text, the raw response will be written + #' 2. If the raw response is coercible to text, the text will be written to a file + #' 3. If the raw response is not coercible to text, the raw response will be written #' #' @param local_var_resp The API response #' @param file The name of the data file to save the result diff --git a/samples/client/petstore/R-httr2-wrapper/tests/testthat/test_petstore.R b/samples/client/petstore/R-httr2-wrapper/tests/testthat/test_petstore.R index f5c8c4edabf4..f335d61ef124 100644 --- a/samples/client/petstore/R-httr2-wrapper/tests/testthat/test_petstore.R +++ b/samples/client/petstore/R-httr2-wrapper/tests/testthat/test_petstore.R @@ -496,7 +496,7 @@ test_that("Tests oneOf", { original_danish_pig <- DanishPig$new()$fromJSON(danish_pig_json) original_basque_pig <- BasquePig$new()$fromJSON(basque_pig_json) - # test fromJSON, actual_tpye, actual_instance + # test fromJSON, actual_type, actual_instance pig <- Pig$new() danish_pig <- pig$fromJSON(danish_pig_json) pig$validateJSON(basque_pig_json) # validate JSON to ensure its actual_instance, actual_type are not updated @@ -566,7 +566,7 @@ test_that("Tests anyOf", { original_danish_pig <- DanishPig$new()$fromJSON(danish_pig_json) original_basque_pig <- BasquePig$new()$fromJSON(basque_pig_json) - # test fromJSON, actual_tpye, actual_instance + # test fromJSON, actual_type, actual_instance pig <- AnyOfPig$new() danish_pig <- pig$fromJSON(danish_pig_json) expect_equal(danish_pig$actual_type, "DanishPig") diff --git a/samples/client/petstore/R-httr2/R/api_client.R b/samples/client/petstore/R-httr2/R/api_client.R index f89465e25bbc..954f772e3914 100644 --- a/samples/client/petstore/R-httr2/R/api_client.R +++ b/samples/client/petstore/R-httr2/R/api_client.R @@ -439,7 +439,7 @@ ApiClient <- R6::R6Class( #' #' @param local_var_resp The API response #' @param return_type The target return type for the endpoint (e.g., `"object"`). If `NULL` text will be left as-is. - #' @return If the raw response is corecable to text, return the text. Otherwise return the raw resposne. + #' @return If the raw response is corecable to text, return the text. Otherwise return the raw response. DeserializeResponse = function(local_var_resp, return_type = NULL) { text <- local_var_resp$response_as_text() if (is.na(text)) { @@ -456,8 +456,8 @@ ApiClient <- R6::R6Class( #' The function will write out data. #' #' 1. If binary data is detected it will use `writeBin` - #' 2. If the raw response is coercable to text, the text will be written to a file - #' 3. If the raw response is not coercable to text, the raw response will be written + #' 2. If the raw response is coercible to text, the text will be written to a file + #' 3. If the raw response is not coercible to text, the raw response will be written #' #' @param local_var_resp The API response #' @param file The name of the data file to save the result diff --git a/samples/client/petstore/R-httr2/tests/testthat/test_petstore.R b/samples/client/petstore/R-httr2/tests/testthat/test_petstore.R index ec1816d3c39d..908d53552e4a 100644 --- a/samples/client/petstore/R-httr2/tests/testthat/test_petstore.R +++ b/samples/client/petstore/R-httr2/tests/testthat/test_petstore.R @@ -303,7 +303,7 @@ test_that("Tests oneOf", { original_danish_pig <- DanishPig$new()$fromJSON(danish_pig_json) original_basque_pig <- BasquePig$new()$fromJSON(basque_pig_json) - # test fromJSON, actual_tpye, actual_instance + # test fromJSON, actual_type, actual_instance pig <- Pig$new() danish_pig <- pig$fromJSON(danish_pig_json) pig$validateJSON(basque_pig_json) # validate JSON to ensure its actual_instance, actual_type are not updated @@ -373,7 +373,7 @@ test_that("Tests anyOf", { original_danish_pig <- DanishPig$new()$fromJSON(danish_pig_json) original_basque_pig <- BasquePig$new()$fromJSON(basque_pig_json) - # test fromJSON, actual_tpye, actual_instance + # test fromJSON, actual_type, actual_instance pig <- AnyOfPig$new() danish_pig <- pig$fromJSON(danish_pig_json) expect_equal(danish_pig$actual_type, "DanishPig") diff --git a/samples/client/petstore/R/R/api_client.R b/samples/client/petstore/R/R/api_client.R index c9e67c317410..561b7fae7f0e 100644 --- a/samples/client/petstore/R/R/api_client.R +++ b/samples/client/petstore/R/R/api_client.R @@ -418,7 +418,7 @@ ApiClient <- R6::R6Class( #' #' @param local_var_resp The API response #' @param return_type The target return type for the endpoint (e.g., `"object"`). If `NULL` text will be left as-is. - #' @return If the raw response is corecable to text, return the text. Otherwise return the raw resposne. + #' @return If the raw response is corecable to text, return the text. Otherwise return the raw response. DeserializeResponse = function(local_var_resp, return_type = NULL) { text <- local_var_resp$response_as_text() if (is.na(text)) { @@ -435,8 +435,8 @@ ApiClient <- R6::R6Class( #' The function will write out data. #' #' 1. If binary data is detected it will use `writeBin` - #' 2. If the raw response is coercable to text, the text will be written to a file - #' 3. If the raw response is not coercable to text, the raw response will be written + #' 2. If the raw response is coercible to text, the text will be written to a file + #' 3. If the raw response is not coercible to text, the raw response will be written #' #' @param local_var_resp The API response #' @param file The name of the data file to save the result diff --git a/samples/client/petstore/R/tests/testthat/test_petstore.R b/samples/client/petstore/R/tests/testthat/test_petstore.R index 641e2cbb2751..ebdea5dbbe73 100644 --- a/samples/client/petstore/R/tests/testthat/test_petstore.R +++ b/samples/client/petstore/R/tests/testthat/test_petstore.R @@ -237,7 +237,7 @@ test_that("Tests oneOf", { original_danish_pig <- DanishPig$new()$fromJSON(danish_pig_json) original_basque_pig <- BasquePig$new()$fromJSON(basque_pig_json) - # test fromJSON, actual_tpye, actual_instance + # test fromJSON, actual_type, actual_instance pig <- Pig$new() danish_pig <- pig$fromJSON(danish_pig_json) pig$validateJSON(basque_pig_json) # validate JSON to ensure its actual_instance, actual_type are not updated @@ -307,7 +307,7 @@ test_that("Tests anyOf", { original_danish_pig <- DanishPig$new()$fromJSON(danish_pig_json) original_basque_pig <- BasquePig$new()$fromJSON(basque_pig_json) - # test fromJSON, actual_tpye, actual_instance + # test fromJSON, actual_type, actual_instance pig <- AnyOfPig$new() danish_pig <- pig$fromJSON(danish_pig_json) expect_equal(danish_pig$actual_type, "DanishPig") diff --git a/samples/client/petstore/c-useJsonUnformatted/.openapi-generator/FILES b/samples/client/petstore/c-useJsonUnformatted/.openapi-generator/FILES index 8c91a58b05a0..7022418c5c32 100644 --- a/samples/client/petstore/c-useJsonUnformatted/.openapi-generator/FILES +++ b/samples/client/petstore/c-useJsonUnformatted/.openapi-generator/FILES @@ -15,7 +15,7 @@ docs/UserAPI.md docs/api_response.md docs/bit.md docs/category.md -docs/model_with_set_propertes.md +docs/model_with_set_properties.md docs/order.md docs/pet.md docs/preference.md @@ -38,8 +38,8 @@ model/category.c model/category.h model/mapped_model.c model/mapped_model.h -model/model_with_set_propertes.c -model/model_with_set_propertes.h +model/model_with_set_properties.c +model/model_with_set_properties.h model/object.c model/object.h model/order.c diff --git a/samples/client/petstore/c-useJsonUnformatted/CMakeLists.txt b/samples/client/petstore/c-useJsonUnformatted/CMakeLists.txt index cd72ab391660..ac5d7727f9d3 100644 --- a/samples/client/petstore/c-useJsonUnformatted/CMakeLists.txt +++ b/samples/client/petstore/c-useJsonUnformatted/CMakeLists.txt @@ -58,7 +58,7 @@ set(SRCS model/api_response.c model/bit.c model/category.c - model/model_with_set_propertes.c + model/model_with_set_properties.c model/order.c model/pet.c model/preference.c @@ -82,7 +82,7 @@ set(HDRS model/api_response.h model/bit.h model/category.h - model/model_with_set_propertes.h + model/model_with_set_properties.h model/order.h model/pet.h model/preference.h diff --git a/samples/client/petstore/c-useJsonUnformatted/README.md b/samples/client/petstore/c-useJsonUnformatted/README.md index a7cf2d3100af..d02ed8f76fa2 100644 --- a/samples/client/petstore/c-useJsonUnformatted/README.md +++ b/samples/client/petstore/c-useJsonUnformatted/README.md @@ -102,7 +102,7 @@ Category | Method | HTTP request | Description - [api_response_t](docs/api_response.md) - [bit_t](docs/bit.md) - [category_t](docs/category.md) - - [model_with_set_propertes_t](docs/model_with_set_propertes.md) + - [model_with_set_properties_t](docs/model_with_set_properties.md) - [order_t](docs/order.md) - [pet_t](docs/pet.md) - [preference_t](docs/preference.md) diff --git a/samples/client/petstore/c-useJsonUnformatted/docs/model_with_set_propertes.md b/samples/client/petstore/c-useJsonUnformatted/docs/model_with_set_properties.md similarity index 92% rename from samples/client/petstore/c-useJsonUnformatted/docs/model_with_set_propertes.md rename to samples/client/petstore/c-useJsonUnformatted/docs/model_with_set_properties.md index 2b8389e87f86..242fc62856a5 100644 --- a/samples/client/petstore/c-useJsonUnformatted/docs/model_with_set_propertes.md +++ b/samples/client/petstore/c-useJsonUnformatted/docs/model_with_set_properties.md @@ -1,4 +1,4 @@ -# model_with_set_propertes_t +# model_with_set_properties_t ## Properties Name | Type | Description | Notes diff --git a/samples/client/petstore/c-useJsonUnformatted/model/model_with_set_propertes.h b/samples/client/petstore/c-useJsonUnformatted/model/model_with_set_propertes.h deleted file mode 100644 index 537271638b99..000000000000 --- a/samples/client/petstore/c-useJsonUnformatted/model/model_with_set_propertes.h +++ /dev/null @@ -1,40 +0,0 @@ -/* - * model_with_set_propertes.h - * - * to test set properties - */ - -#ifndef _model_with_set_propertes_H_ -#define _model_with_set_propertes_H_ - -#include -#include "../external/cJSON.h" -#include "../include/list.h" -#include "../include/keyValuePair.h" -#include "../include/binary.h" - -typedef struct model_with_set_propertes_t model_with_set_propertes_t; - -#include "tag.h" - - - -typedef struct model_with_set_propertes_t { - list_t *tag_set; //nonprimitive container - list_t *string_set; //primitive container - -} model_with_set_propertes_t; - -model_with_set_propertes_t *model_with_set_propertes_create( - list_t *tag_set, - list_t *string_set -); - -void model_with_set_propertes_free(model_with_set_propertes_t *model_with_set_propertes); - -model_with_set_propertes_t *model_with_set_propertes_parseFromJSON(cJSON *model_with_set_propertesJSON); - -cJSON *model_with_set_propertes_convertToJSON(model_with_set_propertes_t *model_with_set_propertes); - -#endif /* _model_with_set_propertes_H_ */ - diff --git a/samples/client/petstore/c/model/model_with_set_propertes.c b/samples/client/petstore/c-useJsonUnformatted/model/model_with_set_properties.c similarity index 58% rename from samples/client/petstore/c/model/model_with_set_propertes.c rename to samples/client/petstore/c-useJsonUnformatted/model/model_with_set_properties.c index d29660fccfcd..1df6814d9f3c 100644 --- a/samples/client/petstore/c/model/model_with_set_propertes.c +++ b/samples/client/petstore/c-useJsonUnformatted/model/model_with_set_properties.c @@ -1,60 +1,60 @@ #include #include #include -#include "model_with_set_propertes.h" +#include "model_with_set_properties.h" -model_with_set_propertes_t *model_with_set_propertes_create( +model_with_set_properties_t *model_with_set_properties_create( list_t *tag_set, list_t *string_set ) { - model_with_set_propertes_t *model_with_set_propertes_local_var = malloc(sizeof(model_with_set_propertes_t)); - if (!model_with_set_propertes_local_var) { + model_with_set_properties_t *model_with_set_properties_local_var = malloc(sizeof(model_with_set_properties_t)); + if (!model_with_set_properties_local_var) { return NULL; } - model_with_set_propertes_local_var->tag_set = tag_set; - model_with_set_propertes_local_var->string_set = string_set; + model_with_set_properties_local_var->tag_set = tag_set; + model_with_set_properties_local_var->string_set = string_set; - return model_with_set_propertes_local_var; + return model_with_set_properties_local_var; } -void model_with_set_propertes_free(model_with_set_propertes_t *model_with_set_propertes) { - if(NULL == model_with_set_propertes){ +void model_with_set_properties_free(model_with_set_properties_t *model_with_set_properties) { + if(NULL == model_with_set_properties){ return ; } listEntry_t *listEntry; - if (model_with_set_propertes->tag_set) { - list_ForEach(listEntry, model_with_set_propertes->tag_set) { + if (model_with_set_properties->tag_set) { + list_ForEach(listEntry, model_with_set_properties->tag_set) { tag_free(listEntry->data); } - list_freeList(model_with_set_propertes->tag_set); - model_with_set_propertes->tag_set = NULL; + list_freeList(model_with_set_properties->tag_set); + model_with_set_properties->tag_set = NULL; } - if (model_with_set_propertes->string_set) { - list_ForEach(listEntry, model_with_set_propertes->string_set) { + if (model_with_set_properties->string_set) { + list_ForEach(listEntry, model_with_set_properties->string_set) { free(listEntry->data); } - list_freeList(model_with_set_propertes->string_set); - model_with_set_propertes->string_set = NULL; + list_freeList(model_with_set_properties->string_set); + model_with_set_properties->string_set = NULL; } - free(model_with_set_propertes); + free(model_with_set_properties); } -cJSON *model_with_set_propertes_convertToJSON(model_with_set_propertes_t *model_with_set_propertes) { +cJSON *model_with_set_properties_convertToJSON(model_with_set_properties_t *model_with_set_properties) { cJSON *item = cJSON_CreateObject(); - // model_with_set_propertes->tag_set - if(model_with_set_propertes->tag_set) { + // model_with_set_properties->tag_set + if(model_with_set_properties->tag_set) { cJSON *tag_set = cJSON_AddArrayToObject(item, "tag_set"); if(tag_set == NULL) { goto fail; //nonprimitive container } listEntry_t *tag_setListEntry; - if (model_with_set_propertes->tag_set) { - list_ForEach(tag_setListEntry, model_with_set_propertes->tag_set) { + if (model_with_set_properties->tag_set) { + list_ForEach(tag_setListEntry, model_with_set_properties->tag_set) { cJSON *itemLocal = tag_convertToJSON(tag_setListEntry->data); if(itemLocal == NULL) { goto fail; @@ -65,15 +65,15 @@ cJSON *model_with_set_propertes_convertToJSON(model_with_set_propertes_t *model_ } - // model_with_set_propertes->string_set - if(model_with_set_propertes->string_set) { + // model_with_set_properties->string_set + if(model_with_set_properties->string_set) { cJSON *string_set = cJSON_AddArrayToObject(item, "string_set"); if(string_set == NULL) { goto fail; //primitive container } listEntry_t *string_setListEntry; - list_ForEach(string_setListEntry, model_with_set_propertes->string_set) { + list_ForEach(string_setListEntry, model_with_set_properties->string_set) { if(cJSON_AddStringToObject(string_set, "", (char*)string_setListEntry->data) == NULL) { goto fail; @@ -89,18 +89,18 @@ cJSON *model_with_set_propertes_convertToJSON(model_with_set_propertes_t *model_ return NULL; } -model_with_set_propertes_t *model_with_set_propertes_parseFromJSON(cJSON *model_with_set_propertesJSON){ +model_with_set_properties_t *model_with_set_properties_parseFromJSON(cJSON *model_with_set_propertiesJSON){ - model_with_set_propertes_t *model_with_set_propertes_local_var = NULL; + model_with_set_properties_t *model_with_set_properties_local_var = NULL; - // define the local list for model_with_set_propertes->tag_set + // define the local list for model_with_set_properties->tag_set list_t *tag_setList = NULL; - // define the local list for model_with_set_propertes->string_set + // define the local list for model_with_set_properties->string_set list_t *string_setList = NULL; - // model_with_set_propertes->tag_set - cJSON *tag_set = cJSON_GetObjectItemCaseSensitive(model_with_set_propertesJSON, "tag_set"); + // model_with_set_properties->tag_set + cJSON *tag_set = cJSON_GetObjectItemCaseSensitive(model_with_set_propertiesJSON, "tag_set"); if (cJSON_IsNull(tag_set)) { tag_set = NULL; } @@ -123,8 +123,8 @@ model_with_set_propertes_t *model_with_set_propertes_parseFromJSON(cJSON *model_ } } - // model_with_set_propertes->string_set - cJSON *string_set = cJSON_GetObjectItemCaseSensitive(model_with_set_propertesJSON, "string_set"); + // model_with_set_properties->string_set + cJSON *string_set = cJSON_GetObjectItemCaseSensitive(model_with_set_propertiesJSON, "string_set"); if (cJSON_IsNull(string_set)) { string_set = NULL; } @@ -146,12 +146,12 @@ model_with_set_propertes_t *model_with_set_propertes_parseFromJSON(cJSON *model_ } - model_with_set_propertes_local_var = model_with_set_propertes_create ( + model_with_set_properties_local_var = model_with_set_properties_create ( tag_set ? tag_setList : NULL, string_set ? string_setList : NULL ); - return model_with_set_propertes_local_var; + return model_with_set_properties_local_var; end: if (tag_setList) { listEntry_t *listEntry = NULL; diff --git a/samples/client/petstore/c-useJsonUnformatted/model/model_with_set_properties.h b/samples/client/petstore/c-useJsonUnformatted/model/model_with_set_properties.h new file mode 100644 index 000000000000..020e6638d45d --- /dev/null +++ b/samples/client/petstore/c-useJsonUnformatted/model/model_with_set_properties.h @@ -0,0 +1,40 @@ +/* + * model_with_set_properties.h + * + * to test set properties + */ + +#ifndef _model_with_set_properties_H_ +#define _model_with_set_properties_H_ + +#include +#include "../external/cJSON.h" +#include "../include/list.h" +#include "../include/keyValuePair.h" +#include "../include/binary.h" + +typedef struct model_with_set_properties_t model_with_set_properties_t; + +#include "tag.h" + + + +typedef struct model_with_set_properties_t { + list_t *tag_set; //nonprimitive container + list_t *string_set; //primitive container + +} model_with_set_properties_t; + +model_with_set_properties_t *model_with_set_properties_create( + list_t *tag_set, + list_t *string_set +); + +void model_with_set_properties_free(model_with_set_properties_t *model_with_set_properties); + +model_with_set_properties_t *model_with_set_properties_parseFromJSON(cJSON *model_with_set_propertiesJSON); + +cJSON *model_with_set_properties_convertToJSON(model_with_set_properties_t *model_with_set_properties); + +#endif /* _model_with_set_properties_H_ */ + diff --git a/samples/client/petstore/c-useJsonUnformatted/unit-test/test_model_with_set_propertes.c b/samples/client/petstore/c-useJsonUnformatted/unit-test/test_model_with_set_propertes.c deleted file mode 100644 index bdd4634049c5..000000000000 --- a/samples/client/petstore/c-useJsonUnformatted/unit-test/test_model_with_set_propertes.c +++ /dev/null @@ -1,60 +0,0 @@ -#ifndef model_with_set_propertes_TEST -#define model_with_set_propertes_TEST - -// the following is to include only the main from the first c file -#ifndef TEST_MAIN -#define TEST_MAIN -#define model_with_set_propertes_MAIN -#endif // TEST_MAIN - -#include -#include -#include -#include -#include "../external/cJSON.h" - -#include "../model/model_with_set_propertes.h" -model_with_set_propertes_t* instantiate_model_with_set_propertes(int include_optional); - - - -model_with_set_propertes_t* instantiate_model_with_set_propertes(int include_optional) { - model_with_set_propertes_t* model_with_set_propertes = NULL; - if (include_optional) { - model_with_set_propertes = model_with_set_propertes_create( - list_createList(), - list_createList() - ); - } else { - model_with_set_propertes = model_with_set_propertes_create( - list_createList(), - list_createList() - ); - } - - return model_with_set_propertes; -} - - -#ifdef model_with_set_propertes_MAIN - -void test_model_with_set_propertes(int include_optional) { - model_with_set_propertes_t* model_with_set_propertes_1 = instantiate_model_with_set_propertes(include_optional); - - cJSON* jsonmodel_with_set_propertes_1 = model_with_set_propertes_convertToJSON(model_with_set_propertes_1); - printf("model_with_set_propertes :\n%s\n", cJSON_PrintUnformatted(jsonmodel_with_set_propertes_1)); - model_with_set_propertes_t* model_with_set_propertes_2 = model_with_set_propertes_parseFromJSON(jsonmodel_with_set_propertes_1); - cJSON* jsonmodel_with_set_propertes_2 = model_with_set_propertes_convertToJSON(model_with_set_propertes_2); - printf("repeating model_with_set_propertes:\n%s\n", cJSON_PrintUnformatted(jsonmodel_with_set_propertes_2)); -} - -int main() { - test_model_with_set_propertes(1); - test_model_with_set_propertes(0); - - printf("Hello world \n"); - return 0; -} - -#endif // model_with_set_propertes_MAIN -#endif // model_with_set_propertes_TEST diff --git a/samples/client/petstore/c-useJsonUnformatted/unit-test/test_model_with_set_properties.c b/samples/client/petstore/c-useJsonUnformatted/unit-test/test_model_with_set_properties.c new file mode 100644 index 000000000000..f9f935a9814f --- /dev/null +++ b/samples/client/petstore/c-useJsonUnformatted/unit-test/test_model_with_set_properties.c @@ -0,0 +1,60 @@ +#ifndef model_with_set_properties_TEST +#define model_with_set_properties_TEST + +// the following is to include only the main from the first c file +#ifndef TEST_MAIN +#define TEST_MAIN +#define model_with_set_properties_MAIN +#endif // TEST_MAIN + +#include +#include +#include +#include +#include "../external/cJSON.h" + +#include "../model/model_with_set_properties.h" +model_with_set_properties_t* instantiate_model_with_set_properties(int include_optional); + + + +model_with_set_properties_t* instantiate_model_with_set_properties(int include_optional) { + model_with_set_properties_t* model_with_set_properties = NULL; + if (include_optional) { + model_with_set_properties = model_with_set_properties_create( + list_createList(), + list_createList() + ); + } else { + model_with_set_properties = model_with_set_properties_create( + list_createList(), + list_createList() + ); + } + + return model_with_set_properties; +} + + +#ifdef model_with_set_properties_MAIN + +void test_model_with_set_properties(int include_optional) { + model_with_set_properties_t* model_with_set_properties_1 = instantiate_model_with_set_properties(include_optional); + + cJSON* jsonmodel_with_set_properties_1 = model_with_set_properties_convertToJSON(model_with_set_properties_1); + printf("model_with_set_properties :\n%s\n", cJSON_PrintUnformatted(jsonmodel_with_set_properties_1)); + model_with_set_properties_t* model_with_set_properties_2 = model_with_set_properties_parseFromJSON(jsonmodel_with_set_properties_1); + cJSON* jsonmodel_with_set_properties_2 = model_with_set_properties_convertToJSON(model_with_set_properties_2); + printf("repeating model_with_set_properties:\n%s\n", cJSON_PrintUnformatted(jsonmodel_with_set_properties_2)); +} + +int main() { + test_model_with_set_properties(1); + test_model_with_set_properties(0); + + printf("Hello world \n"); + return 0; +} + +#endif // model_with_set_properties_MAIN +#endif // model_with_set_properties_TEST diff --git a/samples/client/petstore/c/.openapi-generator/FILES b/samples/client/petstore/c/.openapi-generator/FILES index 48d9373c724d..6ef38a40c9ba 100644 --- a/samples/client/petstore/c/.openapi-generator/FILES +++ b/samples/client/petstore/c/.openapi-generator/FILES @@ -14,7 +14,7 @@ docs/UserAPI.md docs/api_response.md docs/bit.md docs/category.md -docs/model_with_set_propertes.md +docs/model_with_set_properties.md docs/order.md docs/pet.md docs/preference.md @@ -37,8 +37,8 @@ model/category.c model/category.h model/mapped_model.c model/mapped_model.h -model/model_with_set_propertes.c -model/model_with_set_propertes.h +model/model_with_set_properties.c +model/model_with_set_properties.h model/object.c model/object.h model/order.c diff --git a/samples/client/petstore/c/README.md b/samples/client/petstore/c/README.md index a7cf2d3100af..d02ed8f76fa2 100644 --- a/samples/client/petstore/c/README.md +++ b/samples/client/petstore/c/README.md @@ -102,7 +102,7 @@ Category | Method | HTTP request | Description - [api_response_t](docs/api_response.md) - [bit_t](docs/bit.md) - [category_t](docs/category.md) - - [model_with_set_propertes_t](docs/model_with_set_propertes.md) + - [model_with_set_properties_t](docs/model_with_set_properties.md) - [order_t](docs/order.md) - [pet_t](docs/pet.md) - [preference_t](docs/preference.md) diff --git a/samples/client/petstore/c/docs/model_with_set_propertes.md b/samples/client/petstore/c/docs/model_with_set_properties.md similarity index 92% rename from samples/client/petstore/c/docs/model_with_set_propertes.md rename to samples/client/petstore/c/docs/model_with_set_properties.md index 2b8389e87f86..242fc62856a5 100644 --- a/samples/client/petstore/c/docs/model_with_set_propertes.md +++ b/samples/client/petstore/c/docs/model_with_set_properties.md @@ -1,4 +1,4 @@ -# model_with_set_propertes_t +# model_with_set_properties_t ## Properties Name | Type | Description | Notes diff --git a/samples/client/petstore/c/model/model_with_set_propertes.h b/samples/client/petstore/c/model/model_with_set_propertes.h deleted file mode 100644 index 537271638b99..000000000000 --- a/samples/client/petstore/c/model/model_with_set_propertes.h +++ /dev/null @@ -1,40 +0,0 @@ -/* - * model_with_set_propertes.h - * - * to test set properties - */ - -#ifndef _model_with_set_propertes_H_ -#define _model_with_set_propertes_H_ - -#include -#include "../external/cJSON.h" -#include "../include/list.h" -#include "../include/keyValuePair.h" -#include "../include/binary.h" - -typedef struct model_with_set_propertes_t model_with_set_propertes_t; - -#include "tag.h" - - - -typedef struct model_with_set_propertes_t { - list_t *tag_set; //nonprimitive container - list_t *string_set; //primitive container - -} model_with_set_propertes_t; - -model_with_set_propertes_t *model_with_set_propertes_create( - list_t *tag_set, - list_t *string_set -); - -void model_with_set_propertes_free(model_with_set_propertes_t *model_with_set_propertes); - -model_with_set_propertes_t *model_with_set_propertes_parseFromJSON(cJSON *model_with_set_propertesJSON); - -cJSON *model_with_set_propertes_convertToJSON(model_with_set_propertes_t *model_with_set_propertes); - -#endif /* _model_with_set_propertes_H_ */ - diff --git a/samples/client/petstore/c-useJsonUnformatted/model/model_with_set_propertes.c b/samples/client/petstore/c/model/model_with_set_properties.c similarity index 58% rename from samples/client/petstore/c-useJsonUnformatted/model/model_with_set_propertes.c rename to samples/client/petstore/c/model/model_with_set_properties.c index d29660fccfcd..1df6814d9f3c 100644 --- a/samples/client/petstore/c-useJsonUnformatted/model/model_with_set_propertes.c +++ b/samples/client/petstore/c/model/model_with_set_properties.c @@ -1,60 +1,60 @@ #include #include #include -#include "model_with_set_propertes.h" +#include "model_with_set_properties.h" -model_with_set_propertes_t *model_with_set_propertes_create( +model_with_set_properties_t *model_with_set_properties_create( list_t *tag_set, list_t *string_set ) { - model_with_set_propertes_t *model_with_set_propertes_local_var = malloc(sizeof(model_with_set_propertes_t)); - if (!model_with_set_propertes_local_var) { + model_with_set_properties_t *model_with_set_properties_local_var = malloc(sizeof(model_with_set_properties_t)); + if (!model_with_set_properties_local_var) { return NULL; } - model_with_set_propertes_local_var->tag_set = tag_set; - model_with_set_propertes_local_var->string_set = string_set; + model_with_set_properties_local_var->tag_set = tag_set; + model_with_set_properties_local_var->string_set = string_set; - return model_with_set_propertes_local_var; + return model_with_set_properties_local_var; } -void model_with_set_propertes_free(model_with_set_propertes_t *model_with_set_propertes) { - if(NULL == model_with_set_propertes){ +void model_with_set_properties_free(model_with_set_properties_t *model_with_set_properties) { + if(NULL == model_with_set_properties){ return ; } listEntry_t *listEntry; - if (model_with_set_propertes->tag_set) { - list_ForEach(listEntry, model_with_set_propertes->tag_set) { + if (model_with_set_properties->tag_set) { + list_ForEach(listEntry, model_with_set_properties->tag_set) { tag_free(listEntry->data); } - list_freeList(model_with_set_propertes->tag_set); - model_with_set_propertes->tag_set = NULL; + list_freeList(model_with_set_properties->tag_set); + model_with_set_properties->tag_set = NULL; } - if (model_with_set_propertes->string_set) { - list_ForEach(listEntry, model_with_set_propertes->string_set) { + if (model_with_set_properties->string_set) { + list_ForEach(listEntry, model_with_set_properties->string_set) { free(listEntry->data); } - list_freeList(model_with_set_propertes->string_set); - model_with_set_propertes->string_set = NULL; + list_freeList(model_with_set_properties->string_set); + model_with_set_properties->string_set = NULL; } - free(model_with_set_propertes); + free(model_with_set_properties); } -cJSON *model_with_set_propertes_convertToJSON(model_with_set_propertes_t *model_with_set_propertes) { +cJSON *model_with_set_properties_convertToJSON(model_with_set_properties_t *model_with_set_properties) { cJSON *item = cJSON_CreateObject(); - // model_with_set_propertes->tag_set - if(model_with_set_propertes->tag_set) { + // model_with_set_properties->tag_set + if(model_with_set_properties->tag_set) { cJSON *tag_set = cJSON_AddArrayToObject(item, "tag_set"); if(tag_set == NULL) { goto fail; //nonprimitive container } listEntry_t *tag_setListEntry; - if (model_with_set_propertes->tag_set) { - list_ForEach(tag_setListEntry, model_with_set_propertes->tag_set) { + if (model_with_set_properties->tag_set) { + list_ForEach(tag_setListEntry, model_with_set_properties->tag_set) { cJSON *itemLocal = tag_convertToJSON(tag_setListEntry->data); if(itemLocal == NULL) { goto fail; @@ -65,15 +65,15 @@ cJSON *model_with_set_propertes_convertToJSON(model_with_set_propertes_t *model_ } - // model_with_set_propertes->string_set - if(model_with_set_propertes->string_set) { + // model_with_set_properties->string_set + if(model_with_set_properties->string_set) { cJSON *string_set = cJSON_AddArrayToObject(item, "string_set"); if(string_set == NULL) { goto fail; //primitive container } listEntry_t *string_setListEntry; - list_ForEach(string_setListEntry, model_with_set_propertes->string_set) { + list_ForEach(string_setListEntry, model_with_set_properties->string_set) { if(cJSON_AddStringToObject(string_set, "", (char*)string_setListEntry->data) == NULL) { goto fail; @@ -89,18 +89,18 @@ cJSON *model_with_set_propertes_convertToJSON(model_with_set_propertes_t *model_ return NULL; } -model_with_set_propertes_t *model_with_set_propertes_parseFromJSON(cJSON *model_with_set_propertesJSON){ +model_with_set_properties_t *model_with_set_properties_parseFromJSON(cJSON *model_with_set_propertiesJSON){ - model_with_set_propertes_t *model_with_set_propertes_local_var = NULL; + model_with_set_properties_t *model_with_set_properties_local_var = NULL; - // define the local list for model_with_set_propertes->tag_set + // define the local list for model_with_set_properties->tag_set list_t *tag_setList = NULL; - // define the local list for model_with_set_propertes->string_set + // define the local list for model_with_set_properties->string_set list_t *string_setList = NULL; - // model_with_set_propertes->tag_set - cJSON *tag_set = cJSON_GetObjectItemCaseSensitive(model_with_set_propertesJSON, "tag_set"); + // model_with_set_properties->tag_set + cJSON *tag_set = cJSON_GetObjectItemCaseSensitive(model_with_set_propertiesJSON, "tag_set"); if (cJSON_IsNull(tag_set)) { tag_set = NULL; } @@ -123,8 +123,8 @@ model_with_set_propertes_t *model_with_set_propertes_parseFromJSON(cJSON *model_ } } - // model_with_set_propertes->string_set - cJSON *string_set = cJSON_GetObjectItemCaseSensitive(model_with_set_propertesJSON, "string_set"); + // model_with_set_properties->string_set + cJSON *string_set = cJSON_GetObjectItemCaseSensitive(model_with_set_propertiesJSON, "string_set"); if (cJSON_IsNull(string_set)) { string_set = NULL; } @@ -146,12 +146,12 @@ model_with_set_propertes_t *model_with_set_propertes_parseFromJSON(cJSON *model_ } - model_with_set_propertes_local_var = model_with_set_propertes_create ( + model_with_set_properties_local_var = model_with_set_properties_create ( tag_set ? tag_setList : NULL, string_set ? string_setList : NULL ); - return model_with_set_propertes_local_var; + return model_with_set_properties_local_var; end: if (tag_setList) { listEntry_t *listEntry = NULL; diff --git a/samples/client/petstore/c/model/model_with_set_properties.h b/samples/client/petstore/c/model/model_with_set_properties.h new file mode 100644 index 000000000000..020e6638d45d --- /dev/null +++ b/samples/client/petstore/c/model/model_with_set_properties.h @@ -0,0 +1,40 @@ +/* + * model_with_set_properties.h + * + * to test set properties + */ + +#ifndef _model_with_set_properties_H_ +#define _model_with_set_properties_H_ + +#include +#include "../external/cJSON.h" +#include "../include/list.h" +#include "../include/keyValuePair.h" +#include "../include/binary.h" + +typedef struct model_with_set_properties_t model_with_set_properties_t; + +#include "tag.h" + + + +typedef struct model_with_set_properties_t { + list_t *tag_set; //nonprimitive container + list_t *string_set; //primitive container + +} model_with_set_properties_t; + +model_with_set_properties_t *model_with_set_properties_create( + list_t *tag_set, + list_t *string_set +); + +void model_with_set_properties_free(model_with_set_properties_t *model_with_set_properties); + +model_with_set_properties_t *model_with_set_properties_parseFromJSON(cJSON *model_with_set_propertiesJSON); + +cJSON *model_with_set_properties_convertToJSON(model_with_set_properties_t *model_with_set_properties); + +#endif /* _model_with_set_properties_H_ */ + diff --git a/samples/client/petstore/c/unit-test/test_model_with_set_propertes.c b/samples/client/petstore/c/unit-test/test_model_with_set_propertes.c deleted file mode 100644 index 3c62088bc736..000000000000 --- a/samples/client/petstore/c/unit-test/test_model_with_set_propertes.c +++ /dev/null @@ -1,60 +0,0 @@ -#ifndef model_with_set_propertes_TEST -#define model_with_set_propertes_TEST - -// the following is to include only the main from the first c file -#ifndef TEST_MAIN -#define TEST_MAIN -#define model_with_set_propertes_MAIN -#endif // TEST_MAIN - -#include -#include -#include -#include -#include "../external/cJSON.h" - -#include "../model/model_with_set_propertes.h" -model_with_set_propertes_t* instantiate_model_with_set_propertes(int include_optional); - - - -model_with_set_propertes_t* instantiate_model_with_set_propertes(int include_optional) { - model_with_set_propertes_t* model_with_set_propertes = NULL; - if (include_optional) { - model_with_set_propertes = model_with_set_propertes_create( - list_createList(), - list_createList() - ); - } else { - model_with_set_propertes = model_with_set_propertes_create( - list_createList(), - list_createList() - ); - } - - return model_with_set_propertes; -} - - -#ifdef model_with_set_propertes_MAIN - -void test_model_with_set_propertes(int include_optional) { - model_with_set_propertes_t* model_with_set_propertes_1 = instantiate_model_with_set_propertes(include_optional); - - cJSON* jsonmodel_with_set_propertes_1 = model_with_set_propertes_convertToJSON(model_with_set_propertes_1); - printf("model_with_set_propertes :\n%s\n", cJSON_Print(jsonmodel_with_set_propertes_1)); - model_with_set_propertes_t* model_with_set_propertes_2 = model_with_set_propertes_parseFromJSON(jsonmodel_with_set_propertes_1); - cJSON* jsonmodel_with_set_propertes_2 = model_with_set_propertes_convertToJSON(model_with_set_propertes_2); - printf("repeating model_with_set_propertes:\n%s\n", cJSON_Print(jsonmodel_with_set_propertes_2)); -} - -int main() { - test_model_with_set_propertes(1); - test_model_with_set_propertes(0); - - printf("Hello world \n"); - return 0; -} - -#endif // model_with_set_propertes_MAIN -#endif // model_with_set_propertes_TEST diff --git a/samples/client/petstore/c/unit-test/test_model_with_set_properties.c b/samples/client/petstore/c/unit-test/test_model_with_set_properties.c new file mode 100644 index 000000000000..62913d3d9156 --- /dev/null +++ b/samples/client/petstore/c/unit-test/test_model_with_set_properties.c @@ -0,0 +1,60 @@ +#ifndef model_with_set_properties_TEST +#define model_with_set_properties_TEST + +// the following is to include only the main from the first c file +#ifndef TEST_MAIN +#define TEST_MAIN +#define model_with_set_properties_MAIN +#endif // TEST_MAIN + +#include +#include +#include +#include +#include "../external/cJSON.h" + +#include "../model/model_with_set_properties.h" +model_with_set_properties_t* instantiate_model_with_set_properties(int include_optional); + + + +model_with_set_properties_t* instantiate_model_with_set_properties(int include_optional) { + model_with_set_properties_t* model_with_set_properties = NULL; + if (include_optional) { + model_with_set_properties = model_with_set_properties_create( + list_createList(), + list_createList() + ); + } else { + model_with_set_properties = model_with_set_properties_create( + list_createList(), + list_createList() + ); + } + + return model_with_set_properties; +} + + +#ifdef model_with_set_properties_MAIN + +void test_model_with_set_properties(int include_optional) { + model_with_set_properties_t* model_with_set_properties_1 = instantiate_model_with_set_properties(include_optional); + + cJSON* jsonmodel_with_set_properties_1 = model_with_set_properties_convertToJSON(model_with_set_properties_1); + printf("model_with_set_properties :\n%s\n", cJSON_Print(jsonmodel_with_set_properties_1)); + model_with_set_properties_t* model_with_set_properties_2 = model_with_set_properties_parseFromJSON(jsonmodel_with_set_properties_1); + cJSON* jsonmodel_with_set_properties_2 = model_with_set_properties_convertToJSON(model_with_set_properties_2); + printf("repeating model_with_set_properties:\n%s\n", cJSON_Print(jsonmodel_with_set_properties_2)); +} + +int main() { + test_model_with_set_properties(1); + test_model_with_set_properties(0); + + printf("Hello world \n"); + return 0; +} + +#endif // model_with_set_properties_MAIN +#endif // model_with_set_properties_TEST diff --git a/samples/client/petstore/csharp/generichost/net4.7/UseDateTimeForDate/api/openapi.yaml b/samples/client/petstore/csharp/generichost/net4.7/UseDateTimeForDate/api/openapi.yaml index a84e041a00fa..beed4f8259b4 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/UseDateTimeForDate/api/openapi.yaml +++ b/samples/client/petstore/csharp/generichost/net4.7/UseDateTimeForDate/api/openapi.yaml @@ -1,6 +1,6 @@ openapi: 3.0.0 info: - description: Thic spec contains endpoints with dates in different formats + description: This spec contains endpoints with dates in different formats license: name: Apache-2.0 url: https://www.apache.org/licenses/LICENSE-2.0.html diff --git a/samples/client/petstore/csharp/generichost/net4.7/UseDateTimeForDate/src/Org.OpenAPITools.Test/Api/ApiTestsBase.cs b/samples/client/petstore/csharp/generichost/net4.7/UseDateTimeForDate/src/Org.OpenAPITools.Test/Api/ApiTestsBase.cs index 40e1298ee62c..75f95dc9d485 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/UseDateTimeForDate/src/Org.OpenAPITools.Test/Api/ApiTestsBase.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/UseDateTimeForDate/src/Org.OpenAPITools.Test/Api/ApiTestsBase.cs @@ -1,7 +1,7 @@ /* * OpenAPI Dates * - * Thic spec contains endpoints with dates in different formats + * This spec contains endpoints with dates in different formats * * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git diff --git a/samples/client/petstore/csharp/generichost/net4.7/UseDateTimeForDate/src/Org.OpenAPITools.Test/Api/DefaultApiTests.cs b/samples/client/petstore/csharp/generichost/net4.7/UseDateTimeForDate/src/Org.OpenAPITools.Test/Api/DefaultApiTests.cs index 05dc933c03b1..01400ec5d0b2 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/UseDateTimeForDate/src/Org.OpenAPITools.Test/Api/DefaultApiTests.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/UseDateTimeForDate/src/Org.OpenAPITools.Test/Api/DefaultApiTests.cs @@ -1,7 +1,7 @@ /* * OpenAPI Dates * - * Thic spec contains endpoints with dates in different formats + * This spec contains endpoints with dates in different formats * * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git diff --git a/samples/client/petstore/csharp/generichost/net4.7/UseDateTimeForDate/src/Org.OpenAPITools.Test/Api/DependencyInjectionTests.cs b/samples/client/petstore/csharp/generichost/net4.7/UseDateTimeForDate/src/Org.OpenAPITools.Test/Api/DependencyInjectionTests.cs index 3b09a6314ed2..d80efe074c35 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/UseDateTimeForDate/src/Org.OpenAPITools.Test/Api/DependencyInjectionTests.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/UseDateTimeForDate/src/Org.OpenAPITools.Test/Api/DependencyInjectionTests.cs @@ -1,7 +1,7 @@ /* * OpenAPI Dates * - * Thic spec contains endpoints with dates in different formats + * This spec contains endpoints with dates in different formats * * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git diff --git a/samples/client/petstore/csharp/generichost/net4.7/UseDateTimeForDate/src/Org.OpenAPITools.Test/Model/NowGet200ResponseTests.cs b/samples/client/petstore/csharp/generichost/net4.7/UseDateTimeForDate/src/Org.OpenAPITools.Test/Model/NowGet200ResponseTests.cs index 920dfd9700ea..826883c9b3a4 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/UseDateTimeForDate/src/Org.OpenAPITools.Test/Model/NowGet200ResponseTests.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/UseDateTimeForDate/src/Org.OpenAPITools.Test/Model/NowGet200ResponseTests.cs @@ -1,7 +1,7 @@ /* * OpenAPI Dates * - * Thic spec contains endpoints with dates in different formats + * This spec contains endpoints with dates in different formats * * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git diff --git a/samples/client/petstore/csharp/generichost/net4.7/UseDateTimeForDate/src/Org.OpenAPITools/Api/DefaultApi.cs b/samples/client/petstore/csharp/generichost/net4.7/UseDateTimeForDate/src/Org.OpenAPITools/Api/DefaultApi.cs index 1662385fe8f8..d0ae0554c230 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/UseDateTimeForDate/src/Org.OpenAPITools/Api/DefaultApi.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/UseDateTimeForDate/src/Org.OpenAPITools/Api/DefaultApi.cs @@ -2,7 +2,7 @@ /* * OpenAPI Dates * - * Thic spec contains endpoints with dates in different formats + * This spec contains endpoints with dates in different formats * * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git diff --git a/samples/client/petstore/csharp/generichost/net4.7/UseDateTimeForDate/src/Org.OpenAPITools/Client/ApiException.cs b/samples/client/petstore/csharp/generichost/net4.7/UseDateTimeForDate/src/Org.OpenAPITools/Client/ApiException.cs index cf39d3c11d75..c69dd7ab75ec 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/UseDateTimeForDate/src/Org.OpenAPITools/Client/ApiException.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/UseDateTimeForDate/src/Org.OpenAPITools/Client/ApiException.cs @@ -2,7 +2,7 @@ /* * OpenAPI Dates * - * Thic spec contains endpoints with dates in different formats + * This spec contains endpoints with dates in different formats * * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git diff --git a/samples/client/petstore/csharp/generichost/net4.7/UseDateTimeForDate/src/Org.OpenAPITools/Client/ApiResponse`1.cs b/samples/client/petstore/csharp/generichost/net4.7/UseDateTimeForDate/src/Org.OpenAPITools/Client/ApiResponse`1.cs index fe5b2fe67aa2..1bb28a11b60a 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/UseDateTimeForDate/src/Org.OpenAPITools/Client/ApiResponse`1.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/UseDateTimeForDate/src/Org.OpenAPITools/Client/ApiResponse`1.cs @@ -2,7 +2,7 @@ /* * OpenAPI Dates * - * Thic spec contains endpoints with dates in different formats + * This spec contains endpoints with dates in different formats * * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git diff --git a/samples/client/petstore/csharp/generichost/net4.7/UseDateTimeForDate/src/Org.OpenAPITools/Client/ClientUtils.cs b/samples/client/petstore/csharp/generichost/net4.7/UseDateTimeForDate/src/Org.OpenAPITools/Client/ClientUtils.cs index a8adff38c919..8b30d2ebaa5a 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/UseDateTimeForDate/src/Org.OpenAPITools/Client/ClientUtils.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/UseDateTimeForDate/src/Org.OpenAPITools/Client/ClientUtils.cs @@ -1,7 +1,7 @@ /* * OpenAPI Dates * - * Thic spec contains endpoints with dates in different formats + * This spec contains endpoints with dates in different formats * * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git diff --git a/samples/client/petstore/csharp/generichost/net4.7/UseDateTimeForDate/src/Org.OpenAPITools/Client/DateTimeJsonConverter.cs b/samples/client/petstore/csharp/generichost/net4.7/UseDateTimeForDate/src/Org.OpenAPITools/Client/DateTimeJsonConverter.cs index 52e971d082a7..1e03c2ea0cb8 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/UseDateTimeForDate/src/Org.OpenAPITools/Client/DateTimeJsonConverter.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/UseDateTimeForDate/src/Org.OpenAPITools/Client/DateTimeJsonConverter.cs @@ -1,7 +1,7 @@ /* * OpenAPI Dates * - * Thic spec contains endpoints with dates in different formats + * This spec contains endpoints with dates in different formats * * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git diff --git a/samples/client/petstore/csharp/generichost/net4.7/UseDateTimeForDate/src/Org.OpenAPITools/Client/DateTimeNullableJsonConverter.cs b/samples/client/petstore/csharp/generichost/net4.7/UseDateTimeForDate/src/Org.OpenAPITools/Client/DateTimeNullableJsonConverter.cs index 968d29161b12..6b8e39a49655 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/UseDateTimeForDate/src/Org.OpenAPITools/Client/DateTimeNullableJsonConverter.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/UseDateTimeForDate/src/Org.OpenAPITools/Client/DateTimeNullableJsonConverter.cs @@ -1,7 +1,7 @@ /* * OpenAPI Dates * - * Thic spec contains endpoints with dates in different formats + * This spec contains endpoints with dates in different formats * * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git diff --git a/samples/client/petstore/csharp/generichost/net4.7/UseDateTimeForDate/src/Org.OpenAPITools/Client/HostConfiguration.cs b/samples/client/petstore/csharp/generichost/net4.7/UseDateTimeForDate/src/Org.OpenAPITools/Client/HostConfiguration.cs index 2eaac444e5ca..74f9b96bf635 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/UseDateTimeForDate/src/Org.OpenAPITools/Client/HostConfiguration.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/UseDateTimeForDate/src/Org.OpenAPITools/Client/HostConfiguration.cs @@ -1,7 +1,7 @@ /* * OpenAPI Dates * - * Thic spec contains endpoints with dates in different formats + * This spec contains endpoints with dates in different formats * * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git diff --git a/samples/client/petstore/csharp/generichost/net4.7/UseDateTimeForDate/src/Org.OpenAPITools/Client/Option.cs b/samples/client/petstore/csharp/generichost/net4.7/UseDateTimeForDate/src/Org.OpenAPITools/Client/Option.cs index 2b34371084b5..fcfc4ade971b 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/UseDateTimeForDate/src/Org.OpenAPITools/Client/Option.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/UseDateTimeForDate/src/Org.OpenAPITools/Client/Option.cs @@ -2,7 +2,7 @@ /* * OpenAPI Dates * - * Thic spec contains endpoints with dates in different formats + * This spec contains endpoints with dates in different formats * * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git diff --git a/samples/client/petstore/csharp/generichost/net4.7/UseDateTimeForDate/src/Org.OpenAPITools/Client/RateLimitProvider`1.cs b/samples/client/petstore/csharp/generichost/net4.7/UseDateTimeForDate/src/Org.OpenAPITools/Client/RateLimitProvider`1.cs index cddb84058868..35622ff84526 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/UseDateTimeForDate/src/Org.OpenAPITools/Client/RateLimitProvider`1.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/UseDateTimeForDate/src/Org.OpenAPITools/Client/RateLimitProvider`1.cs @@ -2,7 +2,7 @@ /* * OpenAPI Dates * - * Thic spec contains endpoints with dates in different formats + * This spec contains endpoints with dates in different formats * * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git diff --git a/samples/client/petstore/csharp/generichost/net4.7/UseDateTimeForDate/src/Org.OpenAPITools/Client/TokenProvider`1.cs b/samples/client/petstore/csharp/generichost/net4.7/UseDateTimeForDate/src/Org.OpenAPITools/Client/TokenProvider`1.cs index 069d52308681..c42862e8d23d 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/UseDateTimeForDate/src/Org.OpenAPITools/Client/TokenProvider`1.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/UseDateTimeForDate/src/Org.OpenAPITools/Client/TokenProvider`1.cs @@ -2,7 +2,7 @@ /* * OpenAPI Dates * - * Thic spec contains endpoints with dates in different formats + * This spec contains endpoints with dates in different formats * * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git diff --git a/samples/client/petstore/csharp/generichost/net4.7/UseDateTimeForDate/src/Org.OpenAPITools/Extensions/IHostBuilderExtensions.cs b/samples/client/petstore/csharp/generichost/net4.7/UseDateTimeForDate/src/Org.OpenAPITools/Extensions/IHostBuilderExtensions.cs index 480524ee9c1f..c5587a02669a 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/UseDateTimeForDate/src/Org.OpenAPITools/Extensions/IHostBuilderExtensions.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/UseDateTimeForDate/src/Org.OpenAPITools/Extensions/IHostBuilderExtensions.cs @@ -1,7 +1,7 @@ /* * OpenAPI Dates * - * Thic spec contains endpoints with dates in different formats + * This spec contains endpoints with dates in different formats * * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git diff --git a/samples/client/petstore/csharp/generichost/net4.7/UseDateTimeForDate/src/Org.OpenAPITools/Extensions/IHttpClientBuilderExtensions.cs b/samples/client/petstore/csharp/generichost/net4.7/UseDateTimeForDate/src/Org.OpenAPITools/Extensions/IHttpClientBuilderExtensions.cs index 2e45faf4463f..fc474ba81668 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/UseDateTimeForDate/src/Org.OpenAPITools/Extensions/IHttpClientBuilderExtensions.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/UseDateTimeForDate/src/Org.OpenAPITools/Extensions/IHttpClientBuilderExtensions.cs @@ -1,7 +1,7 @@ /* * OpenAPI Dates * - * Thic spec contains endpoints with dates in different formats + * This spec contains endpoints with dates in different formats * * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git diff --git a/samples/client/petstore/csharp/generichost/net4.7/UseDateTimeForDate/src/Org.OpenAPITools/Extensions/IServiceCollectionExtensions.cs b/samples/client/petstore/csharp/generichost/net4.7/UseDateTimeForDate/src/Org.OpenAPITools/Extensions/IServiceCollectionExtensions.cs index d469c015da98..c1c08d7dd7e2 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/UseDateTimeForDate/src/Org.OpenAPITools/Extensions/IServiceCollectionExtensions.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/UseDateTimeForDate/src/Org.OpenAPITools/Extensions/IServiceCollectionExtensions.cs @@ -1,7 +1,7 @@ /* * OpenAPI Dates * - * Thic spec contains endpoints with dates in different formats + * This spec contains endpoints with dates in different formats * * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git diff --git a/samples/client/petstore/csharp/generichost/net4.7/UseDateTimeForDate/src/Org.OpenAPITools/Model/NowGet200Response.cs b/samples/client/petstore/csharp/generichost/net4.7/UseDateTimeForDate/src/Org.OpenAPITools/Model/NowGet200Response.cs index 504c2976b3f4..1f50d394bb4c 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/UseDateTimeForDate/src/Org.OpenAPITools/Model/NowGet200Response.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/UseDateTimeForDate/src/Org.OpenAPITools/Model/NowGet200Response.cs @@ -2,7 +2,7 @@ /* * OpenAPI Dates * - * Thic spec contains endpoints with dates in different formats + * This spec contains endpoints with dates in different formats * * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git diff --git a/samples/client/petstore/csharp/generichost/net4.7/UseDateTimeForDate/src/Org.OpenAPITools/README.md b/samples/client/petstore/csharp/generichost/net4.7/UseDateTimeForDate/src/Org.OpenAPITools/README.md index ccb5c79da505..4e69e98a98de 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/UseDateTimeForDate/src/Org.OpenAPITools/README.md +++ b/samples/client/petstore/csharp/generichost/net4.7/UseDateTimeForDate/src/Org.OpenAPITools/README.md @@ -121,7 +121,7 @@ Endpoints do not require authorization. ## Api Information - appName: OpenAPI Dates - appVersion: 1.0.0 -- appDescription: Thic spec contains endpoints with dates in different formats +- appDescription: This spec contains endpoints with dates in different formats ## [OpenApi Global properties](https://openapi-generator.tech/docs/globals) - generateAliasAsModel: diff --git a/samples/client/petstore/csharp/generichost/net4.8/UseDateTimeForDate/api/openapi.yaml b/samples/client/petstore/csharp/generichost/net4.8/UseDateTimeForDate/api/openapi.yaml index a84e041a00fa..beed4f8259b4 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/UseDateTimeForDate/api/openapi.yaml +++ b/samples/client/petstore/csharp/generichost/net4.8/UseDateTimeForDate/api/openapi.yaml @@ -1,6 +1,6 @@ openapi: 3.0.0 info: - description: Thic spec contains endpoints with dates in different formats + description: This spec contains endpoints with dates in different formats license: name: Apache-2.0 url: https://www.apache.org/licenses/LICENSE-2.0.html diff --git a/samples/client/petstore/csharp/generichost/net4.8/UseDateTimeForDate/src/Org.OpenAPITools.Test/Api/ApiTestsBase.cs b/samples/client/petstore/csharp/generichost/net4.8/UseDateTimeForDate/src/Org.OpenAPITools.Test/Api/ApiTestsBase.cs index 40e1298ee62c..75f95dc9d485 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/UseDateTimeForDate/src/Org.OpenAPITools.Test/Api/ApiTestsBase.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/UseDateTimeForDate/src/Org.OpenAPITools.Test/Api/ApiTestsBase.cs @@ -1,7 +1,7 @@ /* * OpenAPI Dates * - * Thic spec contains endpoints with dates in different formats + * This spec contains endpoints with dates in different formats * * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git diff --git a/samples/client/petstore/csharp/generichost/net4.8/UseDateTimeForDate/src/Org.OpenAPITools.Test/Api/DefaultApiTests.cs b/samples/client/petstore/csharp/generichost/net4.8/UseDateTimeForDate/src/Org.OpenAPITools.Test/Api/DefaultApiTests.cs index 05dc933c03b1..01400ec5d0b2 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/UseDateTimeForDate/src/Org.OpenAPITools.Test/Api/DefaultApiTests.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/UseDateTimeForDate/src/Org.OpenAPITools.Test/Api/DefaultApiTests.cs @@ -1,7 +1,7 @@ /* * OpenAPI Dates * - * Thic spec contains endpoints with dates in different formats + * This spec contains endpoints with dates in different formats * * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git diff --git a/samples/client/petstore/csharp/generichost/net4.8/UseDateTimeForDate/src/Org.OpenAPITools.Test/Api/DependencyInjectionTests.cs b/samples/client/petstore/csharp/generichost/net4.8/UseDateTimeForDate/src/Org.OpenAPITools.Test/Api/DependencyInjectionTests.cs index 3b09a6314ed2..d80efe074c35 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/UseDateTimeForDate/src/Org.OpenAPITools.Test/Api/DependencyInjectionTests.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/UseDateTimeForDate/src/Org.OpenAPITools.Test/Api/DependencyInjectionTests.cs @@ -1,7 +1,7 @@ /* * OpenAPI Dates * - * Thic spec contains endpoints with dates in different formats + * This spec contains endpoints with dates in different formats * * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git diff --git a/samples/client/petstore/csharp/generichost/net4.8/UseDateTimeForDate/src/Org.OpenAPITools.Test/Model/NowGet200ResponseTests.cs b/samples/client/petstore/csharp/generichost/net4.8/UseDateTimeForDate/src/Org.OpenAPITools.Test/Model/NowGet200ResponseTests.cs index 920dfd9700ea..826883c9b3a4 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/UseDateTimeForDate/src/Org.OpenAPITools.Test/Model/NowGet200ResponseTests.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/UseDateTimeForDate/src/Org.OpenAPITools.Test/Model/NowGet200ResponseTests.cs @@ -1,7 +1,7 @@ /* * OpenAPI Dates * - * Thic spec contains endpoints with dates in different formats + * This spec contains endpoints with dates in different formats * * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git diff --git a/samples/client/petstore/csharp/generichost/net4.8/UseDateTimeForDate/src/Org.OpenAPITools/Api/DefaultApi.cs b/samples/client/petstore/csharp/generichost/net4.8/UseDateTimeForDate/src/Org.OpenAPITools/Api/DefaultApi.cs index 1662385fe8f8..d0ae0554c230 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/UseDateTimeForDate/src/Org.OpenAPITools/Api/DefaultApi.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/UseDateTimeForDate/src/Org.OpenAPITools/Api/DefaultApi.cs @@ -2,7 +2,7 @@ /* * OpenAPI Dates * - * Thic spec contains endpoints with dates in different formats + * This spec contains endpoints with dates in different formats * * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git diff --git a/samples/client/petstore/csharp/generichost/net4.8/UseDateTimeForDate/src/Org.OpenAPITools/Client/ApiException.cs b/samples/client/petstore/csharp/generichost/net4.8/UseDateTimeForDate/src/Org.OpenAPITools/Client/ApiException.cs index cf39d3c11d75..c69dd7ab75ec 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/UseDateTimeForDate/src/Org.OpenAPITools/Client/ApiException.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/UseDateTimeForDate/src/Org.OpenAPITools/Client/ApiException.cs @@ -2,7 +2,7 @@ /* * OpenAPI Dates * - * Thic spec contains endpoints with dates in different formats + * This spec contains endpoints with dates in different formats * * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git diff --git a/samples/client/petstore/csharp/generichost/net4.8/UseDateTimeForDate/src/Org.OpenAPITools/Client/ApiResponse`1.cs b/samples/client/petstore/csharp/generichost/net4.8/UseDateTimeForDate/src/Org.OpenAPITools/Client/ApiResponse`1.cs index fe5b2fe67aa2..1bb28a11b60a 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/UseDateTimeForDate/src/Org.OpenAPITools/Client/ApiResponse`1.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/UseDateTimeForDate/src/Org.OpenAPITools/Client/ApiResponse`1.cs @@ -2,7 +2,7 @@ /* * OpenAPI Dates * - * Thic spec contains endpoints with dates in different formats + * This spec contains endpoints with dates in different formats * * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git diff --git a/samples/client/petstore/csharp/generichost/net4.8/UseDateTimeForDate/src/Org.OpenAPITools/Client/ClientUtils.cs b/samples/client/petstore/csharp/generichost/net4.8/UseDateTimeForDate/src/Org.OpenAPITools/Client/ClientUtils.cs index a8adff38c919..8b30d2ebaa5a 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/UseDateTimeForDate/src/Org.OpenAPITools/Client/ClientUtils.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/UseDateTimeForDate/src/Org.OpenAPITools/Client/ClientUtils.cs @@ -1,7 +1,7 @@ /* * OpenAPI Dates * - * Thic spec contains endpoints with dates in different formats + * This spec contains endpoints with dates in different formats * * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git diff --git a/samples/client/petstore/csharp/generichost/net4.8/UseDateTimeForDate/src/Org.OpenAPITools/Client/DateTimeJsonConverter.cs b/samples/client/petstore/csharp/generichost/net4.8/UseDateTimeForDate/src/Org.OpenAPITools/Client/DateTimeJsonConverter.cs index 52e971d082a7..1e03c2ea0cb8 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/UseDateTimeForDate/src/Org.OpenAPITools/Client/DateTimeJsonConverter.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/UseDateTimeForDate/src/Org.OpenAPITools/Client/DateTimeJsonConverter.cs @@ -1,7 +1,7 @@ /* * OpenAPI Dates * - * Thic spec contains endpoints with dates in different formats + * This spec contains endpoints with dates in different formats * * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git diff --git a/samples/client/petstore/csharp/generichost/net4.8/UseDateTimeForDate/src/Org.OpenAPITools/Client/DateTimeNullableJsonConverter.cs b/samples/client/petstore/csharp/generichost/net4.8/UseDateTimeForDate/src/Org.OpenAPITools/Client/DateTimeNullableJsonConverter.cs index 968d29161b12..6b8e39a49655 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/UseDateTimeForDate/src/Org.OpenAPITools/Client/DateTimeNullableJsonConverter.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/UseDateTimeForDate/src/Org.OpenAPITools/Client/DateTimeNullableJsonConverter.cs @@ -1,7 +1,7 @@ /* * OpenAPI Dates * - * Thic spec contains endpoints with dates in different formats + * This spec contains endpoints with dates in different formats * * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git diff --git a/samples/client/petstore/csharp/generichost/net4.8/UseDateTimeForDate/src/Org.OpenAPITools/Client/HostConfiguration.cs b/samples/client/petstore/csharp/generichost/net4.8/UseDateTimeForDate/src/Org.OpenAPITools/Client/HostConfiguration.cs index 2eaac444e5ca..74f9b96bf635 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/UseDateTimeForDate/src/Org.OpenAPITools/Client/HostConfiguration.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/UseDateTimeForDate/src/Org.OpenAPITools/Client/HostConfiguration.cs @@ -1,7 +1,7 @@ /* * OpenAPI Dates * - * Thic spec contains endpoints with dates in different formats + * This spec contains endpoints with dates in different formats * * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git diff --git a/samples/client/petstore/csharp/generichost/net4.8/UseDateTimeForDate/src/Org.OpenAPITools/Client/Option.cs b/samples/client/petstore/csharp/generichost/net4.8/UseDateTimeForDate/src/Org.OpenAPITools/Client/Option.cs index 2b34371084b5..fcfc4ade971b 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/UseDateTimeForDate/src/Org.OpenAPITools/Client/Option.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/UseDateTimeForDate/src/Org.OpenAPITools/Client/Option.cs @@ -2,7 +2,7 @@ /* * OpenAPI Dates * - * Thic spec contains endpoints with dates in different formats + * This spec contains endpoints with dates in different formats * * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git diff --git a/samples/client/petstore/csharp/generichost/net4.8/UseDateTimeForDate/src/Org.OpenAPITools/Client/RateLimitProvider`1.cs b/samples/client/petstore/csharp/generichost/net4.8/UseDateTimeForDate/src/Org.OpenAPITools/Client/RateLimitProvider`1.cs index cddb84058868..35622ff84526 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/UseDateTimeForDate/src/Org.OpenAPITools/Client/RateLimitProvider`1.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/UseDateTimeForDate/src/Org.OpenAPITools/Client/RateLimitProvider`1.cs @@ -2,7 +2,7 @@ /* * OpenAPI Dates * - * Thic spec contains endpoints with dates in different formats + * This spec contains endpoints with dates in different formats * * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git diff --git a/samples/client/petstore/csharp/generichost/net4.8/UseDateTimeForDate/src/Org.OpenAPITools/Client/TokenProvider`1.cs b/samples/client/petstore/csharp/generichost/net4.8/UseDateTimeForDate/src/Org.OpenAPITools/Client/TokenProvider`1.cs index 069d52308681..c42862e8d23d 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/UseDateTimeForDate/src/Org.OpenAPITools/Client/TokenProvider`1.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/UseDateTimeForDate/src/Org.OpenAPITools/Client/TokenProvider`1.cs @@ -2,7 +2,7 @@ /* * OpenAPI Dates * - * Thic spec contains endpoints with dates in different formats + * This spec contains endpoints with dates in different formats * * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git diff --git a/samples/client/petstore/csharp/generichost/net4.8/UseDateTimeForDate/src/Org.OpenAPITools/Extensions/IHostBuilderExtensions.cs b/samples/client/petstore/csharp/generichost/net4.8/UseDateTimeForDate/src/Org.OpenAPITools/Extensions/IHostBuilderExtensions.cs index 480524ee9c1f..c5587a02669a 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/UseDateTimeForDate/src/Org.OpenAPITools/Extensions/IHostBuilderExtensions.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/UseDateTimeForDate/src/Org.OpenAPITools/Extensions/IHostBuilderExtensions.cs @@ -1,7 +1,7 @@ /* * OpenAPI Dates * - * Thic spec contains endpoints with dates in different formats + * This spec contains endpoints with dates in different formats * * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git diff --git a/samples/client/petstore/csharp/generichost/net4.8/UseDateTimeForDate/src/Org.OpenAPITools/Extensions/IHttpClientBuilderExtensions.cs b/samples/client/petstore/csharp/generichost/net4.8/UseDateTimeForDate/src/Org.OpenAPITools/Extensions/IHttpClientBuilderExtensions.cs index 2e45faf4463f..fc474ba81668 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/UseDateTimeForDate/src/Org.OpenAPITools/Extensions/IHttpClientBuilderExtensions.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/UseDateTimeForDate/src/Org.OpenAPITools/Extensions/IHttpClientBuilderExtensions.cs @@ -1,7 +1,7 @@ /* * OpenAPI Dates * - * Thic spec contains endpoints with dates in different formats + * This spec contains endpoints with dates in different formats * * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git diff --git a/samples/client/petstore/csharp/generichost/net4.8/UseDateTimeForDate/src/Org.OpenAPITools/Extensions/IServiceCollectionExtensions.cs b/samples/client/petstore/csharp/generichost/net4.8/UseDateTimeForDate/src/Org.OpenAPITools/Extensions/IServiceCollectionExtensions.cs index d469c015da98..c1c08d7dd7e2 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/UseDateTimeForDate/src/Org.OpenAPITools/Extensions/IServiceCollectionExtensions.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/UseDateTimeForDate/src/Org.OpenAPITools/Extensions/IServiceCollectionExtensions.cs @@ -1,7 +1,7 @@ /* * OpenAPI Dates * - * Thic spec contains endpoints with dates in different formats + * This spec contains endpoints with dates in different formats * * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git diff --git a/samples/client/petstore/csharp/generichost/net4.8/UseDateTimeForDate/src/Org.OpenAPITools/Model/NowGet200Response.cs b/samples/client/petstore/csharp/generichost/net4.8/UseDateTimeForDate/src/Org.OpenAPITools/Model/NowGet200Response.cs index 504c2976b3f4..1f50d394bb4c 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/UseDateTimeForDate/src/Org.OpenAPITools/Model/NowGet200Response.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/UseDateTimeForDate/src/Org.OpenAPITools/Model/NowGet200Response.cs @@ -2,7 +2,7 @@ /* * OpenAPI Dates * - * Thic spec contains endpoints with dates in different formats + * This spec contains endpoints with dates in different formats * * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git diff --git a/samples/client/petstore/csharp/generichost/net4.8/UseDateTimeForDate/src/Org.OpenAPITools/README.md b/samples/client/petstore/csharp/generichost/net4.8/UseDateTimeForDate/src/Org.OpenAPITools/README.md index 084d54648866..e084a741b989 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/UseDateTimeForDate/src/Org.OpenAPITools/README.md +++ b/samples/client/petstore/csharp/generichost/net4.8/UseDateTimeForDate/src/Org.OpenAPITools/README.md @@ -121,7 +121,7 @@ Endpoints do not require authorization. ## Api Information - appName: OpenAPI Dates - appVersion: 1.0.0 -- appDescription: Thic spec contains endpoints with dates in different formats +- appDescription: This spec contains endpoints with dates in different formats ## [OpenApi Global properties](https://openapi-generator.tech/docs/globals) - generateAliasAsModel: diff --git a/samples/client/petstore/csharp/generichost/net8/UseDateTimeForDate/api/openapi.yaml b/samples/client/petstore/csharp/generichost/net8/UseDateTimeForDate/api/openapi.yaml index a84e041a00fa..beed4f8259b4 100644 --- a/samples/client/petstore/csharp/generichost/net8/UseDateTimeForDate/api/openapi.yaml +++ b/samples/client/petstore/csharp/generichost/net8/UseDateTimeForDate/api/openapi.yaml @@ -1,6 +1,6 @@ openapi: 3.0.0 info: - description: Thic spec contains endpoints with dates in different formats + description: This spec contains endpoints with dates in different formats license: name: Apache-2.0 url: https://www.apache.org/licenses/LICENSE-2.0.html diff --git a/samples/client/petstore/csharp/generichost/net8/UseDateTimeForDate/src/Org.OpenAPITools.Test/Api/ApiTestsBase.cs b/samples/client/petstore/csharp/generichost/net8/UseDateTimeForDate/src/Org.OpenAPITools.Test/Api/ApiTestsBase.cs index 40e1298ee62c..75f95dc9d485 100644 --- a/samples/client/petstore/csharp/generichost/net8/UseDateTimeForDate/src/Org.OpenAPITools.Test/Api/ApiTestsBase.cs +++ b/samples/client/petstore/csharp/generichost/net8/UseDateTimeForDate/src/Org.OpenAPITools.Test/Api/ApiTestsBase.cs @@ -1,7 +1,7 @@ /* * OpenAPI Dates * - * Thic spec contains endpoints with dates in different formats + * This spec contains endpoints with dates in different formats * * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git diff --git a/samples/client/petstore/csharp/generichost/net8/UseDateTimeForDate/src/Org.OpenAPITools.Test/Api/DefaultApiTests.cs b/samples/client/petstore/csharp/generichost/net8/UseDateTimeForDate/src/Org.OpenAPITools.Test/Api/DefaultApiTests.cs index 05dc933c03b1..01400ec5d0b2 100644 --- a/samples/client/petstore/csharp/generichost/net8/UseDateTimeForDate/src/Org.OpenAPITools.Test/Api/DefaultApiTests.cs +++ b/samples/client/petstore/csharp/generichost/net8/UseDateTimeForDate/src/Org.OpenAPITools.Test/Api/DefaultApiTests.cs @@ -1,7 +1,7 @@ /* * OpenAPI Dates * - * Thic spec contains endpoints with dates in different formats + * This spec contains endpoints with dates in different formats * * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git diff --git a/samples/client/petstore/csharp/generichost/net8/UseDateTimeForDate/src/Org.OpenAPITools.Test/Api/DependencyInjectionTests.cs b/samples/client/petstore/csharp/generichost/net8/UseDateTimeForDate/src/Org.OpenAPITools.Test/Api/DependencyInjectionTests.cs index c910325e620b..e3b8634d146b 100644 --- a/samples/client/petstore/csharp/generichost/net8/UseDateTimeForDate/src/Org.OpenAPITools.Test/Api/DependencyInjectionTests.cs +++ b/samples/client/petstore/csharp/generichost/net8/UseDateTimeForDate/src/Org.OpenAPITools.Test/Api/DependencyInjectionTests.cs @@ -1,7 +1,7 @@ /* * OpenAPI Dates * - * Thic spec contains endpoints with dates in different formats + * This spec contains endpoints with dates in different formats * * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git diff --git a/samples/client/petstore/csharp/generichost/net8/UseDateTimeForDate/src/Org.OpenAPITools.Test/Model/NowGet200ResponseTests.cs b/samples/client/petstore/csharp/generichost/net8/UseDateTimeForDate/src/Org.OpenAPITools.Test/Model/NowGet200ResponseTests.cs index 920dfd9700ea..826883c9b3a4 100644 --- a/samples/client/petstore/csharp/generichost/net8/UseDateTimeForDate/src/Org.OpenAPITools.Test/Model/NowGet200ResponseTests.cs +++ b/samples/client/petstore/csharp/generichost/net8/UseDateTimeForDate/src/Org.OpenAPITools.Test/Model/NowGet200ResponseTests.cs @@ -1,7 +1,7 @@ /* * OpenAPI Dates * - * Thic spec contains endpoints with dates in different formats + * This spec contains endpoints with dates in different formats * * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git diff --git a/samples/client/petstore/csharp/generichost/net8/UseDateTimeForDate/src/Org.OpenAPITools/Api/DefaultApi.cs b/samples/client/petstore/csharp/generichost/net8/UseDateTimeForDate/src/Org.OpenAPITools/Api/DefaultApi.cs index 7782f09b34bf..6ad12cc8108f 100644 --- a/samples/client/petstore/csharp/generichost/net8/UseDateTimeForDate/src/Org.OpenAPITools/Api/DefaultApi.cs +++ b/samples/client/petstore/csharp/generichost/net8/UseDateTimeForDate/src/Org.OpenAPITools/Api/DefaultApi.cs @@ -2,7 +2,7 @@ /* * OpenAPI Dates * - * Thic spec contains endpoints with dates in different formats + * This spec contains endpoints with dates in different formats * * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git diff --git a/samples/client/petstore/csharp/generichost/net8/UseDateTimeForDate/src/Org.OpenAPITools/Client/ApiException.cs b/samples/client/petstore/csharp/generichost/net8/UseDateTimeForDate/src/Org.OpenAPITools/Client/ApiException.cs index f7cda3e72ce2..c14beff4b922 100644 --- a/samples/client/petstore/csharp/generichost/net8/UseDateTimeForDate/src/Org.OpenAPITools/Client/ApiException.cs +++ b/samples/client/petstore/csharp/generichost/net8/UseDateTimeForDate/src/Org.OpenAPITools/Client/ApiException.cs @@ -2,7 +2,7 @@ /* * OpenAPI Dates * - * Thic spec contains endpoints with dates in different formats + * This spec contains endpoints with dates in different formats * * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git diff --git a/samples/client/petstore/csharp/generichost/net8/UseDateTimeForDate/src/Org.OpenAPITools/Client/ApiResponse`1.cs b/samples/client/petstore/csharp/generichost/net8/UseDateTimeForDate/src/Org.OpenAPITools/Client/ApiResponse`1.cs index 0027952859de..189c222feb49 100644 --- a/samples/client/petstore/csharp/generichost/net8/UseDateTimeForDate/src/Org.OpenAPITools/Client/ApiResponse`1.cs +++ b/samples/client/petstore/csharp/generichost/net8/UseDateTimeForDate/src/Org.OpenAPITools/Client/ApiResponse`1.cs @@ -2,7 +2,7 @@ /* * OpenAPI Dates * - * Thic spec contains endpoints with dates in different formats + * This spec contains endpoints with dates in different formats * * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git diff --git a/samples/client/petstore/csharp/generichost/net8/UseDateTimeForDate/src/Org.OpenAPITools/Client/ClientUtils.cs b/samples/client/petstore/csharp/generichost/net8/UseDateTimeForDate/src/Org.OpenAPITools/Client/ClientUtils.cs index 4cdf0f206124..e07fbf76b3e4 100644 --- a/samples/client/petstore/csharp/generichost/net8/UseDateTimeForDate/src/Org.OpenAPITools/Client/ClientUtils.cs +++ b/samples/client/petstore/csharp/generichost/net8/UseDateTimeForDate/src/Org.OpenAPITools/Client/ClientUtils.cs @@ -1,7 +1,7 @@ /* * OpenAPI Dates * - * Thic spec contains endpoints with dates in different formats + * This spec contains endpoints with dates in different formats * * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git diff --git a/samples/client/petstore/csharp/generichost/net8/UseDateTimeForDate/src/Org.OpenAPITools/Client/DateTimeJsonConverter.cs b/samples/client/petstore/csharp/generichost/net8/UseDateTimeForDate/src/Org.OpenAPITools/Client/DateTimeJsonConverter.cs index 1ebd1220b622..ac434f917d91 100644 --- a/samples/client/petstore/csharp/generichost/net8/UseDateTimeForDate/src/Org.OpenAPITools/Client/DateTimeJsonConverter.cs +++ b/samples/client/petstore/csharp/generichost/net8/UseDateTimeForDate/src/Org.OpenAPITools/Client/DateTimeJsonConverter.cs @@ -1,7 +1,7 @@ /* * OpenAPI Dates * - * Thic spec contains endpoints with dates in different formats + * This spec contains endpoints with dates in different formats * * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git diff --git a/samples/client/petstore/csharp/generichost/net8/UseDateTimeForDate/src/Org.OpenAPITools/Client/DateTimeNullableJsonConverter.cs b/samples/client/petstore/csharp/generichost/net8/UseDateTimeForDate/src/Org.OpenAPITools/Client/DateTimeNullableJsonConverter.cs index e92db186bb60..aa3b1db7c18e 100644 --- a/samples/client/petstore/csharp/generichost/net8/UseDateTimeForDate/src/Org.OpenAPITools/Client/DateTimeNullableJsonConverter.cs +++ b/samples/client/petstore/csharp/generichost/net8/UseDateTimeForDate/src/Org.OpenAPITools/Client/DateTimeNullableJsonConverter.cs @@ -1,7 +1,7 @@ /* * OpenAPI Dates * - * Thic spec contains endpoints with dates in different formats + * This spec contains endpoints with dates in different formats * * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git diff --git a/samples/client/petstore/csharp/generichost/net8/UseDateTimeForDate/src/Org.OpenAPITools/Client/HostConfiguration.cs b/samples/client/petstore/csharp/generichost/net8/UseDateTimeForDate/src/Org.OpenAPITools/Client/HostConfiguration.cs index 90dd61c2c492..d138736cae93 100644 --- a/samples/client/petstore/csharp/generichost/net8/UseDateTimeForDate/src/Org.OpenAPITools/Client/HostConfiguration.cs +++ b/samples/client/petstore/csharp/generichost/net8/UseDateTimeForDate/src/Org.OpenAPITools/Client/HostConfiguration.cs @@ -1,7 +1,7 @@ /* * OpenAPI Dates * - * Thic spec contains endpoints with dates in different formats + * This spec contains endpoints with dates in different formats * * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git diff --git a/samples/client/petstore/csharp/generichost/net8/UseDateTimeForDate/src/Org.OpenAPITools/Client/Option.cs b/samples/client/petstore/csharp/generichost/net8/UseDateTimeForDate/src/Org.OpenAPITools/Client/Option.cs index 1c1677e3e3cb..f4e0957694bf 100644 --- a/samples/client/petstore/csharp/generichost/net8/UseDateTimeForDate/src/Org.OpenAPITools/Client/Option.cs +++ b/samples/client/petstore/csharp/generichost/net8/UseDateTimeForDate/src/Org.OpenAPITools/Client/Option.cs @@ -2,7 +2,7 @@ /* * OpenAPI Dates * - * Thic spec contains endpoints with dates in different formats + * This spec contains endpoints with dates in different formats * * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git diff --git a/samples/client/petstore/csharp/generichost/net8/UseDateTimeForDate/src/Org.OpenAPITools/Client/RateLimitProvider`1.cs b/samples/client/petstore/csharp/generichost/net8/UseDateTimeForDate/src/Org.OpenAPITools/Client/RateLimitProvider`1.cs index 30ef47033199..2fcaa25b278c 100644 --- a/samples/client/petstore/csharp/generichost/net8/UseDateTimeForDate/src/Org.OpenAPITools/Client/RateLimitProvider`1.cs +++ b/samples/client/petstore/csharp/generichost/net8/UseDateTimeForDate/src/Org.OpenAPITools/Client/RateLimitProvider`1.cs @@ -2,7 +2,7 @@ /* * OpenAPI Dates * - * Thic spec contains endpoints with dates in different formats + * This spec contains endpoints with dates in different formats * * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git diff --git a/samples/client/petstore/csharp/generichost/net8/UseDateTimeForDate/src/Org.OpenAPITools/Client/TokenProvider`1.cs b/samples/client/petstore/csharp/generichost/net8/UseDateTimeForDate/src/Org.OpenAPITools/Client/TokenProvider`1.cs index d9c84d5cc775..f35e39635a23 100644 --- a/samples/client/petstore/csharp/generichost/net8/UseDateTimeForDate/src/Org.OpenAPITools/Client/TokenProvider`1.cs +++ b/samples/client/petstore/csharp/generichost/net8/UseDateTimeForDate/src/Org.OpenAPITools/Client/TokenProvider`1.cs @@ -2,7 +2,7 @@ /* * OpenAPI Dates * - * Thic spec contains endpoints with dates in different formats + * This spec contains endpoints with dates in different formats * * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git diff --git a/samples/client/petstore/csharp/generichost/net8/UseDateTimeForDate/src/Org.OpenAPITools/Extensions/IHostBuilderExtensions.cs b/samples/client/petstore/csharp/generichost/net8/UseDateTimeForDate/src/Org.OpenAPITools/Extensions/IHostBuilderExtensions.cs index 2c150d1f66e4..319f002a6429 100644 --- a/samples/client/petstore/csharp/generichost/net8/UseDateTimeForDate/src/Org.OpenAPITools/Extensions/IHostBuilderExtensions.cs +++ b/samples/client/petstore/csharp/generichost/net8/UseDateTimeForDate/src/Org.OpenAPITools/Extensions/IHostBuilderExtensions.cs @@ -1,7 +1,7 @@ /* * OpenAPI Dates * - * Thic spec contains endpoints with dates in different formats + * This spec contains endpoints with dates in different formats * * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git diff --git a/samples/client/petstore/csharp/generichost/net8/UseDateTimeForDate/src/Org.OpenAPITools/Extensions/IHttpClientBuilderExtensions.cs b/samples/client/petstore/csharp/generichost/net8/UseDateTimeForDate/src/Org.OpenAPITools/Extensions/IHttpClientBuilderExtensions.cs index 549b6e473333..76e2675136c8 100644 --- a/samples/client/petstore/csharp/generichost/net8/UseDateTimeForDate/src/Org.OpenAPITools/Extensions/IHttpClientBuilderExtensions.cs +++ b/samples/client/petstore/csharp/generichost/net8/UseDateTimeForDate/src/Org.OpenAPITools/Extensions/IHttpClientBuilderExtensions.cs @@ -1,7 +1,7 @@ /* * OpenAPI Dates * - * Thic spec contains endpoints with dates in different formats + * This spec contains endpoints with dates in different formats * * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git diff --git a/samples/client/petstore/csharp/generichost/net8/UseDateTimeForDate/src/Org.OpenAPITools/Extensions/IServiceCollectionExtensions.cs b/samples/client/petstore/csharp/generichost/net8/UseDateTimeForDate/src/Org.OpenAPITools/Extensions/IServiceCollectionExtensions.cs index 8b7c34900c07..aeaf9eccedb5 100644 --- a/samples/client/petstore/csharp/generichost/net8/UseDateTimeForDate/src/Org.OpenAPITools/Extensions/IServiceCollectionExtensions.cs +++ b/samples/client/petstore/csharp/generichost/net8/UseDateTimeForDate/src/Org.OpenAPITools/Extensions/IServiceCollectionExtensions.cs @@ -1,7 +1,7 @@ /* * OpenAPI Dates * - * Thic spec contains endpoints with dates in different formats + * This spec contains endpoints with dates in different formats * * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git diff --git a/samples/client/petstore/csharp/generichost/net8/UseDateTimeForDate/src/Org.OpenAPITools/Model/NowGet200Response.cs b/samples/client/petstore/csharp/generichost/net8/UseDateTimeForDate/src/Org.OpenAPITools/Model/NowGet200Response.cs index d07559ec5275..008fb8280d1a 100644 --- a/samples/client/petstore/csharp/generichost/net8/UseDateTimeForDate/src/Org.OpenAPITools/Model/NowGet200Response.cs +++ b/samples/client/petstore/csharp/generichost/net8/UseDateTimeForDate/src/Org.OpenAPITools/Model/NowGet200Response.cs @@ -2,7 +2,7 @@ /* * OpenAPI Dates * - * Thic spec contains endpoints with dates in different formats + * This spec contains endpoints with dates in different formats * * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git diff --git a/samples/client/petstore/csharp/generichost/net8/UseDateTimeForDate/src/Org.OpenAPITools/README.md b/samples/client/petstore/csharp/generichost/net8/UseDateTimeForDate/src/Org.OpenAPITools/README.md index b1d745d6fbed..1389f5fe2bbb 100644 --- a/samples/client/petstore/csharp/generichost/net8/UseDateTimeForDate/src/Org.OpenAPITools/README.md +++ b/samples/client/petstore/csharp/generichost/net8/UseDateTimeForDate/src/Org.OpenAPITools/README.md @@ -121,7 +121,7 @@ Endpoints do not require authorization. ## Api Information - appName: OpenAPI Dates - appVersion: 1.0.0 -- appDescription: Thic spec contains endpoints with dates in different formats +- appDescription: This spec contains endpoints with dates in different formats ## [OpenApi Global properties](https://openapi-generator.tech/docs/globals) - generateAliasAsModel: diff --git a/samples/client/petstore/csharp/generichost/net9/UseDateTimeForDate/api/openapi.yaml b/samples/client/petstore/csharp/generichost/net9/UseDateTimeForDate/api/openapi.yaml index a84e041a00fa..beed4f8259b4 100644 --- a/samples/client/petstore/csharp/generichost/net9/UseDateTimeForDate/api/openapi.yaml +++ b/samples/client/petstore/csharp/generichost/net9/UseDateTimeForDate/api/openapi.yaml @@ -1,6 +1,6 @@ openapi: 3.0.0 info: - description: Thic spec contains endpoints with dates in different formats + description: This spec contains endpoints with dates in different formats license: name: Apache-2.0 url: https://www.apache.org/licenses/LICENSE-2.0.html diff --git a/samples/client/petstore/csharp/generichost/net9/UseDateTimeForDate/src/Org.OpenAPITools.Test/Api/ApiTestsBase.cs b/samples/client/petstore/csharp/generichost/net9/UseDateTimeForDate/src/Org.OpenAPITools.Test/Api/ApiTestsBase.cs index 40e1298ee62c..75f95dc9d485 100644 --- a/samples/client/petstore/csharp/generichost/net9/UseDateTimeForDate/src/Org.OpenAPITools.Test/Api/ApiTestsBase.cs +++ b/samples/client/petstore/csharp/generichost/net9/UseDateTimeForDate/src/Org.OpenAPITools.Test/Api/ApiTestsBase.cs @@ -1,7 +1,7 @@ /* * OpenAPI Dates * - * Thic spec contains endpoints with dates in different formats + * This spec contains endpoints with dates in different formats * * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git diff --git a/samples/client/petstore/csharp/generichost/net9/UseDateTimeForDate/src/Org.OpenAPITools.Test/Api/DefaultApiTests.cs b/samples/client/petstore/csharp/generichost/net9/UseDateTimeForDate/src/Org.OpenAPITools.Test/Api/DefaultApiTests.cs index 05dc933c03b1..01400ec5d0b2 100644 --- a/samples/client/petstore/csharp/generichost/net9/UseDateTimeForDate/src/Org.OpenAPITools.Test/Api/DefaultApiTests.cs +++ b/samples/client/petstore/csharp/generichost/net9/UseDateTimeForDate/src/Org.OpenAPITools.Test/Api/DefaultApiTests.cs @@ -1,7 +1,7 @@ /* * OpenAPI Dates * - * Thic spec contains endpoints with dates in different formats + * This spec contains endpoints with dates in different formats * * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git diff --git a/samples/client/petstore/csharp/generichost/net9/UseDateTimeForDate/src/Org.OpenAPITools.Test/Api/DependencyInjectionTests.cs b/samples/client/petstore/csharp/generichost/net9/UseDateTimeForDate/src/Org.OpenAPITools.Test/Api/DependencyInjectionTests.cs index c910325e620b..e3b8634d146b 100644 --- a/samples/client/petstore/csharp/generichost/net9/UseDateTimeForDate/src/Org.OpenAPITools.Test/Api/DependencyInjectionTests.cs +++ b/samples/client/petstore/csharp/generichost/net9/UseDateTimeForDate/src/Org.OpenAPITools.Test/Api/DependencyInjectionTests.cs @@ -1,7 +1,7 @@ /* * OpenAPI Dates * - * Thic spec contains endpoints with dates in different formats + * This spec contains endpoints with dates in different formats * * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git diff --git a/samples/client/petstore/csharp/generichost/net9/UseDateTimeForDate/src/Org.OpenAPITools.Test/Model/NowGet200ResponseTests.cs b/samples/client/petstore/csharp/generichost/net9/UseDateTimeForDate/src/Org.OpenAPITools.Test/Model/NowGet200ResponseTests.cs index 920dfd9700ea..826883c9b3a4 100644 --- a/samples/client/petstore/csharp/generichost/net9/UseDateTimeForDate/src/Org.OpenAPITools.Test/Model/NowGet200ResponseTests.cs +++ b/samples/client/petstore/csharp/generichost/net9/UseDateTimeForDate/src/Org.OpenAPITools.Test/Model/NowGet200ResponseTests.cs @@ -1,7 +1,7 @@ /* * OpenAPI Dates * - * Thic spec contains endpoints with dates in different formats + * This spec contains endpoints with dates in different formats * * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git diff --git a/samples/client/petstore/csharp/generichost/net9/UseDateTimeForDate/src/Org.OpenAPITools/Api/DefaultApi.cs b/samples/client/petstore/csharp/generichost/net9/UseDateTimeForDate/src/Org.OpenAPITools/Api/DefaultApi.cs index 7782f09b34bf..6ad12cc8108f 100644 --- a/samples/client/petstore/csharp/generichost/net9/UseDateTimeForDate/src/Org.OpenAPITools/Api/DefaultApi.cs +++ b/samples/client/petstore/csharp/generichost/net9/UseDateTimeForDate/src/Org.OpenAPITools/Api/DefaultApi.cs @@ -2,7 +2,7 @@ /* * OpenAPI Dates * - * Thic spec contains endpoints with dates in different formats + * This spec contains endpoints with dates in different formats * * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git diff --git a/samples/client/petstore/csharp/generichost/net9/UseDateTimeForDate/src/Org.OpenAPITools/Client/ApiException.cs b/samples/client/petstore/csharp/generichost/net9/UseDateTimeForDate/src/Org.OpenAPITools/Client/ApiException.cs index f7cda3e72ce2..c14beff4b922 100644 --- a/samples/client/petstore/csharp/generichost/net9/UseDateTimeForDate/src/Org.OpenAPITools/Client/ApiException.cs +++ b/samples/client/petstore/csharp/generichost/net9/UseDateTimeForDate/src/Org.OpenAPITools/Client/ApiException.cs @@ -2,7 +2,7 @@ /* * OpenAPI Dates * - * Thic spec contains endpoints with dates in different formats + * This spec contains endpoints with dates in different formats * * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git diff --git a/samples/client/petstore/csharp/generichost/net9/UseDateTimeForDate/src/Org.OpenAPITools/Client/ApiResponse`1.cs b/samples/client/petstore/csharp/generichost/net9/UseDateTimeForDate/src/Org.OpenAPITools/Client/ApiResponse`1.cs index 0027952859de..189c222feb49 100644 --- a/samples/client/petstore/csharp/generichost/net9/UseDateTimeForDate/src/Org.OpenAPITools/Client/ApiResponse`1.cs +++ b/samples/client/petstore/csharp/generichost/net9/UseDateTimeForDate/src/Org.OpenAPITools/Client/ApiResponse`1.cs @@ -2,7 +2,7 @@ /* * OpenAPI Dates * - * Thic spec contains endpoints with dates in different formats + * This spec contains endpoints with dates in different formats * * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git diff --git a/samples/client/petstore/csharp/generichost/net9/UseDateTimeForDate/src/Org.OpenAPITools/Client/ClientUtils.cs b/samples/client/petstore/csharp/generichost/net9/UseDateTimeForDate/src/Org.OpenAPITools/Client/ClientUtils.cs index 4cdf0f206124..e07fbf76b3e4 100644 --- a/samples/client/petstore/csharp/generichost/net9/UseDateTimeForDate/src/Org.OpenAPITools/Client/ClientUtils.cs +++ b/samples/client/petstore/csharp/generichost/net9/UseDateTimeForDate/src/Org.OpenAPITools/Client/ClientUtils.cs @@ -1,7 +1,7 @@ /* * OpenAPI Dates * - * Thic spec contains endpoints with dates in different formats + * This spec contains endpoints with dates in different formats * * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git diff --git a/samples/client/petstore/csharp/generichost/net9/UseDateTimeForDate/src/Org.OpenAPITools/Client/DateTimeJsonConverter.cs b/samples/client/petstore/csharp/generichost/net9/UseDateTimeForDate/src/Org.OpenAPITools/Client/DateTimeJsonConverter.cs index 1ebd1220b622..ac434f917d91 100644 --- a/samples/client/petstore/csharp/generichost/net9/UseDateTimeForDate/src/Org.OpenAPITools/Client/DateTimeJsonConverter.cs +++ b/samples/client/petstore/csharp/generichost/net9/UseDateTimeForDate/src/Org.OpenAPITools/Client/DateTimeJsonConverter.cs @@ -1,7 +1,7 @@ /* * OpenAPI Dates * - * Thic spec contains endpoints with dates in different formats + * This spec contains endpoints with dates in different formats * * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git diff --git a/samples/client/petstore/csharp/generichost/net9/UseDateTimeForDate/src/Org.OpenAPITools/Client/DateTimeNullableJsonConverter.cs b/samples/client/petstore/csharp/generichost/net9/UseDateTimeForDate/src/Org.OpenAPITools/Client/DateTimeNullableJsonConverter.cs index e92db186bb60..aa3b1db7c18e 100644 --- a/samples/client/petstore/csharp/generichost/net9/UseDateTimeForDate/src/Org.OpenAPITools/Client/DateTimeNullableJsonConverter.cs +++ b/samples/client/petstore/csharp/generichost/net9/UseDateTimeForDate/src/Org.OpenAPITools/Client/DateTimeNullableJsonConverter.cs @@ -1,7 +1,7 @@ /* * OpenAPI Dates * - * Thic spec contains endpoints with dates in different formats + * This spec contains endpoints with dates in different formats * * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git diff --git a/samples/client/petstore/csharp/generichost/net9/UseDateTimeForDate/src/Org.OpenAPITools/Client/HostConfiguration.cs b/samples/client/petstore/csharp/generichost/net9/UseDateTimeForDate/src/Org.OpenAPITools/Client/HostConfiguration.cs index 90dd61c2c492..d138736cae93 100644 --- a/samples/client/petstore/csharp/generichost/net9/UseDateTimeForDate/src/Org.OpenAPITools/Client/HostConfiguration.cs +++ b/samples/client/petstore/csharp/generichost/net9/UseDateTimeForDate/src/Org.OpenAPITools/Client/HostConfiguration.cs @@ -1,7 +1,7 @@ /* * OpenAPI Dates * - * Thic spec contains endpoints with dates in different formats + * This spec contains endpoints with dates in different formats * * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git diff --git a/samples/client/petstore/csharp/generichost/net9/UseDateTimeForDate/src/Org.OpenAPITools/Client/Option.cs b/samples/client/petstore/csharp/generichost/net9/UseDateTimeForDate/src/Org.OpenAPITools/Client/Option.cs index 1c1677e3e3cb..f4e0957694bf 100644 --- a/samples/client/petstore/csharp/generichost/net9/UseDateTimeForDate/src/Org.OpenAPITools/Client/Option.cs +++ b/samples/client/petstore/csharp/generichost/net9/UseDateTimeForDate/src/Org.OpenAPITools/Client/Option.cs @@ -2,7 +2,7 @@ /* * OpenAPI Dates * - * Thic spec contains endpoints with dates in different formats + * This spec contains endpoints with dates in different formats * * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git diff --git a/samples/client/petstore/csharp/generichost/net9/UseDateTimeForDate/src/Org.OpenAPITools/Client/RateLimitProvider`1.cs b/samples/client/petstore/csharp/generichost/net9/UseDateTimeForDate/src/Org.OpenAPITools/Client/RateLimitProvider`1.cs index 30ef47033199..2fcaa25b278c 100644 --- a/samples/client/petstore/csharp/generichost/net9/UseDateTimeForDate/src/Org.OpenAPITools/Client/RateLimitProvider`1.cs +++ b/samples/client/petstore/csharp/generichost/net9/UseDateTimeForDate/src/Org.OpenAPITools/Client/RateLimitProvider`1.cs @@ -2,7 +2,7 @@ /* * OpenAPI Dates * - * Thic spec contains endpoints with dates in different formats + * This spec contains endpoints with dates in different formats * * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git diff --git a/samples/client/petstore/csharp/generichost/net9/UseDateTimeForDate/src/Org.OpenAPITools/Client/TokenProvider`1.cs b/samples/client/petstore/csharp/generichost/net9/UseDateTimeForDate/src/Org.OpenAPITools/Client/TokenProvider`1.cs index d9c84d5cc775..f35e39635a23 100644 --- a/samples/client/petstore/csharp/generichost/net9/UseDateTimeForDate/src/Org.OpenAPITools/Client/TokenProvider`1.cs +++ b/samples/client/petstore/csharp/generichost/net9/UseDateTimeForDate/src/Org.OpenAPITools/Client/TokenProvider`1.cs @@ -2,7 +2,7 @@ /* * OpenAPI Dates * - * Thic spec contains endpoints with dates in different formats + * This spec contains endpoints with dates in different formats * * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git diff --git a/samples/client/petstore/csharp/generichost/net9/UseDateTimeForDate/src/Org.OpenAPITools/Extensions/IHostBuilderExtensions.cs b/samples/client/petstore/csharp/generichost/net9/UseDateTimeForDate/src/Org.OpenAPITools/Extensions/IHostBuilderExtensions.cs index 2c150d1f66e4..319f002a6429 100644 --- a/samples/client/petstore/csharp/generichost/net9/UseDateTimeForDate/src/Org.OpenAPITools/Extensions/IHostBuilderExtensions.cs +++ b/samples/client/petstore/csharp/generichost/net9/UseDateTimeForDate/src/Org.OpenAPITools/Extensions/IHostBuilderExtensions.cs @@ -1,7 +1,7 @@ /* * OpenAPI Dates * - * Thic spec contains endpoints with dates in different formats + * This spec contains endpoints with dates in different formats * * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git diff --git a/samples/client/petstore/csharp/generichost/net9/UseDateTimeForDate/src/Org.OpenAPITools/Extensions/IHttpClientBuilderExtensions.cs b/samples/client/petstore/csharp/generichost/net9/UseDateTimeForDate/src/Org.OpenAPITools/Extensions/IHttpClientBuilderExtensions.cs index 549b6e473333..76e2675136c8 100644 --- a/samples/client/petstore/csharp/generichost/net9/UseDateTimeForDate/src/Org.OpenAPITools/Extensions/IHttpClientBuilderExtensions.cs +++ b/samples/client/petstore/csharp/generichost/net9/UseDateTimeForDate/src/Org.OpenAPITools/Extensions/IHttpClientBuilderExtensions.cs @@ -1,7 +1,7 @@ /* * OpenAPI Dates * - * Thic spec contains endpoints with dates in different formats + * This spec contains endpoints with dates in different formats * * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git diff --git a/samples/client/petstore/csharp/generichost/net9/UseDateTimeForDate/src/Org.OpenAPITools/Extensions/IServiceCollectionExtensions.cs b/samples/client/petstore/csharp/generichost/net9/UseDateTimeForDate/src/Org.OpenAPITools/Extensions/IServiceCollectionExtensions.cs index 8b7c34900c07..aeaf9eccedb5 100644 --- a/samples/client/petstore/csharp/generichost/net9/UseDateTimeForDate/src/Org.OpenAPITools/Extensions/IServiceCollectionExtensions.cs +++ b/samples/client/petstore/csharp/generichost/net9/UseDateTimeForDate/src/Org.OpenAPITools/Extensions/IServiceCollectionExtensions.cs @@ -1,7 +1,7 @@ /* * OpenAPI Dates * - * Thic spec contains endpoints with dates in different formats + * This spec contains endpoints with dates in different formats * * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git diff --git a/samples/client/petstore/csharp/generichost/net9/UseDateTimeForDate/src/Org.OpenAPITools/Model/NowGet200Response.cs b/samples/client/petstore/csharp/generichost/net9/UseDateTimeForDate/src/Org.OpenAPITools/Model/NowGet200Response.cs index d07559ec5275..008fb8280d1a 100644 --- a/samples/client/petstore/csharp/generichost/net9/UseDateTimeForDate/src/Org.OpenAPITools/Model/NowGet200Response.cs +++ b/samples/client/petstore/csharp/generichost/net9/UseDateTimeForDate/src/Org.OpenAPITools/Model/NowGet200Response.cs @@ -2,7 +2,7 @@ /* * OpenAPI Dates * - * Thic spec contains endpoints with dates in different formats + * This spec contains endpoints with dates in different formats * * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git diff --git a/samples/client/petstore/csharp/generichost/net9/UseDateTimeForDate/src/Org.OpenAPITools/README.md b/samples/client/petstore/csharp/generichost/net9/UseDateTimeForDate/src/Org.OpenAPITools/README.md index c889bb4cbd3d..9fb34180a8da 100644 --- a/samples/client/petstore/csharp/generichost/net9/UseDateTimeForDate/src/Org.OpenAPITools/README.md +++ b/samples/client/petstore/csharp/generichost/net9/UseDateTimeForDate/src/Org.OpenAPITools/README.md @@ -121,7 +121,7 @@ Endpoints do not require authorization. ## Api Information - appName: OpenAPI Dates - appVersion: 1.0.0 -- appDescription: Thic spec contains endpoints with dates in different formats +- appDescription: This spec contains endpoints with dates in different formats ## [OpenApi Global properties](https://openapi-generator.tech/docs/globals) - generateAliasAsModel: diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Api/PetApiTestsV2.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Api/PetApiTestsV2.cs index 0a7945d386bc..4c885a47f02f 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Api/PetApiTestsV2.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools.Test/Api/PetApiTestsV2.cs @@ -293,7 +293,7 @@ public void FindPetsByStatus_ReturnsListOfPetsFiltered() #region Add ///

- /// Test AddPet with an existent Id. The current server beavior is to update the Pet. + /// Test AddPet with an existent Id. The current server behavior is to update the Pet. /// [Fact] public void AddPet_GivenExistentId_UpdateThePet() @@ -308,7 +308,7 @@ public void AddPet_GivenExistentId_UpdateThePet() #region AddAsync /// - /// Test AddPetAsync with an existent Id. The current server beavior is to update the Pet. + /// Test AddPetAsync with an existent Id. The current server behavior is to update the Pet. /// [Fact] public async Task AddPetAsync_GivenExistentId_UpdateThePet() @@ -334,7 +334,7 @@ public void UpdatePet_GivenExistentId_UpdateThePet() } /// - /// Test UpdatePet with a not existent Id. The current server beavior is to create the Pet. + /// Test UpdatePet with a not existent Id. The current server behavior is to create the Pet. /// [Fact] public void UpdatePet_GivenNotExistentId_UpdateThePet() @@ -417,7 +417,7 @@ public async Task UpdatePetAsync_GivenExistentId_UpdateThePet() } /// - /// Test UpdatePetAsync with a not existent Id. The current server beavior is to create the Pet. + /// Test UpdatePetAsync with a not existent Id. The current server behavior is to create the Pet. /// [Fact] public async Task UpdatePetAsync_GivenNotExistentId_UpdateThePet() @@ -503,7 +503,7 @@ public void DeletePet_GivenExistentId_DeleteThePet() } /// - /// Test DeletePet with a not existent Id. The current server beavior is to return 404. + /// Test DeletePet with a not existent Id. The current server behavior is to return 404. /// [Fact] public void DeletePet_GivenNotExistentId_ThrowsApiException() @@ -533,7 +533,7 @@ public async Task DeletePetAsync_GivenExistentId_DeleteThePet() } /// - /// Test DeletePet with a not existent Id. The current server beavior is to return 404. + /// Test DeletePet with a not existent Id. The current server behavior is to return 404. /// [Fact] public async Task DeletePetAsync_GivenNotExistentId_ThrowsApiException() diff --git a/samples/client/petstore/csharp/restsharp/net8/UseDateTimeForDate/README.md b/samples/client/petstore/csharp/restsharp/net8/UseDateTimeForDate/README.md index 2b01a8e55f8b..718a9d03dd30 100644 --- a/samples/client/petstore/csharp/restsharp/net8/UseDateTimeForDate/README.md +++ b/samples/client/petstore/csharp/restsharp/net8/UseDateTimeForDate/README.md @@ -1,6 +1,6 @@ # Org.OpenAPITools - the C# library for the OpenAPI Dates -Thic spec contains endpoints with dates in different formats +This spec contains endpoints with dates in different formats This C# SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: diff --git a/samples/client/petstore/csharp/restsharp/net8/UseDateTimeForDate/api/openapi.yaml b/samples/client/petstore/csharp/restsharp/net8/UseDateTimeForDate/api/openapi.yaml index a84e041a00fa..beed4f8259b4 100644 --- a/samples/client/petstore/csharp/restsharp/net8/UseDateTimeForDate/api/openapi.yaml +++ b/samples/client/petstore/csharp/restsharp/net8/UseDateTimeForDate/api/openapi.yaml @@ -1,6 +1,6 @@ openapi: 3.0.0 info: - description: Thic spec contains endpoints with dates in different formats + description: This spec contains endpoints with dates in different formats license: name: Apache-2.0 url: https://www.apache.org/licenses/LICENSE-2.0.html diff --git a/samples/client/petstore/csharp/restsharp/net8/UseDateTimeForDate/src/Org.OpenAPITools.Test/Api/DefaultApiTests.cs b/samples/client/petstore/csharp/restsharp/net8/UseDateTimeForDate/src/Org.OpenAPITools.Test/Api/DefaultApiTests.cs index 5dfa62da67f4..4dd0c5e55e97 100644 --- a/samples/client/petstore/csharp/restsharp/net8/UseDateTimeForDate/src/Org.OpenAPITools.Test/Api/DefaultApiTests.cs +++ b/samples/client/petstore/csharp/restsharp/net8/UseDateTimeForDate/src/Org.OpenAPITools.Test/Api/DefaultApiTests.cs @@ -1,7 +1,7 @@ /* * OpenAPI Dates * - * Thic spec contains endpoints with dates in different formats + * This spec contains endpoints with dates in different formats * * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git diff --git a/samples/client/petstore/csharp/restsharp/net8/UseDateTimeForDate/src/Org.OpenAPITools.Test/Model/NowGet200ResponseTests.cs b/samples/client/petstore/csharp/restsharp/net8/UseDateTimeForDate/src/Org.OpenAPITools.Test/Model/NowGet200ResponseTests.cs index a91e45c60c8b..69dd54528ce8 100644 --- a/samples/client/petstore/csharp/restsharp/net8/UseDateTimeForDate/src/Org.OpenAPITools.Test/Model/NowGet200ResponseTests.cs +++ b/samples/client/petstore/csharp/restsharp/net8/UseDateTimeForDate/src/Org.OpenAPITools.Test/Model/NowGet200ResponseTests.cs @@ -1,7 +1,7 @@ /* * OpenAPI Dates * - * Thic spec contains endpoints with dates in different formats + * This spec contains endpoints with dates in different formats * * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git diff --git a/samples/client/petstore/csharp/restsharp/net8/UseDateTimeForDate/src/Org.OpenAPITools/Api/DefaultApi.cs b/samples/client/petstore/csharp/restsharp/net8/UseDateTimeForDate/src/Org.OpenAPITools/Api/DefaultApi.cs index 40964553f7f7..44d0938d58e7 100644 --- a/samples/client/petstore/csharp/restsharp/net8/UseDateTimeForDate/src/Org.OpenAPITools/Api/DefaultApi.cs +++ b/samples/client/petstore/csharp/restsharp/net8/UseDateTimeForDate/src/Org.OpenAPITools/Api/DefaultApi.cs @@ -1,7 +1,7 @@ /* * OpenAPI Dates * - * Thic spec contains endpoints with dates in different formats + * This spec contains endpoints with dates in different formats * * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git diff --git a/samples/client/petstore/csharp/restsharp/net8/UseDateTimeForDate/src/Org.OpenAPITools/Client/ApiClient.cs b/samples/client/petstore/csharp/restsharp/net8/UseDateTimeForDate/src/Org.OpenAPITools/Client/ApiClient.cs index ea3384d5c5f8..4613589768fb 100644 --- a/samples/client/petstore/csharp/restsharp/net8/UseDateTimeForDate/src/Org.OpenAPITools/Client/ApiClient.cs +++ b/samples/client/petstore/csharp/restsharp/net8/UseDateTimeForDate/src/Org.OpenAPITools/Client/ApiClient.cs @@ -1,7 +1,7 @@ /* * OpenAPI Dates * - * Thic spec contains endpoints with dates in different formats + * This spec contains endpoints with dates in different formats * * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git diff --git a/samples/client/petstore/csharp/restsharp/net8/UseDateTimeForDate/src/Org.OpenAPITools/Client/ApiException.cs b/samples/client/petstore/csharp/restsharp/net8/UseDateTimeForDate/src/Org.OpenAPITools/Client/ApiException.cs index 64872847b838..6d836138fa50 100644 --- a/samples/client/petstore/csharp/restsharp/net8/UseDateTimeForDate/src/Org.OpenAPITools/Client/ApiException.cs +++ b/samples/client/petstore/csharp/restsharp/net8/UseDateTimeForDate/src/Org.OpenAPITools/Client/ApiException.cs @@ -1,7 +1,7 @@ /* * OpenAPI Dates * - * Thic spec contains endpoints with dates in different formats + * This spec contains endpoints with dates in different formats * * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git diff --git a/samples/client/petstore/csharp/restsharp/net8/UseDateTimeForDate/src/Org.OpenAPITools/Client/ApiResponse.cs b/samples/client/petstore/csharp/restsharp/net8/UseDateTimeForDate/src/Org.OpenAPITools/Client/ApiResponse.cs index 62640a590495..4582b61c0bf5 100644 --- a/samples/client/petstore/csharp/restsharp/net8/UseDateTimeForDate/src/Org.OpenAPITools/Client/ApiResponse.cs +++ b/samples/client/petstore/csharp/restsharp/net8/UseDateTimeForDate/src/Org.OpenAPITools/Client/ApiResponse.cs @@ -1,7 +1,7 @@ /* * OpenAPI Dates * - * Thic spec contains endpoints with dates in different formats + * This spec contains endpoints with dates in different formats * * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git diff --git a/samples/client/petstore/csharp/restsharp/net8/UseDateTimeForDate/src/Org.OpenAPITools/Client/ClientUtils.cs b/samples/client/petstore/csharp/restsharp/net8/UseDateTimeForDate/src/Org.OpenAPITools/Client/ClientUtils.cs index 02d02e362929..f529cd201ae4 100644 --- a/samples/client/petstore/csharp/restsharp/net8/UseDateTimeForDate/src/Org.OpenAPITools/Client/ClientUtils.cs +++ b/samples/client/petstore/csharp/restsharp/net8/UseDateTimeForDate/src/Org.OpenAPITools/Client/ClientUtils.cs @@ -1,7 +1,7 @@ /* * OpenAPI Dates * - * Thic spec contains endpoints with dates in different formats + * This spec contains endpoints with dates in different formats * * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git diff --git a/samples/client/petstore/csharp/restsharp/net8/UseDateTimeForDate/src/Org.OpenAPITools/Client/Configuration.cs b/samples/client/petstore/csharp/restsharp/net8/UseDateTimeForDate/src/Org.OpenAPITools/Client/Configuration.cs index 488b3d832e4e..920f0da38a53 100644 --- a/samples/client/petstore/csharp/restsharp/net8/UseDateTimeForDate/src/Org.OpenAPITools/Client/Configuration.cs +++ b/samples/client/petstore/csharp/restsharp/net8/UseDateTimeForDate/src/Org.OpenAPITools/Client/Configuration.cs @@ -1,7 +1,7 @@ /* * OpenAPI Dates * - * Thic spec contains endpoints with dates in different formats + * This spec contains endpoints with dates in different formats * * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git diff --git a/samples/client/petstore/csharp/restsharp/net8/UseDateTimeForDate/src/Org.OpenAPITools/Client/ExceptionFactory.cs b/samples/client/petstore/csharp/restsharp/net8/UseDateTimeForDate/src/Org.OpenAPITools/Client/ExceptionFactory.cs index 12d2e18f66e7..1c82eafb68c0 100644 --- a/samples/client/petstore/csharp/restsharp/net8/UseDateTimeForDate/src/Org.OpenAPITools/Client/ExceptionFactory.cs +++ b/samples/client/petstore/csharp/restsharp/net8/UseDateTimeForDate/src/Org.OpenAPITools/Client/ExceptionFactory.cs @@ -1,7 +1,7 @@ /* * OpenAPI Dates * - * Thic spec contains endpoints with dates in different formats + * This spec contains endpoints with dates in different formats * * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git diff --git a/samples/client/petstore/csharp/restsharp/net8/UseDateTimeForDate/src/Org.OpenAPITools/Client/GlobalConfiguration.cs b/samples/client/petstore/csharp/restsharp/net8/UseDateTimeForDate/src/Org.OpenAPITools/Client/GlobalConfiguration.cs index c0351acf1211..4d1e2f916dd8 100644 --- a/samples/client/petstore/csharp/restsharp/net8/UseDateTimeForDate/src/Org.OpenAPITools/Client/GlobalConfiguration.cs +++ b/samples/client/petstore/csharp/restsharp/net8/UseDateTimeForDate/src/Org.OpenAPITools/Client/GlobalConfiguration.cs @@ -1,7 +1,7 @@ /* * OpenAPI Dates * - * Thic spec contains endpoints with dates in different formats + * This spec contains endpoints with dates in different formats * * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git diff --git a/samples/client/petstore/csharp/restsharp/net8/UseDateTimeForDate/src/Org.OpenAPITools/Client/HttpMethod.cs b/samples/client/petstore/csharp/restsharp/net8/UseDateTimeForDate/src/Org.OpenAPITools/Client/HttpMethod.cs index e06a7dbd6cc2..27cd7f691267 100644 --- a/samples/client/petstore/csharp/restsharp/net8/UseDateTimeForDate/src/Org.OpenAPITools/Client/HttpMethod.cs +++ b/samples/client/petstore/csharp/restsharp/net8/UseDateTimeForDate/src/Org.OpenAPITools/Client/HttpMethod.cs @@ -1,7 +1,7 @@ /* * OpenAPI Dates * - * Thic spec contains endpoints with dates in different formats + * This spec contains endpoints with dates in different formats * * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git diff --git a/samples/client/petstore/csharp/restsharp/net8/UseDateTimeForDate/src/Org.OpenAPITools/Client/IApiAccessor.cs b/samples/client/petstore/csharp/restsharp/net8/UseDateTimeForDate/src/Org.OpenAPITools/Client/IApiAccessor.cs index e31d64e704a9..99e1d36d829a 100644 --- a/samples/client/petstore/csharp/restsharp/net8/UseDateTimeForDate/src/Org.OpenAPITools/Client/IApiAccessor.cs +++ b/samples/client/petstore/csharp/restsharp/net8/UseDateTimeForDate/src/Org.OpenAPITools/Client/IApiAccessor.cs @@ -1,7 +1,7 @@ /* * OpenAPI Dates * - * Thic spec contains endpoints with dates in different formats + * This spec contains endpoints with dates in different formats * * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git diff --git a/samples/client/petstore/csharp/restsharp/net8/UseDateTimeForDate/src/Org.OpenAPITools/Client/IAsynchronousClient.cs b/samples/client/petstore/csharp/restsharp/net8/UseDateTimeForDate/src/Org.OpenAPITools/Client/IAsynchronousClient.cs index 3f2e47267ef9..d51c87cde26e 100644 --- a/samples/client/petstore/csharp/restsharp/net8/UseDateTimeForDate/src/Org.OpenAPITools/Client/IAsynchronousClient.cs +++ b/samples/client/petstore/csharp/restsharp/net8/UseDateTimeForDate/src/Org.OpenAPITools/Client/IAsynchronousClient.cs @@ -1,7 +1,7 @@ /* * OpenAPI Dates * - * Thic spec contains endpoints with dates in different formats + * This spec contains endpoints with dates in different formats * * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git diff --git a/samples/client/petstore/csharp/restsharp/net8/UseDateTimeForDate/src/Org.OpenAPITools/Client/IReadableConfiguration.cs b/samples/client/petstore/csharp/restsharp/net8/UseDateTimeForDate/src/Org.OpenAPITools/Client/IReadableConfiguration.cs index ee2c1e0a819f..1c9463ee6bea 100644 --- a/samples/client/petstore/csharp/restsharp/net8/UseDateTimeForDate/src/Org.OpenAPITools/Client/IReadableConfiguration.cs +++ b/samples/client/petstore/csharp/restsharp/net8/UseDateTimeForDate/src/Org.OpenAPITools/Client/IReadableConfiguration.cs @@ -1,7 +1,7 @@ /* * OpenAPI Dates * - * Thic spec contains endpoints with dates in different formats + * This spec contains endpoints with dates in different formats * * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git diff --git a/samples/client/petstore/csharp/restsharp/net8/UseDateTimeForDate/src/Org.OpenAPITools/Client/ISynchronousClient.cs b/samples/client/petstore/csharp/restsharp/net8/UseDateTimeForDate/src/Org.OpenAPITools/Client/ISynchronousClient.cs index 965cec3b0432..a90592739d80 100644 --- a/samples/client/petstore/csharp/restsharp/net8/UseDateTimeForDate/src/Org.OpenAPITools/Client/ISynchronousClient.cs +++ b/samples/client/petstore/csharp/restsharp/net8/UseDateTimeForDate/src/Org.OpenAPITools/Client/ISynchronousClient.cs @@ -1,7 +1,7 @@ /* * OpenAPI Dates * - * Thic spec contains endpoints with dates in different formats + * This spec contains endpoints with dates in different formats * * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git diff --git a/samples/client/petstore/csharp/restsharp/net8/UseDateTimeForDate/src/Org.OpenAPITools/Client/Multimap.cs b/samples/client/petstore/csharp/restsharp/net8/UseDateTimeForDate/src/Org.OpenAPITools/Client/Multimap.cs index b3fdf6b71a30..00d33f7f419d 100644 --- a/samples/client/petstore/csharp/restsharp/net8/UseDateTimeForDate/src/Org.OpenAPITools/Client/Multimap.cs +++ b/samples/client/petstore/csharp/restsharp/net8/UseDateTimeForDate/src/Org.OpenAPITools/Client/Multimap.cs @@ -1,7 +1,7 @@ /* * OpenAPI Dates * - * Thic spec contains endpoints with dates in different formats + * This spec contains endpoints with dates in different formats * * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git diff --git a/samples/client/petstore/csharp/restsharp/net8/UseDateTimeForDate/src/Org.OpenAPITools/Client/OpenAPIDateConverter.cs b/samples/client/petstore/csharp/restsharp/net8/UseDateTimeForDate/src/Org.OpenAPITools/Client/OpenAPIDateConverter.cs index b56476476ac6..b25639aaff52 100644 --- a/samples/client/petstore/csharp/restsharp/net8/UseDateTimeForDate/src/Org.OpenAPITools/Client/OpenAPIDateConverter.cs +++ b/samples/client/petstore/csharp/restsharp/net8/UseDateTimeForDate/src/Org.OpenAPITools/Client/OpenAPIDateConverter.cs @@ -1,7 +1,7 @@ /* * OpenAPI Dates * - * Thic spec contains endpoints with dates in different formats + * This spec contains endpoints with dates in different formats * * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git diff --git a/samples/client/petstore/csharp/restsharp/net8/UseDateTimeForDate/src/Org.OpenAPITools/Client/RequestOptions.cs b/samples/client/petstore/csharp/restsharp/net8/UseDateTimeForDate/src/Org.OpenAPITools/Client/RequestOptions.cs index 2f65f902cff1..19a5063e5a86 100644 --- a/samples/client/petstore/csharp/restsharp/net8/UseDateTimeForDate/src/Org.OpenAPITools/Client/RequestOptions.cs +++ b/samples/client/petstore/csharp/restsharp/net8/UseDateTimeForDate/src/Org.OpenAPITools/Client/RequestOptions.cs @@ -1,7 +1,7 @@ /* * OpenAPI Dates * - * Thic spec contains endpoints with dates in different formats + * This spec contains endpoints with dates in different formats * * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git diff --git a/samples/client/petstore/csharp/restsharp/net8/UseDateTimeForDate/src/Org.OpenAPITools/Client/RetryConfiguration.cs b/samples/client/petstore/csharp/restsharp/net8/UseDateTimeForDate/src/Org.OpenAPITools/Client/RetryConfiguration.cs index ca42aee633b5..2e2a61c98a8f 100644 --- a/samples/client/petstore/csharp/restsharp/net8/UseDateTimeForDate/src/Org.OpenAPITools/Client/RetryConfiguration.cs +++ b/samples/client/petstore/csharp/restsharp/net8/UseDateTimeForDate/src/Org.OpenAPITools/Client/RetryConfiguration.cs @@ -1,7 +1,7 @@ /* * OpenAPI Dates * - * Thic spec contains endpoints with dates in different formats + * This spec contains endpoints with dates in different formats * * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git diff --git a/samples/client/petstore/csharp/restsharp/net8/UseDateTimeForDate/src/Org.OpenAPITools/Model/AbstractOpenAPISchema.cs b/samples/client/petstore/csharp/restsharp/net8/UseDateTimeForDate/src/Org.OpenAPITools/Model/AbstractOpenAPISchema.cs index 16a2db7a38aa..66bb9fd138cb 100644 --- a/samples/client/petstore/csharp/restsharp/net8/UseDateTimeForDate/src/Org.OpenAPITools/Model/AbstractOpenAPISchema.cs +++ b/samples/client/petstore/csharp/restsharp/net8/UseDateTimeForDate/src/Org.OpenAPITools/Model/AbstractOpenAPISchema.cs @@ -1,7 +1,7 @@ /* * OpenAPI Dates * - * Thic spec contains endpoints with dates in different formats + * This spec contains endpoints with dates in different formats * * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git diff --git a/samples/client/petstore/csharp/restsharp/net8/UseDateTimeForDate/src/Org.OpenAPITools/Model/NowGet200Response.cs b/samples/client/petstore/csharp/restsharp/net8/UseDateTimeForDate/src/Org.OpenAPITools/Model/NowGet200Response.cs index 84c9909059ab..d07604a434b2 100644 --- a/samples/client/petstore/csharp/restsharp/net8/UseDateTimeForDate/src/Org.OpenAPITools/Model/NowGet200Response.cs +++ b/samples/client/petstore/csharp/restsharp/net8/UseDateTimeForDate/src/Org.OpenAPITools/Model/NowGet200Response.cs @@ -1,7 +1,7 @@ /* * OpenAPI Dates * - * Thic spec contains endpoints with dates in different formats + * This spec contains endpoints with dates in different formats * * The version of the OpenAPI document: 1.0.0 * Generated by: https://github.com/openapitools/openapi-generator.git diff --git a/samples/client/petstore/gdscript/addons/gut/diff_tool.gd b/samples/client/petstore/gdscript/addons/gut/diff_tool.gd index bc33a9024c30..f8fa5eef3546 100644 --- a/samples/client/petstore/gdscript/addons/gut/diff_tool.gd +++ b/samples/client/petstore/gdscript/addons/gut/diff_tool.gd @@ -18,7 +18,7 @@ var _brackets = null var _valid = true var _desc_things = 'somethings' -# -------- comapre_result.gd "interface" --------------------- +# -------- compare_result.gd "interface" --------------------- func set_are_equal(val): _block_set('are_equal', val) @@ -52,7 +52,7 @@ func get_short_summary(): func get_brackets(): return _brackets -# -------- comapre_result.gd "interface" --------------------- +# -------- compare_result.gd "interface" --------------------- func _invalidate(): diff --git a/samples/client/petstore/gdscript/addons/gut/double_templates/function_template.txt b/samples/client/petstore/gdscript/addons/gut/double_templates/function_template.txt index a22ff063a34e..18964af9d3f8 100644 --- a/samples/client/petstore/gdscript/addons/gut/double_templates/function_template.txt +++ b/samples/client/petstore/gdscript/addons/gut/double_templates/function_template.txt @@ -1,4 +1,4 @@ -{func_decleration} +{func_declaration} __gutdbl.spy_on('{method_name}', {param_array}) if(__gutdbl.should_call_super('{method_name}', {param_array})): return {super_call} diff --git a/samples/client/petstore/gdscript/addons/gut/double_templates/init_template.txt b/samples/client/petstore/gdscript/addons/gut/double_templates/init_template.txt index 9b43474d0878..d6a267d19d86 100644 --- a/samples/client/petstore/gdscript/addons/gut/double_templates/init_template.txt +++ b/samples/client/petstore/gdscript/addons/gut/double_templates/init_template.txt @@ -1,4 +1,4 @@ -{func_decleration}: +{func_declaration}: super({super_params}) __gutdbl.spy_on('{method_name}', {param_array}) diff --git a/samples/client/petstore/gdscript/addons/gut/gui/RunResults.gd b/samples/client/petstore/gdscript/addons/gut/gui/RunResults.gd index 78d409b26eea..e14b7f2116da 100644 --- a/samples/client/petstore/gdscript/addons/gut/gui/RunResults.gd +++ b/samples/client/petstore/gdscript/addons/gut/gui/RunResults.gd @@ -89,7 +89,7 @@ func _open_script_in_editor(path, line_number): # starts at beginning of text edit and searches for each search term, moving # through the text as it goes; ensuring that, when done, it found the first -# occurance of the last srting that happend after the first occurance of +# occurrence of the last string that happened after the first occurrence of # each string before it. (Generic way of searching for a method name in an # inner class that may have be a duplicate of a method name in a different # inner class) diff --git a/samples/client/petstore/gdscript/addons/gut/gut.gd b/samples/client/petstore/gdscript/addons/gut/gut.gd index 379f35d3b533..e67348defff7 100644 --- a/samples/client/petstore/gdscript/addons/gut/gut.gd +++ b/samples/client/petstore/gdscript/addons/gut/gut.gd @@ -155,8 +155,8 @@ var junit_xml_timestamp = false : get: return _junit_xml_timestamp set(val): _junit_xml_timestamp = val -## The minimum amout of time GUT will wait before pausing for 1 frame to allow -## the screen to paint. GUT checkes after each test to see if enough time has +## The minimum amount of time GUT will wait before pausing for 1 frame to allow +## the screen to paint. GUT checks after each test to see if enough time has ## passed. var paint_after = .1: get: return paint_after @@ -173,7 +173,7 @@ var unit_test_name = _unit_test_name : # ########################### var _parameter_handler = null -# This is populated by test.gd each time a paramterized test is encountered +# This is populated by test.gd each time a parameterized test is encountered # for the first time. ## FOR INTERNAL USE ONLY var parameter_handler = _parameter_handler : @@ -184,7 +184,7 @@ var parameter_handler = _parameter_handler : var _lgr = _utils.get_logger() # Local reference for the common logger. -## FOR INERNAL USE ONLY +## FOR INTERNAL USE ONLY var logger = _lgr : get: return _lgr set(val): @@ -195,7 +195,7 @@ var _add_children_to = self # Sets the object that GUT will add test objects to as it creates them. The # default is self, but can be set to other objects so that GUT is not obscured # by the objects added during tests. -## FOR INERNAL USE ONLY +## FOR INTERNAL USE ONLY var add_children_to = self : get: return _add_children_to set(val): _add_children_to = val @@ -913,7 +913,7 @@ func _test_the_scripts(indexes=[]): _current_test.has_printed_name = false end_test.emit() - # After each test, check to see if we shoudl wait a frame to + # After each test, check to see if we should wait a frame to # paint based on how much time has elapsed since we last 'painted' if(paint_after > 0.0): var now = Time.get_ticks_msec() @@ -988,11 +988,11 @@ func _fail(text=''): # ------------------------------------------------------------------------------ -# Extracts the line number from curren stacktrace by matching the test case name +# Extracts the line number from current stacktrace by matching the test case name # ------------------------------------------------------------------------------ func _extract_line_number(current_test): var line_number = -1 - # if stack trace available than extraxt the test case line number + # if stack trace available than extract the test case line number var stackTrace = get_stack() if(stackTrace!=null): for index in stackTrace.size(): @@ -1034,7 +1034,7 @@ func _get_files(path, prefix, suffix): while(fs_item != ''): full_path = path.path_join(fs_item) - #file_exists returns fasle for directories + #file_exists returns false for directories if(d.file_exists(full_path)): if(fs_item.begins_with(prefix) and fs_item.ends_with(suffix)): files.append(full_path) @@ -1186,7 +1186,7 @@ func import_tests(path=_export_path): var result = _test_collector.import_tests(path) if(result): _lgr.info(_test_collector.to_s()) - _lgr.info("Importd from " + path) + _lgr.info("Imported from " + path) # ------------------------------------------------------------------------------ diff --git a/samples/client/petstore/gdscript/addons/gut/gut_to_move.gd b/samples/client/petstore/gdscript/addons/gut/gut_to_move.gd index 484168196d8a..2bbcb3f18917 100644 --- a/samples/client/petstore/gdscript/addons/gut/gut_to_move.gd +++ b/samples/client/petstore/gdscript/addons/gut/gut_to_move.gd @@ -1,4 +1,4 @@ -# Temporary base script for gut.gd to hold the things to be remvoed and added +# Temporary base script for gut.gd to hold the things to be removed and added # to some utility somewhere. extends Node var _utils = load('res://addons/gut/utils.gd').get_instance() @@ -21,7 +21,7 @@ func directory_delete_files(path): var full_path = '' while(thing != ''): full_path = path + "/" + thing - #file_exists returns fasle for directories + #file_exists returns false for directories if(d.file_exists(full_path)): d.remove(full_path) thing = d.get_next() diff --git a/samples/client/petstore/gdscript/addons/gut/input_sender.gd b/samples/client/petstore/gdscript/addons/gut/input_sender.gd index b224ab582bc6..7b3d359ff7a8 100644 --- a/samples/client/petstore/gdscript/addons/gut/input_sender.gd +++ b/samples/client/petstore/gdscript/addons/gut/input_sender.gd @@ -28,7 +28,7 @@ # ############################################################################## # Description # ----------- -# This class sends input to one or more recievers. The receivers' _input, +# This class sends input to one or more receivers. The receivers' _input, # _unhandled_input, and _gui_input are called sending InputEvent* events. # InputEvents can be sent via the helper methods or a custom made InputEvent # can be sent via send_event(...) @@ -99,7 +99,7 @@ class InputQueueItem: var _utils = load('res://addons/gut/utils.gd').get_instance() var InputFactory = load("res://addons/gut/input_factory.gd") -const INPUT_WARN = 'If using Input as a reciever it will not respond to *_down events until a *_up event is recieved. Call the appropriate *_up event or use hold_for(...) to automatically release after some duration.' +const INPUT_WARN = 'If using Input as a receiver it will not respond to *_down events until a *_up event is received. Call the appropriate *_up event or use hold_for(...) to automatically release after some duration.' var _lgr = _utils.get_logger() var _receivers = [] diff --git a/samples/client/petstore/gdscript/addons/gut/method_maker.gd b/samples/client/petstore/gdscript/addons/gut/method_maker.gd index 8b6197b86c57..50c1d1ecd5c7 100644 --- a/samples/client/petstore/gdscript/addons/gut/method_maker.gd +++ b/samples/client/petstore/gdscript/addons/gut/method_maker.gd @@ -186,7 +186,7 @@ func _get_spy_call_parameters_text(args): func _get_init_text(meta, args, method_params, param_array): var text = null - var decleration = str('func ', meta.name, '(', method_params, ')') + var declaration = str('func ', meta.name, '(', method_params, ')') var super_params = '' if(args.size() > 0): for i in range(args.size()): @@ -196,7 +196,7 @@ func _get_init_text(meta, args, method_params, param_array): text = _init_text.format({ - "func_decleration":decleration, + "func_declaration":declaration, "super_params":super_params, "param_array":param_array, "method_name":meta.name @@ -234,10 +234,10 @@ func get_function_text(meta, path=null, override_size=null, super_name=""): if(meta.name == '_init'): text = _get_init_text(meta, args, method_params, param_array) else: - var decleration = str('func ', meta.name, '(', method_params, '):') - # decleration = str('# ', meta, "\n", decleration) + var declaration = str('func ', meta.name, '(', method_params, '):') + # declaration = str('# ', meta, "\n", declaration) text = _func_text.format({ - "func_decleration":decleration, + "func_declaration":declaration, "method_name":meta.name, "param_array":param_array, "super_call":_get_super_call_text(meta.name, args, super_name) diff --git a/samples/client/petstore/gdscript/addons/gut/script_parser.gd b/samples/client/petstore/gdscript/addons/gut/script_parser.gd index 01bb6da922b9..563f96394f94 100644 --- a/samples/client/petstore/gdscript/addons/gut/script_parser.gd +++ b/samples/client/petstore/gdscript/addons/gut/script_parser.gd @@ -14,7 +14,7 @@ const BLACKLIST = [ '_physics_process', '_process', '_set', - '_to_string', # nonexistant function super._to_string + '_to_string', # nonexistent function super._to_string '_unhandled_input', '_unhandled_key_input', 'draw_mesh', # issue with one parameter, value is `Null((..), (..), (..))`` @@ -29,7 +29,7 @@ const BLACKLIST = [ # ------------------------------------------------------------------------------ -# Combins the meta for the method with additional information. +# Combines the meta for the method with additional information. # * flag for whether the method is local # * adds a 'default' property to all parameters that can be easily checked per # parameter diff --git a/samples/client/petstore/gdscript/addons/gut/strutils.gd b/samples/client/petstore/gdscript/addons/gut/strutils.gd index cda12d153e4f..2f8b9481f239 100644 --- a/samples/client/petstore/gdscript/addons/gut/strutils.gd +++ b/samples/client/petstore/gdscript/addons/gut/strutils.gd @@ -2,7 +2,7 @@ class_name GutStringUtils var _utils = load('res://addons/gut/utils.gd').get_instance() # Hash containing all the built in types in Godot. This provides an English -# name for the types that corosponds with the type constants defined in the +# name for the types that corresponds with the type constants defined in the # engine. var types = {} diff --git a/samples/client/petstore/gdscript/addons/gut/stub_params.gd b/samples/client/petstore/gdscript/addons/gut/stub_params.gd index 1f4450d369b1..5146db257a26 100644 --- a/samples/client/petstore/gdscript/addons/gut/stub_params.gd +++ b/samples/client/petstore/gdscript/addons/gut/stub_params.gd @@ -11,17 +11,17 @@ var call_super = false # the script, and not an overridden default value. var is_script_default = false -# -- Paramter Override -- +# -- Parameter Override -- # Parmater overrides are stored in here along with all the other stub info # so that you can chain stubbing parameter overrides along with all the # other stubbing. This adds some complexity to the logic that tries to # find the correct stub for a call by a double. Since an instance of this # class could be just a parameter override, or it could have been chained -# we have to have _paramter_override_only so that we know when to tell the +# we have to have _parameter_override_only so that we know when to tell the # difference. var parameter_count = -1 var parameter_defaults = null -# Anything that would make this stub not just an override of paramters +# Anything that would make this stub not just an override of parameters # must set this flag to false. This must be private bc the actual logic # to determine if this stub is only an override is more complicated. var _parameter_override_only = true diff --git a/samples/client/petstore/gdscript/addons/gut/stubber.gd b/samples/client/petstore/gdscript/addons/gut/stubber.gd index ec673835051d..e5454e7f51d5 100644 --- a/samples/client/petstore/gdscript/addons/gut/stubber.gd +++ b/samples/client/petstore/gdscript/addons/gut/stubber.gd @@ -1,5 +1,5 @@ # ------------- -# returns{} and parameters {} have the followin structure +# returns{} and parameters {} have the following structure # ------------- # { # inst_id_or_path1:{ @@ -21,8 +21,8 @@ func _init(): _class_db_name_hash = _make_crazy_dynamic_over_engineered_class_db_hash() # So, I couldn't figure out how to get to a reference for a GDNative Class -# using a string. ClassDB has all thier names...so I made a hash using those -# names and the classes. Then I dynmaically make a script that has that as +# using a string. ClassDB has all their names...so I made a hash using those +# names and the classes. Then I dynamically make a script that has that as # the source and grab the hash out of it and return it. Super Rube Golbergery, # but tons of fun. func _make_crazy_dynamic_over_engineered_class_db_hash(): @@ -104,7 +104,7 @@ func _find_stub(obj, method, parameters=null, find_overloads=false): to_return = param_match # We found a case where the parameters were not specified so return # parameters for that. Only do this if the null match is not *just* - # a paramerter override stub. + # a parameter override stub. elif(null_match != null): to_return = null_match diff --git a/samples/client/petstore/gdscript/addons/gut/test.gd b/samples/client/petstore/gdscript/addons/gut/test.gd index 1871cadcf62b..3237555f99d1 100644 --- a/samples/client/petstore/gdscript/addons/gut/test.gd +++ b/samples/client/petstore/gdscript/addons/gut/test.gd @@ -184,7 +184,7 @@ func _fail_if_parameters_not_array(parameters): var invalid = parameters != null and typeof(parameters) != TYPE_ARRAY if(invalid): _lgr.error('The "parameters" parameter must be an array of expected parameter values.') - _fail('Cannot compare paramter values because an array was not passed.') + _fail('Cannot compare parameter values because an array was not passed.') return invalid @@ -639,10 +639,10 @@ func assert_signal_emitted_with_parameters(object, signal_name, parameters, inde var disp = str('Expected object ', _str(object), ' to emit signal [', signal_name, '] with parameters ', parameters, ', got ') if(_can_make_signal_assertions(object, signal_name)): if(_signal_watcher.did_emit(object, signal_name)): - var parms_got = _signal_watcher.get_signal_parameters(object, signal_name, index) - var diff_result = _compare.deep(parameters, parms_got) + var params_got = _signal_watcher.get_signal_parameters(object, signal_name, index) + var diff_result = _compare.deep(parameters, params_got) if(diff_result.are_equal): - _pass(str(disp, parms_got)) + _pass(str(disp, params_got)) else: _fail(str('Expected object ', _str(object), ' to emit signal [', signal_name, '] with parameters ', diff_result.summarize())) else: @@ -683,10 +683,10 @@ func get_signal_emit_count(object, signal_name): return _signal_watcher.get_emit_count(object, signal_name) # ------------------------------------------------------------------------------ -# Get the parmaters of a fired signal. If the signal was not fired null is +# Get the parameters of a fired signal. If the signal was not fired null is # returned. You can specify an optional index (use get_signal_emit_count to # determine the number of times it was emitted). The default index is the -# latest time the signal was fired (size() -1 insetead of 0). The parameters +# latest time the signal was fired (size() -1 instead of 0). The parameters # returned are in an array. # ------------------------------------------------------------------------------ func get_signal_parameters(object, signal_name, index=-1): @@ -711,7 +711,7 @@ func get_call_parameters(object, method_name, index=-1): return to_return # ------------------------------------------------------------------------------ -# Returns the call count for a method with optional paramter matching. +# Returns the call count for a method with optional parameter matching. # ------------------------------------------------------------------------------ func get_call_count(object, method_name, parameters=null): return gut.get_spy().call_count(object, method_name, parameters) @@ -947,7 +947,7 @@ func assert_not_freed(obj, title): # ------------------------------------------------------------------------------ # Asserts that the current test has not introduced any new orphans. This only -# applies to the test code that preceedes a call to this method so it should be +# applies to the test code that precedes a call to this method so it should be # the last thing your test does. # ------------------------------------------------------------------------------ func assert_no_new_orphans(text=''): @@ -974,7 +974,7 @@ func _validate_singleton_name(singleton_name): _lgr.error("double_singleton requires a Godot singleton name, you passed " + _str(singleton_name)) is_valid = false # Sometimes they have underscores in front of them, sometimes they do not. - # The doubler is smart enought of ind the right thing, so this has to be + # The doubler is smart enough of ind the right thing, so this has to be # that smart as well. elif(!ClassDB.class_exists(singleton_name) and !ClassDB.class_exists('_' + singleton_name)): var txt = str("The singleton [", singleton_name, "] could not be found. ", @@ -1029,9 +1029,9 @@ func _warn_for_public_accessors(obj, property_name): _lgr.warn (str('Public accessors ', public_accessors, ' found for property ', property_name)) # ------------------------------------------------------------------------------ -# Assumes backing varible with be _. This will perform all the +# Assumes backing variable with be _. This will perform all the # asserts of assert_property. Then this will set the value through the setter -# and check the backing variable value. It will then reset throught the setter +# and check the backing variable value. It will then reset through the setter # and set the backing variable and check the getter. # ------------------------------------------------------------------------------ func assert_property_with_backing_variable(obj, property_name, default_value, new_value, backed_by_name=null): @@ -1140,7 +1140,7 @@ func yield_to(obj, signal_name, max_wait, msg=''): # ------------------------------------------------------------------------------ func wait_frames(frames, msg=''): if(frames <= 0): - var text = str('yeild_frames: frames must be > 0, you passed ', frames, '. 0 frames waited.') + var text = str('yield_frames: frames must be > 0, you passed ', frames, '. 0 frames waited.') _lgr.error(text) frames = 1 @@ -1225,7 +1225,7 @@ func _smart_double(thing, double_strat, partial): return to_return # ------------------------------------------------------------------------------ -# This is here to aid in the transition to the new doubling sytnax. Once this +# This is here to aid in the transition to the new doubling syntax. Once this # has been established it could be removed. We must keep the is_instance check # going forward though. # ------------------------------------------------------------------------------ @@ -1493,8 +1493,8 @@ func fail_test(text): _fail(text) # ------------------------------------------------------------------------------ -# Peforms a deep compare on both values, a CompareResult instnace is returned. -# The optional max_differences paramter sets the max_differences to be displayed. +# Performs a deep compare on both values, a CompareResult instance is returned. +# The optional max_differences parameter sets the max_differences to be displayed. # ------------------------------------------------------------------------------ func compare_deep(v1, v2, max_differences=null): var result = _compare.deep(v1, v2) diff --git a/samples/client/petstore/gdscript/addons/gut/test_collector.gd b/samples/client/petstore/gdscript/addons/gut/test_collector.gd index ad75944cb49c..8913c1f67358 100644 --- a/samples/client/petstore/gdscript/addons/gut/test_collector.gd +++ b/samples/client/petstore/gdscript/addons/gut/test_collector.gd @@ -62,7 +62,7 @@ class TestScript: var to_return = load(path) if(inner_class_name != null and inner_class_name != ''): - # If we wanted to do inner classes in inner classses + # If we wanted to do inner classes in inner classes # then this would have to become some kind of loop or recursive # call to go all the way down the chain or this class would # have to change to hold onto the loaded class instead of diff --git a/samples/client/petstore/gdscript/addons/gut/utils.gd b/samples/client/petstore/gdscript/addons/gut/utils.gd index 161cc66006bc..2ebe2503518b 100644 --- a/samples/client/petstore/gdscript/addons/gut/utils.gd +++ b/samples/client/petstore/gdscript/addons/gut/utils.gd @@ -28,7 +28,7 @@ # ############################################################################## # Description # ----------- -# This class is a PSUEDO SINGLETON. You should not make instances of it but use +# This class is a PSEUDO SINGLETON. You should not make instances of it but use # the get_instance static method. # ############################################################################## extends Node @@ -243,7 +243,7 @@ func is_freed(obj): # ------------------------------------------------------------------------------ -# Pretty self explanitory. +# Pretty self explanatory. # ------------------------------------------------------------------------------ func is_not_freed(obj): return !is_freed(obj) diff --git a/samples/client/petstore/haskell-http-client/docs/linuwial.css b/samples/client/petstore/haskell-http-client/docs/linuwial.css index 4164b849fb85..a001d1ce353b 100644 --- a/samples/client/petstore/haskell-http-client/docs/linuwial.css +++ b/samples/client/petstore/haskell-http-client/docs/linuwial.css @@ -759,7 +759,7 @@ table.info { /* @end */ -/* @group Auxillary Pages */ +/* @group Auxiliary Pages */ .extension-list { diff --git a/samples/client/petstore/haskell-http-client/example-app/Main.hs b/samples/client/petstore/haskell-http-client/example-app/Main.hs index ba3fccd6d1c2..5dca8edf9dfb 100644 --- a/samples/client/petstore/haskell-http-client/example-app/Main.hs +++ b/samples/client/petstore/haskell-http-client/example-app/Main.hs @@ -123,7 +123,7 @@ runPet mgr config = do _ <- S.dispatchLbs mgr config updatePetRequest -- required parameters are included as function arguments, optional parameters are included with applyOptionalParam - -- inspect the UpdatePetWithForm type to see typeclasses indicating optional paramteters (:i S.UpdatePetWithForm) + -- inspect the UpdatePetWithForm type to see typeclasses indicating optional parameters (:i S.UpdatePetWithForm) -- instance S.HasOptionalParam S.UpdatePetWithForm S.Name -- -- Defined in ‘OpenAPIPetstore.API’ -- instance S.HasOptionalParam S.UpdatePetWithForm S.Status diff --git a/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/ApiClientTest.java b/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/ApiClientTest.java index d83de070118e..ad48755b547a 100644 --- a/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/ApiClientTest.java +++ b/samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/ApiClientTest.java @@ -104,7 +104,7 @@ public void testSerializeToString() throws Exception { String result = "{\"id\":4321,\"category\":{\"id\":4321,\"name\":\"jersey2 java8 category\"},\"name\":\"jersey2 java8 pet\",\"photoUrls\":[\"A\",\"B\",\"C\"],\"tags\":[{\"id\":4321,\"name\":\"jersey2 java8 tag\"}],\"status\":\"available\"}"; assertEquals(result, apiClient.serializeToString(pet, null, "application/json", false)); - // nulllable and there should be no diffencne as the payload is not null + // nullable and there should be no difference as the payload is not null assertEquals(result, apiClient.serializeToString(pet, null, "application/json", true)); // non-nullable null object should be converted to "" (empty body) diff --git a/samples/client/petstore/java/okhttp-gson-3.1/api/openapi.yaml b/samples/client/petstore/java/okhttp-gson-3.1/api/openapi.yaml index 600ba1a18fb9..16f57e8b7187 100644 --- a/samples/client/petstore/java/okhttp-gson-3.1/api/openapi.yaml +++ b/samples/client/petstore/java/okhttp-gson-3.1/api/openapi.yaml @@ -1060,7 +1060,7 @@ components: type: integer description: string or int OneOfStringOrInt: - description: string or int (onefOf) + description: string or int (oneOf) oneOf: - type: string - type: integer diff --git a/samples/client/petstore/java/okhttp-gson-3.1/docs/OneOfStringOrInt.md b/samples/client/petstore/java/okhttp-gson-3.1/docs/OneOfStringOrInt.md index f8bd666c0fe0..b55759017ae3 100644 --- a/samples/client/petstore/java/okhttp-gson-3.1/docs/OneOfStringOrInt.md +++ b/samples/client/petstore/java/okhttp-gson-3.1/docs/OneOfStringOrInt.md @@ -2,7 +2,7 @@ # OneOfStringOrInt -string or int (onefOf) +string or int (oneOf) ## Properties diff --git a/samples/client/petstore/java/okhttp-gson/api/openapi.yaml b/samples/client/petstore/java/okhttp-gson/api/openapi.yaml index c20e25778928..f1c177cca40c 100644 --- a/samples/client/petstore/java/okhttp-gson/api/openapi.yaml +++ b/samples/client/petstore/java/okhttp-gson/api/openapi.yaml @@ -2768,7 +2768,7 @@ components: type: string type: object x-internal: false - InteralOnly: + InternalOnly: properties: type: type: string diff --git a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/JSONTest.java b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/JSONTest.java index 765e7b71c77a..a73b1b29453c 100644 --- a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/JSONTest.java +++ b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/JSONTest.java @@ -313,7 +313,7 @@ public void testUnknownFields() { }); assertTrue(exception7.getMessage().contains("The field `unknown_field` in the JSON string is not defined in the `Tag` properties. JSON: {\"unknown_field\":543,\"id\":\"tag 123\"}")); - // test Pet with invalid tags (missing reqired) + // test Pet with invalid tags (missing required) String json8 = "{\"id\": 5847, \"name\":\"pet test 1\", \"photoUrls\": [\"https://a.com\", \"https://b.com\"]}"; Exception exception8 = assertThrows(java.lang.IllegalArgumentException.class, () -> { PetWithRequiredTags t8 = gson.fromJson(json8, PetWithRequiredTags.class); diff --git a/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/api/PetApiTest.java b/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/api/PetApiTest.java index 494c91ba315f..144427af3a52 100644 --- a/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/api/PetApiTest.java +++ b/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/api/PetApiTest.java @@ -173,7 +173,7 @@ public void updatePetWithFormTest() throws ApiException { @Test public void uploadFileTest() throws Exception { Long petId = 1L; - String additionalMetadata = "additoinal data"; + String additionalMetadata = "additional data"; File file = new File("test.txt"); if(!file.exists()){ file.createNewFile(); diff --git a/samples/client/petstore/php/psr-18/lib/ApiException.php b/samples/client/petstore/php/psr-18/lib/ApiException.php index fcff01db9176..c4c3ee0d1aae 100644 --- a/samples/client/petstore/php/psr-18/lib/ApiException.php +++ b/samples/client/petstore/php/psr-18/lib/ApiException.php @@ -99,7 +99,7 @@ public function getResponseBody() } /** - * Sets the deseralized response object (during deserialization) + * Sets the deserialized response object (during deserialization) * * @param mixed $obj Deserialized response object * @@ -111,7 +111,7 @@ public function setResponseObject($obj) } /** - * Gets the deseralized response object (during deserialization) + * Gets the deserialized response object (during deserialization) * * @return mixed the deserialized response object */ diff --git a/samples/client/petstore/powershell/src/PSPetstore/Private/PSHttpSignatureAuth.ps1 b/samples/client/petstore/powershell/src/PSPetstore/Private/PSHttpSignatureAuth.ps1 index 1fbc24685180..ce6f4c8129bd 100644 --- a/samples/client/petstore/powershell/src/PSPetstore/Private/PSHttpSignatureAuth.ps1 +++ b/samples/client/petstore/powershell/src/PSPetstore/Private/PSHttpSignatureAuth.ps1 @@ -181,8 +181,8 @@ function Get-PSRSASignature { $ecKeyBase64String = $keyStr.Replace($ecKeyHeader, "").Replace($ecKeyFooter, "").Trim() $keyBytes = [System.Convert]::FromBase64String($ecKeyBase64String) $rsa = [System.Security.Cryptography.RSA]::Create() - [int]$bytCount = 0 - $rsa.ImportRSAPrivateKey($keyBytes, [ref] $bytCount) + [int]$byteCount = 0 + $rsa.ImportRSAPrivateKey($keyBytes, [ref] $byteCount) if ($SigningAlgorithm -eq "RSASSA-PSS") { $signedBytes = $rsa.SignHash($DataToSign, $hashAlgo, [System.Security.Cryptography.RSASignaturePadding]::Pss) @@ -253,11 +253,11 @@ function Get-PSECDSASignature { $keyBytes = [System.Convert]::FromBase64String($ecKeyBase64String) $ecdsa = [System.Security.Cryptography.ECDsa]::Create() - [int]$bytCount =0 + [int]$byteCount =0 if (![string]::IsNullOrEmpty($KeyPassPhrase)) { - $ecdsa.ImportEncryptedPkcs8PrivateKey($KeyPassPhrase,$keyBytes,[ref]$bytCount) + $ecdsa.ImportEncryptedPkcs8PrivateKey($KeyPassPhrase,$keyBytes,[ref]$byteCount) } else { - $ecdsa.ImportPkcs8PrivateKey($keyBytes,[ref]$bytCount) + $ecdsa.ImportPkcs8PrivateKey($keyBytes,[ref]$byteCount) } $signedBytes = $ecdsa.SignHash($DataToSign) diff --git a/samples/client/petstore/ruby-httpx/.openapi-generator/FILES b/samples/client/petstore/ruby-httpx/.openapi-generator/FILES index 937697a733e7..fa5618a9886b 100644 --- a/samples/client/petstore/ruby-httpx/.openapi-generator/FILES +++ b/samples/client/petstore/ruby-httpx/.openapi-generator/FILES @@ -37,7 +37,7 @@ docs/FormatTest.md docs/HasOnlyReadOnly.md docs/HealthCheckResult.md docs/List.md -docs/MamalWithEnum.md +docs/MammalWithEnum.md docs/Mammal.md docs/MammalAnyof.md docs/MammalWithoutDiscriminator.md @@ -108,7 +108,7 @@ lib/petstore/models/format_test.rb lib/petstore/models/has_only_read_only.rb lib/petstore/models/health_check_result.rb lib/petstore/models/list.rb -lib/petstore/models/mamal_with_enum.rb +lib/petstore/models/mammal_with_enum.rb lib/petstore/models/mammal.rb lib/petstore/models/mammal_anyof.rb lib/petstore/models/mammal_without_discriminator.rb diff --git a/samples/client/petstore/ruby-httpx/README.md b/samples/client/petstore/ruby-httpx/README.md index aea21827e1a8..c8a68a1879d8 100644 --- a/samples/client/petstore/ruby-httpx/README.md +++ b/samples/client/petstore/ruby-httpx/README.md @@ -153,7 +153,7 @@ Class | Method | HTTP request | Description - [Petstore::HasOnlyReadOnly](docs/HasOnlyReadOnly.md) - [Petstore::HealthCheckResult](docs/HealthCheckResult.md) - [Petstore::List](docs/List.md) - - [Petstore::MamalWithEnum](docs/MamalWithEnum.md) + - [Petstore::MammalWithEnum](docs/MammalWithEnum.md) - [Petstore::Mammal](docs/Mammal.md) - [Petstore::MammalAnyof](docs/MammalAnyof.md) - [Petstore::MammalWithoutDiscriminator](docs/MammalWithoutDiscriminator.md) diff --git a/samples/client/petstore/ruby-httpx/docs/MamalWithEnum.md b/samples/client/petstore/ruby-httpx/docs/MammalWithEnum.md similarity index 78% rename from samples/client/petstore/ruby-httpx/docs/MamalWithEnum.md rename to samples/client/petstore/ruby-httpx/docs/MammalWithEnum.md index 37b9252a2c82..28f208da6f99 100644 --- a/samples/client/petstore/ruby-httpx/docs/MamalWithEnum.md +++ b/samples/client/petstore/ruby-httpx/docs/MammalWithEnum.md @@ -1,4 +1,4 @@ -# Petstore::MamalWithEnum +# Petstore::MammalWithEnum ## Class instance methods @@ -11,7 +11,7 @@ Returns the list of classes defined in oneOf. ```ruby require 'petstore' -Petstore::MamalWithEnum.openapi_one_of +Petstore::MammalWithEnum.openapi_one_of # => # [ # :'Cow' @@ -27,10 +27,10 @@ Find the appropriate object from the `openapi_one_of` list and casts the data in ```ruby require 'petstore' -Petstore::MamalWithEnum.build(data) +Petstore::MammalWithEnum.build(data) # => # -Petstore::MamalWithEnum.build(data_that_doesnt_match) +Petstore::MammalWithEnum.build(data_that_doesnt_match) # => nil ``` diff --git a/samples/client/petstore/ruby-httpx/lib/petstore.rb b/samples/client/petstore/ruby-httpx/lib/petstore.rb index 64514546880f..f6b19e92c718 100644 --- a/samples/client/petstore/ruby-httpx/lib/petstore.rb +++ b/samples/client/petstore/ruby-httpx/lib/petstore.rb @@ -42,7 +42,7 @@ require 'petstore/models/has_only_read_only' require 'petstore/models/health_check_result' require 'petstore/models/list' -require 'petstore/models/mamal_with_enum' +require 'petstore/models/mammal_with_enum' require 'petstore/models/mammal' require 'petstore/models/mammal_anyof' require 'petstore/models/mammal_without_discriminator' diff --git a/samples/client/petstore/ruby-httpx/lib/petstore/models/mamal_with_enum.rb b/samples/client/petstore/ruby-httpx/lib/petstore/models/mammal_with_enum.rb similarity index 99% rename from samples/client/petstore/ruby-httpx/lib/petstore/models/mamal_with_enum.rb rename to samples/client/petstore/ruby-httpx/lib/petstore/models/mammal_with_enum.rb index 1f53e0c30860..d95e2d080672 100644 --- a/samples/client/petstore/ruby-httpx/lib/petstore/models/mamal_with_enum.rb +++ b/samples/client/petstore/ruby-httpx/lib/petstore/models/mammal_with_enum.rb @@ -14,7 +14,7 @@ require 'time' module Petstore - module MamalWithEnum + module MammalWithEnum class << self # List of class defined in oneOf (OpenAPI v3) def openapi_one_of diff --git a/samples/client/petstore/ruby-httpx/spec/models/mamal_with_enum_spec.rb b/samples/client/petstore/ruby-httpx/spec/models/mammal_with_enum_spec.rb similarity index 91% rename from samples/client/petstore/ruby-httpx/spec/models/mamal_with_enum_spec.rb rename to samples/client/petstore/ruby-httpx/spec/models/mammal_with_enum_spec.rb index 5622e5ed8622..54029e2a2b9d 100644 --- a/samples/client/petstore/ruby-httpx/spec/models/mamal_with_enum_spec.rb +++ b/samples/client/petstore/ruby-httpx/spec/models/mammal_with_enum_spec.rb @@ -14,10 +14,10 @@ require 'json' require 'date' -# Unit tests for Petstore::MamalWithEnum +# Unit tests for Petstore::MammalWithEnum # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate -describe Petstore::MamalWithEnum do +describe Petstore::MammalWithEnum do describe '.openapi_one_of' do it 'lists the items referenced in the oneOf array' do expect(described_class.openapi_one_of).to_not be_empty diff --git a/samples/client/petstore/ruby/.openapi-generator/FILES b/samples/client/petstore/ruby/.openapi-generator/FILES index 937697a733e7..fa5618a9886b 100644 --- a/samples/client/petstore/ruby/.openapi-generator/FILES +++ b/samples/client/petstore/ruby/.openapi-generator/FILES @@ -37,7 +37,7 @@ docs/FormatTest.md docs/HasOnlyReadOnly.md docs/HealthCheckResult.md docs/List.md -docs/MamalWithEnum.md +docs/MammalWithEnum.md docs/Mammal.md docs/MammalAnyof.md docs/MammalWithoutDiscriminator.md @@ -108,7 +108,7 @@ lib/petstore/models/format_test.rb lib/petstore/models/has_only_read_only.rb lib/petstore/models/health_check_result.rb lib/petstore/models/list.rb -lib/petstore/models/mamal_with_enum.rb +lib/petstore/models/mammal_with_enum.rb lib/petstore/models/mammal.rb lib/petstore/models/mammal_anyof.rb lib/petstore/models/mammal_without_discriminator.rb diff --git a/samples/client/petstore/ruby/README.md b/samples/client/petstore/ruby/README.md index aea21827e1a8..c8a68a1879d8 100644 --- a/samples/client/petstore/ruby/README.md +++ b/samples/client/petstore/ruby/README.md @@ -153,7 +153,7 @@ Class | Method | HTTP request | Description - [Petstore::HasOnlyReadOnly](docs/HasOnlyReadOnly.md) - [Petstore::HealthCheckResult](docs/HealthCheckResult.md) - [Petstore::List](docs/List.md) - - [Petstore::MamalWithEnum](docs/MamalWithEnum.md) + - [Petstore::MammalWithEnum](docs/MammalWithEnum.md) - [Petstore::Mammal](docs/Mammal.md) - [Petstore::MammalAnyof](docs/MammalAnyof.md) - [Petstore::MammalWithoutDiscriminator](docs/MammalWithoutDiscriminator.md) diff --git a/samples/client/petstore/ruby/docs/MamalWithEnum.md b/samples/client/petstore/ruby/docs/MammalWithEnum.md similarity index 78% rename from samples/client/petstore/ruby/docs/MamalWithEnum.md rename to samples/client/petstore/ruby/docs/MammalWithEnum.md index 37b9252a2c82..28f208da6f99 100644 --- a/samples/client/petstore/ruby/docs/MamalWithEnum.md +++ b/samples/client/petstore/ruby/docs/MammalWithEnum.md @@ -1,4 +1,4 @@ -# Petstore::MamalWithEnum +# Petstore::MammalWithEnum ## Class instance methods @@ -11,7 +11,7 @@ Returns the list of classes defined in oneOf. ```ruby require 'petstore' -Petstore::MamalWithEnum.openapi_one_of +Petstore::MammalWithEnum.openapi_one_of # => # [ # :'Cow' @@ -27,10 +27,10 @@ Find the appropriate object from the `openapi_one_of` list and casts the data in ```ruby require 'petstore' -Petstore::MamalWithEnum.build(data) +Petstore::MammalWithEnum.build(data) # => # -Petstore::MamalWithEnum.build(data_that_doesnt_match) +Petstore::MammalWithEnum.build(data_that_doesnt_match) # => nil ``` diff --git a/samples/client/petstore/ruby/lib/petstore.rb b/samples/client/petstore/ruby/lib/petstore.rb index 64514546880f..f6b19e92c718 100644 --- a/samples/client/petstore/ruby/lib/petstore.rb +++ b/samples/client/petstore/ruby/lib/petstore.rb @@ -42,7 +42,7 @@ require 'petstore/models/has_only_read_only' require 'petstore/models/health_check_result' require 'petstore/models/list' -require 'petstore/models/mamal_with_enum' +require 'petstore/models/mammal_with_enum' require 'petstore/models/mammal' require 'petstore/models/mammal_anyof' require 'petstore/models/mammal_without_discriminator' diff --git a/samples/client/petstore/ruby/lib/petstore/models/mamal_with_enum.rb b/samples/client/petstore/ruby/lib/petstore/models/mammal_with_enum.rb similarity index 99% rename from samples/client/petstore/ruby/lib/petstore/models/mamal_with_enum.rb rename to samples/client/petstore/ruby/lib/petstore/models/mammal_with_enum.rb index 1f53e0c30860..d95e2d080672 100644 --- a/samples/client/petstore/ruby/lib/petstore/models/mamal_with_enum.rb +++ b/samples/client/petstore/ruby/lib/petstore/models/mammal_with_enum.rb @@ -14,7 +14,7 @@ require 'time' module Petstore - module MamalWithEnum + module MammalWithEnum class << self # List of class defined in oneOf (OpenAPI v3) def openapi_one_of diff --git a/samples/client/petstore/ruby/spec/models/mamal_with_enum_spec.rb b/samples/client/petstore/ruby/spec/models/mammal_with_enum_spec.rb similarity index 92% rename from samples/client/petstore/ruby/spec/models/mamal_with_enum_spec.rb rename to samples/client/petstore/ruby/spec/models/mammal_with_enum_spec.rb index e3c1f1255c1a..1f63000ada27 100644 --- a/samples/client/petstore/ruby/spec/models/mamal_with_enum_spec.rb +++ b/samples/client/petstore/ruby/spec/models/mammal_with_enum_spec.rb @@ -14,10 +14,10 @@ require 'json' require 'date' -# Unit tests for Petstore::MamalWithEnum +# Unit tests for Petstore::MammalWithEnum # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate -describe Petstore::MamalWithEnum do +describe Petstore::MammalWithEnum do describe '.openapi_one_of' do it 'lists the items referenced in the oneOf array' do expect(described_class.openapi_one_of).to_not be_empty diff --git a/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Validation.swift b/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Validation.swift index 6a0d4c9da1ab..3bf4ec03fea4 100644 --- a/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Validation.swift +++ b/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/Validation.swift @@ -77,11 +77,11 @@ public struct Validator { /// - Throws: `ValidationError` if the numeric is invalid against the rule. public static func validate(_ numeric: T, against rule: NumericRule) throws -> T { var error = ValidationError(kinds: []) - if let minium = rule.minimum { - if !rule.exclusiveMinimum, minium > numeric { + if let minimum = rule.minimum { + if !rule.exclusiveMinimum, minimum > numeric { error.kinds.insert(.minimum) } - if rule.exclusiveMinimum, minium >= numeric { + if rule.exclusiveMinimum, minimum >= numeric { error.kinds.insert(.minimum) } } @@ -109,11 +109,11 @@ public struct Validator { /// - Throws: `ValidationError` if the numeric is invalid against the rule. public static func validate(_ numeric: T, against rule: NumericRule) throws -> T { var error = ValidationError(kinds: []) - if let minium = rule.minimum { - if !rule.exclusiveMinimum, minium > numeric { + if let minimum = rule.minimum { + if !rule.exclusiveMinimum, minimum > numeric { error.kinds.insert(.minimum) } - if rule.exclusiveMinimum, minium >= numeric { + if rule.exclusiveMinimum, minimum >= numeric { error.kinds.insert(.minimum) } } diff --git a/samples/client/petstore/swift5/asyncAwaitLibrary/PetstoreClient/Classes/OpenAPIs/Validation.swift b/samples/client/petstore/swift5/asyncAwaitLibrary/PetstoreClient/Classes/OpenAPIs/Validation.swift index 6a0d4c9da1ab..3bf4ec03fea4 100644 --- a/samples/client/petstore/swift5/asyncAwaitLibrary/PetstoreClient/Classes/OpenAPIs/Validation.swift +++ b/samples/client/petstore/swift5/asyncAwaitLibrary/PetstoreClient/Classes/OpenAPIs/Validation.swift @@ -77,11 +77,11 @@ public struct Validator { /// - Throws: `ValidationError` if the numeric is invalid against the rule. public static func validate(_ numeric: T, against rule: NumericRule) throws -> T { var error = ValidationError(kinds: []) - if let minium = rule.minimum { - if !rule.exclusiveMinimum, minium > numeric { + if let minimum = rule.minimum { + if !rule.exclusiveMinimum, minimum > numeric { error.kinds.insert(.minimum) } - if rule.exclusiveMinimum, minium >= numeric { + if rule.exclusiveMinimum, minimum >= numeric { error.kinds.insert(.minimum) } } @@ -109,11 +109,11 @@ public struct Validator { /// - Throws: `ValidationError` if the numeric is invalid against the rule. public static func validate(_ numeric: T, against rule: NumericRule) throws -> T { var error = ValidationError(kinds: []) - if let minium = rule.minimum { - if !rule.exclusiveMinimum, minium > numeric { + if let minimum = rule.minimum { + if !rule.exclusiveMinimum, minimum > numeric { error.kinds.insert(.minimum) } - if rule.exclusiveMinimum, minium >= numeric { + if rule.exclusiveMinimum, minimum >= numeric { error.kinds.insert(.minimum) } } diff --git a/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Validation.swift b/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Validation.swift index 6a0d4c9da1ab..3bf4ec03fea4 100644 --- a/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Validation.swift +++ b/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/Validation.swift @@ -77,11 +77,11 @@ public struct Validator { /// - Throws: `ValidationError` if the numeric is invalid against the rule. public static func validate(_ numeric: T, against rule: NumericRule) throws -> T { var error = ValidationError(kinds: []) - if let minium = rule.minimum { - if !rule.exclusiveMinimum, minium > numeric { + if let minimum = rule.minimum { + if !rule.exclusiveMinimum, minimum > numeric { error.kinds.insert(.minimum) } - if rule.exclusiveMinimum, minium >= numeric { + if rule.exclusiveMinimum, minimum >= numeric { error.kinds.insert(.minimum) } } @@ -109,11 +109,11 @@ public struct Validator { /// - Throws: `ValidationError` if the numeric is invalid against the rule. public static func validate(_ numeric: T, against rule: NumericRule) throws -> T { var error = ValidationError(kinds: []) - if let minium = rule.minimum { - if !rule.exclusiveMinimum, minium > numeric { + if let minimum = rule.minimum { + if !rule.exclusiveMinimum, minimum > numeric { error.kinds.insert(.minimum) } - if rule.exclusiveMinimum, minium >= numeric { + if rule.exclusiveMinimum, minimum >= numeric { error.kinds.insert(.minimum) } } diff --git a/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Validation.swift b/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Validation.swift index 6a0d4c9da1ab..3bf4ec03fea4 100644 --- a/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Validation.swift +++ b/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/Validation.swift @@ -77,11 +77,11 @@ public struct Validator { /// - Throws: `ValidationError` if the numeric is invalid against the rule. public static func validate(_ numeric: T, against rule: NumericRule) throws -> T { var error = ValidationError(kinds: []) - if let minium = rule.minimum { - if !rule.exclusiveMinimum, minium > numeric { + if let minimum = rule.minimum { + if !rule.exclusiveMinimum, minimum > numeric { error.kinds.insert(.minimum) } - if rule.exclusiveMinimum, minium >= numeric { + if rule.exclusiveMinimum, minimum >= numeric { error.kinds.insert(.minimum) } } @@ -109,11 +109,11 @@ public struct Validator { /// - Throws: `ValidationError` if the numeric is invalid against the rule. public static func validate(_ numeric: T, against rule: NumericRule) throws -> T { var error = ValidationError(kinds: []) - if let minium = rule.minimum { - if !rule.exclusiveMinimum, minium > numeric { + if let minimum = rule.minimum { + if !rule.exclusiveMinimum, minimum > numeric { error.kinds.insert(.minimum) } - if rule.exclusiveMinimum, minium >= numeric { + if rule.exclusiveMinimum, minimum >= numeric { error.kinds.insert(.minimum) } } diff --git a/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Validation.swift b/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Validation.swift index 6a0d4c9da1ab..3bf4ec03fea4 100644 --- a/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Validation.swift +++ b/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/Validation.swift @@ -77,11 +77,11 @@ public struct Validator { /// - Throws: `ValidationError` if the numeric is invalid against the rule. public static func validate(_ numeric: T, against rule: NumericRule) throws -> T { var error = ValidationError(kinds: []) - if let minium = rule.minimum { - if !rule.exclusiveMinimum, minium > numeric { + if let minimum = rule.minimum { + if !rule.exclusiveMinimum, minimum > numeric { error.kinds.insert(.minimum) } - if rule.exclusiveMinimum, minium >= numeric { + if rule.exclusiveMinimum, minimum >= numeric { error.kinds.insert(.minimum) } } @@ -109,11 +109,11 @@ public struct Validator { /// - Throws: `ValidationError` if the numeric is invalid against the rule. public static func validate(_ numeric: T, against rule: NumericRule) throws -> T { var error = ValidationError(kinds: []) - if let minium = rule.minimum { - if !rule.exclusiveMinimum, minium > numeric { + if let minimum = rule.minimum { + if !rule.exclusiveMinimum, minimum > numeric { error.kinds.insert(.minimum) } - if rule.exclusiveMinimum, minium >= numeric { + if rule.exclusiveMinimum, minimum >= numeric { error.kinds.insert(.minimum) } } diff --git a/samples/client/petstore/swift5/oneOf/PetstoreClient/Classes/OpenAPIs/Validation.swift b/samples/client/petstore/swift5/oneOf/PetstoreClient/Classes/OpenAPIs/Validation.swift index 6a0d4c9da1ab..3bf4ec03fea4 100644 --- a/samples/client/petstore/swift5/oneOf/PetstoreClient/Classes/OpenAPIs/Validation.swift +++ b/samples/client/petstore/swift5/oneOf/PetstoreClient/Classes/OpenAPIs/Validation.swift @@ -77,11 +77,11 @@ public struct Validator { /// - Throws: `ValidationError` if the numeric is invalid against the rule. public static func validate(_ numeric: T, against rule: NumericRule) throws -> T { var error = ValidationError(kinds: []) - if let minium = rule.minimum { - if !rule.exclusiveMinimum, minium > numeric { + if let minimum = rule.minimum { + if !rule.exclusiveMinimum, minimum > numeric { error.kinds.insert(.minimum) } - if rule.exclusiveMinimum, minium >= numeric { + if rule.exclusiveMinimum, minimum >= numeric { error.kinds.insert(.minimum) } } @@ -109,11 +109,11 @@ public struct Validator { /// - Throws: `ValidationError` if the numeric is invalid against the rule. public static func validate(_ numeric: T, against rule: NumericRule) throws -> T { var error = ValidationError(kinds: []) - if let minium = rule.minimum { - if !rule.exclusiveMinimum, minium > numeric { + if let minimum = rule.minimum { + if !rule.exclusiveMinimum, minimum > numeric { error.kinds.insert(.minimum) } - if rule.exclusiveMinimum, minium >= numeric { + if rule.exclusiveMinimum, minimum >= numeric { error.kinds.insert(.minimum) } } diff --git a/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Validation.swift b/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Validation.swift index 6a0d4c9da1ab..3bf4ec03fea4 100644 --- a/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Validation.swift +++ b/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Validation.swift @@ -77,11 +77,11 @@ public struct Validator { /// - Throws: `ValidationError` if the numeric is invalid against the rule. public static func validate(_ numeric: T, against rule: NumericRule) throws -> T { var error = ValidationError(kinds: []) - if let minium = rule.minimum { - if !rule.exclusiveMinimum, minium > numeric { + if let minimum = rule.minimum { + if !rule.exclusiveMinimum, minimum > numeric { error.kinds.insert(.minimum) } - if rule.exclusiveMinimum, minium >= numeric { + if rule.exclusiveMinimum, minimum >= numeric { error.kinds.insert(.minimum) } } @@ -109,11 +109,11 @@ public struct Validator { /// - Throws: `ValidationError` if the numeric is invalid against the rule. public static func validate(_ numeric: T, against rule: NumericRule) throws -> T { var error = ValidationError(kinds: []) - if let minium = rule.minimum { - if !rule.exclusiveMinimum, minium > numeric { + if let minimum = rule.minimum { + if !rule.exclusiveMinimum, minimum > numeric { error.kinds.insert(.minimum) } - if rule.exclusiveMinimum, minium >= numeric { + if rule.exclusiveMinimum, minimum >= numeric { error.kinds.insert(.minimum) } } diff --git a/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Validation.swift b/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Validation.swift index ced1069dd454..7591b5218353 100644 --- a/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Validation.swift +++ b/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Validation.swift @@ -77,11 +77,11 @@ internal struct Validator { /// - Throws: `ValidationError` if the numeric is invalid against the rule. internal static func validate(_ numeric: T, against rule: NumericRule) throws -> T { var error = ValidationError(kinds: []) - if let minium = rule.minimum { - if !rule.exclusiveMinimum, minium > numeric { + if let minimum = rule.minimum { + if !rule.exclusiveMinimum, minimum > numeric { error.kinds.insert(.minimum) } - if rule.exclusiveMinimum, minium >= numeric { + if rule.exclusiveMinimum, minimum >= numeric { error.kinds.insert(.minimum) } } @@ -109,11 +109,11 @@ internal struct Validator { /// - Throws: `ValidationError` if the numeric is invalid against the rule. internal static func validate(_ numeric: T, against rule: NumericRule) throws -> T { var error = ValidationError(kinds: []) - if let minium = rule.minimum { - if !rule.exclusiveMinimum, minium > numeric { + if let minimum = rule.minimum { + if !rule.exclusiveMinimum, minimum > numeric { error.kinds.insert(.minimum) } - if rule.exclusiveMinimum, minium >= numeric { + if rule.exclusiveMinimum, minimum >= numeric { error.kinds.insert(.minimum) } } diff --git a/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Validation.swift b/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Validation.swift index 6a0d4c9da1ab..3bf4ec03fea4 100644 --- a/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Validation.swift +++ b/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Validation.swift @@ -77,11 +77,11 @@ public struct Validator { /// - Throws: `ValidationError` if the numeric is invalid against the rule. public static func validate(_ numeric: T, against rule: NumericRule) throws -> T { var error = ValidationError(kinds: []) - if let minium = rule.minimum { - if !rule.exclusiveMinimum, minium > numeric { + if let minimum = rule.minimum { + if !rule.exclusiveMinimum, minimum > numeric { error.kinds.insert(.minimum) } - if rule.exclusiveMinimum, minium >= numeric { + if rule.exclusiveMinimum, minimum >= numeric { error.kinds.insert(.minimum) } } @@ -109,11 +109,11 @@ public struct Validator { /// - Throws: `ValidationError` if the numeric is invalid against the rule. public static func validate(_ numeric: T, against rule: NumericRule) throws -> T { var error = ValidationError(kinds: []) - if let minium = rule.minimum { - if !rule.exclusiveMinimum, minium > numeric { + if let minimum = rule.minimum { + if !rule.exclusiveMinimum, minimum > numeric { error.kinds.insert(.minimum) } - if rule.exclusiveMinimum, minium >= numeric { + if rule.exclusiveMinimum, minimum >= numeric { error.kinds.insert(.minimum) } } diff --git a/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Validation.swift b/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Validation.swift index 6a0d4c9da1ab..3bf4ec03fea4 100644 --- a/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Validation.swift +++ b/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/Validation.swift @@ -77,11 +77,11 @@ public struct Validator { /// - Throws: `ValidationError` if the numeric is invalid against the rule. public static func validate(_ numeric: T, against rule: NumericRule) throws -> T { var error = ValidationError(kinds: []) - if let minium = rule.minimum { - if !rule.exclusiveMinimum, minium > numeric { + if let minimum = rule.minimum { + if !rule.exclusiveMinimum, minimum > numeric { error.kinds.insert(.minimum) } - if rule.exclusiveMinimum, minium >= numeric { + if rule.exclusiveMinimum, minimum >= numeric { error.kinds.insert(.minimum) } } @@ -109,11 +109,11 @@ public struct Validator { /// - Throws: `ValidationError` if the numeric is invalid against the rule. public static func validate(_ numeric: T, against rule: NumericRule) throws -> T { var error = ValidationError(kinds: []) - if let minium = rule.minimum { - if !rule.exclusiveMinimum, minium > numeric { + if let minimum = rule.minimum { + if !rule.exclusiveMinimum, minimum > numeric { error.kinds.insert(.minimum) } - if rule.exclusiveMinimum, minium >= numeric { + if rule.exclusiveMinimum, minimum >= numeric { error.kinds.insert(.minimum) } } diff --git a/samples/client/petstore/swift5/validation/PetstoreClient/Classes/OpenAPIs/Validation.swift b/samples/client/petstore/swift5/validation/PetstoreClient/Classes/OpenAPIs/Validation.swift index 6a0d4c9da1ab..3bf4ec03fea4 100644 --- a/samples/client/petstore/swift5/validation/PetstoreClient/Classes/OpenAPIs/Validation.swift +++ b/samples/client/petstore/swift5/validation/PetstoreClient/Classes/OpenAPIs/Validation.swift @@ -77,11 +77,11 @@ public struct Validator { /// - Throws: `ValidationError` if the numeric is invalid against the rule. public static func validate(_ numeric: T, against rule: NumericRule) throws -> T { var error = ValidationError(kinds: []) - if let minium = rule.minimum { - if !rule.exclusiveMinimum, minium > numeric { + if let minimum = rule.minimum { + if !rule.exclusiveMinimum, minimum > numeric { error.kinds.insert(.minimum) } - if rule.exclusiveMinimum, minium >= numeric { + if rule.exclusiveMinimum, minimum >= numeric { error.kinds.insert(.minimum) } } @@ -109,11 +109,11 @@ public struct Validator { /// - Throws: `ValidationError` if the numeric is invalid against the rule. public static func validate(_ numeric: T, against rule: NumericRule) throws -> T { var error = ValidationError(kinds: []) - if let minium = rule.minimum { - if !rule.exclusiveMinimum, minium > numeric { + if let minimum = rule.minimum { + if !rule.exclusiveMinimum, minimum > numeric { error.kinds.insert(.minimum) } - if rule.exclusiveMinimum, minium >= numeric { + if rule.exclusiveMinimum, minimum >= numeric { error.kinds.insert(.minimum) } } diff --git a/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Validation.swift b/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Validation.swift index 6a0d4c9da1ab..3bf4ec03fea4 100644 --- a/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Validation.swift +++ b/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/Validation.swift @@ -77,11 +77,11 @@ public struct Validator { /// - Throws: `ValidationError` if the numeric is invalid against the rule. public static func validate(_ numeric: T, against rule: NumericRule) throws -> T { var error = ValidationError(kinds: []) - if let minium = rule.minimum { - if !rule.exclusiveMinimum, minium > numeric { + if let minimum = rule.minimum { + if !rule.exclusiveMinimum, minimum > numeric { error.kinds.insert(.minimum) } - if rule.exclusiveMinimum, minium >= numeric { + if rule.exclusiveMinimum, minimum >= numeric { error.kinds.insert(.minimum) } } @@ -109,11 +109,11 @@ public struct Validator { /// - Throws: `ValidationError` if the numeric is invalid against the rule. public static func validate(_ numeric: T, against rule: NumericRule) throws -> T { var error = ValidationError(kinds: []) - if let minium = rule.minimum { - if !rule.exclusiveMinimum, minium > numeric { + if let minimum = rule.minimum { + if !rule.exclusiveMinimum, minimum > numeric { error.kinds.insert(.minimum) } - if rule.exclusiveMinimum, minium >= numeric { + if rule.exclusiveMinimum, minimum >= numeric { error.kinds.insert(.minimum) } } diff --git a/samples/client/petstore/swift6/alamofireLibrary/Sources/PetstoreClient/Infrastructure/Validation.swift b/samples/client/petstore/swift6/alamofireLibrary/Sources/PetstoreClient/Infrastructure/Validation.swift index f2824965ddfb..d4c743d96074 100644 --- a/samples/client/petstore/swift6/alamofireLibrary/Sources/PetstoreClient/Infrastructure/Validation.swift +++ b/samples/client/petstore/swift6/alamofireLibrary/Sources/PetstoreClient/Infrastructure/Validation.swift @@ -78,11 +78,11 @@ public struct Validator { /// - Throws: `ValidationError` if the numeric is invalid against the rule. public static func validate(_ numeric: T, against rule: NumericRule) throws -> T { var error = ValidationError(kinds: []) - if let minium = rule.minimum { - if !rule.exclusiveMinimum, minium > numeric { + if let minimum = rule.minimum { + if !rule.exclusiveMinimum, minimum > numeric { error.kinds.insert(.minimum) } - if rule.exclusiveMinimum, minium >= numeric { + if rule.exclusiveMinimum, minimum >= numeric { error.kinds.insert(.minimum) } } @@ -110,11 +110,11 @@ public struct Validator { /// - Throws: `ValidationError` if the numeric is invalid against the rule. public static func validate(_ numeric: T, against rule: NumericRule) throws -> T { var error = ValidationError(kinds: []) - if let minium = rule.minimum { - if !rule.exclusiveMinimum, minium > numeric { + if let minimum = rule.minimum { + if !rule.exclusiveMinimum, minimum > numeric { error.kinds.insert(.minimum) } - if rule.exclusiveMinimum, minium >= numeric { + if rule.exclusiveMinimum, minimum >= numeric { error.kinds.insert(.minimum) } } diff --git a/samples/client/petstore/swift6/apiNonStaticMethod/Sources/PetstoreClient/Infrastructure/Validation.swift b/samples/client/petstore/swift6/apiNonStaticMethod/Sources/PetstoreClient/Infrastructure/Validation.swift index f2824965ddfb..d4c743d96074 100644 --- a/samples/client/petstore/swift6/apiNonStaticMethod/Sources/PetstoreClient/Infrastructure/Validation.swift +++ b/samples/client/petstore/swift6/apiNonStaticMethod/Sources/PetstoreClient/Infrastructure/Validation.swift @@ -78,11 +78,11 @@ public struct Validator { /// - Throws: `ValidationError` if the numeric is invalid against the rule. public static func validate(_ numeric: T, against rule: NumericRule) throws -> T { var error = ValidationError(kinds: []) - if let minium = rule.minimum { - if !rule.exclusiveMinimum, minium > numeric { + if let minimum = rule.minimum { + if !rule.exclusiveMinimum, minimum > numeric { error.kinds.insert(.minimum) } - if rule.exclusiveMinimum, minium >= numeric { + if rule.exclusiveMinimum, minimum >= numeric { error.kinds.insert(.minimum) } } @@ -110,11 +110,11 @@ public struct Validator { /// - Throws: `ValidationError` if the numeric is invalid against the rule. public static func validate(_ numeric: T, against rule: NumericRule) throws -> T { var error = ValidationError(kinds: []) - if let minium = rule.minimum { - if !rule.exclusiveMinimum, minium > numeric { + if let minimum = rule.minimum { + if !rule.exclusiveMinimum, minimum > numeric { error.kinds.insert(.minimum) } - if rule.exclusiveMinimum, minium >= numeric { + if rule.exclusiveMinimum, minimum >= numeric { error.kinds.insert(.minimum) } } diff --git a/samples/client/petstore/swift6/asyncAwaitLibrary/Sources/PetstoreClient/Infrastructure/Validation.swift b/samples/client/petstore/swift6/asyncAwaitLibrary/Sources/PetstoreClient/Infrastructure/Validation.swift index f2824965ddfb..d4c743d96074 100644 --- a/samples/client/petstore/swift6/asyncAwaitLibrary/Sources/PetstoreClient/Infrastructure/Validation.swift +++ b/samples/client/petstore/swift6/asyncAwaitLibrary/Sources/PetstoreClient/Infrastructure/Validation.swift @@ -78,11 +78,11 @@ public struct Validator { /// - Throws: `ValidationError` if the numeric is invalid against the rule. public static func validate(_ numeric: T, against rule: NumericRule) throws -> T { var error = ValidationError(kinds: []) - if let minium = rule.minimum { - if !rule.exclusiveMinimum, minium > numeric { + if let minimum = rule.minimum { + if !rule.exclusiveMinimum, minimum > numeric { error.kinds.insert(.minimum) } - if rule.exclusiveMinimum, minium >= numeric { + if rule.exclusiveMinimum, minimum >= numeric { error.kinds.insert(.minimum) } } @@ -110,11 +110,11 @@ public struct Validator { /// - Throws: `ValidationError` if the numeric is invalid against the rule. public static func validate(_ numeric: T, against rule: NumericRule) throws -> T { var error = ValidationError(kinds: []) - if let minium = rule.minimum { - if !rule.exclusiveMinimum, minium > numeric { + if let minimum = rule.minimum { + if !rule.exclusiveMinimum, minimum > numeric { error.kinds.insert(.minimum) } - if rule.exclusiveMinimum, minium >= numeric { + if rule.exclusiveMinimum, minimum >= numeric { error.kinds.insert(.minimum) } } diff --git a/samples/client/petstore/swift6/combineDeferredLibrary/PetstoreClient/Classes/OpenAPIs/Infrastructure/Validation.swift b/samples/client/petstore/swift6/combineDeferredLibrary/PetstoreClient/Classes/OpenAPIs/Infrastructure/Validation.swift index f2824965ddfb..d4c743d96074 100644 --- a/samples/client/petstore/swift6/combineDeferredLibrary/PetstoreClient/Classes/OpenAPIs/Infrastructure/Validation.swift +++ b/samples/client/petstore/swift6/combineDeferredLibrary/PetstoreClient/Classes/OpenAPIs/Infrastructure/Validation.swift @@ -78,11 +78,11 @@ public struct Validator { /// - Throws: `ValidationError` if the numeric is invalid against the rule. public static func validate(_ numeric: T, against rule: NumericRule) throws -> T { var error = ValidationError(kinds: []) - if let minium = rule.minimum { - if !rule.exclusiveMinimum, minium > numeric { + if let minimum = rule.minimum { + if !rule.exclusiveMinimum, minimum > numeric { error.kinds.insert(.minimum) } - if rule.exclusiveMinimum, minium >= numeric { + if rule.exclusiveMinimum, minimum >= numeric { error.kinds.insert(.minimum) } } @@ -110,11 +110,11 @@ public struct Validator { /// - Throws: `ValidationError` if the numeric is invalid against the rule. public static func validate(_ numeric: T, against rule: NumericRule) throws -> T { var error = ValidationError(kinds: []) - if let minium = rule.minimum { - if !rule.exclusiveMinimum, minium > numeric { + if let minimum = rule.minimum { + if !rule.exclusiveMinimum, minimum > numeric { error.kinds.insert(.minimum) } - if rule.exclusiveMinimum, minium >= numeric { + if rule.exclusiveMinimum, minimum >= numeric { error.kinds.insert(.minimum) } } diff --git a/samples/client/petstore/swift6/combineLibrary/Sources/CombineLibrary/Infrastructure/Validation.swift b/samples/client/petstore/swift6/combineLibrary/Sources/CombineLibrary/Infrastructure/Validation.swift index f2824965ddfb..d4c743d96074 100644 --- a/samples/client/petstore/swift6/combineLibrary/Sources/CombineLibrary/Infrastructure/Validation.swift +++ b/samples/client/petstore/swift6/combineLibrary/Sources/CombineLibrary/Infrastructure/Validation.swift @@ -78,11 +78,11 @@ public struct Validator { /// - Throws: `ValidationError` if the numeric is invalid against the rule. public static func validate(_ numeric: T, against rule: NumericRule) throws -> T { var error = ValidationError(kinds: []) - if let minium = rule.minimum { - if !rule.exclusiveMinimum, minium > numeric { + if let minimum = rule.minimum { + if !rule.exclusiveMinimum, minimum > numeric { error.kinds.insert(.minimum) } - if rule.exclusiveMinimum, minium >= numeric { + if rule.exclusiveMinimum, minimum >= numeric { error.kinds.insert(.minimum) } } @@ -110,11 +110,11 @@ public struct Validator { /// - Throws: `ValidationError` if the numeric is invalid against the rule. public static func validate(_ numeric: T, against rule: NumericRule) throws -> T { var error = ValidationError(kinds: []) - if let minium = rule.minimum { - if !rule.exclusiveMinimum, minium > numeric { + if let minimum = rule.minimum { + if !rule.exclusiveMinimum, minimum > numeric { error.kinds.insert(.minimum) } - if rule.exclusiveMinimum, minium >= numeric { + if rule.exclusiveMinimum, minimum >= numeric { error.kinds.insert(.minimum) } } diff --git a/samples/client/petstore/swift6/default/Sources/PetstoreClient/Infrastructure/Validation.swift b/samples/client/petstore/swift6/default/Sources/PetstoreClient/Infrastructure/Validation.swift index f2824965ddfb..d4c743d96074 100644 --- a/samples/client/petstore/swift6/default/Sources/PetstoreClient/Infrastructure/Validation.swift +++ b/samples/client/petstore/swift6/default/Sources/PetstoreClient/Infrastructure/Validation.swift @@ -78,11 +78,11 @@ public struct Validator { /// - Throws: `ValidationError` if the numeric is invalid against the rule. public static func validate(_ numeric: T, against rule: NumericRule) throws -> T { var error = ValidationError(kinds: []) - if let minium = rule.minimum { - if !rule.exclusiveMinimum, minium > numeric { + if let minimum = rule.minimum { + if !rule.exclusiveMinimum, minimum > numeric { error.kinds.insert(.minimum) } - if rule.exclusiveMinimum, minium >= numeric { + if rule.exclusiveMinimum, minimum >= numeric { error.kinds.insert(.minimum) } } @@ -110,11 +110,11 @@ public struct Validator { /// - Throws: `ValidationError` if the numeric is invalid against the rule. public static func validate(_ numeric: T, against rule: NumericRule) throws -> T { var error = ValidationError(kinds: []) - if let minium = rule.minimum { - if !rule.exclusiveMinimum, minium > numeric { + if let minimum = rule.minimum { + if !rule.exclusiveMinimum, minimum > numeric { error.kinds.insert(.minimum) } - if rule.exclusiveMinimum, minium >= numeric { + if rule.exclusiveMinimum, minimum >= numeric { error.kinds.insert(.minimum) } } diff --git a/samples/client/petstore/swift6/objcCompatible/Sources/PetstoreClient/Infrastructure/Validation.swift b/samples/client/petstore/swift6/objcCompatible/Sources/PetstoreClient/Infrastructure/Validation.swift index f2824965ddfb..d4c743d96074 100644 --- a/samples/client/petstore/swift6/objcCompatible/Sources/PetstoreClient/Infrastructure/Validation.swift +++ b/samples/client/petstore/swift6/objcCompatible/Sources/PetstoreClient/Infrastructure/Validation.swift @@ -78,11 +78,11 @@ public struct Validator { /// - Throws: `ValidationError` if the numeric is invalid against the rule. public static func validate(_ numeric: T, against rule: NumericRule) throws -> T { var error = ValidationError(kinds: []) - if let minium = rule.minimum { - if !rule.exclusiveMinimum, minium > numeric { + if let minimum = rule.minimum { + if !rule.exclusiveMinimum, minimum > numeric { error.kinds.insert(.minimum) } - if rule.exclusiveMinimum, minium >= numeric { + if rule.exclusiveMinimum, minimum >= numeric { error.kinds.insert(.minimum) } } @@ -110,11 +110,11 @@ public struct Validator { /// - Throws: `ValidationError` if the numeric is invalid against the rule. public static func validate(_ numeric: T, against rule: NumericRule) throws -> T { var error = ValidationError(kinds: []) - if let minium = rule.minimum { - if !rule.exclusiveMinimum, minium > numeric { + if let minimum = rule.minimum { + if !rule.exclusiveMinimum, minimum > numeric { error.kinds.insert(.minimum) } - if rule.exclusiveMinimum, minium >= numeric { + if rule.exclusiveMinimum, minimum >= numeric { error.kinds.insert(.minimum) } } diff --git a/samples/client/petstore/swift6/oneOf/PetstoreClient/Classes/OpenAPIs/Infrastructure/Validation.swift b/samples/client/petstore/swift6/oneOf/PetstoreClient/Classes/OpenAPIs/Infrastructure/Validation.swift index f2824965ddfb..d4c743d96074 100644 --- a/samples/client/petstore/swift6/oneOf/PetstoreClient/Classes/OpenAPIs/Infrastructure/Validation.swift +++ b/samples/client/petstore/swift6/oneOf/PetstoreClient/Classes/OpenAPIs/Infrastructure/Validation.swift @@ -78,11 +78,11 @@ public struct Validator { /// - Throws: `ValidationError` if the numeric is invalid against the rule. public static func validate(_ numeric: T, against rule: NumericRule) throws -> T { var error = ValidationError(kinds: []) - if let minium = rule.minimum { - if !rule.exclusiveMinimum, minium > numeric { + if let minimum = rule.minimum { + if !rule.exclusiveMinimum, minimum > numeric { error.kinds.insert(.minimum) } - if rule.exclusiveMinimum, minium >= numeric { + if rule.exclusiveMinimum, minimum >= numeric { error.kinds.insert(.minimum) } } @@ -110,11 +110,11 @@ public struct Validator { /// - Throws: `ValidationError` if the numeric is invalid against the rule. public static func validate(_ numeric: T, against rule: NumericRule) throws -> T { var error = ValidationError(kinds: []) - if let minium = rule.minimum { - if !rule.exclusiveMinimum, minium > numeric { + if let minimum = rule.minimum { + if !rule.exclusiveMinimum, minimum > numeric { error.kinds.insert(.minimum) } - if rule.exclusiveMinimum, minium >= numeric { + if rule.exclusiveMinimum, minimum >= numeric { error.kinds.insert(.minimum) } } diff --git a/samples/client/petstore/swift6/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Infrastructure/Validation.swift b/samples/client/petstore/swift6/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Infrastructure/Validation.swift index f2824965ddfb..d4c743d96074 100644 --- a/samples/client/petstore/swift6/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Infrastructure/Validation.swift +++ b/samples/client/petstore/swift6/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Infrastructure/Validation.swift @@ -78,11 +78,11 @@ public struct Validator { /// - Throws: `ValidationError` if the numeric is invalid against the rule. public static func validate(_ numeric: T, against rule: NumericRule) throws -> T { var error = ValidationError(kinds: []) - if let minium = rule.minimum { - if !rule.exclusiveMinimum, minium > numeric { + if let minimum = rule.minimum { + if !rule.exclusiveMinimum, minimum > numeric { error.kinds.insert(.minimum) } - if rule.exclusiveMinimum, minium >= numeric { + if rule.exclusiveMinimum, minimum >= numeric { error.kinds.insert(.minimum) } } @@ -110,11 +110,11 @@ public struct Validator { /// - Throws: `ValidationError` if the numeric is invalid against the rule. public static func validate(_ numeric: T, against rule: NumericRule) throws -> T { var error = ValidationError(kinds: []) - if let minium = rule.minimum { - if !rule.exclusiveMinimum, minium > numeric { + if let minimum = rule.minimum { + if !rule.exclusiveMinimum, minimum > numeric { error.kinds.insert(.minimum) } - if rule.exclusiveMinimum, minium >= numeric { + if rule.exclusiveMinimum, minimum >= numeric { error.kinds.insert(.minimum) } } diff --git a/samples/client/petstore/swift6/resultLibrary/PetstoreClient/Classes/OpenAPIs/Infrastructure/Validation.swift b/samples/client/petstore/swift6/resultLibrary/PetstoreClient/Classes/OpenAPIs/Infrastructure/Validation.swift index f9a3750d668f..104b74903650 100644 --- a/samples/client/petstore/swift6/resultLibrary/PetstoreClient/Classes/OpenAPIs/Infrastructure/Validation.swift +++ b/samples/client/petstore/swift6/resultLibrary/PetstoreClient/Classes/OpenAPIs/Infrastructure/Validation.swift @@ -78,11 +78,11 @@ internal struct Validator { /// - Throws: `ValidationError` if the numeric is invalid against the rule. internal static func validate(_ numeric: T, against rule: NumericRule) throws -> T { var error = ValidationError(kinds: []) - if let minium = rule.minimum { - if !rule.exclusiveMinimum, minium > numeric { + if let minimum = rule.minimum { + if !rule.exclusiveMinimum, minimum > numeric { error.kinds.insert(.minimum) } - if rule.exclusiveMinimum, minium >= numeric { + if rule.exclusiveMinimum, minimum >= numeric { error.kinds.insert(.minimum) } } @@ -110,11 +110,11 @@ internal struct Validator { /// - Throws: `ValidationError` if the numeric is invalid against the rule. internal static func validate(_ numeric: T, against rule: NumericRule) throws -> T { var error = ValidationError(kinds: []) - if let minium = rule.minimum { - if !rule.exclusiveMinimum, minium > numeric { + if let minimum = rule.minimum { + if !rule.exclusiveMinimum, minimum > numeric { error.kinds.insert(.minimum) } - if rule.exclusiveMinimum, minium >= numeric { + if rule.exclusiveMinimum, minimum >= numeric { error.kinds.insert(.minimum) } } diff --git a/samples/client/petstore/swift6/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Infrastructure/Validation.swift b/samples/client/petstore/swift6/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Infrastructure/Validation.swift index f2824965ddfb..d4c743d96074 100644 --- a/samples/client/petstore/swift6/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Infrastructure/Validation.swift +++ b/samples/client/petstore/swift6/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Infrastructure/Validation.swift @@ -78,11 +78,11 @@ public struct Validator { /// - Throws: `ValidationError` if the numeric is invalid against the rule. public static func validate(_ numeric: T, against rule: NumericRule) throws -> T { var error = ValidationError(kinds: []) - if let minium = rule.minimum { - if !rule.exclusiveMinimum, minium > numeric { + if let minimum = rule.minimum { + if !rule.exclusiveMinimum, minimum > numeric { error.kinds.insert(.minimum) } - if rule.exclusiveMinimum, minium >= numeric { + if rule.exclusiveMinimum, minimum >= numeric { error.kinds.insert(.minimum) } } @@ -110,11 +110,11 @@ public struct Validator { /// - Throws: `ValidationError` if the numeric is invalid against the rule. public static func validate(_ numeric: T, against rule: NumericRule) throws -> T { var error = ValidationError(kinds: []) - if let minium = rule.minimum { - if !rule.exclusiveMinimum, minium > numeric { + if let minimum = rule.minimum { + if !rule.exclusiveMinimum, minimum > numeric { error.kinds.insert(.minimum) } - if rule.exclusiveMinimum, minium >= numeric { + if rule.exclusiveMinimum, minimum >= numeric { error.kinds.insert(.minimum) } } diff --git a/samples/client/petstore/swift6/urlsessionLibrary/Sources/PetstoreClient/Infrastructure/Validation.swift b/samples/client/petstore/swift6/urlsessionLibrary/Sources/PetstoreClient/Infrastructure/Validation.swift index f2824965ddfb..d4c743d96074 100644 --- a/samples/client/petstore/swift6/urlsessionLibrary/Sources/PetstoreClient/Infrastructure/Validation.swift +++ b/samples/client/petstore/swift6/urlsessionLibrary/Sources/PetstoreClient/Infrastructure/Validation.swift @@ -78,11 +78,11 @@ public struct Validator { /// - Throws: `ValidationError` if the numeric is invalid against the rule. public static func validate(_ numeric: T, against rule: NumericRule) throws -> T { var error = ValidationError(kinds: []) - if let minium = rule.minimum { - if !rule.exclusiveMinimum, minium > numeric { + if let minimum = rule.minimum { + if !rule.exclusiveMinimum, minimum > numeric { error.kinds.insert(.minimum) } - if rule.exclusiveMinimum, minium >= numeric { + if rule.exclusiveMinimum, minimum >= numeric { error.kinds.insert(.minimum) } } @@ -110,11 +110,11 @@ public struct Validator { /// - Throws: `ValidationError` if the numeric is invalid against the rule. public static func validate(_ numeric: T, against rule: NumericRule) throws -> T { var error = ValidationError(kinds: []) - if let minium = rule.minimum { - if !rule.exclusiveMinimum, minium > numeric { + if let minimum = rule.minimum { + if !rule.exclusiveMinimum, minimum > numeric { error.kinds.insert(.minimum) } - if rule.exclusiveMinimum, minium >= numeric { + if rule.exclusiveMinimum, minimum >= numeric { error.kinds.insert(.minimum) } } diff --git a/samples/client/petstore/swift6/validation/PetstoreClient/Classes/OpenAPIs/Infrastructure/Validation.swift b/samples/client/petstore/swift6/validation/PetstoreClient/Classes/OpenAPIs/Infrastructure/Validation.swift index f2824965ddfb..d4c743d96074 100644 --- a/samples/client/petstore/swift6/validation/PetstoreClient/Classes/OpenAPIs/Infrastructure/Validation.swift +++ b/samples/client/petstore/swift6/validation/PetstoreClient/Classes/OpenAPIs/Infrastructure/Validation.swift @@ -78,11 +78,11 @@ public struct Validator { /// - Throws: `ValidationError` if the numeric is invalid against the rule. public static func validate(_ numeric: T, against rule: NumericRule) throws -> T { var error = ValidationError(kinds: []) - if let minium = rule.minimum { - if !rule.exclusiveMinimum, minium > numeric { + if let minimum = rule.minimum { + if !rule.exclusiveMinimum, minimum > numeric { error.kinds.insert(.minimum) } - if rule.exclusiveMinimum, minium >= numeric { + if rule.exclusiveMinimum, minimum >= numeric { error.kinds.insert(.minimum) } } @@ -110,11 +110,11 @@ public struct Validator { /// - Throws: `ValidationError` if the numeric is invalid against the rule. public static func validate(_ numeric: T, against rule: NumericRule) throws -> T { var error = ValidationError(kinds: []) - if let minium = rule.minimum { - if !rule.exclusiveMinimum, minium > numeric { + if let minimum = rule.minimum { + if !rule.exclusiveMinimum, minimum > numeric { error.kinds.insert(.minimum) } - if rule.exclusiveMinimum, minium >= numeric { + if rule.exclusiveMinimum, minimum >= numeric { error.kinds.insert(.minimum) } } diff --git a/samples/client/petstore/swift6/vaporLibrary/Sources/PetstoreClient/Infrastructure/Validation.swift b/samples/client/petstore/swift6/vaporLibrary/Sources/PetstoreClient/Infrastructure/Validation.swift index f2824965ddfb..d4c743d96074 100644 --- a/samples/client/petstore/swift6/vaporLibrary/Sources/PetstoreClient/Infrastructure/Validation.swift +++ b/samples/client/petstore/swift6/vaporLibrary/Sources/PetstoreClient/Infrastructure/Validation.swift @@ -78,11 +78,11 @@ public struct Validator { /// - Throws: `ValidationError` if the numeric is invalid against the rule. public static func validate(_ numeric: T, against rule: NumericRule) throws -> T { var error = ValidationError(kinds: []) - if let minium = rule.minimum { - if !rule.exclusiveMinimum, minium > numeric { + if let minimum = rule.minimum { + if !rule.exclusiveMinimum, minimum > numeric { error.kinds.insert(.minimum) } - if rule.exclusiveMinimum, minium >= numeric { + if rule.exclusiveMinimum, minimum >= numeric { error.kinds.insert(.minimum) } } @@ -110,11 +110,11 @@ public struct Validator { /// - Throws: `ValidationError` if the numeric is invalid against the rule. public static func validate(_ numeric: T, against rule: NumericRule) throws -> T { var error = ValidationError(kinds: []) - if let minium = rule.minimum { - if !rule.exclusiveMinimum, minium > numeric { + if let minimum = rule.minimum { + if !rule.exclusiveMinimum, minimum > numeric { error.kinds.insert(.minimum) } - if rule.exclusiveMinimum, minium >= numeric { + if rule.exclusiveMinimum, minimum >= numeric { error.kinds.insert(.minimum) } } diff --git a/samples/client/petstore/zapier/authentication.js b/samples/client/petstore/zapier/authentication.js index 8a1bf2e76b5e..7f62337d3c75 100644 --- a/samples/client/petstore/zapier/authentication.js +++ b/samples/client/petstore/zapier/authentication.js @@ -1,4 +1,4 @@ module.exports = { - // TODO: authentication logic + // TODO: authentication logic // https://platform.zapier.com/cli_tutorials/getting-started#adding-authentication }; \ No newline at end of file diff --git a/samples/documentation/html2/index.html b/samples/documentation/html2/index.html index 1f7b7b1cf7ed..d8e63b2da1f3 100644 --- a/samples/documentation/html2/index.html +++ b/samples/documentation/html2/index.html @@ -163,10 +163,10 @@ } else { // Use a for loop instead of forEach to avoid nested functions // Otherwise "return" will not work properly - for(var propt in currentNode){ - if (currentNode.hasOwnProperty(propt)) { - currentChild = currentNode[propt] - if (id == propt) { + for(var prop in currentNode){ + if (currentNode.hasOwnProperty(prop)) { + currentChild = currentNode[prop] + if (id == prop) { return currentChild; } else { // Search in the current child diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/ApiClientTest.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/ApiClientTest.java index 570a2619f94a..6858ce27b2c1 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/ApiClientTest.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/ApiClientTest.java @@ -105,7 +105,7 @@ public void testSerializeToString() throws Exception { String result = "{\"id\":4321,\"category\":{\"id\":4321,\"name\":\"jersey2 java8 category\"},\"name\":\"jersey2 java8 pet\",\"photoUrls\":[\"A\",\"B\",\"C\"],\"tags\":[{\"id\":4321,\"name\":\"jersey2 java8 tag\"}],\"status\":\"available\"}"; assertEquals(result, apiClient.serializeToString(pet, null, "application/json", false)); - // nulllable and there should be no diffencne as the payload is not null + // nullable and there should be no difference as the payload is not null assertEquals(result, apiClient.serializeToString(pet, null, "application/json", true)); // non-nullable null object should be converted to "" (empty body) diff --git a/samples/openapi3/client/petstore/python-aiohttp/docs/FakeApi.md b/samples/openapi3/client/petstore/python-aiohttp/docs/FakeApi.md index 901471b5477b..25bf6c3f4e11 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/docs/FakeApi.md +++ b/samples/openapi3/client/petstore/python-aiohttp/docs/FakeApi.md @@ -2077,7 +2077,7 @@ void (empty response body) | Status code | Description | Response headers | |-------------|-------------|------------------| -**400** | Someting wrong | - | +**400** | Something wrong | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/samples/openapi3/client/petstore/python-pydantic-v1-aiohttp/docs/FakeApi.md b/samples/openapi3/client/petstore/python-pydantic-v1-aiohttp/docs/FakeApi.md index 512323e3286a..0ef5bf32a5c2 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1-aiohttp/docs/FakeApi.md +++ b/samples/openapi3/client/petstore/python-pydantic-v1-aiohttp/docs/FakeApi.md @@ -2047,7 +2047,7 @@ void (empty response body) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**400** | Someting wrong | - | +**400** | Something wrong | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/docs/FakeApi.md b/samples/openapi3/client/petstore/python-pydantic-v1/docs/FakeApi.md index 3777d3d76e0e..6392431fd755 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/docs/FakeApi.md +++ b/samples/openapi3/client/petstore/python-pydantic-v1/docs/FakeApi.md @@ -2047,7 +2047,7 @@ void (empty response body) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**400** | Someting wrong | - | +**400** | Something wrong | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_format_test.py b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_format_test.py index 4d9f9bb87479..ca1715dd671e 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/test/test_format_test.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/test/test_format_test.py @@ -45,7 +45,7 @@ def make_instance(self, include_optional): double = 67.8, decimal = 1, string = 'a', - byte = bytes("someting", 'utf-8'), + byte = bytes("something", 'utf-8'), binary = bytes(b'blah'), date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), date_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), @@ -57,7 +57,7 @@ def make_instance(self, include_optional): else : return FormatTest( number = 122.1, - byte = bytes("someting", 'utf-8'), + byte = bytes("something", 'utf-8'), date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), password = '0123456789', ) diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/tests/test_model.py b/samples/openapi3/client/petstore/python-pydantic-v1/tests/test_model.py index a843b2e3cb24..a7026939f137 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/tests/test_model.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/tests/test_model.py @@ -100,7 +100,7 @@ def test_oneOf_array_of_integers(self): except ValueError as e: self.assertTrue("ensure this value is less than or equal to 255" in str(e)) - # test from_josn + # test from_json json_str = '[12,34,56]' p = petstore_api.Color.from_json(json_str) self.assertEqual(p.actual_instance, [12, 34, 56]) @@ -409,7 +409,7 @@ def test_valdiator(self): except ValueError as e: self.assertTrue(r"must validate the regular expression /^image_\d{1,3}$/i" in str(e)) - # test None with optional string (with regualr expression) + # test None with optional string (with regular expression) a = petstore_api.FormatTest(number=123.45, byte=bytes("string", 'utf-8'), date="2013-09-17", password="testing09876") a.string = None # shouldn't throw an exception diff --git a/samples/openapi3/client/petstore/python/docs/FakeApi.md b/samples/openapi3/client/petstore/python/docs/FakeApi.md index 7b0665800fd5..792e124ab7bb 100644 --- a/samples/openapi3/client/petstore/python/docs/FakeApi.md +++ b/samples/openapi3/client/petstore/python/docs/FakeApi.md @@ -2077,7 +2077,7 @@ void (empty response body) | Status code | Description | Response headers | |-------------|-------------|------------------| -**400** | Someting wrong | - | +**400** | Something wrong | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/samples/openapi3/client/petstore/python/test/test_format_test.py b/samples/openapi3/client/petstore/python/test/test_format_test.py index e236e5b7e670..856ff2c53682 100644 --- a/samples/openapi3/client/petstore/python/test/test_format_test.py +++ b/samples/openapi3/client/petstore/python/test/test_format_test.py @@ -44,7 +44,7 @@ def make_instance(self, include_optional): double = 67.8, decimal = 1, string = 'a', - byte = bytes("someting", 'utf-8'), + byte = bytes("something", 'utf-8'), binary = bytes(b'blah'), var_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), date_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), @@ -56,7 +56,7 @@ def make_instance(self, include_optional): else : return FormatTest( number = 122.1, - byte = bytes("someting", 'utf-8'), + byte = bytes("something", 'utf-8'), date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(), password = '0123456789', ) diff --git a/samples/openapi3/client/petstore/python/tests/test_configuration.py b/samples/openapi3/client/petstore/python/tests/test_configuration.py index af9fa6eef153..e264d1eace37 100644 --- a/samples/openapi3/client/petstore/python/tests/test_configuration.py +++ b/samples/openapi3/client/petstore/python/tests/test_configuration.py @@ -90,7 +90,7 @@ def test_get_host_from_settings(self): def testConfigurationDebug(self): for debug, expected in [(True, True), (False, False), (None, False)]: - with self.subTest('expicitly passing debug parameter', debug=debug, expected=expected): + with self.subTest('explicitly passing debug parameter', debug=debug, expected=expected): c = petstore_api.Configuration(debug=debug) self.assertEqual(expected, c.debug) with self.subTest('not passing debug parameter'): diff --git a/samples/openapi3/client/petstore/python/tests/test_model.py b/samples/openapi3/client/petstore/python/tests/test_model.py index 6049def8b885..ae29d6c18617 100644 --- a/samples/openapi3/client/petstore/python/tests/test_model.py +++ b/samples/openapi3/client/petstore/python/tests/test_model.py @@ -115,7 +115,7 @@ def test_oneOf_array_of_integers(self): except ValueError as e: self.assertTrue("Input should be less than or equal to 255" in str(e)) - # test from_josn + # test from_json json_str = '[12,34,56]' p = petstore_api.Color.from_json(json_str) self.assertEqual(p.actual_instance, [12, 34, 56]) @@ -200,7 +200,7 @@ def test_anyOf_array_of_integers(self): except ValueError as e: self.assertIn("Input should be less than or equal to 255", str(e)) - # test from_josn + # test from_json json_str = '[12,34,56]' p = petstore_api.AnyOfColor.from_json(json_str) self.assertEqual(p.actual_instance, [12, 34,56]) @@ -398,7 +398,7 @@ def test_valdiator(self): except ValueError as e: self.assertTrue(r"must validate the regular expression /^image_\d{1,3}$/i" in str(e)) - # test None with optional string (with regualr expression) + # test None with optional string (with regular expression) a = petstore_api.FormatTest(number=123.45, byte=bytes("string", 'utf-8'), date=date(2013, 9, 17), password="testing09876") a.string = None # shouldn't throw an exception diff --git a/samples/server/echo_api/erlang-server/src/openapi_server.erl b/samples/server/echo_api/erlang-server/src/openapi_server.erl index 7670f1df06f4..63e8d391c498 100644 --- a/samples/server/echo_api/erlang-server/src/openapi_server.erl +++ b/samples/server/echo_api/erlang-server/src/openapi_server.erl @@ -16,7 +16,7 @@ Echo Server API start(ID, Params) -> Transport = maps:get(transport, Params, tcp), TransportOpts = maps:get(transport_opts, Params, #{}), - ProtocolOpts = maps:get(procotol_opts, Params, #{}), + ProtocolOpts = maps:get(protocol_opts, Params, #{}), LogicHandler = maps:get(logic_handler, Params, ?DEFAULT_LOGIC_HANDLER), CowboyOpts = get_cowboy_config(LogicHandler, ProtocolOpts), case Transport of diff --git a/samples/server/petstore/erlang-server/src/openapi_server.erl b/samples/server/petstore/erlang-server/src/openapi_server.erl index f3cd231b0d54..2a6e95771cda 100644 --- a/samples/server/petstore/erlang-server/src/openapi_server.erl +++ b/samples/server/petstore/erlang-server/src/openapi_server.erl @@ -16,7 +16,7 @@ This is a sample server Petstore server. For this sample, you can use the api ke start(ID, Params) -> Transport = maps:get(transport, Params, tcp), TransportOpts = maps:get(transport_opts, Params, #{}), - ProtocolOpts = maps:get(procotol_opts, Params, #{}), + ProtocolOpts = maps:get(protocol_opts, Params, #{}), LogicHandler = maps:get(logic_handler, Params, ?DEFAULT_LOGIC_HANDLER), CowboyOpts = get_cowboy_config(LogicHandler, ProtocolOpts), case Transport of