Permalink
Browse files

Spelling fixes (#7142)

  • Loading branch information...
scop authored and wing328 committed Dec 10, 2017
1 parent b4f7074 commit 794bb07cf7382f3f31286b775e2bf76267ce75e2
Showing with 218 additions and 216 deletions.
  1. +1 −1 google_checkstyle.xml
  2. +1 −1 modules/swagger-codegen/src/main/java/io/swagger/codegen/DefaultCodegen.java
  3. +2 −2 modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/SymfonyServerCodegen.java
  4. +1 −1 ...r-codegen/src/main/resources/Eiffel/framework/serialization/api_json_custom_deserializer.mustache
  5. +1 −1 ...gger-codegen/src/main/resources/Java/libraries/retrofit2/play24/Play24CallAdapterFactory.mustache
  6. +1 −1 ...gger-codegen/src/main/resources/Java/libraries/retrofit2/play25/Play25CallAdapterFactory.mustache
  7. +1 −1 modules/swagger-codegen/src/main/resources/JavaPlayFramework/application.mustache
  8. +1 −1 modules/swagger-codegen/src/main/resources/MSF4J/Application.mustache
  9. +12 −12 modules/swagger-codegen/src/main/resources/bash/client.mustache
  10. +1 −1 modules/swagger-codegen/src/main/resources/csharp/ApiClient.mustache
  11. +1 −1 modules/swagger-codegen/src/main/resources/go/README.mustache
  12. +2 −2 modules/swagger-codegen/src/main/resources/go/api_client.mustache
  13. +1 −1 modules/swagger-codegen/src/main/resources/haskell-http-client/LoggingKatip.mustache
  14. +1 −1 modules/swagger-codegen/src/main/resources/haskell-http-client/LoggingMonadLogger.mustache
  15. +1 −1 modules/swagger-codegen/src/main/resources/haskell-http-client/README.mustache
  16. +3 −3 modules/swagger-codegen/src/main/resources/htmlDocs2/js_jsonformatter.mustache
  17. +2 −2 modules/swagger-codegen/src/main/resources/htmlDocs2/marked.mustache
  18. +1 −1 modules/swagger-codegen/src/main/resources/lua/README.mustache
  19. +2 −2 modules/swagger-codegen/src/main/resources/lua/api_client.mustache
  20. +1 −1 modules/swagger-codegen/src/main/resources/objc/ApiClient-header.mustache
  21. +2 −2 modules/swagger-codegen/src/main/resources/perl/ApiFactory.mustache
  22. +1 −1 modules/swagger-codegen/src/main/resources/perl/Configuration.mustache
  23. +1 −1 modules/swagger-codegen/src/main/resources/rust/README.mustache
  24. +1 −1 modules/swagger-codegen/src/main/resources/tizen/Doxyfile.mustache
  25. +1 −1 modules/swagger-codegen/src/main/resources/tizen/api-body.mustache
  26. +1 −1 modules/swagger-codegen/src/test/resources/2_0/markdown.yaml
  27. +1 −1 modules/swagger-codegen/src/test/resources/2_0/petstore-bash.json
  28. +124 −122 samples/client/petstore/bash/petstore-cli
  29. +1 −1 samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Client/ApiClient.cs
  30. +1 −1 samples/client/petstore/go/go-petstore/README.md
  31. +2 −2 samples/client/petstore/go/go-petstore/api_client.go
  32. +1 −1 samples/client/petstore/haskell-http-client/README.md
  33. +1 −1 samples/client/petstore/haskell-http-client/lib/SwaggerPetstore/Logging.hs
  34. +1 −1 ...ient/petstore/java/retrofit2-play24/src/main/java/io/swagger/client/Play24CallAdapterFactory.java
  35. +1 −1 ...ient/petstore/java/retrofit2-play25/src/main/java/io/swagger/client/Play25CallAdapterFactory.java
  36. +1 −1 samples/client/petstore/objc/default/SwaggerClient/Core/SWGApiClient.h
  37. +2 −2 samples/client/petstore/perl/lib/WWW/SwaggerClient/ApiFactory.pm
  38. +1 −1 samples/client/petstore/perl/lib/WWW/SwaggerClient/Configuration.pm
  39. +1 −1 samples/client/petstore/rust/README.md
  40. +1 −1 samples/client/petstore/rust/git_push.sh
  41. +1 −1 samples/client/petstore/tizen/doc/Doxyfile
  42. +8 −8 samples/client/petstore/tizen/src/PetManager.cpp
  43. +4 −4 samples/client/petstore/tizen/src/StoreManager.cpp
  44. +8 −8 samples/client/petstore/tizen/src/UserManager.cpp
  45. +1 −1 samples/html.md/index.html
  46. +4 −4 samples/html2/index.html
  47. +1 −1 samples/server/petstore/java-msf4j/src/gen/java/io/swagger/api/Application.java
  48. +1 −1 samples/server/petstore/java-play-framework-controller-only/conf/application.conf
  49. +1 −1 samples/server/petstore/java-play-framework-fake-endpoints/conf/application.conf
  50. +1 −1 samples/server/petstore/java-play-framework-no-bean-validation/conf/application.conf
  51. +1 −1 samples/server/petstore/java-play-framework-no-exception-handling/conf/application.conf
  52. +1 −1 samples/server/petstore/java-play-framework-no-interface/conf/application.conf
  53. +1 −1 samples/server/petstore/java-play-framework-no-swagger-ui/conf/application.conf
  54. +1 −1 samples/server/petstore/java-play-framework-no-wrap-calls/conf/application.conf
  55. +1 −1 samples/server/petstore/java-play-framework/conf/application.conf
@@ -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"/>
@@ -191,7 +191,7 @@ public void processOpts() {
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) {
@@ -339,7 +339,7 @@ public void processOpts() {
// 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()) {
@@ -397,7 +397,7 @@ public void processOpts() {
// 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()) {
@@ -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.
@@ -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>> {
@@ -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>> {
@@ -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.
#
@@ -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())
@@ -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}}
@@ -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() {
@@ -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=""
@@ -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
@@ -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
@@ -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; }
@@ -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"
@@ -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.")
@@ -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
@@ -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 =>
@@ -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 =>
@@ -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`
@@ -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 () {
@@ -846,7 +846,7 @@ return /******/ (function(modules) { // webpackBootstrap
"use strict";
/*
* Escapes `"` charachters from string
* Escapes `"` characters from string
*/
function escapeString(str) {
return str.replace('"', '\"');
@@ -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) {

Large diffs are not rendered by default.

Oops, something went wrong.
@@ -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"
@@ -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.")
@@ -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
@@ -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.
*/
@@ -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
@@ -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
@@ -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"
@@ -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.
@@ -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;
@@ -50,7 +50,7 @@ paths:
type: string
responses:
'200':
description: Operation *succeded*
description: Operation *succeeded*
schema:
$ref: '#/definitions/RandomNumber'
'404':
@@ -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",
Oops, something went wrong.

0 comments on commit 794bb07

Please sign in to comment.