Skip to content

Commit 0ee05dc

Browse files
committed
Fix minor typos
1 parent 25283d4 commit 0ee05dc

File tree

277 files changed

+935
-935
lines changed

Some content is hidden

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

277 files changed

+935
-935
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ after_success:
201201
echo "Pushed to $DOCKER_CODEGEN_CLI_IMAGE_NAME";
202202
fi;
203203
fi;
204-
## NOTE; we will do the followign manually instead as the page doesn't need to be updated in every single travis build
204+
## NOTE; we will do the following manually instead as the page doesn't need to be updated in every single travis build
205205
## publish latest website, variables below are secure environment variables which are unavailable to PRs from forks.
206206
# - if [ "$TRAVIS_BRANCH" = "master" ] && [ -z $TRAVIS_TAG ] && [ "$TRAVIS_PULL_REQUEST" == "false" ]; then
207207
# sed -i "s/Vector{UInt8}/Vector\{UInt8\}/g" docs/generators/julia-client.md;

bin/utils/test_file_list.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
- filename: "samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/ClientTest.java"
1111
sha256: 325fdd5d7e2c97790c0fb44f712ab7b2ba022d7e1a5b0056f47b07f342682b6d
1212
- filename: "samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/JSONTest.java"
13-
sha256: e673d9928c8eb848262d0116fe0d28db832e128671a810a7c966d06d90cb9b63
13+
sha256: 44aef898ae3f5ac75e3847aa24a8eca259eb922be920162df0b725a6b751a6ca
1414
- filename: "samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/api/PetApiTest.java"
1515
sha256: 8b1b8f2a2ad00ccb090873a94a5f73e328b98317d2ec715f53bd7a1accb2a023
1616
- filename: "samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/PetTest.java"

docs/generators/postgresql-schema.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl
2121
|defaultDatabaseName|Database name that will be used for all generated PostgreSQL DDL and DML statements.| ||
2222
|idAutoIncEnabled|If `true`, generates autoincrement PostgreSQL types `SERIAL` and `BIGSERIAL` for `int32` and `int64` respectively for integer fields with name 'id'.| |false|
2323
|identifierNamingConvention|Naming convention of PostgreSQL idebntifiers (table names and column names).|<dl><dt>**snake_case**</dt><dd>Transform named to 'snake_case'.</dd><dt>**original**</dt><dd>Leave original names as in `YAML` file.</dd></dl>|snake_case|
24-
|jsonDataType|Use of PostgreSQL data types for complex model properties.|<dl><dt>**json**</dt><dd>Generate `JSON` fields. Value is stored in `JSON` data type field as human-readable text. Value compliance with JSON standard is checked.</dd><dt>**jsonb**</dt><dd>Generate `JSONB` fields. Value is stored in `JSONB` data type field in binary format. `JSONB` data type is generally nore efficient than `JSON` but it is not human-readable. Value compliance with JSON standard is checked.</dd><dt>**off**</dt><dd>Generate `TEXT` fields. Just store the value as plain text. Value compliance with JSON standard is not checked.</dd></dl>|json|
24+
|jsonDataType|Use of PostgreSQL data types for complex model properties.|<dl><dt>**json**</dt><dd>Generate `JSON` fields. Value is stored in `JSON` data type field as human-readable text. Value compliance with JSON standard is checked.</dd><dt>**jsonb**</dt><dd>Generate `JSONB` fields. Value is stored in `JSONB` data type field in binary format. `JSONB` data type is generally more efficient than `JSON` but it is not human-readable. Value compliance with JSON standard is checked.</dd><dt>**off**</dt><dd>Generate `TEXT` fields. Just store the value as plain text. Value compliance with JSON standard is not checked.</dd></dl>|json|
2525
|namedParametersEnabled|Generates query examples with named variables in value placeholders (eg.`:name`,`:quantity`) if `true`. Otherwise, generates question marks `?` in value placeholders.| |false|
2626

2727
## IMPORT MAPPING

docs/generators/swift5.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl
5656
|useCustomDateWithoutTime|Uses a custom type to decode and encode dates without time information to support OpenAPIs date format (default: false)| |false|
5757
|useJsonEncodable|Make models conform to JSONEncodable protocol (default: true)| |true|
5858
|useSPMFileStructure|Use SPM file structure and set the source path to Sources/{{projectName}} (default: false).| |null|
59-
|validatable|Make validation rules and validator for model properies (default: true)| |true|
59+
|validatable|Make validation rules and validator for model properties (default: true)| |true|
6060

