Skip to content

Commit ae67c69

Browse files
committed
fix more typos
1 parent 7f22568 commit ae67c69

File tree

7 files changed

+11
-11
lines changed

7 files changed

+11
-11
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -836,7 +836,7 @@ private Schema normalizeComplexComposedSchema(Schema schema, Set<Schema> visited
836836
}
837837

838838
// ===================== a list of rules =====================
839-
// all rules (fuctions) start with the word "process"
839+
// all rules (functions ) start with the word "process"
840840

841841
/**
842842
* Child schemas in `allOf` is considered a parent if it's a `$ref` (instead of inline schema).

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -936,7 +936,7 @@ private boolean startsWithTwoUppercaseLetters(String name) {
936936

937937
@Override
938938
public String toParamName(String name) {
939-
// obtain the name from paramterNameMapping directly if provided
939+
// obtain the name from parameterNameMapping directly if provided
940940
if (parameterNameMapping.containsKey(name)) {
941941
return parameterNameMapping.get(name);
942942
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ protected static String dropDots(String str) {
173173

174174
/**
175175
* Escapes a reserved word as defined in the `reservedWords` array. Handle escaping
176-
* those terms here. This logic is only called if a variable matches the reseved words
176+
* those terms here. This logic is only called if a variable matches the reserved words
177177
*
178178
* @return the escaped term
179179
*/

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1185,7 +1185,7 @@ private String getModelNameFromDataType(CodegenProperty cp) {
11851185
}
11861186

11871187
/**
1188-
* Update set of imports from codegen model recursivly
1188+
* Update set of imports from codegen model recursively
11891189
*
11901190
* @param modelName model name
11911191
* @param cm codegen model
@@ -1362,7 +1362,7 @@ public void postProcessPattern(String pattern, Map<String, Object> vendorExtensi
13621362
if (pattern != null) {
13631363
int i = pattern.lastIndexOf('/');
13641364

1365-
// TOOD update the check below follow python convention
1365+
// TODO update the check below follow python convention
13661366
//Must follow Perl /pattern/modifiers convention
13671367
if (pattern.charAt(0) != '/' || i < 2) {
13681368
throw new IllegalArgumentException("Pattern must follow the Perl "

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1687,7 +1687,7 @@ private String getModelNameFromDataType(CodegenProperty cp) {
16871687
}
16881688

16891689
/**
1690-
* Update set of imports from codegen model recursivly
1690+
* Update set of imports from codegen model recursively
16911691
*
16921692
* @param modelName model name
16931693
* @param cm codegen model
@@ -1896,7 +1896,7 @@ public void postProcessPattern(String pattern, Map<String, Object> vendorExtensi
18961896
if (pattern != null) {
18971897
int i = pattern.lastIndexOf('/');
18981898

1899-
// TOOD update the check below follow python convention
1899+
// TODO update the check below follow python convention
19001900
//Must follow Perl /pattern/modifiers convention
19011901
if (pattern.charAt(0) != '/' || i < 2) {
19021902
throw new IllegalArgumentException("Pattern must follow the Perl "

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -793,7 +793,7 @@ private void processJVMOkHttpLibrary(final String infrastructureFolder) {
793793
supportingFiles.add(new SupportingFile("infrastructure/ApiResponse.kt.mustache", infrastructureFolder, "ApiResponse.kt"));
794794
}
795795

796-
private void proccessJvmSpring(final String infrastructureFolder) {
796+
private void processJvmSpring(final String infrastructureFolder) {
797797
if (getSerializationLibrary() != SERIALIZATION_LIBRARY_TYPE.jackson) {
798798
throw new RuntimeException("This library currently only supports jackson serialization. Try adding '--additional-properties serializationLibrary=jackson' to your command.");
799799
}
@@ -806,7 +806,7 @@ private void proccessJvmSpring(final String infrastructureFolder) {
806806
}
807807

808808
private void processJvmSpringWebClientLibrary(final String infrastructureFolder) {
809-
proccessJvmSpring(infrastructureFolder);
809+
processJvmSpring(infrastructureFolder);
810810
additionalProperties.put(JVM_SPRING_WEBCLIENT, true);
811811
}
812812

@@ -815,7 +815,7 @@ private void processJvmSpringRestClientLibrary(final String infrastructureFolder
815815
throw new RuntimeException("This library must use Spring Boot 3. Try adding '--additional-properties useSpringBoot3=true' to your command.");
816816
}
817817

818-
proccessJvmSpring(infrastructureFolder);
818+
processJvmSpring(infrastructureFolder);
819819
additionalProperties.put(JVM_SPRING_RESTCLIENT, true);
820820
}
821821

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1226,7 +1226,7 @@ public CodegenModel fromModel(String name, Schema model) {
12261226
}
12271227
}
12281228

1229-
// Do we suppport doing ToString/FromStr conversions for query parameters?
1229+
// Do we support doing ToString/FromStr conversions for query parameters?
12301230
boolean toStringSupport = true;
12311231
boolean isString = "String".equals(mdl.dataType);
12321232

0 commit comments

Comments
 (0)