Skip to content

Commit 88d463c

Browse files
stefan521kota65535
authored andcommitted
Fix typos 'the the'. (OpenAPITools#17897)
1 parent c9aaab4 commit 88d463c

File tree

9 files changed

+11
-11
lines changed

9 files changed

+11
-11
lines changed

modules/openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -8439,7 +8439,7 @@ public void setAutosetConstants(boolean autosetConstants) {
84398439
/**
84408440
* This method removes all constant Query, Header and Cookie Params from allParams and sets them as constantParams in the CodegenOperation.
84418441
* The definition of constant is single valued required enum params.
8442-
* The constantParams in the the generated code should be hardcoded to the constantValue if autosetConstants feature is enabled.
8442+
* The constantParams in the generated code should be hardcoded to the constantValue if autosetConstants feature is enabled.
84438443
*
84448444
* @param operation - operation to be processed
84458445
*/

modules/openapi-generator/src/main/java/org/openapitools/codegen/validations/oas/OperationWrapper.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public PathItem.HttpMethod getHttpMethod() {
4747
/**
4848
* Returns the OpenAPI specification.
4949
*
50-
* @return The the OpenAPI specification.
50+
* @return The OpenAPI specification.
5151
*/
5252
public OpenAPI getOpenAPI() {
5353
return specification;

modules/openapi-generator/src/main/java/org/openapitools/codegen/validations/oas/ParameterWrapper.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public Parameter getParameter() {
3333
/**
3434
* Returns the OpenAPI specification.
3535
*
36-
* @return The the OpenAPI specification.
36+
* @return The OpenAPI specification.
3737
*/
3838
public OpenAPI getOpenAPI() {
3939
return specification;

modules/openapi-generator/src/main/java/org/openapitools/codegen/validations/oas/SchemaWrapper.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public Schema getSchema() {
3333
/**
3434
* Returns the OpenAPI specification.
3535
*
36-
* @return The the OpenAPI specification.
36+
* @return The OpenAPI specification.
3737
*/
3838
public OpenAPI getOpenAPI() {
3939
return specification;

modules/openapi-generator/src/main/java/org/openapitools/codegen/validations/oas/SecuritySchemeWrapper.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public SecurityScheme getSecurityScheme() {
3333
/**
3434
* Returns the OpenAPI specification.
3535
*
36-
* @return The the OpenAPI specification.
36+
* @return The OpenAPI specification.
3737
*/
3838
public OpenAPI getOpenAPI() {
3939
return specification;

modules/openapi-generator/src/test/resources/3_0/echo_api.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ servers:
2727
- url: http://localhost:3000/
2828
paths:
2929
# Path usually starts with parameter type such as path, query, header, form
30-
# For body/form parameters, path starts with "/echo" so the the echo server
31-
# will response with the same body in the HTTP request.
30+
# For body/form parameters, path starts with "/echo" so the echo server
31+
# will respond with the same body in the HTTP request.
3232
#
3333
# path parameter tests
3434
/path/string/{path_string}/integer/{path_integer}/{enum_nonref_string_path}/{enum_ref_string_path}:

modules/openapi-generator/src/test/resources/3_0/kotlin/echo_api.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ servers:
2727
- url: http://localhost:3000/
2828
paths:
2929
# Path usually starts with parameter type such as path, query, header, form
30-
# For body/form parameters, path starts with "/echo" so the the echo server
31-
# will response with the same body in the HTTP request.
30+
# For body/form parameters, path starts with "/echo" so the echo server
31+
# will respond with the same body in the HTTP request.
3232
#
3333
# path parameter tests
3434
/path/string/{path_string}/integer/{path_integer}/{enum_nonref_string_path}/{enum_ref_string_path}:

samples/client/petstore/csharp/OpenAPIClient-generichost-manual-tests/ManualTests.Latest.UseSourceGeneration/UnitTest1.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ public void GmFruit()
112112
gmFruit2.Apple.Origin.Equals(gmFruit.Apple.Origin) &&
113113
gmFruit2.Banana.LengthCm.Equals(gmFruit.Banana.LengthCm));
114114

115-
// TODO: assert the the properties from Banana and GmFruit are in additionalProperties
115+
// TODO: assert the properties from Banana and GmFruit are in additionalProperties
116116
}
117117

118118
[TestMethod]

samples/client/petstore/csharp/OpenAPIClient-generichost-manual-tests/OpenAPIClient-generichost-manual-tests/UnitTest1.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ public void GmFruit()
9898
gmFruit2.Apple.Origin.Equals(gmFruit.Apple.Origin) &&
9999
gmFruit2.Banana.LengthCm.Equals(gmFruit.Banana.LengthCm));
100100

101-
// TODO: assert the the properties from Banana and GmFruit are in additionalProperties
101+
// TODO: assert the properties from Banana and GmFruit are in additionalProperties
102102
}
103103

104104
[TestMethod]

0 commit comments

Comments
 (0)