Skip to content

Commit 798bf61

Browse files
scopwing328
authored andcommitted
Grammar and spelling fixes (#329)
1 parent e5635d2 commit 798bf61

42 files changed

Lines changed: 70 additions & 70 deletions

File tree

Some content is hidden

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

bin/utils/ensure-up-to-date

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22
# this bash script run the scripts for the 'mature' generators
3-
# it ensures that all changes are commited into the 'samples/' folder
3+
# it ensures that all changes are committed into the 'samples/' folder
44

55
echo "# START SCRIPT: $0"
66

docs/3.0.0-release-note.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ cf8d8d56f [PHP] Fix code example from README. Variable name was missing when usi
166166
76907cacd [PHP] declare property headerSelector
167167

168168
### Python
169-
7184f1ec6 [python] asyncio supports _preload_content; remove unsed imports (#107)
169+
7184f1ec6 [python] asyncio supports _preload_content; remove unused imports (#107)
170170
d74d2ba03 fix: python clients
171171
8e0a0ebd6 Fix python / tornado body handling
172172
b39c35c76 Fix inconsistency between model name and file name in python client
@@ -250,7 +250,7 @@ ce930e7a6 [Jaxrs-cxf] Add bean-level cascaded beanvalidation for pojos (@Valid)
250250
ff1178ad7 [Java][Spring] fix missing optional query params
251251
2103fadab Fix package declaration for play-framework
252252
2c6380c84 fix inner item (list, map) for play framework
253-
e33b350c8 Fix an issue in Play Framework generator where a CSV is empty and transfered to the controllerImp with an empty item.
253+
e33b350c8 Fix an issue in Play Framework generator where a CSV is empty and transferred to the controllerImp with an empty item.
254254
99fc27246 [JAX-RS][Spec] Removes throws Exception.
255255
fe2a44339 Fixes issue (SpringCodeGen dateLibrary "java8-localdatetime" option is ignored).
256256
d890d733f [JaxRS][Java] issue with implFolder on windows, and required fields generation for containers (#88)

modules/openapi-generator-online/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ This is an example of building a OpenAPI-enabled server in Java using the Spring
1010

1111
The underlying library integrating OpenAPI to SpringBoot is [springfox](https://github.com/springfox/springfox)
1212

13-
Start your server as an simple java application
13+
Start your server as a simple java application
1414

15-
Change default port value in application.properties
15+
Change default port value in application.properties

modules/openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ public Map<String, Object> postProcessAllModels(Map<String, Object> objs) {
210210
for (String name : allModels.keySet()) {
211211
CodegenModel cm = allModels.get(name);
212212
CodegenModel parent = allModels.get(cm.getParent());
213-
// if a discriminator exists on the parent, don't add this child to the inheritance heirarchy
213+
// if a discriminator exists on the parent, don't add this child to the inheritance hierarchy
214214
// TODO Determine what to do if the parent discriminator name == the grandparent discriminator name
215215
while (parent != null) {
216216
if (parent.getChildren() == null) {
@@ -1201,7 +1201,7 @@ public String getSchemaType(Schema schema) {
12011201
*/
12021202
private static String getPrimitiveType(Schema schema) {
12031203
if (schema == null) {
1204-
throw new RuntimeException("schema cannnot be null in getPrimitiveType");
1204+
throw new RuntimeException("schema cannot be null in getPrimitiveType");
12051205
} else if (ModelUtils.isStringSchema(schema) && "number".equals(schema.getFormat())) {
12061206
// special handle of type: string, format: number
12071207
return "BigDecimal";
@@ -1300,7 +1300,7 @@ public String getTypeDeclaration(Schema schema) {
13001300

13011301
/**
13021302
* Determine the type alias for the given type if it exists. This feature
1303-
* was original developed for Java because the language does not have a aliasing
1303+
* was originally developed for Java because the language does not have an aliasing
13041304
* mechanism of its own but later extends to handle other languages
13051305
*
13061306
* @param name The type name.
@@ -2055,7 +2055,7 @@ public CodegenOperation fromOperation(String path,
20552055
}
20562056

20572057
if (operation == null)
2058-
throw new RuntimeException("operation cannnot be null in fromOperation");
2058+
throw new RuntimeException("operation cannot be null in fromOperation");
20592059

20602060
// store the original operationId for plug-in
20612061
op.operationIdOriginal = operation.getOperationId();
@@ -3853,7 +3853,7 @@ public static Set<String> getConsumesInfo(OpenAPI openAPI, Operation operation)
38533853
RequestBody requestBody = ModelUtils.getReferencedRequestBody(openAPI, operation.getRequestBody());
38543854

38553855
if (requestBody == null || requestBody.getContent() == null || requestBody.getContent().isEmpty()) {
3856-
return Collections.emptySet(); // return emtpy set
3856+
return Collections.emptySet(); // return empty set
38573857
}
38583858
return requestBody.getContent().keySet();
38593859
}
@@ -4249,7 +4249,7 @@ public CodegenParameter fromRequestBody(RequestBody body, Map<String, Schema> sc
42494249
if (schema.getAdditionalProperties() != null) {// http body is map
42504250
LOGGER.error("Map should be supported. Please report to openapi-generator github repo about the issue.");
42514251
} else if (codegenProperty != null) {
4252-
LOGGER.warn("The folowing schema has undefined (null) baseType. " +
4252+
LOGGER.warn("The following schema has undefined (null) baseType. " +
42534253
"It could be due to form parameter defined in OpenAPI v2 spec with incorrect consumes. " +
42544254
"A correct 'consumes' for form parameters should be " +
42554255
"'application/x-www-form-urlencoded' or 'multipart/form-data'");

modules/openapi-generator/src/main/java/org/openapitools/codegen/DefaultGenerator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1012,7 +1012,7 @@ private Map<String, Object> processModels(CodegenConfig config, Map<String, Sche
10121012
for (String key : definitions.keySet()) {
10131013
Schema schema = definitions.get(key);
10141014
if (schema == null)
1015-
throw new RuntimeException("schema cannnot be null in processMoels");
1015+
throw new RuntimeException("schema cannot be null in processMoels");
10161016
CodegenModel cm = config.fromModel(key, schema, allDefinitions);
10171017
Map<String, Object> mo = new HashMap<String, Object>();
10181018
mo.put("model", cm);

modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractAdaCodegen.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ public void postProcessParameter(CodegenParameter parameter) {
378378
/**
379379
* Post process the media types (produces and consumes) for Ada code generator.
380380
* <p>
381-
* For each media type, add a adaMediaType member that gives the Ada enum constant
381+
* For each media type, add an adaMediaType member that gives the Ada enum constant
382382
* for the corresponding type.
383383
*
384384
* @param types the list of media types.

modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractCSharpCodegen.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ private void addMustacheLambdas(Map<String, Object> objs) {
341341
.build();
342342

343343
if (objs.containsKey("lambda")) {
344-
LOGGER.warn("An property named 'lambda' already exists. Mustache lambdas renamed from 'lambda' to '_lambda'. " +
344+
LOGGER.warn("A property named 'lambda' already exists. Mustache lambdas renamed from 'lambda' to '_lambda'. " +
345345
"You'll likely need to use a custom template, " +
346346
"see https://github.com/swagger-api/swagger-codegen#modifying-the-client-library-format. ");
347347
objs.put("_lambda", lambdas);

modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/KotlinServerCodegen.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ private void addMustacheLambdas(Map<String, Object> objs) {
229229
.build();
230230

231231
if (objs.containsKey("lambda")) {
232-
LOGGER.warn("An property named 'lambda' already exists. Mustache lambdas renamed from 'lambda' to '_lambda'. " +
232+
LOGGER.warn("A property named 'lambda' already exists. Mustache lambdas renamed from 'lambda' to '_lambda'. " +
233233
"You'll likely need to use a custom template, " +
234234
"see https://github.com/swagger-api/swagger-codegen#modifying-the-client-library-format. "); // TODO: update the URL
235235
objs.put("_lambda", lambdas);

modules/openapi-generator/src/main/java/org/openapitools/codegen/utils/URLPathUtils.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public static URL getServerURL(OpenAPI openAPI) {
3939
LOGGER.warn("Server information seems not defined in the spec. Default to {}.", LOCAL_HOST);
4040
return getDefaultUrl();
4141
}
42-
// TOOD need a way to obtain all server URLs
42+
// TODO need a way to obtain all server URLs
4343
final Server server = servers.get(0);
4444
String url = sanitizeUrl(server.getUrl());
4545

@@ -150,4 +150,4 @@ private static URL getDefaultUrl() {
150150
return null;
151151
}
152152
}
153-
}
153+
}

modules/openapi-generator/src/main/resources/Ada/README.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ run the following command:
1818
gprbuild -p -P{{projectName}}
1919
```
2020

21-
After the build is successfull, you will get the server binary
21+
After the build is successful, you will get the server binary
2222
in bin/{{packageName}}-server and you can start it as follows:
2323
```
2424
./bin/{{packageName}}-server

0 commit comments

Comments
 (0)