Skip to content

Commit

Permalink
Spelling fixes (#7142)
Browse files Browse the repository at this point in the history
  • Loading branch information
scop authored and wing328 committed Dec 10, 2017
1 parent b4f7074 commit 794bb07
Show file tree
Hide file tree
Showing 55 changed files with 218 additions and 216 deletions.
2 changes: 1 addition & 1 deletion google_checkstyle.xml
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@
<message key="ws.notPreceded" value="GenericWhitespace ''{0}'' is not preceded with whitespace."/>
</module>
<module name="Indentation">
<!-- Modified defaults for swagger-codegen (multipled Google by 2)-->
<!-- Modified defaults for swagger-codegen (multiplied Google by 2)-->
<property name="basicOffset" value="4"/>
<property name="braceAdjustment" value="0"/>
<property name="caseIndent" value="4"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ public Map<String, Object> postProcessAllModels(Map<String, Object> objs) {
for (String name : allModels.keySet()) {
CodegenModel cm = allModels.get(name);
CodegenModel parent = allModels.get(cm.parent);
// if a discriminator exists on the parent, don't add this child to the inheritance heirarchy
// if a discriminator exists on the parent, don't add this child to the inheritance hierarchy
// TODO Determine what to do if the parent discriminator name == the grandparent discriminator name
while (parent != null) {
if (parent.children == null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ public Map<String, Object> postProcessOperations(Map<String, Object> objs) {
// Loop through all input parameters to determine, whether we have to import something to
// make the input type available.
for (CodegenParameter param : op.allParams) {
// Determine if the paramter type is supported as a type hint and make it available
// Determine if the parameter type is supported as a type hint and make it available
// to the templating engine
String typeHint = getTypeHint(param.dataType);
if (!typeHint.isEmpty()) {
Expand Down Expand Up @@ -397,7 +397,7 @@ public Map<String, Object> postProcessModels(Map<String, Object> objs) {
// Simplify model var type
for (CodegenProperty var : model.vars) {
if (var.datatype != null) {
// Determine if the paramter type is supported as a type hint and make it available
// Determine if the parameter type is supported as a type hint and make it available
// to the templating engine
String typeHint = getTypeHint(var.datatype);
if (!typeHint.isEmpty()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ note
hobbies: LIST [STRING]
photos: LIST [PHOTOS]

convertion:
conversion:
First go to the feature from_json_to_`model' and then start to set
the object attibures as follow.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public class Play24CallAdapterFactory extends CallAdapter.Factory {
}

/**
* Adpater that coverts values returned by API interface into CompletionStage
* Adapter that coverts values returned by API interface into CompletionStage
*/
private static final class ValueAdapter<R> implements CallAdapter<R, F.Promise<R>> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public class Play25CallAdapterFactory extends CallAdapter.Factory {
}

/**
* Adpater that coverts values returned by API interface into CompletionStage
* Adapter that coverts values returned by API interface into CompletionStage
*/
private static final class ValueAdapter<R> implements CallAdapter<R, CompletionStage<R>> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ play.http.errorHandler="swagger.ErrorHandler"
# Play uses Akka internally and exposes Akka Streams and actors in Websockets and
# other streaming HTTP responses.
akka {
# "akka.log-config-on-start" is extraordinarly useful because it log the complete
# "akka.log-config-on-start" is extraordinarily useful because it log the complete
# configuration at INFO level, including defaults and overrides, so it s worth
# putting at the very top.
#
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public class Application {
System.out.println("starting Micro Services");
//Before you run service replace .deploy(new ()) with your actual service class like .deploy(new ApisAPI()) then it will start that service.
//If you have multiple service classes add them in , seperated manner.
//If you have multiple service classes add them in comma separated manner.
//Ex: .deploy(new PetApi())
new MicroservicesRunner()
.deploy(new PetApi())
Expand Down
24 changes: 12 additions & 12 deletions modules/swagger-codegen/src/main/resources/bash/client.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -92,35 +92,35 @@ fi
declare -a result_color_table=( "$WHITE" "$WHITE" "$GREEN" "$YELLOW" "$WHITE" "$MAGENTA" "$WHITE" )

##
# This array stores the minimum number of required occurences for parameter
# This array stores the minimum number of required occurrences for parameter
# 0 - optional
# 1 - required
declare -A operation_parameters_minimum_occurences
declare -A operation_parameters_minimum_occurrences
{{#apiInfo}}
{{#apis}}
{{#operations}}
{{#operation}}
{{#allParams}}
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}}
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}}
{{/allParams}}
{{/operation}}
{{/operations}}
{{/apis}}
{{/apiInfo}}

##
# This array stores the maximum number of allowed occurences for parameter
# This array stores the maximum number of allowed occurrences for parameter
# 1 - single value
# 2 - 2 values
# N - N values
# 0 - unlimited
declare -A operation_parameters_maximum_occurences
declare -A operation_parameters_maximum_occurrences
{{#apiInfo}}
{{#apis}}
{{#operations}}
{{#operation}}
{{#allParams}}
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}}
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}}
{{/allParams}}
{{/operation}}
{{/operations}}
Expand Down Expand Up @@ -326,7 +326,7 @@ header_arguments_to_curl() {
# Converts an associative array into a simple JSON with keys as top
# level object attributes
#
# \todo Add convertion of more complex attributes using paths
# \todo Add conversion of more complex attributes using paths
#
##############################################################################
body_parameters_to_json() {
Expand Down Expand Up @@ -376,7 +376,7 @@ build_request_path() {


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

#
# Check if the number of provided values is not more than maximum
#
if [[ ${operation_parameters_maximum_occurences["${operation}:::${qparam}"]} -gt 0 \
&& ${#parameter_values[@]} -gt ${operation_parameters_maximum_occurences["${operation}:::${qparam}"]} ]]; then
if [[ ${operation_parameters_maximum_occurrences["${operation}:::${qparam}"]} -gt 0 \
&& ${#parameter_values[@]} -gt ${operation_parameters_maximum_occurrences["${operation}:::${qparam}"]} ]]; then
echo "ERROR: Too many values provided for '${qparam}' parameter"
was_error=true
fi
Expand Down Expand Up @@ -869,7 +869,7 @@ type column >/dev/null 2>&1 || { echo >&2 "ERROR: You do not have 'bsdmainutils'
#
# Process command line
#
# Pass all arguemnts before 'operation' to cURL except the ones we override
# Pass all arguments before 'operation' to cURL except the ones we override
#
take_user=false
take_host=false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ namespace {{packageName}}.Client
/// <value>An instance of the IReadableConfiguration.</value>
/// <remarks>
/// <see cref="IReadableConfiguration"/> helps us to avoid modifying possibly global
/// configuration values from within a given client. It does not gaurantee thread-safety
/// configuration values from within a given client. It does not guarantee thread-safety
/// of the <see cref="Configuration"/> instance in any way.
/// </remarks>
public IReadableConfiguration Configuration { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ Example
r, err := client.Service.Operation(auth, args)
```

Or via OAuth2 module to automaticly refresh tokens and perform user authentication.
Or via OAuth2 module to automatically refresh tokens and perform user authentication.
```
import "golang.org/x/oauth2"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ func (c *APIClient) prepareRequest (
}
}

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

// Setup path and query paramters
// Setup path and query parameters
url, err := url.Parse(path)
if err != nil {
return nil, err
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import GHC.Exts (IsString(..))

import qualified Katip as LG

-- * Type Aliases (for compatability)
-- * Type Aliases (for compatibility)

-- | Runs a Katip logging block with the Log environment
type LogExecWithContext = forall m. P.MonadIO m =>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import Data.Text (Text)

import qualified Control.Monad.Logger as LG

-- * Type Aliases (for compatability)
-- * Type Aliases (for compatibility)

-- | Runs a monad-logger block with the filter predicate
type LogExecWithContext = forall m. P.MonadIO m =>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ describes additional constraints and actions on the _addFoo_ operation
via its typeclass instances. These typeclass instances can be viewed
in GHCi or via the Haddocks.

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ return /******/ (function(modules) { // webpackBootstrap
});
Object.defineProperty(JSONFormatter.prototype, "hasKey", {
/*
* did we recieve a key argument?
* did we receive a key argument?
* This means that the formatter was called as a sub formatter of a parent formatter
*/
get: function () {
Expand Down Expand Up @@ -846,7 +846,7 @@ return /******/ (function(modules) { // webpackBootstrap
"use strict";
/*
* Escapes `"` charachters from string
* Escapes `"` characters from string
*/
function escapeString(str) {
return str.replace('"', '\"');
Expand Down Expand Up @@ -933,7 +933,7 @@ return /******/ (function(modules) { // webpackBootstrap
}
exports.cssClass = cssClass;
/*
* Creates a new DOM element wiht given type and class
* Creates a new DOM element with given type and class
* TODO: move me to helpers
*/
function createElement(type, className, content) {
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ Example
r, err := client.Service.Operation(auth, args)
```

Or via OAuth2 module to automaticly refresh tokens and perform user authentication.
Or via OAuth2 module to automatically refresh tokens and perform user authentication.
```
import "golang.org/x/oauth2"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ func (c *APIClient) prepareRequest (
}
}

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

// Setup path and query paramters
// Setup path and query parameters
url, err := url.Parse(path)
if err != nil {
return nil, err
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ extern NSString *const {{classPrefix}}ResponseObjectErrorKey;
/**
* Updates header parameters and query parameters for authentication
*
* @param headers The header parameter will be udpated, passed by pointer to pointer.
* @param headers The header parameter will be updated, passed by pointer to pointer.
* @param querys The query parameters will be updated, passed by pointer to pointer.
* @param authSettings The authentication names NSArray.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,11 @@ my %_apis = map { $_ =~ /^{{moduleName}}::(.*)$/; $1 => $_ }

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

=head1 new(%paramters)
=head1 new(%parameters)

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

See L<{{moduleName}}::ApiClient> and L<{{moduleName}}::Configuration> for valid paramters
See L<{{moduleName}}::ApiClient> and L<{{moduleName}}::Configuration> for valid parameters

=cut

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ use constant VERSION => '{{moduleVersion}}';

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

=head1 new(%paramters)
=head1 new(%parameters)

=over 4

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ Example
r, err := client.Service.Operation(auth, args)
```

Or via OAuth2 module to automaticly refresh tokens and perform user authentication.
Or via OAuth2 module to automatically refresh tokens and perform user authentication.
```
import "golang.org/x/oauth2"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1957,7 +1957,7 @@ PREDEFINED =
EXPAND_AS_DEFINED =

# If the SKIP_FUNCTION_MACROS tag is set to YES then doxygen's preprocessor will
# remove all refrences to function-like macros that are alone on a line, have an
# remove all references to function-like macros that are alone on a line, have an
# all uppercase name, and do not end with a semicolon. Such function macros are
# typically used for boiler-plate code, and will confuse the parser if not
# removed.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ static bool {{nickname}}Processor(MemoryStruct_s p_chunk, long code, char* error
} else if (p_chunk.memory != NULL) {
error = Error(code, string(p_chunk.memory));
} else {
error = Error(code, string("Unkown Error"));
error = Error(code, string("Unknown Error"));
}
{{#returnType}} handler(out, error, userData);
return false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ paths:
type: string
responses:
'200':
description: Operation *succeded*
description: Operation *succeeded*
schema:
$ref: '#/definitions/RandomNumber'
'404':
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@
"pet"
],
"summary":"Finds Pets by tags",
"description":"Muliple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.",
"description":"Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.",
"operationId":"findPetsByTags",
"produces":[
"application/xml",
Expand Down
Loading

0 comments on commit 794bb07

Please sign in to comment.