Skip to content

Commit 794bb07

Browse files
scopwing328
authored andcommitted
Spelling fixes (#7142)
1 parent b4f7074 commit 794bb07

File tree

55 files changed

+218
-216
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+218
-216
lines changed

google_checkstyle.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@
133133
<message key="ws.notPreceded" value="GenericWhitespace ''{0}'' is not preceded with whitespace."/>
134134
</module>
135135
<module name="Indentation">
136-
<!-- Modified defaults for swagger-codegen (multipled Google by 2)-->
136+
<!-- Modified defaults for swagger-codegen (multiplied Google by 2)-->
137137
<property name="basicOffset" value="4"/>
138138
<property name="braceAdjustment" value="0"/>
139139
<property name="caseIndent" value="4"/>

modules/swagger-codegen/src/main/java/io/swagger/codegen/DefaultCodegen.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ public Map<String, Object> postProcessAllModels(Map<String, Object> objs) {
191191
for (String name : allModels.keySet()) {
192192
CodegenModel cm = allModels.get(name);
193193
CodegenModel parent = allModels.get(cm.parent);
194-
// if a discriminator exists on the parent, don't add this child to the inheritance heirarchy
194+
// if a discriminator exists on the parent, don't add this child to the inheritance hierarchy
195195
// TODO Determine what to do if the parent discriminator name == the grandparent discriminator name
196196
while (parent != null) {
197197
if (parent.children == null) {

modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/SymfonyServerCodegen.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ public Map<String, Object> postProcessOperations(Map<String, Object> objs) {
339339
// Loop through all input parameters to determine, whether we have to import something to
340340
// make the input type available.
341341
for (CodegenParameter param : op.allParams) {
342-
// Determine if the paramter type is supported as a type hint and make it available
342+
// Determine if the parameter type is supported as a type hint and make it available
343343
// to the templating engine
344344
String typeHint = getTypeHint(param.dataType);
345345
if (!typeHint.isEmpty()) {
@@ -397,7 +397,7 @@ public Map<String, Object> postProcessModels(Map<String, Object> objs) {
397397
// Simplify model var type
398398
for (CodegenProperty var : model.vars) {
399399
if (var.datatype != null) {
400-
// Determine if the paramter type is supported as a type hint and make it available
400+
// Determine if the parameter type is supported as a type hint and make it available
401401
// to the templating engine
402402
String typeHint = getTypeHint(var.datatype);
403403
if (!typeHint.isEmpty()) {

modules/swagger-codegen/src/main/resources/Eiffel/framework/serialization/api_json_custom_deserializer.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ note
1010
hobbies: LIST [STRING]
1111
photos: LIST [PHOTOS]
1212

13-
convertion:
13+
conversion:
1414
First go to the feature from_json_to_`model' and then start to set
1515
the object attibures as follow.
1616

modules/swagger-codegen/src/main/resources/Java/libraries/retrofit2/play24/Play24CallAdapterFactory.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public class Play24CallAdapterFactory extends CallAdapter.Factory {
5050
}
5151

5252
/**
53-
* Adpater that coverts values returned by API interface into CompletionStage
53+
* Adapter that coverts values returned by API interface into CompletionStage
5454
*/
5555
private static final class ValueAdapter<R> implements CallAdapter<R, F.Promise<R>> {
5656

modules/swagger-codegen/src/main/resources/Java/libraries/retrofit2/play25/Play25CallAdapterFactory.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public class Play25CallAdapterFactory extends CallAdapter.Factory {
6464
}
6565

6666
/**
67-
* Adpater that coverts values returned by API interface into CompletionStage
67+
* Adapter that coverts values returned by API interface into CompletionStage
6868
*/
6969
private static final class ValueAdapter<R> implements CallAdapter<R, CompletionStage<R>> {
7070

modules/swagger-codegen/src/main/resources/JavaPlayFramework/application.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ play.http.errorHandler="swagger.ErrorHandler"
3939
# Play uses Akka internally and exposes Akka Streams and actors in Websockets and
4040
# other streaming HTTP responses.
4141
akka {
42-
# "akka.log-config-on-start" is extraordinarly useful because it log the complete
42+
# "akka.log-config-on-start" is extraordinarily useful because it log the complete
4343
# configuration at INFO level, including defaults and overrides, so it s worth
4444
# putting at the very top.
4545
#

modules/swagger-codegen/src/main/resources/MSF4J/Application.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ public class Application {
1212
1313
System.out.println("starting Micro Services");
1414
//Before you run service replace .deploy(new ()) with your actual service class like .deploy(new ApisAPI()) then it will start that service.
15-
//If you have multiple service classes add them in , seperated manner.
15+
//If you have multiple service classes add them in comma separated manner.
1616
//Ex: .deploy(new PetApi())
1717
new MicroservicesRunner()
1818
.deploy(new PetApi())

modules/swagger-codegen/src/main/resources/bash/client.mustache

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -92,35 +92,35 @@ fi
9292
declare -a result_color_table=( "$WHITE" "$WHITE" "$GREEN" "$YELLOW" "$WHITE" "$MAGENTA" "$WHITE" )
9393

9494
##
95-
# This array stores the minimum number of required occurences for parameter
95+
# This array stores the minimum number of required occurrences for parameter
9696
# 0 - optional
9797
# 1 - required
98-
declare -A operation_parameters_minimum_occurences
98+
declare -A operation_parameters_minimum_occurrences
9999
{{#apiInfo}}
100100
{{#apis}}
101101
{{#operations}}
102102
{{#operation}}
103103
{{#allParams}}
104-
operation_parameters_minimum_occurences["{{operationId}}:::{{baseName}}"]={{#required}}{{#vendorExtensions}}{{#x-codegen-collection-min-items}}{{x-codegen-collection-min-items}}{{/x-codegen-collection-min-items}}{{^x-codegen-collection-min-items}}1{{/x-codegen-collection-min-items}}{{/vendorExtensions}}{{^vendorExtensions}}1{{/vendorExtensions}}{{/required}}{{^required}}0{{/required}}
104+
operation_parameters_minimum_occurrences["{{operationId}}:::{{baseName}}"]={{#required}}{{#vendorExtensions}}{{#x-codegen-collection-min-items}}{{x-codegen-collection-min-items}}{{/x-codegen-collection-min-items}}{{^x-codegen-collection-min-items}}1{{/x-codegen-collection-min-items}}{{/vendorExtensions}}{{^vendorExtensions}}1{{/vendorExtensions}}{{/required}}{{^required}}0{{/required}}
105105
{{/allParams}}
106106
{{/operation}}
107107
{{/operations}}
108108
{{/apis}}
109109
{{/apiInfo}}
110110

111111
##
112-
# This array stores the maximum number of allowed occurences for parameter
112+
# This array stores the maximum number of allowed occurrences for parameter
113113
# 1 - single value
114114
# 2 - 2 values
115115
# N - N values
116116
# 0 - unlimited
117-
declare -A operation_parameters_maximum_occurences
117+
declare -A operation_parameters_maximum_occurrences
118118
{{#apiInfo}}
119119
{{#apis}}
120120
{{#operations}}
121121
{{#operation}}
122122
{{#allParams}}
123-
operation_parameters_maximum_occurences["{{operationId}}:::{{baseName}}"]={{#vendorExtensions}}{{#x-codegen-collection-max-items}}{{x-codegen-collection-max-items}}{{/x-codegen-collection-max-items}}{{^x-codegen-collection-max-items}}0{{/x-codegen-collection-max-items}}{{/vendorExtensions}}{{^vendorExtensions}}0{{/vendorExtensions}}
123+
operation_parameters_maximum_occurrences["{{operationId}}:::{{baseName}}"]={{#vendorExtensions}}{{#x-codegen-collection-max-items}}{{x-codegen-collection-max-items}}{{/x-codegen-collection-max-items}}{{^x-codegen-collection-max-items}}0{{/x-codegen-collection-max-items}}{{/vendorExtensions}}{{^vendorExtensions}}0{{/vendorExtensions}}
124124
{{/allParams}}
125125
{{/operation}}
126126
{{/operations}}
@@ -326,7 +326,7 @@ header_arguments_to_curl() {
326326
# Converts an associative array into a simple JSON with keys as top
327327
# level object attributes
328328
#
329-
# \todo Add convertion of more complex attributes using paths
329+
# \todo Add conversion of more complex attributes using paths
330330
#
331331
##############################################################################
332332
body_parameters_to_json() {
@@ -376,7 +376,7 @@ build_request_path() {
376376

377377

378378
#
379-
# Check input paramaters count against minimum and maximum required
379+
# Check input parameters count against minimum and maximum required
380380
#
381381
if [[ "$force" = false ]]; then
382382
local was_error=""
@@ -387,16 +387,16 @@ build_request_path() {
387387
#
388388
# Check if the number of provided values is not less than minimum required
389389
#
390-
if [[ ${#parameter_values[@]} -lt ${operation_parameters_minimum_occurences["${operation}:::${qparam}"]} ]]; then
390+
if [[ ${#parameter_values[@]} -lt ${operation_parameters_minimum_occurrences["${operation}:::${qparam}"]} ]]; then
391391
echo "ERROR: Too few values provided for '${qparam}' parameter."
392392
was_error=true
393393
fi
394394

395395
#
396396
# Check if the number of provided values is not more than maximum
397397
#
398-
if [[ ${operation_parameters_maximum_occurences["${operation}:::${qparam}"]} -gt 0 \
399-
&& ${#parameter_values[@]} -gt ${operation_parameters_maximum_occurences["${operation}:::${qparam}"]} ]]; then
398+
if [[ ${operation_parameters_maximum_occurrences["${operation}:::${qparam}"]} -gt 0 \
399+
&& ${#parameter_values[@]} -gt ${operation_parameters_maximum_occurrences["${operation}:::${qparam}"]} ]]; then
400400
echo "ERROR: Too many values provided for '${qparam}' parameter"
401401
was_error=true
402402
fi
@@ -869,7 +869,7 @@ type column >/dev/null 2>&1 || { echo >&2 "ERROR: You do not have 'bsdmainutils'
869869
#
870870
# Process command line
871871
#
872-
# Pass all arguemnts before 'operation' to cURL except the ones we override
872+
# Pass all arguments before 'operation' to cURL except the ones we override
873873
#
874874
take_user=false
875875
take_host=false

modules/swagger-codegen/src/main/resources/csharp/ApiClient.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ namespace {{packageName}}.Client
105105
/// <value>An instance of the IReadableConfiguration.</value>
106106
/// <remarks>
107107
/// <see cref="IReadableConfiguration"/> helps us to avoid modifying possibly global
108-
/// configuration values from within a given client. It does not gaurantee thread-safety
108+
/// configuration values from within a given client. It does not guarantee thread-safety
109109
/// of the <see cref="Configuration"/> instance in any way.
110110
/// </remarks>
111111
public IReadableConfiguration Configuration { get; set; }

0 commit comments

Comments
 (0)