6161
## IMPORT MAPPING
6262

docs/generators/swift6.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl
5858
|useCustomDateWithoutTime|Uses a custom type to decode and encode dates without time information to support OpenAPIs date format (default: false)| |false|
5959
|useJsonEncodable|Make models conform to JSONEncodable protocol (default: true)| |true|
6060
|useSPMFileStructure|Use SPM file structure and set the source path to Sources/{{projectName}} (default: true).| |null|
61-
|validatable|Make validation rules and validator for model properies (default: true)| |true|
61+
|validatable|Make validation rules and validator for model properties (default: true)| |true|
6262

6363
## IMPORT MAPPING
6464

modules/openapi-generator-cli/src/main/java/org/openapitools/codegen/cmd/Generate.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ public class Generate extends OpenApiGeneratorCommand {
162162

163163
@Option(
164164
name = {"--openapi-generator-ignore-list"},
165-
title = ".openapi-generaotr-ignore list",
165+
title = ".openapi-generator-ignore list",
166166
description = "specifies entries in the .openapi-generator-ignore file relative/path/to/file1,relative/path/to/file2. For example: README.md,pom.xml"
167167
+ " You can also have multiple occurrences of this option.")
168168
private List<String> openapiGeneratorIgnoreList = new ArrayList<>();

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7915,7 +7915,7 @@ public CodegenParameter fromRequestBody(RequestBody body, Set<String> imports, S
79157915
if (original.getMinimum() != null) {
79167916
codegenParameter.setMinimum(String.valueOf(original.getMinimum().doubleValue()));
79177917
}
7918-
/* comment out below as we don't store `title` in the codegen parametera the moment
7918+
/* comment out below as we don't store `title` in the codegen parameter at the moment
79197919
if (original.getTitle() != null) {
79207920
codegenParameter.setTitle(original.getTitle());
79217921
}

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ private String getInlineSchemaName(HttpMethod httpVerb, String pathname) {
207207

208208
/**
209209
* Return false if model can be represented by primitives e.g. string, object
210-
* without properties, array or map of other model (model contanier), etc.
210+
* without properties, array or map of other model (model container), etc.
211211
* <p>
212212
* Return true if a model should be generated e.g. object with properties,
213213
* enum, oneOf, allOf, anyOf, etc.
@@ -220,7 +220,7 @@ private boolean isModelNeeded(Schema schema) {
220220

221221
/**
222222
* Return false if model can be represented by primitives e.g. string, object
223-
* without properties, array or map of other model (model contanier), etc.
223+
* without properties, array or map of other model (model container), etc.
224224
* <p>
225225
* Return true if a model should be generated e.g. object with properties,
226226
* enum, oneOf, allOf, anyOf, etc.
@@ -1043,7 +1043,7 @@ private void copyVendorExtensions(Schema source, Schema target) {
10431043
* Add the schemas to the components
10441044
*
10451045
* @param name name of the inline schema
1046-
* @param schema inilne schema
1046+
* @param schema inline schema
10471047
* @return the actual model name (based on inlineSchemaNameMapping if provided)
10481048
*/
10491049
private String addSchemas(String name, Schema schema) {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -836,7 +836,7 @@ private Schema normalizeComplexComposedSchema(Schema schema, Set<Schema> visited
836836
}
837837

838838
// ===================== a list of rules =====================
839-
// all rules (functions ) start with the word "process"
839+
// all rules (functions) start with the word "process"
840840

841841
/**
842842
* Child schemas in `allOf` is considered a parent if it's a `$ref` (instead of inline schema).

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -791,7 +791,7 @@ public ModelsMap postProcessModels(ModelsMap objs) {
791791
}
792792

793793
// construct data tag in the template: x-go-datatag
794-
// originl template
794+
// original template
795795
// `json:"{{{baseName}}}{{^required}},omitempty{{/required}}"{{#withXml}} xml:"{{{baseName}}}{{#isXmlAttribute}},attr{{/isXmlAttribute}}"{{/withXml}}{{#withValidate}} validate:"{{validate}}"{{/withValidate}}{{#vendorExtensions.x-go-custom-tag}} {{{.}}}{{/vendorExtensions.x-go-custom-tag}}`
796796
String goDataTag = "json:\"" + cp.baseName;
797797
if (!cp.required) {

0 commit comments

Comments
 (0)