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

+1-1
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

+1-1
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

+2-2
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

+1-1
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

+1-1
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

+1-1
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

+1-1
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

+1-1
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

+12-12
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

+1-1
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; }

modules/swagger-codegen/src/main/resources/go/README.mustache

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ Example
7777
r, err := client.Service.Operation(auth, args)
7878
```
7979

80-
Or via OAuth2 module to automaticly refresh tokens and perform user authentication.
80+
Or via OAuth2 module to automatically refresh tokens and perform user authentication.
8181
```
8282
import "golang.org/x/oauth2"
8383

modules/swagger-codegen/src/main/resources/go/api_client.mustache

+2-2
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ func (c *APIClient) prepareRequest (
183183
}
184184
}
185185

186-
// add form paramters and file if available.
186+
// add form parameters and file if available.
187187
if len(formParams) > 0 || (len(fileBytes) > 0 && fileName != "") {
188188
if body != nil {
189189
return nil, errors.New("Cannot specify postBody and multipart form at the same time.")
@@ -223,7 +223,7 @@ func (c *APIClient) prepareRequest (
223223
w.Close()
224224
}
225225

226-
// Setup path and query paramters
226+
// Setup path and query parameters
227227
url, err := url.Parse(path)
228228
if err != nil {
229229
return nil, err

modules/swagger-codegen/src/main/resources/haskell-http-client/LoggingKatip.mustache

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import GHC.Exts (IsString(..))
2222

2323
import qualified Katip as LG
2424

25-
-- * Type Aliases (for compatability)
25+
-- * Type Aliases (for compatibility)
2626

2727
-- | Runs a Katip logging block with the Log environment
2828
type LogExecWithContext = forall m. P.MonadIO m =>

modules/swagger-codegen/src/main/resources/haskell-http-client/LoggingMonadLogger.mustache

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import Data.Text (Text)
2020

2121
import qualified Control.Monad.Logger as LG
2222

23-
-- * Type Aliases (for compatability)
23+
-- * Type Aliases (for compatibility)
2424

2525
-- | Runs a monad-logger block with the filter predicate
2626
type LogExecWithContext = forall m. P.MonadIO m =>

modules/swagger-codegen/src/main/resources/haskell-http-client/README.mustache

+1-1
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ describes additional constraints and actions on the _addFoo_ operation
126126
via its typeclass instances. These typeclass instances can be viewed
127127
in GHCi or via the Haddocks.
128128

129-
* requried parameters are included as function arguments to _addFoo_
129+
* required parameters are included as function arguments to _addFoo_
130130
* optional non-body parameters are included by using `applyOptionalParam`
131131
* optional body parameters are set by using `setBodyParam`
132132

modules/swagger-codegen/src/main/resources/htmlDocs2/js_jsonformatter.mustache

+3-3
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ return /******/ (function(modules) { // webpackBootstrap
216216
});
217217
Object.defineProperty(JSONFormatter.prototype, "hasKey", {
218218
/*
219-
* did we recieve a key argument?
219+
* did we receive a key argument?
220220
* This means that the formatter was called as a sub formatter of a parent formatter
221221
*/
222222
get: function () {
@@ -846,7 +846,7 @@ return /******/ (function(modules) { // webpackBootstrap
846846
847847
"use strict";
848848
/*
849-
* Escapes `"` charachters from string
849+
* Escapes `"` characters from string
850850
*/
851851
function escapeString(str) {
852852
return str.replace('"', '\"');
@@ -933,7 +933,7 @@ return /******/ (function(modules) { // webpackBootstrap
933933
}
934934
exports.cssClass = cssClass;
935935
/*
936-
* Creates a new DOM element wiht given type and class
936+
* Creates a new DOM element with given type and class
937937
* TODO: move me to helpers
938938
*/
939939
function createElement(type, className, content) {

modules/swagger-codegen/src/main/resources/htmlDocs2/marked.mustache

+2-2
Large diffs are not rendered by default.

modules/swagger-codegen/src/main/resources/lua/README.mustache

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ Example
7777
r, err := client.Service.Operation(auth, args)
7878
```
7979

80-
Or via OAuth2 module to automaticly refresh tokens and perform user authentication.
80+
Or via OAuth2 module to automatically refresh tokens and perform user authentication.
8181
```
8282
import "golang.org/x/oauth2"
8383

modules/swagger-codegen/src/main/resources/lua/api_client.mustache

+2-2
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ func (c *APIClient) prepareRequest (
183183
}
184184
}
185185

186-
// add form paramters and file if available.
186+
// add form parameters and file if available.
187187
if len(formParams) > 0 || (len(fileBytes) > 0 && fileName != "") {
188188
if body != nil {
189189
return nil, errors.New("Cannot specify postBody and multipart form at the same time.")
@@ -223,7 +223,7 @@ func (c *APIClient) prepareRequest (
223223
w.Close()
224224
}
225225

226-
// Setup path and query paramters
226+
// Setup path and query parameters
227227
url, err := url.Parse(path)
228228
if err != nil {
229229
return nil, err

modules/swagger-codegen/src/main/resources/objc/ApiClient-header.mustache

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ extern NSString *const {{classPrefix}}ResponseObjectErrorKey;
5555
/**
5656
* Updates header parameters and query parameters for authentication
5757
*
58-
* @param headers The header parameter will be udpated, passed by pointer to pointer.
58+
* @param headers The header parameter will be updated, passed by pointer to pointer.
5959
* @param querys The query parameters will be updated, passed by pointer to pointer.
6060
* @param authSettings The authentication names NSArray.
6161
*/

modules/swagger-codegen/src/main/resources/perl/ApiFactory.mustache

+2-2
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,11 @@ my %_apis = map { $_ =~ /^{{moduleName}}::(.*)$/; $1 => $_ }
5353

5454
create a new {{moduleName}}::ApiFactory instance with the given {{moduleName}}::ApiClient instance.
5555

56-
=head1 new(%paramters)
56+
=head1 new(%parameters)
5757

5858
Any parameters are optional, and are passed to and stored on the api_client object.
5959

60-
See L<{{moduleName}}::ApiClient> and L<{{moduleName}}::Configuration> for valid paramters
60+
See L<{{moduleName}}::ApiClient> and L<{{moduleName}}::Configuration> for valid parameters
6161

6262
=cut
6363

modules/swagger-codegen/src/main/resources/perl/Configuration.mustache

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ use constant VERSION => '{{moduleVersion}}';
1919

2020
{{moduleName}}::Configuration - holds the configuration for all {{moduleName}} Modules
2121

22-
=head1 new(%paramters)
22+
=head1 new(%parameters)
2323

2424
=over 4
2525

modules/swagger-codegen/src/main/resources/rust/README.mustache

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ Example
7777
r, err := client.Service.Operation(auth, args)
7878
```
7979

80-
Or via OAuth2 module to automaticly refresh tokens and perform user authentication.
80+
Or via OAuth2 module to automatically refresh tokens and perform user authentication.
8181
```
8282
import "golang.org/x/oauth2"
8383

modules/swagger-codegen/src/main/resources/tizen/Doxyfile.mustache

+1-1
Original file line numberDiff line numberDiff line change
@@ -1957,7 +1957,7 @@ PREDEFINED =
19571957
EXPAND_AS_DEFINED =
19581958

19591959
# If the SKIP_FUNCTION_MACROS tag is set to YES then doxygen's preprocessor will
1960-
# remove all refrences to function-like macros that are alone on a line, have an
1960+
# remove all references to function-like macros that are alone on a line, have an
19611961
# all uppercase name, and do not end with a semicolon. Such function macros are
19621962
# typically used for boiler-plate code, and will confuse the parser if not
19631963
# removed.

modules/swagger-codegen/src/main/resources/tizen/api-body.mustache

+1-1
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ static bool {{nickname}}Processor(MemoryStruct_s p_chunk, long code, char* error
124124
} else if (p_chunk.memory != NULL) {
125125
error = Error(code, string(p_chunk.memory));
126126
} else {
127-
error = Error(code, string("Unkown Error"));
127+
error = Error(code, string("Unknown Error"));
128128
}
129129
{{#returnType}} handler(out, error, userData);
130130
return false;

modules/swagger-codegen/src/test/resources/2_0/markdown.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ paths:
5050
type: string
5151
responses:
5252
'200':
53-
description: Operation *succeded*
53+
description: Operation *succeeded*
5454
schema:
5555
$ref: '#/definitions/RandomNumber'
5656
'404':

modules/swagger-codegen/src/test/resources/2_0/petstore-bash.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@
197197
"pet"
198198
],
199199
"summary":"Finds Pets by tags",
200-
"description":"Muliple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.",
200+
"description":"Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.",
201201
"operationId":"findPetsByTags",
202202
"produces":[
203203
"application/xml",

0 commit comments

Comments
 (0)