Skip to content

Commit

Permalink
fix more typos
Browse files Browse the repository at this point in the history
  • Loading branch information
wing328 committed Dec 30, 2024
1 parent 7f22568 commit ae67c69
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -836,7 +836,7 @@ private Schema normalizeComplexComposedSchema(Schema schema, Set<Schema> 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).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -936,7 +936,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);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,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
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1185,7 +1185,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
Expand Down Expand Up @@ -1362,7 +1362,7 @@ public void postProcessPattern(String pattern, Map<String, Object> 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 "
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -1896,7 +1896,7 @@ public void postProcessPattern(String pattern, Map<String, Object> 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 "
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -793,7 +793,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.");
}
Expand All @@ -806,7 +806,7 @@ private void proccessJvmSpring(final String infrastructureFolder) {
}

private void processJvmSpringWebClientLibrary(final String infrastructureFolder) {
proccessJvmSpring(infrastructureFolder);
processJvmSpring(infrastructureFolder);
additionalProperties.put(JVM_SPRING_WEBCLIENT, true);
}

Expand All @@ -815,7 +815,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);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1226,7 +1226,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);

Expand Down

0 comments on commit ae67c69

Please sign in to comment.