From 0f2543b14dbfd0855d28fef6b290639b851ff8ef Mon Sep 17 00:00:00 2001 From: Nathan Baulch Date: Tue, 22 Nov 2022 19:43:35 +1100 Subject: [PATCH] Fix minor typos --- README.md | 2 +- bin/utils/test_file_list.yaml | 2 +- docs/3.0.0-release-note.md | 2 +- docs/customization.md | 12 +- docs/generators/swift5.md | 2 +- docs/generators/swift6.md | 2 +- .../codegen/plugin/CodeGenMojo.java | 2 +- .../openapitools/codegen/DefaultCodegen.java | 14 +-- .../codegen/InlineModelResolver.java | 2 +- .../codegen/OpenAPINormalizer.java | 2 +- .../languages/AbstractJavaCodegen.java | 2 +- .../languages/AbstractJuliaCodegen.java | 2 +- .../languages/AbstractPythonCodegen.java | 4 +- .../AbstractPythonPydanticV1Codegen.java | 4 +- .../codegen/languages/GoClientCodegen.java | 2 +- .../codegen/languages/JavaClientCodegen.java | 2 +- .../languages/KotlinClientCodegen.java | 6 +- .../codegen/languages/RustServerCodegen.java | 2 +- .../languages/ScalaCaskServerCodegen.java | 2 +- .../codegen/languages/SpringCodegen.java | 6 +- .../languages/Swift5ClientCodegen.java | 2 +- .../languages/Swift6ClientCodegen.java | 2 +- .../languages/SwiftCombineClientCodegen.java | 4 +- .../modelbase-header.mustache | 2 +- .../HttpSigningConfiguration.mustache | 2 +- .../JsonSubTypesTests.mustache | 8 +- .../csharp/HttpSigningConfiguration.mustache | 2 +- .../generichost/ExceptionEventArgs.mustache | 2 +- .../HttpSigningConfiguration.mustache | 2 +- .../resources/erlang-server/server.mustache | 2 +- .../main/resources/htmlDocs2/index.mustache | 8 +- .../libraries/psr-18/ApiException.mustache | 4 +- .../php/libraries/psr-18/api.mustache | 10 +- .../src/main/resources/r/api_client.mustache | 6 +- .../r/libraries/httr2/api_client.mustache | 8 +- .../main/resources/rust-server/auth.mustache | 2 +- ...erver-request-body-multipart-form.mustache | 2 +- .../main/resources/swift-combine/api.mustache | 2 +- .../resources/swift-combine/toString.mustache | 2 +- .../main/resources/swift5/Validation.mustache | 12 +- .../main/resources/swift6/Validation.mustache | 12 +- .../resources/xojo-client/README.mustache | 2 +- .../resources/zapier/authentication.mustache | 2 +- .../codegen/InlineModelResolverTest.java | 2 +- .../codegen/OpenAPINormalizerTest.java | 2 +- .../codegen/ruby/RubyClientCodegenTest.java | 2 +- .../src/test/resources/2_0/c/petstore.yaml | 2 +- .../test/resources/3_0/csharp/dates-api.yaml | 2 +- .../src/test/resources/3_0/issue_1517.yaml | 2 +- .../src/test/resources/3_0/issue_15511.yaml | 4 +- .../src/test/resources/3_0/issue_6726.yaml | 8 +- ...nytype-object-set-petstore-everything.yaml | 6 +- ...points-models-for-testing-okhttp-gson.yaml | 2 +- .../3_0/jetbrains/CheckoutService-v71.yaml | 118 +++++++++--------- .../3_0/jetbrains/ManagementService-v3.json | 12 +- .../test/resources/3_0/jetbrains/MgmtApi.json | 12 +- .../environmentgeneration/CustomHeaders.yaml | 14 +-- .../environmentgeneration/CustomVariable.yaml | 14 +-- .../environmentgeneration/Header.yaml | 14 +-- .../jetbrains/environmentgeneration/Path.yaml | 14 +-- .../environmentgeneration/QueryParam.yaml | 14 +-- .../environmentgeneration/Simple.yaml | 14 +-- .../test/resources/3_0/jetbrains/github.json | 40 +++--- .../src/test/resources/3_0/opendota.json | 2 +- ...ith-fake-endpoints-models-for-testing.yaml | 4 +- ...ith-fake-endpoints-models-for-testing.yaml | 2 +- .../src/test/resources/3_1/java/petstore.yaml | 4 +- .../tests/test_manual.py | 8 +- .../python-pydantic-v1/test/test_manual.py | 10 +- .../echo_api/python/tests/test_manual.py | 10 +- samples/client/echo_api/r/R/api_client.R | 2 +- .../petstore/R-httr2-wrapper/R/api_client.R | 8 +- .../tests/testthat/test_petstore.R | 4 +- .../client/petstore/R-httr2/R/api_client.R | 8 +- .../R-httr2/tests/testthat/test_petstore.R | 4 +- samples/client/petstore/R/R/api_client.R | 6 +- .../petstore/R/tests/testthat/test_petstore.R | 4 +- .../.openapi-generator/FILES | 6 +- .../c-useJsonUnformatted/CMakeLists.txt | 4 +- .../petstore/c-useJsonUnformatted/README.md | 2 +- ...pertes.md => model_with_set_properties.md} | 2 +- .../model/model_with_set_propertes.h | 40 ------ .../model/model_with_set_properties.c} | 72 +++++------ .../model/model_with_set_properties.h | 40 ++++++ .../unit-test/test_model_with_set_propertes.c | 60 --------- .../test_model_with_set_properties.c | 60 +++++++++ .../petstore/c/.openapi-generator/FILES | 6 +- samples/client/petstore/c/README.md | 2 +- ...pertes.md => model_with_set_properties.md} | 2 +- .../c/model/model_with_set_propertes.h | 40 ------ .../model/model_with_set_properties.c} | 72 +++++------ .../c/model/model_with_set_properties.h | 40 ++++++ .../unit-test/test_model_with_set_propertes.c | 60 --------- .../test_model_with_set_properties.c | 60 +++++++++ .../include/CppRestPetstoreClient/ModelBase.h | 2 +- .../Client/ExceptionEventArgs.cs | 2 +- .../Client/ExceptionEventArgs.cs | 2 +- .../Client/ExceptionEventArgs.cs | 2 +- .../Client/ExceptionEventArgs.cs | 2 +- .../Client/HttpSigningConfiguration.cs | 2 +- .../Client/ExceptionEventArgs.cs | 2 +- .../Client/ExceptionEventArgs.cs | 2 +- .../Client/HttpSigningConfiguration.cs | 2 +- .../UseDateTimeForDate/api/openapi.yaml | 2 +- .../Org.OpenAPITools.Test/Api/ApiTestsBase.cs | 2 +- .../Api/DefaultApiTests.cs | 2 +- .../Api/DependencyInjectionTests.cs | 2 +- .../Model/NowGet200ResponseTests.cs | 2 +- .../src/Org.OpenAPITools/Api/DefaultApi.cs | 2 +- .../Org.OpenAPITools/Client/ApiException.cs | 2 +- .../Org.OpenAPITools/Client/ApiResponse`1.cs | 2 +- .../Org.OpenAPITools/Client/ClientUtils.cs | 2 +- .../Client/DateTimeJsonConverter.cs | 2 +- .../Client/DateTimeNullableJsonConverter.cs | 2 +- .../Client/ExceptionEventArgs.cs | 2 +- .../Client/HostConfiguration.cs | 2 +- .../src/Org.OpenAPITools/Client/Option.cs | 2 +- .../Client/RateLimitProvider`1.cs | 2 +- .../Client/TokenProvider`1.cs | 2 +- .../Extensions/IHostBuilderExtensions.cs | 2 +- .../IHttpClientBuilderExtensions.cs | 2 +- .../IServiceCollectionExtensions.cs | 2 +- .../Model/NowGet200Response.cs | 2 +- .../src/Org.OpenAPITools/README.md | 2 +- .../Client/ExceptionEventArgs.cs | 2 +- .../Client/ExceptionEventArgs.cs | 2 +- .../Client/ExceptionEventArgs.cs | 2 +- .../Client/ExceptionEventArgs.cs | 2 +- .../Client/HttpSigningConfiguration.cs | 2 +- .../Client/ExceptionEventArgs.cs | 2 +- .../Client/ExceptionEventArgs.cs | 2 +- .../Client/HttpSigningConfiguration.cs | 2 +- .../UseDateTimeForDate/api/openapi.yaml | 2 +- .../Org.OpenAPITools.Test/Api/ApiTestsBase.cs | 2 +- .../Api/DefaultApiTests.cs | 2 +- .../Api/DependencyInjectionTests.cs | 2 +- .../Model/NowGet200ResponseTests.cs | 2 +- .../src/Org.OpenAPITools/Api/DefaultApi.cs | 2 +- .../Org.OpenAPITools/Client/ApiException.cs | 2 +- .../Org.OpenAPITools/Client/ApiResponse`1.cs | 2 +- .../Org.OpenAPITools/Client/ClientUtils.cs | 2 +- .../Client/DateTimeJsonConverter.cs | 2 +- .../Client/DateTimeNullableJsonConverter.cs | 2 +- .../Client/ExceptionEventArgs.cs | 2 +- .../Client/HostConfiguration.cs | 2 +- .../src/Org.OpenAPITools/Client/Option.cs | 2 +- .../Client/RateLimitProvider`1.cs | 2 +- .../Client/TokenProvider`1.cs | 2 +- .../Extensions/IHostBuilderExtensions.cs | 2 +- .../IHttpClientBuilderExtensions.cs | 2 +- .../IServiceCollectionExtensions.cs | 2 +- .../Model/NowGet200Response.cs | 2 +- .../src/Org.OpenAPITools/README.md | 2 +- .../Client/ExceptionEventArgs.cs | 2 +- .../Client/ExceptionEventArgs.cs | 2 +- .../Client/ExceptionEventArgs.cs | 2 +- .../Client/ExceptionEventArgs.cs | 2 +- .../Client/HttpSigningConfiguration.cs | 2 +- .../Client/ExceptionEventArgs.cs | 2 +- .../Client/HttpSigningConfiguration.cs | 2 +- .../Client/ExceptionEventArgs.cs | 2 +- .../Client/ExceptionEventArgs.cs | 2 +- .../Client/HttpSigningConfiguration.cs | 2 +- .../Client/ExceptionEventArgs.cs | 2 +- .../Client/HttpSigningConfiguration.cs | 2 +- .../net8/UseDateTimeForDate/api/openapi.yaml | 2 +- .../Org.OpenAPITools.Test/Api/ApiTestsBase.cs | 2 +- .../Api/DefaultApiTests.cs | 2 +- .../Api/DependencyInjectionTests.cs | 2 +- .../Model/NowGet200ResponseTests.cs | 2 +- .../src/Org.OpenAPITools/Api/DefaultApi.cs | 2 +- .../Org.OpenAPITools/Client/ApiException.cs | 2 +- .../Org.OpenAPITools/Client/ApiResponse`1.cs | 2 +- .../Org.OpenAPITools/Client/ClientUtils.cs | 2 +- .../Client/DateTimeJsonConverter.cs | 2 +- .../Client/DateTimeNullableJsonConverter.cs | 2 +- .../Client/ExceptionEventArgs.cs | 2 +- .../Client/HostConfiguration.cs | 2 +- .../src/Org.OpenAPITools/Client/Option.cs | 2 +- .../Client/RateLimitProvider`1.cs | 2 +- .../Client/TokenProvider`1.cs | 2 +- .../Extensions/IHostBuilderExtensions.cs | 2 +- .../IHttpClientBuilderExtensions.cs | 2 +- .../IServiceCollectionExtensions.cs | 2 +- .../Model/NowGet200Response.cs | 2 +- .../src/Org.OpenAPITools/README.md | 2 +- .../Client/ExceptionEventArgs.cs | 2 +- .../Client/HttpSigningConfiguration.cs | 2 +- .../Api/PetApiTestsV2.cs | 12 +- .../Client/HttpSigningConfiguration.cs | 2 +- .../Client/HttpSigningConfiguration.cs | 2 +- .../Client/HttpSigningConfiguration.cs | 2 +- .../Client/HttpSigningConfiguration.cs | 2 +- .../Client/HttpSigningConfiguration.cs | 2 +- .../net7/UseDateTimeForDate/README.md | 2 +- .../net7/UseDateTimeForDate/api/openapi.yaml | 2 +- .../Api/DefaultApiTests.cs | 2 +- .../Model/NowGet200ResponseTests.cs | 2 +- .../src/Org.OpenAPITools/Api/DefaultApi.cs | 2 +- .../src/Org.OpenAPITools/Client/ApiClient.cs | 2 +- .../Org.OpenAPITools/Client/ApiException.cs | 2 +- .../Org.OpenAPITools/Client/ApiResponse.cs | 2 +- .../Org.OpenAPITools/Client/ClientUtils.cs | 2 +- .../Org.OpenAPITools/Client/Configuration.cs | 2 +- .../Client/ExceptionFactory.cs | 2 +- .../Client/GlobalConfiguration.cs | 2 +- .../src/Org.OpenAPITools/Client/HttpMethod.cs | 2 +- .../Org.OpenAPITools/Client/IApiAccessor.cs | 2 +- .../Client/IAsynchronousClient.cs | 2 +- .../Client/IReadableConfiguration.cs | 2 +- .../Client/ISynchronousClient.cs | 2 +- .../src/Org.OpenAPITools/Client/Multimap.cs | 2 +- .../Client/OpenAPIDateConverter.cs | 2 +- .../Org.OpenAPITools/Client/RequestOptions.cs | 2 +- .../Client/RetryConfiguration.cs | 2 +- .../Model/AbstractOpenAPISchema.cs | 2 +- .../Model/NowGet200Response.cs | 2 +- .../Client/HttpSigningConfiguration.cs | 2 +- .../Client/HttpSigningConfiguration.cs | 2 +- .../Client/HttpSigningConfiguration.cs | 2 +- .../haskell-http-client/docs/linuwial.css | 2 +- .../java/okhttp-gson-3.1/api/openapi.yaml | 2 +- .../okhttp-gson-3.1/docs/OneOfStringOrInt.md | 2 +- .../java/okhttp-gson/api/openapi.yaml | 2 +- .../org/openapitools/client/JSONTest.java | 2 +- .../openapitools/client/api/PetApiTest.java | 2 +- .../petstore/php/psr-18/lib/Api/PetApi.php | 20 +-- .../petstore/php/psr-18/lib/ApiException.php | 4 +- .../ruby-httpx/.openapi-generator/FILES | 4 +- samples/client/petstore/ruby-httpx/README.md | 2 +- .../{MamalWithEnum.md => MammalWithEnum.md} | 8 +- .../petstore/ruby-httpx/lib/petstore.rb | 2 +- ...mamal_with_enum.rb => mammal_with_enum.rb} | 2 +- ..._enum_spec.rb => mammal_with_enum_spec.rb} | 4 +- .../petstore/ruby/.openapi-generator/FILES | 4 +- samples/client/petstore/ruby/README.md | 2 +- .../{MamalWithEnum.md => MammalWithEnum.md} | 8 +- samples/client/petstore/ruby/lib/petstore.rb | 2 +- ...mamal_with_enum.rb => mammal_with_enum.rb} | 2 +- ..._enum_spec.rb => mammal_with_enum_spec.rb} | 4 +- .../Classes/OpenAPIs/Validation.swift | 12 +- .../Classes/OpenAPIs/Validation.swift | 12 +- .../Classes/OpenAPIs/Validation.swift | 12 +- .../Classes/OpenAPIs/Validation.swift | 12 +- .../Classes/OpenAPIs/Validation.swift | 12 +- .../Classes/OpenAPIs/Validation.swift | 12 +- .../Classes/OpenAPIs/Validation.swift | 12 +- .../Classes/OpenAPIs/Validation.swift | 12 +- .../Classes/OpenAPIs/Validation.swift | 12 +- .../Sources/PetstoreClient/Validation.swift | 12 +- .../Classes/OpenAPIs/Validation.swift | 12 +- .../Sources/PetstoreClient/Validation.swift | 12 +- .../Infrastructure/Validation.swift | 12 +- .../Infrastructure/Validation.swift | 12 +- .../Infrastructure/Validation.swift | 12 +- .../OpenAPIs/Infrastructure/Validation.swift | 12 +- .../Infrastructure/Validation.swift | 12 +- .../Infrastructure/Validation.swift | 12 +- .../Infrastructure/Validation.swift | 12 +- .../OpenAPIs/Infrastructure/Validation.swift | 12 +- .../OpenAPIs/Infrastructure/Validation.swift | 12 +- .../OpenAPIs/Infrastructure/Validation.swift | 12 +- .../OpenAPIs/Infrastructure/Validation.swift | 12 +- .../Infrastructure/Validation.swift | 12 +- .../OpenAPIs/Infrastructure/Validation.swift | 12 +- .../Infrastructure/Validation.swift | 12 +- .../xojo/client-synchronous/README.md | 2 +- samples/client/petstore/xojo/client/README.md | 2 +- .../client/petstore/zapier/authentication.js | 2 +- samples/documentation/html2/index.html | 8 +- .../petstore/python-aiohttp/docs/FakeApi.md | 2 +- .../docs/FakeApi.md | 2 +- .../python-pydantic-v1/docs/FakeApi.md | 2 +- .../test/test_format_test.py | 4 +- .../python-pydantic-v1/tests/test_model.py | 4 +- .../client/petstore/python/docs/FakeApi.md | 2 +- .../petstore/python/test/test_format_test.py | 4 +- .../python/tests/test_configuration.py | 2 +- .../petstore/python/tests/test_model.py | 6 +- .../erlang-server/src/openapi_server.erl | 2 +- .../erlang-server/src/openapi_server.erl | 2 +- .../output/multipart-v3/src/auth.rs | 2 +- .../output/multipart-v3/src/server/mod.rs | 2 +- .../output/no-example-v3/src/auth.rs | 2 +- .../rust-server/output/openapi-v3/src/auth.rs | 2 +- .../rust-server/output/ops-v3/src/auth.rs | 2 +- .../src/auth.rs | 2 +- .../src/server/mod.rs | 2 +- .../output/ping-bearer-auth/src/auth.rs | 2 +- .../output/rust-server-test/src/auth.rs | 2 +- 290 files changed, 917 insertions(+), 917 deletions(-) rename samples/client/petstore/c-useJsonUnformatted/docs/{model_with_set_propertes.md => model_with_set_properties.md} (92%) delete mode 100644 samples/client/petstore/c-useJsonUnformatted/model/model_with_set_propertes.h rename samples/client/petstore/{c/model/model_with_set_propertes.c => c-useJsonUnformatted/model/model_with_set_properties.c} (56%) create mode 100644 samples/client/petstore/c-useJsonUnformatted/model/model_with_set_properties.h delete mode 100644 samples/client/petstore/c-useJsonUnformatted/unit-test/test_model_with_set_propertes.c create mode 100644 samples/client/petstore/c-useJsonUnformatted/unit-test/test_model_with_set_properties.c rename samples/client/petstore/c/docs/{model_with_set_propertes.md => model_with_set_properties.md} (92%) delete mode 100644 samples/client/petstore/c/model/model_with_set_propertes.h rename samples/client/petstore/{c-useJsonUnformatted/model/model_with_set_propertes.c => c/model/model_with_set_properties.c} (56%) create mode 100644 samples/client/petstore/c/model/model_with_set_properties.h delete mode 100644 samples/client/petstore/c/unit-test/test_model_with_set_propertes.c create mode 100644 samples/client/petstore/c/unit-test/test_model_with_set_properties.c rename samples/client/petstore/ruby-httpx/docs/{MamalWithEnum.md => MammalWithEnum.md} (78%) rename samples/client/petstore/ruby-httpx/lib/petstore/models/{mamal_with_enum.rb => mammal_with_enum.rb} (99%) rename samples/client/petstore/ruby-httpx/spec/models/{mamal_with_enum_spec.rb => mammal_with_enum_spec.rb} (91%) rename samples/client/petstore/ruby/docs/{MamalWithEnum.md => MammalWithEnum.md} (78%) rename samples/client/petstore/ruby/lib/petstore/models/{mamal_with_enum.rb => mammal_with_enum.rb} (99%) rename samples/client/petstore/ruby/spec/models/{mamal_with_enum_spec.rb => mammal_with_enum_spec.rb} (92%) diff --git a/README.md b/README.md index 3eeb3148f49e3..1ea2b23759e30 100644 --- a/README.md +++ b/README.md @@ -141,7 +141,7 @@ OpenAPI Spec compatibility: 1.0, 1.1, 1.2, 2.0, 3.0, 3.1 (beta support) For old releases, please refer to the [**Release**](https://github.com/OpenAPITools/openapi-generator/releases) page. -For decomissioned generators/libraries/frameworks, please refer to [the "Decommission" label](https://github.com/OpenAPITools/openapi-generator/issues?q=label%3ADecommission+is%3Amerged+) in the pull request page. +For decommissioned generators/libraries/frameworks, please refer to [the "Decommission" label](https://github.com/OpenAPITools/openapi-generator/issues?q=label%3ADecommission+is%3Amerged+) in the pull request page. ## [1.2 - Artifacts on Maven Central](#table-of-contents) diff --git a/bin/utils/test_file_list.yaml b/bin/utils/test_file_list.yaml index 31e862ffb1950..e145a4e251888 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: 0d64cdc11809a7b5b952ccdad2bd91bd0045b3894d6fabf3e368fa0be12b8217 - filename: "samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/PetTest.java" diff --git a/docs/3.0.0-release-note.md b/docs/3.0.0-release-note.md index b2127975817ea..e61130b9fde7c 100644 --- a/docs/3.0.0-release-note.md +++ b/docs/3.0.0-release-note.md @@ -10,7 +10,7 @@ sidebar_label: "Release Notes: 3.0.0" * e58dc2c77 Fix COPY in Dockerfile (#64) * 9d7feaaeb Fix online generator (docker push) (#58) * 9247cd01e Changes for Docker -* 64037ee59 update docker-related files to ues jdk8 +* 64037ee59 update docker-related files to use jdk8 * ## Plug-ins * b6b8c0db8 \[gradle-plugin] Initial implementation (#162) diff --git a/docs/customization.md b/docs/customization.md index 28cb619f1ebf5..0559d33fa8c78 100644 --- a/docs/customization.md +++ b/docs/customization.md @@ -266,7 +266,7 @@ Upon first code generation, you may also pass the CLI option `--ignore-file-over Editor support for `.openapi-generator-ignore` files is available in IntelliJ via the [.ignore plugin](https://plugins.jetbrains.com/plugin/7495--ignore). -One may want to pre-populate `.openapi-generator-ignore` with a list of entries during the code generation process and the global/general option `openapiGeneatorIgnoreList` (e.g. --openapi-generator-ignore-list in CLI) can do exactly that. For example, +One may want to pre-populate `.openapi-generator-ignore` with a list of entries during the code generation process and the global/general option `openapiGeneratorIgnoreList` (e.g. --openapi-generator-ignore-list in CLI) can do exactly that. For example, ``` java -jar modules/openapi-generator-cli/target/openapi-generator-cli.jar generate -g spring -i modules/openapi-generator/src/test/resources/3_0/petstore.yaml -o /tmp/spring --additional-properties useTags=true --openapi-generator-ignore-list "README.md,pom.xml,docs/*.md,src/main/java/org/openapitools/model/*" ``` @@ -434,9 +434,9 @@ java -jar modules/openapi-generator-cli/target/openapi-generator-cli.jar generat ``` will rename SOLD to UNAVAILABLE instead. -Not all generators support thess features yet. Please give it a try to confirm the behaviour and open an issue (ticket) to let us know which generators you would like to have this feature enabled and we'll prioritize accordingly. We also welcome PRs to add these features to generators. Related PRs for reference: #16209, #16234 (modelNameMappings), #16194, #16206 (nameMappings, parameterNameMappings), #17108 (enumNameMappings). +Not all generators support these features yet. Please give it a try to confirm the behaviour and open an issue (ticket) to let us know which generators you would like to have this feature enabled and we'll prioritize accordingly. We also welcome PRs to add these features to generators. Related PRs for reference: #16209, #16234 (modelNameMappings), #16194, #16206 (nameMappings, parameterNameMappings), #17108 (enumNameMappings). -NOTE: some generators use `baseName` (original name obtained direclty from OpenAPI spec, e.g. `shipping-date`) mustache tag in the templates so the mapping feature won't work. +NOTE: some generators use `baseName` (original name obtained directly from OpenAPI spec, e.g. `shipping-date`) mustache tag in the templates so the mapping feature won't work. To map `operationId` (used in method naming) to something else, use `operationIdNameMappings` option, e.g. @@ -480,7 +480,7 @@ paths: ## Inline Schema Naming -Inline schemas are created as separate schemas automatically and the auto-generated schema name may not look good to everyone. One can customize the name using the `title` field or the `inlineSchemaNameMapping` option. For exmaple, run the following, +Inline schemas are created as separate schemas automatically and the auto-generated schema name may not look good to everyone. One can customize the name using the `title` field or the `inlineSchemaNameMapping` option. For example, run the following, ``` java -jar modules/openapi-generator-cli/target/openapi-generator-cli.jar generate -g java -i modules/openapi-generator/src/test/resources/3_0/inline_model_resolver.yaml -o /tmp/java3/ --skip-validate-spec --inline-schema-name-mappings inline_object_2=SomethingMapped,inline_object_4=nothing_new @@ -503,7 +503,7 @@ Another useful option is `inlineSchemaOptions`, which allows you to customize ho - `ARRAY_ITEM_SUFFIX` sets the array item suffix - `MAP_ITEM_SUFFIX` set the map item suffix - `SKIP_SCHEMA_REUSE=true` is a special value to skip reusing inline schemas during refactoring -- `REFACTOR_ALLOF_INLINE_SCHEMAS=true` will restore the 6.x (or below) behaviour to refactor allOf inline schemas into $ref. (v7.0.0 will skip the refactoring of these allOf inline schmeas by default) +- `REFACTOR_ALLOF_INLINE_SCHEMAS=true` will restore the 6.x (or below) behaviour to refactor allOf inline schemas into $ref. (v7.0.0 will skip the refactoring of these allOf inline schemas by default) - `RESOLVE_INLINE_ENUMS=true` will refactor inline enum definitions into $ref ## OpenAPI Normalizer @@ -524,7 +524,7 @@ Example: java -jar modules/openapi-generator-cli/target/openapi-generator-cli.jar generate -g java -i modules/openapi-generator/src/test/resources/3_0/allOf_extension_parent.yaml -o /tmp/java-okhttp/ --openapi-normalizer REF_AS_PARENT_IN_ALLOF=true ``` -- `REMOVE_ANYOF_ONEOF_AND_KEEP_PROPERTIES_ONLY`: when set to `true`, oneOf/anyOf schema with only required properies only in a schema with properties will be removed. [(example)](https://github.com/OpenAPITools/openapi-generator/blob/master/modules/openapi-generator/src/test/resources/3_0/removeAnyOfOneOfAndKeepPropertiesOnly_test.yaml) +- `REMOVE_ANYOF_ONEOF_AND_KEEP_PROPERTIES_ONLY`: when set to `true`, oneOf/anyOf schema with only required properties only in a schema with properties will be removed. [(example)](https://github.com/OpenAPITools/openapi-generator/blob/master/modules/openapi-generator/src/test/resources/3_0/removeAnyOfOneOfAndKeepPropertiesOnly_test.yaml) Example: ``` diff --git a/docs/generators/swift5.md b/docs/generators/swift5.md index f1624cb68289b..0b3e087ad2977 100644 --- a/docs/generators/swift5.md +++ b/docs/generators/swift5.md @@ -55,7 +55,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 3828b2d89d6c9..3a29bc2da4838 100644 --- a/docs/generators/swift6.md +++ b/docs/generators/swift6.md @@ -57,7 +57,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-maven-plugin/src/main/java/org/openapitools/codegen/plugin/CodeGenMojo.java b/modules/openapi-generator-maven-plugin/src/main/java/org/openapitools/codegen/plugin/CodeGenMojo.java index 7fa87c399681e..792ca0dda2c0d 100644 --- a/modules/openapi-generator-maven-plugin/src/main/java/org/openapitools/codegen/plugin/CodeGenMojo.java +++ b/modules/openapi-generator-maven-plugin/src/main/java/org/openapitools/codegen/plugin/CodeGenMojo.java @@ -865,7 +865,7 @@ public void execute() throws MojoExecutionException { } // Apply Parameter Name Mappings - if (parameterNameMappings != null && (configOptions == null || !configOptions.containsKey("paramter-name-mappings"))) { + if (parameterNameMappings != null && (configOptions == null || !configOptions.containsKey("parameter-name-mappings"))) { applyParameterNameMappingsKvpList(parameterNameMappings, configurator); } 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 5ee43cb426140..117c78f542d2c 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 @@ -1928,9 +1928,9 @@ public String toInstantiationType(Schema schema) { if (ModelUtils.isMapSchema(schema)) { Schema additionalProperties = ModelUtils.getAdditionalProperties(schema); String inner = getSchemaType(additionalProperties); - String mapInstantion = instantiationTypes.get("map"); - if (mapInstantion != null) { - return mapInstantion + ""; + String mapInstantiation = instantiationTypes.get("map"); + if (mapInstantiation != null) { + return mapInstantiation + ""; } return inner; } else if (ModelUtils.isArraySchema(schema)) { @@ -2203,7 +2203,7 @@ public String toDefaultValueWithParam(String name, Schema schema) { * @return string presentation of the default value of the property */ public String toDefaultValue(CodegenProperty codegenProperty, Schema schema) { - // use toDefaultValue(schema) if generator has not overriden this method + // use toDefaultValue(schema) if generator has not overridden this method return toDefaultValue(schema); } @@ -3135,7 +3135,7 @@ protected void setAddProps(Schema schema, IJsonSchemaValidationProperties proper // if we are trying to set additionalProperties on an empty schema stop recursing return; } - // Note: This flag is set to true if additioanl properties + // Note: This flag is set to true if additional properties // is set (any type, free form object, boolean true, string, etc). // The variable name may be renamed later to avoid confusion. boolean additionalPropertiesIsAnyType = false; @@ -3158,7 +3158,7 @@ protected void setAddProps(Schema schema, IJsonSchemaValidationProperties proper additionalPropertiesIsAnyType = true; } } else { - // if additioanl properties is set (e.g. free form object, any type, string, etc) + // if additional properties is set (e.g. free form object, any type, string, etc) addPropProp = fromProperty(getAdditionalPropertiesName(), (Schema) schema.getAdditionalProperties(), false); additionalPropertiesIsAnyType = true; } @@ -3954,7 +3954,7 @@ public CodegenProperty fromProperty(String name, Schema p, boolean required, boo property._enum = new ArrayList<>(); for (Object i : _enum) { // raw null values in enums are unions for nullable - // atttributes, not actual enum values, so we remove them here + // attributes, not actual enum values, so we remove them here if (i == null) { property.isNullable = true; continue; 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 f9a1915ffc6ff..140b708e5ae7c 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 @@ -591,7 +591,7 @@ private void flattenResponses(String modelName, Operation operation) { * breed: * type: string * - * @param key a unique name ofr the composed schema. + * @param key a unique name for the composed schema. * @param children the list of nested schemas within a composed schema (allOf, anyOf, oneOf). * @param skipAllOfInlineSchemas true if allOf inline schemas need to be skipped. */ 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 acc09cc2a100a..65832bd26339c 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 @@ -705,7 +705,7 @@ private Schema normalizeComplexComposedSchema(Schema schema, Set visited } // ===================== a list of rules ===================== - // all rules (fuctions) 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/AbstractJavaCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractJavaCodegen.java index dcfbad983e0ba..fa9ad3714a444 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 @@ -927,7 +927,7 @@ private boolean startsWithTwoUppercaseLetters(String name) { @Override public String toParamName(String name) { - // obtain the name from paramterNameMapping directly if provided + // obtain the name from parameterNameMapping directly if provided if (parameterNameMapping.containsKey(name)) { return parameterNameMapping.get(name); } diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractJuliaCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractJuliaCodegen.java index 3f2549780f592..46d160e97f026 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractJuliaCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractJuliaCodegen.java @@ -153,7 +153,7 @@ protected static String dropDots(String str) { /** * Escapes a reserved word as defined in the `reservedWords` array. Handle escaping - * those terms here. This logic is only called if a variable matches the reseved words + * those terms here. This logic is only called if a variable matches the reserved words * * @return the escaped term */ 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 c3d95ec1e93e5..5cf3eeef00f67 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 @@ -1184,7 +1184,7 @@ private String getModelNameFromDataType(CodegenProperty cp) { } /** - * Update set of imports from codegen model recursivly + * Update set of imports from codegen model recursively * * @param modelName model name * @param cm codegen model @@ -1344,7 +1344,7 @@ public void postProcessPattern(String pattern, Map vendorExtensi if (pattern != null) { int i = pattern.lastIndexOf('/'); - // TOOD update the check below follow python convention + // TODO update the check below follow python convention //Must follow Perl /pattern/modifiers convention if (pattern.charAt(0) != '/' || i < 2) { throw new IllegalArgumentException("Pattern must follow the Perl " 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 58808b6b01a11..c697bc8f23460 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 @@ -1687,7 +1687,7 @@ private String getModelNameFromDataType(CodegenProperty cp) { } /** - * Update set of imports from codegen model recursivly + * Update set of imports from codegen model recursively * * @param modelName model name * @param cm codegen model @@ -1896,7 +1896,7 @@ public void postProcessPattern(String pattern, Map vendorExtensi if (pattern != null) { int i = pattern.lastIndexOf('/'); - // TOOD update the check below follow python convention + // TODO update the check below follow python convention //Must follow Perl /pattern/modifiers convention if (pattern.charAt(0) != '/' || i < 2) { throw new IllegalArgumentException("Pattern must follow the Perl " diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/GoClientCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/GoClientCodegen.java index 25588dfa7eac7..bf1ca99b64f17 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/GoClientCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/GoClientCodegen.java @@ -335,7 +335,7 @@ public String apiFileFolder() { } /** - * Location of created model files (it can be overriden using --additional-properties in openapi-generator-cli + * Location of created model files (it can be overridden using --additional-properties in openapi-generator-cli */ @Override public String modelFileFolder() { diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/JavaClientCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/JavaClientCodegen.java index 8239da1fd6bd5..21e327e2149aa 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/JavaClientCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/JavaClientCodegen.java @@ -320,7 +320,7 @@ public void processOpts() { dateLibrary = "legacy"; } super.processOpts(); - // default jackson unless overriden by setSerializationLibrary + // default jackson unless overridden by setSerializationLibrary this.jackson = !additionalProperties.containsKey(CodegenConstants.SERIALIZATION_LIBRARY) || SERIALIZATION_LIBRARY_JACKSON.equals(additionalProperties.get(CodegenConstants.SERIALIZATION_LIBRARY)); convertPropertyToBooleanAndWriteBack(CodegenConstants.USE_ONEOF_DISCRIMINATOR_LOOKUP, this::setUseOneOfDiscriminatorLookup); diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/KotlinClientCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/KotlinClientCodegen.java index f6b48c7563b3c..0c0ec4bb16238 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/KotlinClientCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/KotlinClientCodegen.java @@ -771,7 +771,7 @@ private void processJVMOkHttpLibrary(final String infrastructureFolder) { supportingFiles.add(new SupportingFile("infrastructure/ApiResponse.kt.mustache", infrastructureFolder, "ApiResponse.kt")); } - private void proccessJvmSpring(final String infrastructureFolder) { + private void processJvmSpring(final String infrastructureFolder) { if (getSerializationLibrary() != SERIALIZATION_LIBRARY_TYPE.jackson) { throw new RuntimeException("This library currently only supports jackson serialization. Try adding '--additional-properties serializationLibrary=jackson' to your command."); } @@ -784,7 +784,7 @@ private void proccessJvmSpring(final String infrastructureFolder) { } private void processJvmSpringWebClientLibrary(final String infrastructureFolder) { - proccessJvmSpring(infrastructureFolder); + processJvmSpring(infrastructureFolder); additionalProperties.put(JVM_SPRING_WEBCLIENT, true); } @@ -793,7 +793,7 @@ private void processJvmSpringRestClientLibrary(final String infrastructureFolder throw new RuntimeException("This library must use Spring Boot 3. Try adding '--additional-properties useSpringBoot3=true' to your command."); } - proccessJvmSpring(infrastructureFolder); + processJvmSpring(infrastructureFolder); additionalProperties.put(JVM_SPRING_RESTCLIENT, true); } diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/RustServerCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/RustServerCodegen.java index 5065df651e956..d74eb5ab7ae3f 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/RustServerCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/RustServerCodegen.java @@ -1225,7 +1225,7 @@ public CodegenModel fromModel(String name, Schema model) { } } - // Do we suppport doing ToString/FromStr conversions for query parameters? + // Do we support doing ToString/FromStr conversions for query parameters? boolean toStringSupport = true; boolean isString = "String".equals(mdl.dataType); 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 c6eae192b9d0d..e0434bc921a97 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 @@ -868,7 +868,7 @@ private static String queryArgs(final CodegenOperation op) { *

* The data variant can have nulls and other non-scala things, but they know how to create validated model objects. *

- * This 'asScalaDataType' is used to ensure the type hierarchy is correct for both the model and data varients. + * This 'asScalaDataType' is used to ensure the type hierarchy is correct for both the model and data variants. *

* e.g. consider this example: * ``` diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/SpringCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/SpringCodegen.java index cb3c52a99c750..e62c275622a2a 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/SpringCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/SpringCodegen.java @@ -1073,7 +1073,7 @@ private Set reformatProvideArgsParams(Operation operation) { if (argObj instanceof List) { List provideArgs = (List) argObj; if (!provideArgs.isEmpty()) { - List formatedArgs = new ArrayList<>(); + List formattedArgs = new ArrayList<>(); for (String oneArg : provideArgs) { if (StringUtils.isNotEmpty(oneArg)) { String regexp = "(?@)?(?(?(\\w+\\.)*)(?\\w+))(?\\(.*?\\))?\\s?"; @@ -1095,10 +1095,10 @@ private Set reformatProvideArgsParams(Operation operation) { } String newArg = String.join(" ", newArgs); LOGGER.trace("new arg {} {}", newArg); - formatedArgs.add(newArg); + formattedArgs.add(newArg); } } - operation.getExtensions().put("x-spring-provide-args", formatedArgs); + operation.getExtensions().put("x-spring-provide-args", formattedArgs); } } return provideArgsClassSet; 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 00e727cf2dba2..d70a740e7470c 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 @@ -316,7 +316,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 07eee1f2c05b2..441958bbce221 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 @@ -345,7 +345,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 95bd6c3b0bb70..0985f0c3364fe 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/cpp-rest-sdk-client/modelbase-header.mustache b/modules/openapi-generator/src/main/resources/cpp-rest-sdk-client/modelbase-header.mustache index 04c578517981c..b97a7ad8da5f7 100644 --- a/modules/openapi-generator/src/main/resources/cpp-rest-sdk-client/modelbase-header.mustache +++ b/modules/openapi-generator/src/main/resources/cpp-rest-sdk-client/modelbase-header.mustache @@ -229,7 +229,7 @@ web::json::value ModelBase::toJson( const std::vector& value ) template web::json::value ModelBase::toJson( const std::set& value ) { - // There's no protoype web::json::value::array(...) taking a std::set parameter. Converting to std::vector to get an array. + // There's no prototype web::json::value::array(...) taking a std::set parameter. Converting to std::vector to get an array. std::vector ret; for ( const auto& x : value ) { diff --git a/modules/openapi-generator/src/main/resources/csharp-functions/HttpSigningConfiguration.mustache b/modules/openapi-generator/src/main/resources/csharp-functions/HttpSigningConfiguration.mustache index f5cc312c6fe54..58c9cf6dba32f 100644 --- a/modules/openapi-generator/src/main/resources/csharp-functions/HttpSigningConfiguration.mustache +++ b/modules/openapi-generator/src/main/resources/csharp-functions/HttpSigningConfiguration.mustache @@ -59,7 +59,7 @@ namespace {{packageName}}.Client public string SigningAlgorithm { get; set; } ///

- /// Gets the Signature validaty period in seconds + /// Gets the Signature validity period in seconds /// public int SignatureValidityPeriod { get; set; } 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 9b1f66624d74a..55b1d51837d9c 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/csharp/HttpSigningConfiguration.mustache b/modules/openapi-generator/src/main/resources/csharp/HttpSigningConfiguration.mustache index faca675944a38..3105952c2473f 100644 --- a/modules/openapi-generator/src/main/resources/csharp/HttpSigningConfiguration.mustache +++ b/modules/openapi-generator/src/main/resources/csharp/HttpSigningConfiguration.mustache @@ -389,7 +389,7 @@ namespace {{packageName}}.Client } /// - /// Convert ANS1 format to DER format. Not recommended to use because it generate inavlid signature occationally. + /// Convert ANS1 format to DER format. Not recommended to use because it generate invalid signature occasionally. /// /// /// diff --git a/modules/openapi-generator/src/main/resources/csharp/libraries/generichost/ExceptionEventArgs.mustache b/modules/openapi-generator/src/main/resources/csharp/libraries/generichost/ExceptionEventArgs.mustache index 016ef7c697f27..b74fcfa0a1de7 100644 --- a/modules/openapi-generator/src/main/resources/csharp/libraries/generichost/ExceptionEventArgs.mustache +++ b/modules/openapi-generator/src/main/resources/csharp/libraries/generichost/ExceptionEventArgs.mustache @@ -13,7 +13,7 @@ namespace {{packageName}}.{{clientPackage}} public Exception Exception { get; } /// - /// The ExcepetionEventArgs + /// The ExceptionEventArgs /// /// public ExceptionEventArgs(Exception exception) diff --git a/modules/openapi-generator/src/main/resources/csharp/libraries/generichost/HttpSigningConfiguration.mustache b/modules/openapi-generator/src/main/resources/csharp/libraries/generichost/HttpSigningConfiguration.mustache index 5e0f7739df06f..357626fcc6c27 100644 --- a/modules/openapi-generator/src/main/resources/csharp/libraries/generichost/HttpSigningConfiguration.mustache +++ b/modules/openapi-generator/src/main/resources/csharp/libraries/generichost/HttpSigningConfiguration.mustache @@ -65,7 +65,7 @@ namespace {{packageName}}.{{clientPackage}} public string SigningAlgorithm { get; set; } /// - /// Gets the Signature validaty period in seconds + /// Gets the Signature validity period in seconds /// public int SignatureValidityPeriod { get; set; } 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 86b4654a02a16..60e4b68346f5e 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/htmlDocs2/index.mustache b/modules/openapi-generator/src/main/resources/htmlDocs2/index.mustache index ec5d8c742f694..0e3162bc37dcf 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/php/libraries/psr-18/ApiException.mustache b/modules/openapi-generator/src/main/resources/php/libraries/psr-18/ApiException.mustache index 83aaec422dd41..8a0390042b735 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/php/libraries/psr-18/api.mustache b/modules/openapi-generator/src/main/resources/php/libraries/psr-18/api.mustache index 8321b1d6072be..be983bec6d619 100644 --- a/modules/openapi-generator/src/main/resources/php/libraries/psr-18/api.mustache +++ b/modules/openapi-generator/src/main/resources/php/libraries/psr-18/api.mustache @@ -181,7 +181,7 @@ use function sprintf; {{/vendorExtensions.x-group-parameters}} {{#servers}} {{#-first}} - * This oepration contains host(s) defined in the OpenAP spec. Use 'hostIndex' to select the host. + * This operation contains host(s) defined in the OpenAP spec. Use 'hostIndex' to select the host. {{/-first}} * URL: {{{url}}} {{#-last}} @@ -219,7 +219,7 @@ use function sprintf; {{/vendorExtensions.x-group-parameters}} {{#servers}} {{#-first}} - * This oepration contains host(s) defined in the OpenAP spec. Use 'hostIndex' to select the host. + * This operation contains host(s) defined in the OpenAP spec. Use 'hostIndex' to select the host. {{/-first}} * URL: {{{url}}} {{#-last}} @@ -342,7 +342,7 @@ use function sprintf; {{/vendorExtensions.x-group-parameters}} {{#servers}} {{#-first}} - * This oepration contains host(s) defined in the OpenAP spec. Use 'hostIndex' to select the host. + * This operation contains host(s) defined in the OpenAP spec. Use 'hostIndex' to select the host. {{/-first}} * URL: {{{url}}} {{#-last}} @@ -383,7 +383,7 @@ use function sprintf; {{/vendorExtensions.x-group-parameters}} {{#servers}} {{#-first}} - * This oepration contains host(s) defined in the OpenAP spec. Use 'hostIndex' to select the host. + * This operation contains host(s) defined in the OpenAP spec. Use 'hostIndex' to select the host. {{/-first}} * URL: {{{url}}} {{#-last}} @@ -448,7 +448,7 @@ use function sprintf; {{/vendorExtensions.x-group-parameters}} {{#servers}} {{#-first}} - * This oepration contains host(s) defined in the OpenAP spec. Use 'hostIndex' to select the host. + * This operation contains host(s) defined in the OpenAP spec. Use 'hostIndex' to select the host. {{/-first}} * URL: {{{url}}} {{#-last}} diff --git a/modules/openapi-generator/src/main/resources/r/api_client.mustache b/modules/openapi-generator/src/main/resources/r/api_client.mustache index fb1285d0f1773..889d8fc06a5ed 100644 --- a/modules/openapi-generator/src/main/resources/r/api_client.mustache +++ b/modules/openapi-generator/src/main/resources/r/api_client.mustache @@ -29,7 +29,7 @@ {{#authMethods}} {{#isOAuth}} #' @field oauth_flow_type OAuth flow type -#' @field oauth_authorization_url Authoriziation URL +#' @field oauth_authorization_url authorization URL #' @field oauth_token_url Token URL #' @field oauth_pkce Boolean flag to enable PKCE {{/isOAuth}} @@ -73,7 +73,7 @@ ApiClient <- R6::R6Class( {{#isOAuth}} # Flow type oauth_flow_type = "{{flow}}", - # Authoriziation URL + # authorization URL oauth_authorization_url = "{{authorizationUrl}}", # Token URL oauth_token_url = "{{tokenUrl}}", @@ -105,7 +105,7 @@ ApiClient <- R6::R6Class( #' @param bearer_token Bearer token. #' @param timeout Timeout. #' @param retry_status_codes Status codes for retry. - #' @param max_retry_attempts Maxmium number of retry. + #' @param max_retry_attempts Maximum number of retry. #' @export initialize = function(base_path = NULL, user_agent = NULL, default_headers = NULL, 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 e888008f4597a..514ee61a1984f 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 @@ -29,7 +29,7 @@ {{#authMethods}} {{#isOAuth}} #' @field oauth_flow_type OAuth flow type -#' @field oauth_authorization_url Authoriziation URL +#' @field oauth_authorization_url authorization URL #' @field oauth_token_url Token URL #' @field oauth_pkce Boolean flag to enable PKCE #' @field oauth_scopes OAuth scopes @@ -73,7 +73,7 @@ ApiClient <- R6::R6Class( {{#isOAuth}} # Flow type oauth_flow_type = "{{flow}}", - # Authoriziation URL + # authorization URL oauth_authorization_url = "{{authorizationUrl}}", # Token URL oauth_token_url = "{{tokenUrl}}", @@ -107,7 +107,7 @@ ApiClient <- R6::R6Class( #' @param bearer_token Bearer token. #' @param timeout Timeout. #' @param retry_status_codes Status codes for retry. - #' @param max_retry_attempts Maxmium number of retry. + #' @param max_retry_attempts Maximum number of retry. #' @export initialize = function(base_path = NULL, user_agent = NULL, default_headers = NULL, @@ -306,7 +306,7 @@ ApiClient <- R6::R6Class( req <- req %>% req_oauth_auth_code(client, scope = req_oauth_scopes, pkce = self$oauth_pkce, - auth_url = self$oauth_authoriziation_url) + auth_url = self$oauth_authorization_url) } {{/hasOAuthMethods}} diff --git a/modules/openapi-generator/src/main/resources/rust-server/auth.mustache b/modules/openapi-generator/src/main/resources/rust-server/auth.mustache index cbaba3dca7c6e..d2b1481eeb811 100644 --- a/modules/openapi-generator/src/main/resources/rust-server/auth.mustache +++ b/modules/openapi-generator/src/main/resources/rust-server/auth.mustache @@ -34,7 +34,7 @@ fn dummy_authorization() -> Authorization { // However, if you want to use it anyway this can not be unimplemented, so dummy implementation added. // unimplemented!() Authorization{ - subject: "Dummmy".to_owned(), + subject: "Dummy".to_owned(), scopes: Scopes::Some(BTreeSet::new()), // create an empty scope, as this should not be used issuer: None } diff --git a/modules/openapi-generator/src/main/resources/rust-server/server-request-body-multipart-form.mustache b/modules/openapi-generator/src/main/resources/rust-server/server-request-body-multipart-form.mustache index c5022acf84bb2..f563459396a82 100644 --- a/modules/openapi-generator/src/main/resources/rust-server/server-request-body-multipart-form.mustache +++ b/modules/openapi-generator/src/main/resources/rust-server/server-request-body-multipart-form.mustache @@ -39,7 +39,7 @@ return Ok(Response::builder() .status(StatusCode::INTERNAL_SERVER_ERROR) .body(Body::from("Failed to process message part due an internal error".to_string())) - .expect("Unable to create Internal Server Error response due to an internal errror")) + .expect("Unable to create Internal Server Error response due to an internal error")) }, SaveResult::Error(e) => { return Ok(Response::builder() 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 eeb76d81c4d8c..1ae823091e5cb 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 5535cae98f1b8..53ffae5b3b66f 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 70e3abfb50572..91bbcf7885552 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 1197e79dfd70a..1dba3909467d9 100644 --- a/modules/openapi-generator/src/main/resources/swift6/Validation.mustache +++ b/modules/openapi-generator/src/main/resources/swift6/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/xojo-client/README.mustache b/modules/openapi-generator/src/main/resources/xojo-client/README.mustache index 2853be362675b..027695ee135e8 100644 --- a/modules/openapi-generator/src/main/resources/xojo-client/README.mustache +++ b/modules/openapi-generator/src/main/resources/xojo-client/README.mustache @@ -33,7 +33,7 @@ This project depends on [Xoson](https://github.com/Topheee/xoson) `v2.2.0` (and git clone 'https://github.com/Topheee/xoson.git' ``` -Open the `Xoson.xojo_project` from the cloned git repository with Xojo and copy the `Xoson` module to your project. Similarily, open the `{{{projectName}}}.xojo_project` file with Xojo and copy `{{{projectName}}}` to your project. +Open the `Xoson.xojo_project` from the cloned git repository with Xojo and copy the `Xoson` module to your project. Similarly, open the `{{{projectName}}}.xojo_project` file with Xojo and copy `{{{projectName}}}` to your project. > Since Xojo currently has no package manager, you need to manually copy both the `Xoson` and the `{{{projectName}}}` modules to your Xojo project. diff --git a/modules/openapi-generator/src/main/resources/zapier/authentication.mustache b/modules/openapi-generator/src/main/resources/zapier/authentication.mustache index 8294e5fc99a6c..7f62337d3c755 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: autentication 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/InlineModelResolverTest.java b/modules/openapi-generator/src/test/java/org/openapitools/codegen/InlineModelResolverTest.java index 133f9b1c51299..4159f0a433713 100644 --- a/modules/openapi-generator/src/test/java/org/openapitools/codegen/InlineModelResolverTest.java +++ b/modules/openapi-generator/src/test/java/org/openapitools/codegen/InlineModelResolverTest.java @@ -861,7 +861,7 @@ public void inheritanceWithInlineDiscriminator() { // Contact ComposedSchema contact = (ComposedSchema) openAPI.getComponents().getSchemas().get("Contact"); - Schema contactAllOf = contact.getAllOf().get(1); // use the inline child scheam directly + Schema contactAllOf = contact.getAllOf().get(1); // use the inline child schema directly assertEquals(contact.getExtensions().get("x-discriminator-value"), "contact"); assertEquals(contact.getAllOf().get(0).get$ref(), "#/components/schemas/Party"); diff --git a/modules/openapi-generator/src/test/java/org/openapitools/codegen/OpenAPINormalizerTest.java b/modules/openapi-generator/src/test/java/org/openapitools/codegen/OpenAPINormalizerTest.java index 399076d79b3b2..6ab4fc84644c6 100644 --- a/modules/openapi-generator/src/test/java/org/openapitools/codegen/OpenAPINormalizerTest.java +++ b/modules/openapi-generator/src/test/java/org/openapitools/codegen/OpenAPINormalizerTest.java @@ -73,7 +73,7 @@ public void testOpenAPINormalizerEnableKeepOnlyFirstTagInOperation() { @Test public void testOpenAPINormalizerRemoveAnyOfOneOfAndKeepPropertiesOnly() { - // to test the rule REMOVE_ANYOF_ONEOF_AND_KEEP_PROPERTIIES_ONLY + // to test the rule REMOVE_ANYOF_ONEOF_AND_KEEP_PROPERTIES_ONLY OpenAPI openAPI = TestUtils.parseSpec("src/test/resources/3_0/removeAnyOfOneOfAndKeepPropertiesOnly_test.yaml"); Schema schema = openAPI.getComponents().getSchemas().get("Person"); 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 07362649ff645..b9c02d1f2552c 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/resources/2_0/c/petstore.yaml b/modules/openapi-generator/src/test/resources/2_0/c/petstore.yaml index c5125f976e749..2ee0445ac7c11 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 @@ -726,7 +726,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 34fd6fa65d71c..7cbd93918b6b9 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 102fd68000e98..75e0184083924 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 51280fd9306df..0be9bee53ab6d 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 68304012d533a..f2abdd511007e 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 da9323c151275..eb5bab3f0cbb6 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 1f82853979360..3f06bc02b2692 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 @@ -2689,7 +2689,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 4377a5707dc9a..8b54a351a1944 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 @@ -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 74b530588bdb3..aed17d1fe60b5 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 3b8a3c9e03fa3..c0d013bf87e46 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 f0782835b284a..707db7a5c4f39 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 f0782835b284a..707db7a5c4f39 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 2ea26dbfa4e6b..41ac23068da79 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 479bc3c1a624b..7249c2ad49e91 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 05a4d2fa6a529..fb92d4f39b904 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 f0782835b284a..707db7a5c4f39 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 1fee47e06241b..f8a2a3ae51983 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", @@ -94117,7 +94117,7 @@ "nullable": true }, "idle_timeout_notice": { - "description": "Text to show user when codespace idle timeout minutes has been overriden by an organization policy", + "description": "Text to show user when codespace idle timeout minutes has been overridden by an organization policy", "type": "string", "nullable": true }, @@ -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", @@ -116606,7 +116606,7 @@ "nullable": true }, "idle_timeout_notice": { - "description": "Text to show user when codespace idle timeout minutes has been overriden by an organization policy", + "description": "Text to show user when codespace idle timeout minutes has been overridden by an organization policy", "type": "string", "nullable": true }, @@ -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 3f59c3cb699b5..bd00bec7c64c8 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 bd071a0b132d9..18b1f2b8a62be 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 9cdb45fcd65d1..b94ec07dff9c2 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_1/java/petstore.yaml b/modules/openapi-generator/src/test/resources/3_1/java/petstore.yaml index 5e4b22628055c..060b9a2dbb861 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 @@ -946,7 +946,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 @@ -992,7 +992,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/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/tests/test_manual.py b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/tests/test_manual.py index 1a5d0bb4d83ff..daf18d8fa6c79 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 202cf2dd19630..1f5230f3fd32b 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 8572845b9ab83..790b60c79dc05 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 3c9001df6ef3c..9ca7db68e3f3c 100644 --- a/samples/client/echo_api/r/R/api_client.R +++ b/samples/client/echo_api/r/R/api_client.R @@ -72,7 +72,7 @@ ApiClient <- R6::R6Class( #' @param bearer_token Bearer token. #' @param timeout Timeout. #' @param retry_status_codes Status codes for retry. - #' @param max_retry_attempts Maxmium number of retry. + #' @param max_retry_attempts Maximum number of retry. #' @export initialize = function(base_path = NULL, user_agent = NULL, default_headers = NULL, 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 32aa262f5545f..42d7454528f5d 100644 --- a/samples/client/petstore/R-httr2-wrapper/R/api_client.R +++ b/samples/client/petstore/R-httr2-wrapper/R/api_client.R @@ -32,7 +32,7 @@ #' @field oauth_secret OAuth secret #' @field oauth_refresh_token OAuth refresh token #' @field oauth_flow_type OAuth flow type -#' @field oauth_authorization_url Authoriziation URL +#' @field oauth_authorization_url authorization URL #' @field oauth_token_url Token URL #' @field oauth_pkce Boolean flag to enable PKCE #' @field oauth_scopes OAuth scopes @@ -68,7 +68,7 @@ ApiClient <- R6::R6Class( # OAuth2 # Flow type oauth_flow_type = "implicit", - # Authoriziation URL + # authorization URL oauth_authorization_url = "http://petstore.swagger.io/api/oauth/dialog", # Token URL oauth_token_url = "", @@ -99,7 +99,7 @@ ApiClient <- R6::R6Class( #' @param bearer_token Bearer token. #' @param timeout Timeout. #' @param retry_status_codes Status codes for retry. - #' @param max_retry_attempts Maxmium number of retry. + #' @param max_retry_attempts Maximum number of retry. #' @export initialize = function(base_path = NULL, user_agent = NULL, default_headers = NULL, @@ -296,7 +296,7 @@ ApiClient <- R6::R6Class( req <- req %>% req_oauth_auth_code(client, scope = req_oauth_scopes, pkce = self$oauth_pkce, - auth_url = self$oauth_authoriziation_url) + auth_url = self$oauth_authorization_url) } # stream data 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 917d3fb00ec45..0d58c9aca62a7 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 32aa262f5545f..42d7454528f5d 100644 --- a/samples/client/petstore/R-httr2/R/api_client.R +++ b/samples/client/petstore/R-httr2/R/api_client.R @@ -32,7 +32,7 @@ #' @field oauth_secret OAuth secret #' @field oauth_refresh_token OAuth refresh token #' @field oauth_flow_type OAuth flow type -#' @field oauth_authorization_url Authoriziation URL +#' @field oauth_authorization_url authorization URL #' @field oauth_token_url Token URL #' @field oauth_pkce Boolean flag to enable PKCE #' @field oauth_scopes OAuth scopes @@ -68,7 +68,7 @@ ApiClient <- R6::R6Class( # OAuth2 # Flow type oauth_flow_type = "implicit", - # Authoriziation URL + # authorization URL oauth_authorization_url = "http://petstore.swagger.io/api/oauth/dialog", # Token URL oauth_token_url = "", @@ -99,7 +99,7 @@ ApiClient <- R6::R6Class( #' @param bearer_token Bearer token. #' @param timeout Timeout. #' @param retry_status_codes Status codes for retry. - #' @param max_retry_attempts Maxmium number of retry. + #' @param max_retry_attempts Maximum number of retry. #' @export initialize = function(base_path = NULL, user_agent = NULL, default_headers = NULL, @@ -296,7 +296,7 @@ ApiClient <- R6::R6Class( req <- req %>% req_oauth_auth_code(client, scope = req_oauth_scopes, pkce = self$oauth_pkce, - auth_url = self$oauth_authoriziation_url) + auth_url = self$oauth_authorization_url) } # stream data 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 b612714b81227..afeea1cc9ebf9 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 631827298a305..4dd954bcc19df 100644 --- a/samples/client/petstore/R/R/api_client.R +++ b/samples/client/petstore/R/R/api_client.R @@ -32,7 +32,7 @@ #' @field oauth_secret OAuth secret #' @field oauth_refresh_token OAuth refresh token #' @field oauth_flow_type OAuth flow type -#' @field oauth_authorization_url Authoriziation URL +#' @field oauth_authorization_url authorization URL #' @field oauth_token_url Token URL #' @field oauth_pkce Boolean flag to enable PKCE #' @field bearer_token Bearer token @@ -68,7 +68,7 @@ ApiClient <- R6::R6Class( # OAuth2 # Flow type oauth_flow_type = "implicit", - # Authoriziation URL + # authorization URL oauth_authorization_url = "http://petstore.swagger.io/api/oauth/dialog", # Token URL oauth_token_url = "", @@ -97,7 +97,7 @@ ApiClient <- R6::R6Class( #' @param bearer_token Bearer token. #' @param timeout Timeout. #' @param retry_status_codes Status codes for retry. - #' @param max_retry_attempts Maxmium number of retry. + #' @param max_retry_attempts Maximum number of retry. #' @export initialize = function(base_path = NULL, user_agent = NULL, default_headers = NULL, diff --git a/samples/client/petstore/R/tests/testthat/test_petstore.R b/samples/client/petstore/R/tests/testthat/test_petstore.R index f7a70df4f9d58..d3218eacfe612 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 de78f2c09bb84..21e55f6de8a1b 100644 --- a/samples/client/petstore/c-useJsonUnformatted/.openapi-generator/FILES +++ b/samples/client/petstore/c-useJsonUnformatted/.openapi-generator/FILES @@ -13,7 +13,7 @@ docs/StoreAPI.md docs/UserAPI.md docs/api_response.md docs/category.md -docs/model_with_set_propertes.md +docs/model_with_set_properties.md docs/order.md docs/pet.md docs/tag.md @@ -32,8 +32,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 9d01b09104dc6..5e8a07760715d 100644 --- a/samples/client/petstore/c-useJsonUnformatted/CMakeLists.txt +++ b/samples/client/petstore/c-useJsonUnformatted/CMakeLists.txt @@ -57,7 +57,7 @@ set(SRCS model/mapped_model.c model/api_response.c model/category.c - model/model_with_set_propertes.c + model/model_with_set_properties.c model/order.c model/pet.c model/tag.c @@ -78,7 +78,7 @@ set(HDRS model/mapped_model.h model/api_response.h model/category.h - model/model_with_set_propertes.h + model/model_with_set_properties.h model/order.h model/pet.h model/tag.h diff --git a/samples/client/petstore/c-useJsonUnformatted/README.md b/samples/client/petstore/c-useJsonUnformatted/README.md index 0405ed5c059a6..5bd48434f04cc 100644 --- a/samples/client/petstore/c-useJsonUnformatted/README.md +++ b/samples/client/petstore/c-useJsonUnformatted/README.md @@ -93,7 +93,7 @@ Category | Method | HTTP request | Description - [MappedModel_t](docs/MappedModel.md) - [api_response_t](docs/api_response.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) - [tag_t](docs/tag.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 2b8389e87f865..242fc62856a57 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 537271638b995..0000000000000 --- 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 56% 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 45b4972636469..482e2bb10c5c8 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 (tag_set) { cJSON *tag_set_local_nonprimitive = NULL; if(!cJSON_IsArray(tag_set)){ @@ -120,8 +120,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 (string_set) { cJSON *string_set_local = NULL; if(!cJSON_IsArray(string_set)) { @@ -140,12 +140,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 0000000000000..020e6638d45d3 --- /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 bdd4634049c5d..0000000000000 --- 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 0000000000000..f9f935a9814f0 --- /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 974bd47125f3c..f57a98f547e8e 100644 --- a/samples/client/petstore/c/.openapi-generator/FILES +++ b/samples/client/petstore/c/.openapi-generator/FILES @@ -12,7 +12,7 @@ docs/StoreAPI.md docs/UserAPI.md docs/api_response.md docs/category.md -docs/model_with_set_propertes.md +docs/model_with_set_properties.md docs/order.md docs/pet.md docs/tag.md @@ -31,8 +31,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 0405ed5c059a6..5bd48434f04cc 100644 --- a/samples/client/petstore/c/README.md +++ b/samples/client/petstore/c/README.md @@ -93,7 +93,7 @@ Category | Method | HTTP request | Description - [MappedModel_t](docs/MappedModel.md) - [api_response_t](docs/api_response.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) - [tag_t](docs/tag.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 2b8389e87f865..242fc62856a57 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 537271638b995..0000000000000 --- 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 56% 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 45b4972636469..482e2bb10c5c8 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 (tag_set) { cJSON *tag_set_local_nonprimitive = NULL; if(!cJSON_IsArray(tag_set)){ @@ -120,8 +120,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 (string_set) { cJSON *string_set_local = NULL; if(!cJSON_IsArray(string_set)) { @@ -140,12 +140,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 0000000000000..020e6638d45d3 --- /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 3c62088bc7361..0000000000000 --- 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 0000000000000..62913d3d9156f --- /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/cpp-restsdk/client/include/CppRestPetstoreClient/ModelBase.h b/samples/client/petstore/cpp-restsdk/client/include/CppRestPetstoreClient/ModelBase.h index 10b6ec9f10c07..27a9019c6d54c 100644 --- a/samples/client/petstore/cpp-restsdk/client/include/CppRestPetstoreClient/ModelBase.h +++ b/samples/client/petstore/cpp-restsdk/client/include/CppRestPetstoreClient/ModelBase.h @@ -240,7 +240,7 @@ web::json::value ModelBase::toJson( const std::vector& value ) template web::json::value ModelBase::toJson( const std::set& value ) { - // There's no protoype web::json::value::array(...) taking a std::set parameter. Converting to std::vector to get an array. + // There's no prototype web::json::value::array(...) taking a std::set parameter. Converting to std::vector to get an array. std::vector ret; for ( const auto& x : value ) { diff --git a/samples/client/petstore/csharp/generichost/net4.7/AllOf/src/Org.OpenAPITools/Client/ExceptionEventArgs.cs b/samples/client/petstore/csharp/generichost/net4.7/AllOf/src/Org.OpenAPITools/Client/ExceptionEventArgs.cs index dcfab66782331..f711f9f3c7ee3 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/AllOf/src/Org.OpenAPITools/Client/ExceptionEventArgs.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/AllOf/src/Org.OpenAPITools/Client/ExceptionEventArgs.cs @@ -13,7 +13,7 @@ public class ExceptionEventArgs : EventArgs public Exception Exception { get; } /// - /// The ExcepetionEventArgs + /// The ExceptionEventArgs /// /// public ExceptionEventArgs(Exception exception) diff --git a/samples/client/petstore/csharp/generichost/net4.7/AnyOf/src/Org.OpenAPITools/Client/ExceptionEventArgs.cs b/samples/client/petstore/csharp/generichost/net4.7/AnyOf/src/Org.OpenAPITools/Client/ExceptionEventArgs.cs index dcfab66782331..f711f9f3c7ee3 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/AnyOf/src/Org.OpenAPITools/Client/ExceptionEventArgs.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/AnyOf/src/Org.OpenAPITools/Client/ExceptionEventArgs.cs @@ -13,7 +13,7 @@ public class ExceptionEventArgs : EventArgs public Exception Exception { get; } /// - /// The ExcepetionEventArgs + /// The ExceptionEventArgs /// /// public ExceptionEventArgs(Exception exception) diff --git a/samples/client/petstore/csharp/generichost/net4.7/AnyOfNoCompare/src/Org.OpenAPITools/Client/ExceptionEventArgs.cs b/samples/client/petstore/csharp/generichost/net4.7/AnyOfNoCompare/src/Org.OpenAPITools/Client/ExceptionEventArgs.cs index dcfab66782331..f711f9f3c7ee3 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/AnyOfNoCompare/src/Org.OpenAPITools/Client/ExceptionEventArgs.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/AnyOfNoCompare/src/Org.OpenAPITools/Client/ExceptionEventArgs.cs @@ -13,7 +13,7 @@ public class ExceptionEventArgs : EventArgs public Exception Exception { get; } /// - /// The ExcepetionEventArgs + /// The ExceptionEventArgs /// /// public ExceptionEventArgs(Exception exception) diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Client/ExceptionEventArgs.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Client/ExceptionEventArgs.cs index dcfab66782331..f711f9f3c7ee3 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Client/ExceptionEventArgs.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Client/ExceptionEventArgs.cs @@ -13,7 +13,7 @@ public class ExceptionEventArgs : EventArgs public Exception Exception { get; } /// - /// The ExcepetionEventArgs + /// The ExceptionEventArgs /// /// public ExceptionEventArgs(Exception exception) diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs index 5c4159491eecb..497ab8cafe48c 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs @@ -69,7 +69,7 @@ public HttpSigningConfiguration(string keyId, string keyFilePath, SecureString k public string SigningAlgorithm { get; set; } /// - /// Gets the Signature validaty period in seconds + /// Gets the Signature validity period in seconds /// public int SignatureValidityPeriod { get; set; } diff --git a/samples/client/petstore/csharp/generichost/net4.7/OneOf/src/Org.OpenAPITools/Client/ExceptionEventArgs.cs b/samples/client/petstore/csharp/generichost/net4.7/OneOf/src/Org.OpenAPITools/Client/ExceptionEventArgs.cs index dcfab66782331..f711f9f3c7ee3 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/OneOf/src/Org.OpenAPITools/Client/ExceptionEventArgs.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/OneOf/src/Org.OpenAPITools/Client/ExceptionEventArgs.cs @@ -13,7 +13,7 @@ public class ExceptionEventArgs : EventArgs public Exception Exception { get; } /// - /// The ExcepetionEventArgs + /// The ExceptionEventArgs /// /// public ExceptionEventArgs(Exception exception) diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Client/ExceptionEventArgs.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Client/ExceptionEventArgs.cs index dcfab66782331..f711f9f3c7ee3 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Client/ExceptionEventArgs.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Client/ExceptionEventArgs.cs @@ -13,7 +13,7 @@ public class ExceptionEventArgs : EventArgs public Exception Exception { get; } /// - /// The ExcepetionEventArgs + /// The ExceptionEventArgs /// /// public ExceptionEventArgs(Exception exception) diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs index 5c4159491eecb..497ab8cafe48c 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs @@ -69,7 +69,7 @@ public HttpSigningConfiguration(string keyId, string keyFilePath, SecureString k public string SigningAlgorithm { get; set; } /// - /// Gets the Signature validaty period in seconds + /// Gets the Signature validity period in seconds /// public int SignatureValidityPeriod { get; set; } 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 a84e041a00faf..beed4f8259b4f 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 40e1298ee62c6..75f95dc9d4850 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 05dc933c03b14..01400ec5d0b23 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 3b09a6314ed21..d80efe074c35d 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 920dfd9700ea2..826883c9b3a4d 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 1662385fe8f82..d0ae0554c230f 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 cf39d3c11d751..c69dd7ab75ec1 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 fe5b2fe67aa25..1bb28a11b60a4 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 a8adff38c9197..8b30d2ebaa5a5 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 52e971d082a7f..1e03c2ea0cb87 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 968d29161b127..6b8e39a496553 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/ExceptionEventArgs.cs b/samples/client/petstore/csharp/generichost/net4.7/UseDateTimeForDate/src/Org.OpenAPITools/Client/ExceptionEventArgs.cs index dcfab66782331..f711f9f3c7ee3 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/UseDateTimeForDate/src/Org.OpenAPITools/Client/ExceptionEventArgs.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/UseDateTimeForDate/src/Org.OpenAPITools/Client/ExceptionEventArgs.cs @@ -13,7 +13,7 @@ public class ExceptionEventArgs : EventArgs public Exception Exception { get; } /// - /// The ExcepetionEventArgs + /// The ExceptionEventArgs /// /// public ExceptionEventArgs(Exception exception) 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 2eaac444e5ca1..74f9b96bf6357 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 2b34371084b5a..fcfc4ade971b6 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 cddb84058868c..35622ff845264 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 069d52308681a..c42862e8d23d4 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 480524ee9c1f0..c5587a02669a8 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 2e45faf4463fe..fc474ba81668b 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 d469c015da981..c1c08d7dd7e2f 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 504c2976b3f45..1f50d394bb4cc 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 fa9e2292b0573..9f2d8ad2e29e0 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/AllOf/src/Org.OpenAPITools/Client/ExceptionEventArgs.cs b/samples/client/petstore/csharp/generichost/net4.8/AllOf/src/Org.OpenAPITools/Client/ExceptionEventArgs.cs index dcfab66782331..f711f9f3c7ee3 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/AllOf/src/Org.OpenAPITools/Client/ExceptionEventArgs.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/AllOf/src/Org.OpenAPITools/Client/ExceptionEventArgs.cs @@ -13,7 +13,7 @@ public class ExceptionEventArgs : EventArgs public Exception Exception { get; } /// - /// The ExcepetionEventArgs + /// The ExceptionEventArgs /// /// public ExceptionEventArgs(Exception exception) diff --git a/samples/client/petstore/csharp/generichost/net4.8/AnyOf/src/Org.OpenAPITools/Client/ExceptionEventArgs.cs b/samples/client/petstore/csharp/generichost/net4.8/AnyOf/src/Org.OpenAPITools/Client/ExceptionEventArgs.cs index dcfab66782331..f711f9f3c7ee3 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/AnyOf/src/Org.OpenAPITools/Client/ExceptionEventArgs.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/AnyOf/src/Org.OpenAPITools/Client/ExceptionEventArgs.cs @@ -13,7 +13,7 @@ public class ExceptionEventArgs : EventArgs public Exception Exception { get; } /// - /// The ExcepetionEventArgs + /// The ExceptionEventArgs /// /// public ExceptionEventArgs(Exception exception) diff --git a/samples/client/petstore/csharp/generichost/net4.8/AnyOfNoCompare/src/Org.OpenAPITools/Client/ExceptionEventArgs.cs b/samples/client/petstore/csharp/generichost/net4.8/AnyOfNoCompare/src/Org.OpenAPITools/Client/ExceptionEventArgs.cs index dcfab66782331..f711f9f3c7ee3 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/AnyOfNoCompare/src/Org.OpenAPITools/Client/ExceptionEventArgs.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/AnyOfNoCompare/src/Org.OpenAPITools/Client/ExceptionEventArgs.cs @@ -13,7 +13,7 @@ public class ExceptionEventArgs : EventArgs public Exception Exception { get; } /// - /// The ExcepetionEventArgs + /// The ExceptionEventArgs /// /// public ExceptionEventArgs(Exception exception) diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Client/ExceptionEventArgs.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Client/ExceptionEventArgs.cs index dcfab66782331..f711f9f3c7ee3 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Client/ExceptionEventArgs.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Client/ExceptionEventArgs.cs @@ -13,7 +13,7 @@ public class ExceptionEventArgs : EventArgs public Exception Exception { get; } /// - /// The ExcepetionEventArgs + /// The ExceptionEventArgs /// /// public ExceptionEventArgs(Exception exception) diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs index 5c4159491eecb..497ab8cafe48c 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs @@ -69,7 +69,7 @@ public HttpSigningConfiguration(string keyId, string keyFilePath, SecureString k public string SigningAlgorithm { get; set; } /// - /// Gets the Signature validaty period in seconds + /// Gets the Signature validity period in seconds /// public int SignatureValidityPeriod { get; set; } diff --git a/samples/client/petstore/csharp/generichost/net4.8/OneOf/src/Org.OpenAPITools/Client/ExceptionEventArgs.cs b/samples/client/petstore/csharp/generichost/net4.8/OneOf/src/Org.OpenAPITools/Client/ExceptionEventArgs.cs index dcfab66782331..f711f9f3c7ee3 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/OneOf/src/Org.OpenAPITools/Client/ExceptionEventArgs.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/OneOf/src/Org.OpenAPITools/Client/ExceptionEventArgs.cs @@ -13,7 +13,7 @@ public class ExceptionEventArgs : EventArgs public Exception Exception { get; } /// - /// The ExcepetionEventArgs + /// The ExceptionEventArgs /// /// public ExceptionEventArgs(Exception exception) diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Client/ExceptionEventArgs.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Client/ExceptionEventArgs.cs index dcfab66782331..f711f9f3c7ee3 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Client/ExceptionEventArgs.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Client/ExceptionEventArgs.cs @@ -13,7 +13,7 @@ public class ExceptionEventArgs : EventArgs public Exception Exception { get; } /// - /// The ExcepetionEventArgs + /// The ExceptionEventArgs /// /// public ExceptionEventArgs(Exception exception) diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs index 5c4159491eecb..497ab8cafe48c 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs @@ -69,7 +69,7 @@ public HttpSigningConfiguration(string keyId, string keyFilePath, SecureString k public string SigningAlgorithm { get; set; } /// - /// Gets the Signature validaty period in seconds + /// Gets the Signature validity period in seconds /// public int SignatureValidityPeriod { get; set; } 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 a84e041a00faf..beed4f8259b4f 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 40e1298ee62c6..75f95dc9d4850 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 05dc933c03b14..01400ec5d0b23 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 3b09a6314ed21..d80efe074c35d 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 920dfd9700ea2..826883c9b3a4d 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 1662385fe8f82..d0ae0554c230f 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 cf39d3c11d751..c69dd7ab75ec1 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 fe5b2fe67aa25..1bb28a11b60a4 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 a8adff38c9197..8b30d2ebaa5a5 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 52e971d082a7f..1e03c2ea0cb87 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 968d29161b127..6b8e39a496553 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/ExceptionEventArgs.cs b/samples/client/petstore/csharp/generichost/net4.8/UseDateTimeForDate/src/Org.OpenAPITools/Client/ExceptionEventArgs.cs index dcfab66782331..f711f9f3c7ee3 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/UseDateTimeForDate/src/Org.OpenAPITools/Client/ExceptionEventArgs.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/UseDateTimeForDate/src/Org.OpenAPITools/Client/ExceptionEventArgs.cs @@ -13,7 +13,7 @@ public class ExceptionEventArgs : EventArgs public Exception Exception { get; } /// - /// The ExcepetionEventArgs + /// The ExceptionEventArgs /// /// public ExceptionEventArgs(Exception exception) 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 2eaac444e5ca1..74f9b96bf6357 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 2b34371084b5a..fcfc4ade971b6 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 cddb84058868c..35622ff845264 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 069d52308681a..c42862e8d23d4 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 480524ee9c1f0..c5587a02669a8 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 2e45faf4463fe..fc474ba81668b 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 d469c015da981..c1c08d7dd7e2f 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 504c2976b3f45..1f50d394bb4cc 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 66fe699109e15..115762fc85cba 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/AllOf/src/Org.OpenAPITools/Client/ExceptionEventArgs.cs b/samples/client/petstore/csharp/generichost/net8/AllOf/src/Org.OpenAPITools/Client/ExceptionEventArgs.cs index dcfab66782331..f711f9f3c7ee3 100644 --- a/samples/client/petstore/csharp/generichost/net8/AllOf/src/Org.OpenAPITools/Client/ExceptionEventArgs.cs +++ b/samples/client/petstore/csharp/generichost/net8/AllOf/src/Org.OpenAPITools/Client/ExceptionEventArgs.cs @@ -13,7 +13,7 @@ public class ExceptionEventArgs : EventArgs public Exception Exception { get; } /// - /// The ExcepetionEventArgs + /// The ExceptionEventArgs /// /// public ExceptionEventArgs(Exception exception) diff --git a/samples/client/petstore/csharp/generichost/net8/AnyOf/src/Org.OpenAPITools/Client/ExceptionEventArgs.cs b/samples/client/petstore/csharp/generichost/net8/AnyOf/src/Org.OpenAPITools/Client/ExceptionEventArgs.cs index dcfab66782331..f711f9f3c7ee3 100644 --- a/samples/client/petstore/csharp/generichost/net8/AnyOf/src/Org.OpenAPITools/Client/ExceptionEventArgs.cs +++ b/samples/client/petstore/csharp/generichost/net8/AnyOf/src/Org.OpenAPITools/Client/ExceptionEventArgs.cs @@ -13,7 +13,7 @@ public class ExceptionEventArgs : EventArgs public Exception Exception { get; } /// - /// The ExcepetionEventArgs + /// The ExceptionEventArgs /// /// public ExceptionEventArgs(Exception exception) diff --git a/samples/client/petstore/csharp/generichost/net8/AnyOfNoCompare/src/Org.OpenAPITools/Client/ExceptionEventArgs.cs b/samples/client/petstore/csharp/generichost/net8/AnyOfNoCompare/src/Org.OpenAPITools/Client/ExceptionEventArgs.cs index dcfab66782331..f711f9f3c7ee3 100644 --- a/samples/client/petstore/csharp/generichost/net8/AnyOfNoCompare/src/Org.OpenAPITools/Client/ExceptionEventArgs.cs +++ b/samples/client/petstore/csharp/generichost/net8/AnyOfNoCompare/src/Org.OpenAPITools/Client/ExceptionEventArgs.cs @@ -13,7 +13,7 @@ public class ExceptionEventArgs : EventArgs public Exception Exception { get; } /// - /// The ExcepetionEventArgs + /// The ExceptionEventArgs /// /// public ExceptionEventArgs(Exception exception) diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Client/ExceptionEventArgs.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Client/ExceptionEventArgs.cs index dcfab66782331..f711f9f3c7ee3 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Client/ExceptionEventArgs.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Client/ExceptionEventArgs.cs @@ -13,7 +13,7 @@ public class ExceptionEventArgs : EventArgs public Exception Exception { get; } /// - /// The ExcepetionEventArgs + /// The ExceptionEventArgs /// /// public ExceptionEventArgs(Exception exception) diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs index 012e633f989c9..7616d3209c201 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs @@ -69,7 +69,7 @@ public HttpSigningConfiguration(string keyId, string keyFilePath, SecureString k public string SigningAlgorithm { get; set; } /// - /// Gets the Signature validaty period in seconds + /// Gets the Signature validity period in seconds /// public int SignatureValidityPeriod { get; set; } diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Client/ExceptionEventArgs.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Client/ExceptionEventArgs.cs index dcfab66782331..f711f9f3c7ee3 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Client/ExceptionEventArgs.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Client/ExceptionEventArgs.cs @@ -13,7 +13,7 @@ public class ExceptionEventArgs : EventArgs public Exception Exception { get; } /// - /// The ExcepetionEventArgs + /// The ExceptionEventArgs /// /// public ExceptionEventArgs(Exception exception) diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs index 2d8c0b2a52f71..e566414eb6ac7 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs @@ -71,7 +71,7 @@ public HttpSigningConfiguration(string keyId, string keyFilePath, SecureString? public string SigningAlgorithm { get; set; } /// - /// Gets the Signature validaty period in seconds + /// Gets the Signature validity period in seconds /// public int SignatureValidityPeriod { get; set; } diff --git a/samples/client/petstore/csharp/generichost/net8/OneOf/src/Org.OpenAPITools/Client/ExceptionEventArgs.cs b/samples/client/petstore/csharp/generichost/net8/OneOf/src/Org.OpenAPITools/Client/ExceptionEventArgs.cs index dcfab66782331..f711f9f3c7ee3 100644 --- a/samples/client/petstore/csharp/generichost/net8/OneOf/src/Org.OpenAPITools/Client/ExceptionEventArgs.cs +++ b/samples/client/petstore/csharp/generichost/net8/OneOf/src/Org.OpenAPITools/Client/ExceptionEventArgs.cs @@ -13,7 +13,7 @@ public class ExceptionEventArgs : EventArgs public Exception Exception { get; } /// - /// The ExcepetionEventArgs + /// The ExceptionEventArgs /// /// public ExceptionEventArgs(Exception exception) diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Client/ExceptionEventArgs.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Client/ExceptionEventArgs.cs index dcfab66782331..f711f9f3c7ee3 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Client/ExceptionEventArgs.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Client/ExceptionEventArgs.cs @@ -13,7 +13,7 @@ public class ExceptionEventArgs : EventArgs public Exception Exception { get; } /// - /// The ExcepetionEventArgs + /// The ExceptionEventArgs /// /// public ExceptionEventArgs(Exception exception) diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs index 012e633f989c9..7616d3209c201 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs @@ -69,7 +69,7 @@ public HttpSigningConfiguration(string keyId, string keyFilePath, SecureString k public string SigningAlgorithm { get; set; } /// - /// Gets the Signature validaty period in seconds + /// Gets the Signature validity period in seconds /// public int SignatureValidityPeriod { get; set; } diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Client/ExceptionEventArgs.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Client/ExceptionEventArgs.cs index dcfab66782331..f711f9f3c7ee3 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Client/ExceptionEventArgs.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Client/ExceptionEventArgs.cs @@ -13,7 +13,7 @@ public class ExceptionEventArgs : EventArgs public Exception Exception { get; } /// - /// The ExcepetionEventArgs + /// The ExceptionEventArgs /// /// public ExceptionEventArgs(Exception exception) diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs index 2d8c0b2a52f71..e566414eb6ac7 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs @@ -71,7 +71,7 @@ public HttpSigningConfiguration(string keyId, string keyFilePath, SecureString? public string SigningAlgorithm { get; set; } /// - /// Gets the Signature validaty period in seconds + /// Gets the Signature validity period in seconds /// public int SignatureValidityPeriod { get; set; } 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 a84e041a00faf..beed4f8259b4f 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 40e1298ee62c6..75f95dc9d4850 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 05dc933c03b14..01400ec5d0b23 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 c910325e620be..e3b8634d146b9 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 920dfd9700ea2..826883c9b3a4d 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 7782f09b34bfb..6ad12cc8108f8 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 f7cda3e72ce20..c14beff4b9226 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 0027952859de5..189c222feb492 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 4cdf0f2061240..e07fbf76b3e4d 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 1ebd1220b6227..ac434f917d914 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 e92db186bb60c..aa3b1db7c18ec 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/ExceptionEventArgs.cs b/samples/client/petstore/csharp/generichost/net8/UseDateTimeForDate/src/Org.OpenAPITools/Client/ExceptionEventArgs.cs index dcfab66782331..f711f9f3c7ee3 100644 --- a/samples/client/petstore/csharp/generichost/net8/UseDateTimeForDate/src/Org.OpenAPITools/Client/ExceptionEventArgs.cs +++ b/samples/client/petstore/csharp/generichost/net8/UseDateTimeForDate/src/Org.OpenAPITools/Client/ExceptionEventArgs.cs @@ -13,7 +13,7 @@ public class ExceptionEventArgs : EventArgs public Exception Exception { get; } /// - /// The ExcepetionEventArgs + /// The ExceptionEventArgs /// /// public ExceptionEventArgs(Exception exception) 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 90dd61c2c492c..d138736cae93b 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 1c1677e3e3cbf..f4e0957694bf8 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 30ef470331991..2fcaa25b278c5 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 d9c84d5cc7753..f35e39635a238 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 2c150d1f66e4e..319f002a64299 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 549b6e4733333..76e2675136c8e 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 8b7c34900c07d..aeaf9eccedb5a 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 d07559ec5275a..008fb8280d1ac 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 89708cf92d0f8..9e82bccdf2026 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/standard2.0/Petstore/src/Org.OpenAPITools/Client/ExceptionEventArgs.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Client/ExceptionEventArgs.cs index dcfab66782331..f711f9f3c7ee3 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Client/ExceptionEventArgs.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Client/ExceptionEventArgs.cs @@ -13,7 +13,7 @@ public class ExceptionEventArgs : EventArgs public Exception Exception { get; } /// - /// The ExcepetionEventArgs + /// The ExceptionEventArgs /// /// public ExceptionEventArgs(Exception exception) diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs index 5c4159491eecb..497ab8cafe48c 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs @@ -69,7 +69,7 @@ public HttpSigningConfiguration(string keyId, string keyFilePath, SecureString k public string SigningAlgorithm { get; set; } /// - /// Gets the Signature validaty period in seconds + /// Gets the Signature validity period in seconds /// public int SignatureValidityPeriod { get; set; } 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 e00f3d6146718..fb0c0976244ab 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/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs index a419d35bed484..c370847420c15 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs @@ -356,7 +356,7 @@ private string GetECDSASignature(byte[] dataToSign) } /// - /// Convert ANS1 format to DER format. Not recommended to use because it generate inavlid signature occationally. + /// Convert ANS1 format to DER format. Not recommended to use because it generate invalid signature occasionally. /// /// /// diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs index a419d35bed484..c370847420c15 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs @@ -356,7 +356,7 @@ private string GetECDSASignature(byte[] dataToSign) } /// - /// Convert ANS1 format to DER format. Not recommended to use because it generate inavlid signature occationally. + /// Convert ANS1 format to DER format. Not recommended to use because it generate invalid signature occasionally. /// /// /// diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs index a419d35bed484..c370847420c15 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs @@ -356,7 +356,7 @@ private string GetECDSASignature(byte[] dataToSign) } /// - /// Convert ANS1 format to DER format. Not recommended to use because it generate inavlid signature occationally. + /// Convert ANS1 format to DER format. Not recommended to use because it generate invalid signature occasionally. /// /// /// diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs index fcf584d1fd258..c362a4f505191 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs @@ -392,7 +392,7 @@ private string GetECDSASignature(byte[] dataToSign) } /// - /// Convert ANS1 format to DER format. Not recommended to use because it generate inavlid signature occationally. + /// Convert ANS1 format to DER format. Not recommended to use because it generate invalid signature occasionally. /// /// /// diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs index fcf584d1fd258..c362a4f505191 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs @@ -392,7 +392,7 @@ private string GetECDSASignature(byte[] dataToSign) } /// - /// Convert ANS1 format to DER format. Not recommended to use because it generate inavlid signature occationally. + /// Convert ANS1 format to DER format. Not recommended to use because it generate invalid signature occasionally. /// /// /// diff --git a/samples/client/petstore/csharp/restsharp/net7/UseDateTimeForDate/README.md b/samples/client/petstore/csharp/restsharp/net7/UseDateTimeForDate/README.md index 22ab178547cab..35fd86b94855f 100644 --- a/samples/client/petstore/csharp/restsharp/net7/UseDateTimeForDate/README.md +++ b/samples/client/petstore/csharp/restsharp/net7/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/net7/UseDateTimeForDate/api/openapi.yaml b/samples/client/petstore/csharp/restsharp/net7/UseDateTimeForDate/api/openapi.yaml index a84e041a00faf..beed4f8259b4f 100644 --- a/samples/client/petstore/csharp/restsharp/net7/UseDateTimeForDate/api/openapi.yaml +++ b/samples/client/petstore/csharp/restsharp/net7/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/net7/UseDateTimeForDate/src/Org.OpenAPITools.Test/Api/DefaultApiTests.cs b/samples/client/petstore/csharp/restsharp/net7/UseDateTimeForDate/src/Org.OpenAPITools.Test/Api/DefaultApiTests.cs index 5dfa62da67f42..4dd0c5e55e97f 100644 --- a/samples/client/petstore/csharp/restsharp/net7/UseDateTimeForDate/src/Org.OpenAPITools.Test/Api/DefaultApiTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/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/net7/UseDateTimeForDate/src/Org.OpenAPITools.Test/Model/NowGet200ResponseTests.cs b/samples/client/petstore/csharp/restsharp/net7/UseDateTimeForDate/src/Org.OpenAPITools.Test/Model/NowGet200ResponseTests.cs index a91e45c60c8b7..69dd54528ce87 100644 --- a/samples/client/petstore/csharp/restsharp/net7/UseDateTimeForDate/src/Org.OpenAPITools.Test/Model/NowGet200ResponseTests.cs +++ b/samples/client/petstore/csharp/restsharp/net7/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/net7/UseDateTimeForDate/src/Org.OpenAPITools/Api/DefaultApi.cs b/samples/client/petstore/csharp/restsharp/net7/UseDateTimeForDate/src/Org.OpenAPITools/Api/DefaultApi.cs index fddeca8791c17..77891a27a3f8c 100644 --- a/samples/client/petstore/csharp/restsharp/net7/UseDateTimeForDate/src/Org.OpenAPITools/Api/DefaultApi.cs +++ b/samples/client/petstore/csharp/restsharp/net7/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/net7/UseDateTimeForDate/src/Org.OpenAPITools/Client/ApiClient.cs b/samples/client/petstore/csharp/restsharp/net7/UseDateTimeForDate/src/Org.OpenAPITools/Client/ApiClient.cs index c98004a0527b7..5100037bb82c9 100644 --- a/samples/client/petstore/csharp/restsharp/net7/UseDateTimeForDate/src/Org.OpenAPITools/Client/ApiClient.cs +++ b/samples/client/petstore/csharp/restsharp/net7/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/net7/UseDateTimeForDate/src/Org.OpenAPITools/Client/ApiException.cs b/samples/client/petstore/csharp/restsharp/net7/UseDateTimeForDate/src/Org.OpenAPITools/Client/ApiException.cs index 64872847b8387..6d836138fa50a 100644 --- a/samples/client/petstore/csharp/restsharp/net7/UseDateTimeForDate/src/Org.OpenAPITools/Client/ApiException.cs +++ b/samples/client/petstore/csharp/restsharp/net7/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/net7/UseDateTimeForDate/src/Org.OpenAPITools/Client/ApiResponse.cs b/samples/client/petstore/csharp/restsharp/net7/UseDateTimeForDate/src/Org.OpenAPITools/Client/ApiResponse.cs index 62640a5904955..4582b61c0bf56 100644 --- a/samples/client/petstore/csharp/restsharp/net7/UseDateTimeForDate/src/Org.OpenAPITools/Client/ApiResponse.cs +++ b/samples/client/petstore/csharp/restsharp/net7/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/net7/UseDateTimeForDate/src/Org.OpenAPITools/Client/ClientUtils.cs b/samples/client/petstore/csharp/restsharp/net7/UseDateTimeForDate/src/Org.OpenAPITools/Client/ClientUtils.cs index 02d02e3629298..f529cd201ae4a 100644 --- a/samples/client/petstore/csharp/restsharp/net7/UseDateTimeForDate/src/Org.OpenAPITools/Client/ClientUtils.cs +++ b/samples/client/petstore/csharp/restsharp/net7/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/net7/UseDateTimeForDate/src/Org.OpenAPITools/Client/Configuration.cs b/samples/client/petstore/csharp/restsharp/net7/UseDateTimeForDate/src/Org.OpenAPITools/Client/Configuration.cs index 5e6943f86a0bc..205d9bcec86f0 100644 --- a/samples/client/petstore/csharp/restsharp/net7/UseDateTimeForDate/src/Org.OpenAPITools/Client/Configuration.cs +++ b/samples/client/petstore/csharp/restsharp/net7/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/net7/UseDateTimeForDate/src/Org.OpenAPITools/Client/ExceptionFactory.cs b/samples/client/petstore/csharp/restsharp/net7/UseDateTimeForDate/src/Org.OpenAPITools/Client/ExceptionFactory.cs index 12d2e18f66e7d..1c82eafb68c0d 100644 --- a/samples/client/petstore/csharp/restsharp/net7/UseDateTimeForDate/src/Org.OpenAPITools/Client/ExceptionFactory.cs +++ b/samples/client/petstore/csharp/restsharp/net7/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/net7/UseDateTimeForDate/src/Org.OpenAPITools/Client/GlobalConfiguration.cs b/samples/client/petstore/csharp/restsharp/net7/UseDateTimeForDate/src/Org.OpenAPITools/Client/GlobalConfiguration.cs index c0351acf12113..4d1e2f916dd87 100644 --- a/samples/client/petstore/csharp/restsharp/net7/UseDateTimeForDate/src/Org.OpenAPITools/Client/GlobalConfiguration.cs +++ b/samples/client/petstore/csharp/restsharp/net7/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/net7/UseDateTimeForDate/src/Org.OpenAPITools/Client/HttpMethod.cs b/samples/client/petstore/csharp/restsharp/net7/UseDateTimeForDate/src/Org.OpenAPITools/Client/HttpMethod.cs index e06a7dbd6cc2f..27cd7f6912675 100644 --- a/samples/client/petstore/csharp/restsharp/net7/UseDateTimeForDate/src/Org.OpenAPITools/Client/HttpMethod.cs +++ b/samples/client/petstore/csharp/restsharp/net7/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/net7/UseDateTimeForDate/src/Org.OpenAPITools/Client/IApiAccessor.cs b/samples/client/petstore/csharp/restsharp/net7/UseDateTimeForDate/src/Org.OpenAPITools/Client/IApiAccessor.cs index e31d64e704a99..99e1d36d829a9 100644 --- a/samples/client/petstore/csharp/restsharp/net7/UseDateTimeForDate/src/Org.OpenAPITools/Client/IApiAccessor.cs +++ b/samples/client/petstore/csharp/restsharp/net7/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/net7/UseDateTimeForDate/src/Org.OpenAPITools/Client/IAsynchronousClient.cs b/samples/client/petstore/csharp/restsharp/net7/UseDateTimeForDate/src/Org.OpenAPITools/Client/IAsynchronousClient.cs index 3f2e47267ef9e..d51c87cde26e0 100644 --- a/samples/client/petstore/csharp/restsharp/net7/UseDateTimeForDate/src/Org.OpenAPITools/Client/IAsynchronousClient.cs +++ b/samples/client/petstore/csharp/restsharp/net7/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/net7/UseDateTimeForDate/src/Org.OpenAPITools/Client/IReadableConfiguration.cs b/samples/client/petstore/csharp/restsharp/net7/UseDateTimeForDate/src/Org.OpenAPITools/Client/IReadableConfiguration.cs index b5ffbc06997db..58be478c62177 100644 --- a/samples/client/petstore/csharp/restsharp/net7/UseDateTimeForDate/src/Org.OpenAPITools/Client/IReadableConfiguration.cs +++ b/samples/client/petstore/csharp/restsharp/net7/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/net7/UseDateTimeForDate/src/Org.OpenAPITools/Client/ISynchronousClient.cs b/samples/client/petstore/csharp/restsharp/net7/UseDateTimeForDate/src/Org.OpenAPITools/Client/ISynchronousClient.cs index 965cec3b04322..a90592739d808 100644 --- a/samples/client/petstore/csharp/restsharp/net7/UseDateTimeForDate/src/Org.OpenAPITools/Client/ISynchronousClient.cs +++ b/samples/client/petstore/csharp/restsharp/net7/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/net7/UseDateTimeForDate/src/Org.OpenAPITools/Client/Multimap.cs b/samples/client/petstore/csharp/restsharp/net7/UseDateTimeForDate/src/Org.OpenAPITools/Client/Multimap.cs index b3fdf6b71a307..00d33f7f419d7 100644 --- a/samples/client/petstore/csharp/restsharp/net7/UseDateTimeForDate/src/Org.OpenAPITools/Client/Multimap.cs +++ b/samples/client/petstore/csharp/restsharp/net7/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/net7/UseDateTimeForDate/src/Org.OpenAPITools/Client/OpenAPIDateConverter.cs b/samples/client/petstore/csharp/restsharp/net7/UseDateTimeForDate/src/Org.OpenAPITools/Client/OpenAPIDateConverter.cs index b56476476ac6c..b25639aaff525 100644 --- a/samples/client/petstore/csharp/restsharp/net7/UseDateTimeForDate/src/Org.OpenAPITools/Client/OpenAPIDateConverter.cs +++ b/samples/client/petstore/csharp/restsharp/net7/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/net7/UseDateTimeForDate/src/Org.OpenAPITools/Client/RequestOptions.cs b/samples/client/petstore/csharp/restsharp/net7/UseDateTimeForDate/src/Org.OpenAPITools/Client/RequestOptions.cs index 2f65f902cff1d..19a5063e5a863 100644 --- a/samples/client/petstore/csharp/restsharp/net7/UseDateTimeForDate/src/Org.OpenAPITools/Client/RequestOptions.cs +++ b/samples/client/petstore/csharp/restsharp/net7/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/net7/UseDateTimeForDate/src/Org.OpenAPITools/Client/RetryConfiguration.cs b/samples/client/petstore/csharp/restsharp/net7/UseDateTimeForDate/src/Org.OpenAPITools/Client/RetryConfiguration.cs index ca42aee633b55..2e2a61c98a8f7 100644 --- a/samples/client/petstore/csharp/restsharp/net7/UseDateTimeForDate/src/Org.OpenAPITools/Client/RetryConfiguration.cs +++ b/samples/client/petstore/csharp/restsharp/net7/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/net7/UseDateTimeForDate/src/Org.OpenAPITools/Model/AbstractOpenAPISchema.cs b/samples/client/petstore/csharp/restsharp/net7/UseDateTimeForDate/src/Org.OpenAPITools/Model/AbstractOpenAPISchema.cs index 16a2db7a38aa7..66bb9fd138cb3 100644 --- a/samples/client/petstore/csharp/restsharp/net7/UseDateTimeForDate/src/Org.OpenAPITools/Model/AbstractOpenAPISchema.cs +++ b/samples/client/petstore/csharp/restsharp/net7/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/net7/UseDateTimeForDate/src/Org.OpenAPITools/Model/NowGet200Response.cs b/samples/client/petstore/csharp/restsharp/net7/UseDateTimeForDate/src/Org.OpenAPITools/Model/NowGet200Response.cs index 84c9909059abf..d07604a434b2c 100644 --- a/samples/client/petstore/csharp/restsharp/net7/UseDateTimeForDate/src/Org.OpenAPITools/Model/NowGet200Response.cs +++ b/samples/client/petstore/csharp/restsharp/net7/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/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs index a419d35bed484..c370847420c15 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs @@ -356,7 +356,7 @@ private string GetECDSASignature(byte[] dataToSign) } /// - /// Convert ANS1 format to DER format. Not recommended to use because it generate inavlid signature occationally. + /// Convert ANS1 format to DER format. Not recommended to use because it generate invalid signature occasionally. /// /// /// diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs index a419d35bed484..c370847420c15 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs @@ -356,7 +356,7 @@ private string GetECDSASignature(byte[] dataToSign) } /// - /// Convert ANS1 format to DER format. Not recommended to use because it generate inavlid signature occationally. + /// Convert ANS1 format to DER format. Not recommended to use because it generate invalid signature occasionally. /// /// /// diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs index a419d35bed484..c370847420c15 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Client/HttpSigningConfiguration.cs @@ -356,7 +356,7 @@ private string GetECDSASignature(byte[] dataToSign) } /// - /// Convert ANS1 format to DER format. Not recommended to use because it generate inavlid signature occationally. + /// Convert ANS1 format to DER format. Not recommended to use because it generate invalid signature occasionally. /// /// /// diff --git a/samples/client/petstore/haskell-http-client/docs/linuwial.css b/samples/client/petstore/haskell-http-client/docs/linuwial.css index 4164b849fb85c..a001d1ce353b7 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/java/okhttp-gson-3.1/api/openapi.yaml b/samples/client/petstore/java/okhttp-gson-3.1/api/openapi.yaml index aabe501dcc3a1..51d981ef65739 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 f8bd666c0fe01..b55759017ae3e 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 bf5b3d880975e..9c6f9a8f959d9 100644 --- a/samples/client/petstore/java/okhttp-gson/api/openapi.yaml +++ b/samples/client/petstore/java/okhttp-gson/api/openapi.yaml @@ -2750,7 +2750,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 765e7b71c77a9..a73b1b29453cf 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 494c91ba315fa..144427af3a527 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/Api/PetApi.php b/samples/client/petstore/php/psr-18/lib/Api/PetApi.php index 3a6228ecdacfb..4c8045712eaca 100644 --- a/samples/client/petstore/php/psr-18/lib/Api/PetApi.php +++ b/samples/client/petstore/php/psr-18/lib/Api/PetApi.php @@ -177,7 +177,7 @@ public function getConfig() * * Add a new pet to the store * - * This oepration contains host(s) defined in the OpenAP spec. Use 'hostIndex' to select the host. + * This operation contains host(s) defined in the OpenAP spec. Use 'hostIndex' to select the host. * URL: http://petstore.swagger.io/v2 * URL: http://path-server-test.petstore.local/v2 * URL: http://{server}.swagger.io:{port}/v2 @@ -198,7 +198,7 @@ public function addPet($pet) * * Add a new pet to the store * - * This oepration contains host(s) defined in the OpenAP spec. Use 'hostIndex' to select the host. + * This operation contains host(s) defined in the OpenAP spec. Use 'hostIndex' to select the host. * URL: http://petstore.swagger.io/v2 * URL: http://path-server-test.petstore.local/v2 * URL: http://{server}.swagger.io:{port}/v2 @@ -253,7 +253,7 @@ public function addPetWithHttpInfo($pet) * * Add a new pet to the store * - * This oepration contains host(s) defined in the OpenAP spec. Use 'hostIndex' to select the host. + * This operation contains host(s) defined in the OpenAP spec. Use 'hostIndex' to select the host. * URL: http://petstore.swagger.io/v2 * URL: http://path-server-test.petstore.local/v2 * URL: http://{server}.swagger.io:{port}/v2 @@ -278,7 +278,7 @@ function ($response) { * * Add a new pet to the store * - * This oepration contains host(s) defined in the OpenAP spec. Use 'hostIndex' to select the host. + * This operation contains host(s) defined in the OpenAP spec. Use 'hostIndex' to select the host. * URL: http://petstore.swagger.io/v2 * URL: http://path-server-test.petstore.local/v2 * URL: http://{server}.swagger.io:{port}/v2 @@ -318,7 +318,7 @@ function (HttpException $exception) { /** * Create request for operation 'addPet' * - * This oepration contains host(s) defined in the OpenAP spec. Use 'hostIndex' to select the host. + * This operation contains host(s) defined in the OpenAP spec. Use 'hostIndex' to select the host. * URL: http://petstore.swagger.io/v2 * URL: http://path-server-test.petstore.local/v2 * URL: http://{server}.swagger.io:{port}/v2 @@ -1413,7 +1413,7 @@ public function getPetByIdRequest($pet_id) * * Update an existing pet * - * This oepration contains host(s) defined in the OpenAP spec. Use 'hostIndex' to select the host. + * This operation contains host(s) defined in the OpenAP spec. Use 'hostIndex' to select the host. * URL: http://petstore.swagger.io/v2 * URL: http://path-server-test.petstore.local/v2 * URL: http://{server}.swagger.io:{port}/v2 @@ -1434,7 +1434,7 @@ public function updatePet($pet) * * Update an existing pet * - * This oepration contains host(s) defined in the OpenAP spec. Use 'hostIndex' to select the host. + * This operation contains host(s) defined in the OpenAP spec. Use 'hostIndex' to select the host. * URL: http://petstore.swagger.io/v2 * URL: http://path-server-test.petstore.local/v2 * URL: http://{server}.swagger.io:{port}/v2 @@ -1489,7 +1489,7 @@ public function updatePetWithHttpInfo($pet) * * Update an existing pet * - * This oepration contains host(s) defined in the OpenAP spec. Use 'hostIndex' to select the host. + * This operation contains host(s) defined in the OpenAP spec. Use 'hostIndex' to select the host. * URL: http://petstore.swagger.io/v2 * URL: http://path-server-test.petstore.local/v2 * URL: http://{server}.swagger.io:{port}/v2 @@ -1514,7 +1514,7 @@ function ($response) { * * Update an existing pet * - * This oepration contains host(s) defined in the OpenAP spec. Use 'hostIndex' to select the host. + * This operation contains host(s) defined in the OpenAP spec. Use 'hostIndex' to select the host. * URL: http://petstore.swagger.io/v2 * URL: http://path-server-test.petstore.local/v2 * URL: http://{server}.swagger.io:{port}/v2 @@ -1554,7 +1554,7 @@ function (HttpException $exception) { /** * Create request for operation 'updatePet' * - * This oepration contains host(s) defined in the OpenAP spec. Use 'hostIndex' to select the host. + * This operation contains host(s) defined in the OpenAP spec. Use 'hostIndex' to select the host. * URL: http://petstore.swagger.io/v2 * URL: http://path-server-test.petstore.local/v2 * URL: http://{server}.swagger.io:{port}/v2 diff --git a/samples/client/petstore/php/psr-18/lib/ApiException.php b/samples/client/petstore/php/psr-18/lib/ApiException.php index 8603ec985af19..e86410fdf4301 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/ruby-httpx/.openapi-generator/FILES b/samples/client/petstore/ruby-httpx/.openapi-generator/FILES index 937697a733e78..fa5618a9886bd 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 a8e2c2d398b2f..066a0b008de32 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 37b9252a2c823..28f208da6f999 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 f92259a2242a1..74b780ade7267 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 4685a98fa6ce3..a127bcc3ecbcb 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 95002b49ea45d..eff7d74cd6639 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 937697a733e78..fa5618a9886bd 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 a8e2c2d398b2f..066a0b008de32 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 37b9252a2c823..28f208da6f999 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 f92259a2242a1..74b780ade7267 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 4685a98fa6ce3..a127bcc3ecbcb 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 e3c1f1255c1a0..1f63000ada272 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 6a0d4c9da1abd..3bf4ec03fea42 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 6a0d4c9da1abd..3bf4ec03fea42 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 6a0d4c9da1abd..3bf4ec03fea42 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 6a0d4c9da1abd..3bf4ec03fea42 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 6a0d4c9da1abd..3bf4ec03fea42 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 6a0d4c9da1abd..3bf4ec03fea42 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 6a0d4c9da1abd..3bf4ec03fea42 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 ced1069dd4546..7591b5218353c 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 6a0d4c9da1abd..3bf4ec03fea42 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 6a0d4c9da1abd..3bf4ec03fea42 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 6a0d4c9da1abd..3bf4ec03fea42 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 6a0d4c9da1abd..3bf4ec03fea42 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 b17dc24c155e0..1a073167614d6 100644 --- a/samples/client/petstore/swift6/alamofireLibrary/Sources/PetstoreClient/Infrastructure/Validation.swift +++ b/samples/client/petstore/swift6/alamofireLibrary/Sources/PetstoreClient/Infrastructure/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/apiNonStaticMethod/Sources/PetstoreClient/Infrastructure/Validation.swift b/samples/client/petstore/swift6/apiNonStaticMethod/Sources/PetstoreClient/Infrastructure/Validation.swift index b17dc24c155e0..1a073167614d6 100644 --- a/samples/client/petstore/swift6/apiNonStaticMethod/Sources/PetstoreClient/Infrastructure/Validation.swift +++ b/samples/client/petstore/swift6/apiNonStaticMethod/Sources/PetstoreClient/Infrastructure/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/asyncAwaitLibrary/Sources/PetstoreClient/Infrastructure/Validation.swift b/samples/client/petstore/swift6/asyncAwaitLibrary/Sources/PetstoreClient/Infrastructure/Validation.swift index b17dc24c155e0..1a073167614d6 100644 --- a/samples/client/petstore/swift6/asyncAwaitLibrary/Sources/PetstoreClient/Infrastructure/Validation.swift +++ b/samples/client/petstore/swift6/asyncAwaitLibrary/Sources/PetstoreClient/Infrastructure/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/combineDeferredLibrary/PetstoreClient/Classes/OpenAPIs/Infrastructure/Validation.swift b/samples/client/petstore/swift6/combineDeferredLibrary/PetstoreClient/Classes/OpenAPIs/Infrastructure/Validation.swift index b17dc24c155e0..1a073167614d6 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 @@ -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/combineLibrary/Sources/CombineLibrary/Infrastructure/Validation.swift b/samples/client/petstore/swift6/combineLibrary/Sources/CombineLibrary/Infrastructure/Validation.swift index b17dc24c155e0..1a073167614d6 100644 --- a/samples/client/petstore/swift6/combineLibrary/Sources/CombineLibrary/Infrastructure/Validation.swift +++ b/samples/client/petstore/swift6/combineLibrary/Sources/CombineLibrary/Infrastructure/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/default/Sources/PetstoreClient/Infrastructure/Validation.swift b/samples/client/petstore/swift6/default/Sources/PetstoreClient/Infrastructure/Validation.swift index b17dc24c155e0..1a073167614d6 100644 --- a/samples/client/petstore/swift6/default/Sources/PetstoreClient/Infrastructure/Validation.swift +++ b/samples/client/petstore/swift6/default/Sources/PetstoreClient/Infrastructure/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/objcCompatible/Sources/PetstoreClient/Infrastructure/Validation.swift b/samples/client/petstore/swift6/objcCompatible/Sources/PetstoreClient/Infrastructure/Validation.swift index b17dc24c155e0..1a073167614d6 100644 --- a/samples/client/petstore/swift6/objcCompatible/Sources/PetstoreClient/Infrastructure/Validation.swift +++ b/samples/client/petstore/swift6/objcCompatible/Sources/PetstoreClient/Infrastructure/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/oneOf/PetstoreClient/Classes/OpenAPIs/Infrastructure/Validation.swift b/samples/client/petstore/swift6/oneOf/PetstoreClient/Classes/OpenAPIs/Infrastructure/Validation.swift index b17dc24c155e0..1a073167614d6 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 @@ -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/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Infrastructure/Validation.swift b/samples/client/petstore/swift6/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/Infrastructure/Validation.swift index b17dc24c155e0..1a073167614d6 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 @@ -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/resultLibrary/PetstoreClient/Classes/OpenAPIs/Infrastructure/Validation.swift b/samples/client/petstore/swift6/resultLibrary/PetstoreClient/Classes/OpenAPIs/Infrastructure/Validation.swift index 05a01edb09b6b..d9a3e1bfe3ddb 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 @@ -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/swift6/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Infrastructure/Validation.swift b/samples/client/petstore/swift6/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/Infrastructure/Validation.swift index b17dc24c155e0..1a073167614d6 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 @@ -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/urlsessionLibrary/Sources/PetstoreClient/Infrastructure/Validation.swift b/samples/client/petstore/swift6/urlsessionLibrary/Sources/PetstoreClient/Infrastructure/Validation.swift index b17dc24c155e0..1a073167614d6 100644 --- a/samples/client/petstore/swift6/urlsessionLibrary/Sources/PetstoreClient/Infrastructure/Validation.swift +++ b/samples/client/petstore/swift6/urlsessionLibrary/Sources/PetstoreClient/Infrastructure/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/validation/PetstoreClient/Classes/OpenAPIs/Infrastructure/Validation.swift b/samples/client/petstore/swift6/validation/PetstoreClient/Classes/OpenAPIs/Infrastructure/Validation.swift index b17dc24c155e0..1a073167614d6 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 @@ -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/vaporLibrary/Sources/PetstoreClient/Infrastructure/Validation.swift b/samples/client/petstore/swift6/vaporLibrary/Sources/PetstoreClient/Infrastructure/Validation.swift index b17dc24c155e0..1a073167614d6 100644 --- a/samples/client/petstore/swift6/vaporLibrary/Sources/PetstoreClient/Infrastructure/Validation.swift +++ b/samples/client/petstore/swift6/vaporLibrary/Sources/PetstoreClient/Infrastructure/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/xojo/client-synchronous/README.md b/samples/client/petstore/xojo/client-synchronous/README.md index e96a44224c4d4..f131841ca3c00 100644 --- a/samples/client/petstore/xojo/client-synchronous/README.md +++ b/samples/client/petstore/xojo/client-synchronous/README.md @@ -25,7 +25,7 @@ This project depends on [Xoson](https://github.com/Topheee/xoson) `v2.2.0` (and git clone 'https://github.com/Topheee/xoson.git' ``` -Open the `Xoson.xojo_project` from the cloned git repository with Xojo and copy the `Xoson` module to your project. Similarily, open the `XojoOpenAPIClientSynchronous.xojo_project` file with Xojo and copy `XojoOpenAPIClientSynchronous` to your project. +Open the `Xoson.xojo_project` from the cloned git repository with Xojo and copy the `Xoson` module to your project. Similarly, open the `XojoOpenAPIClientSynchronous.xojo_project` file with Xojo and copy `XojoOpenAPIClientSynchronous` to your project. > Since Xojo currently has no package manager, you need to manually copy both the `Xoson` and the `XojoOpenAPIClientSynchronous` modules to your Xojo project. diff --git a/samples/client/petstore/xojo/client/README.md b/samples/client/petstore/xojo/client/README.md index aa11916f097bd..f4afc5ff3c2bf 100644 --- a/samples/client/petstore/xojo/client/README.md +++ b/samples/client/petstore/xojo/client/README.md @@ -25,7 +25,7 @@ This project depends on [Xoson](https://github.com/Topheee/xoson) `v2.2.0` (and git clone 'https://github.com/Topheee/xoson.git' ``` -Open the `Xoson.xojo_project` from the cloned git repository with Xojo and copy the `Xoson` module to your project. Similarily, open the `OpenAPIClient.xojo_project` file with Xojo and copy `OpenAPIClient` to your project. +Open the `Xoson.xojo_project` from the cloned git repository with Xojo and copy the `Xoson` module to your project. Similarly, open the `OpenAPIClient.xojo_project` file with Xojo and copy `OpenAPIClient` to your project. > Since Xojo currently has no package manager, you need to manually copy both the `Xoson` and the `OpenAPIClient` modules to your Xojo project. diff --git a/samples/client/petstore/zapier/authentication.js b/samples/client/petstore/zapier/authentication.js index 8294e5fc99a6c..7f62337d3c755 100644 --- a/samples/client/petstore/zapier/authentication.js +++ b/samples/client/petstore/zapier/authentication.js @@ -1,4 +1,4 @@ module.exports = { - // TODO: autentication 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 1f7b7b1cf7edc..d8e63b2da1f3f 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/python-aiohttp/docs/FakeApi.md b/samples/openapi3/client/petstore/python-aiohttp/docs/FakeApi.md index 901471b5477b0..25bf6c3f4e110 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 512323e3286a8..0ef5bf32a5c2e 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 3777d3d76e0e2..6392431fd7551 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 4d9f9bb874796..ca1715dd671ea 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 ce84e0b035fff..7c45458d96fbd 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]) @@ -387,7 +387,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 7b0665800fd55..792e124ab7bba 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 e236e5b7e6709..856ff2c536829 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 af9fa6eef1531..e264d1eace37f 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 6049def8b8857..ae29d6c186172 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 7670f1df06f46..63e8d391c4988 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 f3cd231b0d54a..2a6e95771cdac 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 diff --git a/samples/server/petstore/rust-server/output/multipart-v3/src/auth.rs b/samples/server/petstore/rust-server/output/multipart-v3/src/auth.rs index cbaba3dca7c6e..d2b1481eeb811 100644 --- a/samples/server/petstore/rust-server/output/multipart-v3/src/auth.rs +++ b/samples/server/petstore/rust-server/output/multipart-v3/src/auth.rs @@ -34,7 +34,7 @@ fn dummy_authorization() -> Authorization { // However, if you want to use it anyway this can not be unimplemented, so dummy implementation added. // unimplemented!() Authorization{ - subject: "Dummmy".to_owned(), + subject: "Dummy".to_owned(), scopes: Scopes::Some(BTreeSet::new()), // create an empty scope, as this should not be used issuer: None } diff --git a/samples/server/petstore/rust-server/output/multipart-v3/src/server/mod.rs b/samples/server/petstore/rust-server/output/multipart-v3/src/server/mod.rs index e9296a9524a52..442c54a8db742 100644 --- a/samples/server/petstore/rust-server/output/multipart-v3/src/server/mod.rs +++ b/samples/server/petstore/rust-server/output/multipart-v3/src/server/mod.rs @@ -363,7 +363,7 @@ impl hyper::service::Service<(Request, C)> for Service where return Ok(Response::builder() .status(StatusCode::INTERNAL_SERVER_ERROR) .body(Body::from("Failed to process message part due an internal error".to_string())) - .expect("Unable to create Internal Server Error response due to an internal errror")) + .expect("Unable to create Internal Server Error response due to an internal error")) }, SaveResult::Error(e) => { return Ok(Response::builder() diff --git a/samples/server/petstore/rust-server/output/no-example-v3/src/auth.rs b/samples/server/petstore/rust-server/output/no-example-v3/src/auth.rs index cbaba3dca7c6e..d2b1481eeb811 100644 --- a/samples/server/petstore/rust-server/output/no-example-v3/src/auth.rs +++ b/samples/server/petstore/rust-server/output/no-example-v3/src/auth.rs @@ -34,7 +34,7 @@ fn dummy_authorization() -> Authorization { // However, if you want to use it anyway this can not be unimplemented, so dummy implementation added. // unimplemented!() Authorization{ - subject: "Dummmy".to_owned(), + subject: "Dummy".to_owned(), scopes: Scopes::Some(BTreeSet::new()), // create an empty scope, as this should not be used issuer: None } diff --git a/samples/server/petstore/rust-server/output/openapi-v3/src/auth.rs b/samples/server/petstore/rust-server/output/openapi-v3/src/auth.rs index cbaba3dca7c6e..d2b1481eeb811 100644 --- a/samples/server/petstore/rust-server/output/openapi-v3/src/auth.rs +++ b/samples/server/petstore/rust-server/output/openapi-v3/src/auth.rs @@ -34,7 +34,7 @@ fn dummy_authorization() -> Authorization { // However, if you want to use it anyway this can not be unimplemented, so dummy implementation added. // unimplemented!() Authorization{ - subject: "Dummmy".to_owned(), + subject: "Dummy".to_owned(), scopes: Scopes::Some(BTreeSet::new()), // create an empty scope, as this should not be used issuer: None } diff --git a/samples/server/petstore/rust-server/output/ops-v3/src/auth.rs b/samples/server/petstore/rust-server/output/ops-v3/src/auth.rs index cbaba3dca7c6e..d2b1481eeb811 100644 --- a/samples/server/petstore/rust-server/output/ops-v3/src/auth.rs +++ b/samples/server/petstore/rust-server/output/ops-v3/src/auth.rs @@ -34,7 +34,7 @@ fn dummy_authorization() -> Authorization { // However, if you want to use it anyway this can not be unimplemented, so dummy implementation added. // unimplemented!() Authorization{ - subject: "Dummmy".to_owned(), + subject: "Dummy".to_owned(), scopes: Scopes::Some(BTreeSet::new()), // create an empty scope, as this should not be used issuer: None } diff --git a/samples/server/petstore/rust-server/output/petstore-with-fake-endpoints-models-for-testing/src/auth.rs b/samples/server/petstore/rust-server/output/petstore-with-fake-endpoints-models-for-testing/src/auth.rs index cbaba3dca7c6e..d2b1481eeb811 100644 --- a/samples/server/petstore/rust-server/output/petstore-with-fake-endpoints-models-for-testing/src/auth.rs +++ b/samples/server/petstore/rust-server/output/petstore-with-fake-endpoints-models-for-testing/src/auth.rs @@ -34,7 +34,7 @@ fn dummy_authorization() -> Authorization { // However, if you want to use it anyway this can not be unimplemented, so dummy implementation added. // unimplemented!() Authorization{ - subject: "Dummmy".to_owned(), + subject: "Dummy".to_owned(), scopes: Scopes::Some(BTreeSet::new()), // create an empty scope, as this should not be used issuer: None } diff --git a/samples/server/petstore/rust-server/output/petstore-with-fake-endpoints-models-for-testing/src/server/mod.rs b/samples/server/petstore/rust-server/output/petstore-with-fake-endpoints-models-for-testing/src/server/mod.rs index b0d83b6a7271c..0b0af66381ed1 100644 --- a/samples/server/petstore/rust-server/output/petstore-with-fake-endpoints-models-for-testing/src/server/mod.rs +++ b/samples/server/petstore/rust-server/output/petstore-with-fake-endpoints-models-for-testing/src/server/mod.rs @@ -2208,7 +2208,7 @@ impl hyper::service::Service<(Request, C)> for Service where return Ok(Response::builder() .status(StatusCode::INTERNAL_SERVER_ERROR) .body(Body::from("Failed to process message part due an internal error".to_string())) - .expect("Unable to create Internal Server Error response due to an internal errror")) + .expect("Unable to create Internal Server Error response due to an internal error")) }, SaveResult::Error(e) => { return Ok(Response::builder() diff --git a/samples/server/petstore/rust-server/output/ping-bearer-auth/src/auth.rs b/samples/server/petstore/rust-server/output/ping-bearer-auth/src/auth.rs index cbaba3dca7c6e..d2b1481eeb811 100644 --- a/samples/server/petstore/rust-server/output/ping-bearer-auth/src/auth.rs +++ b/samples/server/petstore/rust-server/output/ping-bearer-auth/src/auth.rs @@ -34,7 +34,7 @@ fn dummy_authorization() -> Authorization { // However, if you want to use it anyway this can not be unimplemented, so dummy implementation added. // unimplemented!() Authorization{ - subject: "Dummmy".to_owned(), + subject: "Dummy".to_owned(), scopes: Scopes::Some(BTreeSet::new()), // create an empty scope, as this should not be used issuer: None } diff --git a/samples/server/petstore/rust-server/output/rust-server-test/src/auth.rs b/samples/server/petstore/rust-server/output/rust-server-test/src/auth.rs index cbaba3dca7c6e..d2b1481eeb811 100644 --- a/samples/server/petstore/rust-server/output/rust-server-test/src/auth.rs +++ b/samples/server/petstore/rust-server/output/rust-server-test/src/auth.rs @@ -34,7 +34,7 @@ fn dummy_authorization() -> Authorization { // However, if you want to use it anyway this can not be unimplemented, so dummy implementation added. // unimplemented!() Authorization{ - subject: "Dummmy".to_owned(), + subject: "Dummy".to_owned(), scopes: Scopes::Some(BTreeSet::new()), // create an empty scope, as this should not be used issuer: None }