Skip to content

Commit 25283d4

Browse files
authored
Fix typo in various generators, templates (#20389)
* fix typo in various generators, templates * update samples
1 parent c5ac7d4 commit 25283d4

File tree

90 files changed

+118
-118
lines changed

Some content is hidden

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

90 files changed

+118
-118
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -629,7 +629,7 @@ private void flattenComponentResponses() {
629629
* breed:
630630
* type: string
631631
*
632-
* @param key a unique name ofr the composed schema.
632+
* @param key a unique name for the composed schema.
633633
* @param children the list of nested schemas within a composed schema (allOf, anyOf, oneOf).
634634
* @param skipAllOfInlineSchemas true if allOf inline schemas need to be skipped.
635635
*/

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1179,7 +1179,7 @@ private static String queryArgs(final CodegenOperation op) {
11791179
* <p>
11801180
* The data variant can have nulls and other non-scala things, but they know how to create validated model objects.
11811181
* <p>
1182-
* This 'asScalaDataType' is used to ensure the type hierarchy is correct for both the model and data varients.
1182+
* This 'asScalaDataType' is used to ensure the type hierarchy is correct for both the model and data variants.
11831183
* <p>
11841184
* e.g. consider this example:
11851185
* ```

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1073,7 +1073,7 @@ private Set<String> reformatProvideArgsParams(Operation operation) {
10731073
if (argObj instanceof List) {
10741074
List<String> provideArgs = (List<String>) argObj;
10751075
if (!provideArgs.isEmpty()) {
1076-
List<String> formatedArgs = new ArrayList<>();
1076+
List<String> formattedArgs = new ArrayList<>();
10771077
for (String oneArg : provideArgs) {
10781078
if (StringUtils.isNotEmpty(oneArg)) {
10791079
String regexp = "(?<AnnotationTag>@)?(?<ClassPath>(?<PackageName>(\\w+\\.)*)(?<ClassName>\\w+))(?<Params>\\(.*?\\))?\\s?";
@@ -1095,10 +1095,10 @@ private Set<String> reformatProvideArgsParams(Operation operation) {
10951095
}
10961096
String newArg = String.join(" ", newArgs);
10971097
LOGGER.trace("new arg {} {}", newArg);
1098-
formatedArgs.add(newArg);
1098+
formattedArgs.add(newArg);
10991099
}
11001100
}
1101-
operation.getExtensions().put("x-spring-provide-args", formatedArgs);
1101+
operation.getExtensions().put("x-spring-provide-args", formattedArgs);
11021102
}
11031103
}
11041104
return provideArgsClassSet;

modules/openapi-generator/src/main/resources/cpp-rest-sdk-client/modelbase-header.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ web::json::value ModelBase::toJson( const std::vector<T>& value )
229229
template<typename T>
230230
web::json::value ModelBase::toJson( const std::set<T>& value )
231231
{
232-
// There's no protoype web::json::value::array(...) taking a std::set parameter. Converting to std::vector to get an array.
232+
// There's no prototype web::json::value::array(...) taking a std::set parameter. Converting to std::vector to get an array.
233233
std::vector<web::json::value> ret;
234234
for ( const auto& x : value )
235235
{

modules/openapi-generator/src/main/resources/csharp-functions/HttpSigningConfiguration.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ namespace {{packageName}}.Client
5959
public string SigningAlgorithm { get; set; }
6060

6161
/// <summary>
62-
/// Gets the Signature validaty period in seconds
62+
/// Gets the Signature validity period in seconds
6363
/// </summary>
6464
public int SignatureValidityPeriod { get; set; }
6565

modules/openapi-generator/src/main/resources/csharp/HttpSigningConfiguration.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ namespace {{packageName}}.Client
389389
}
390390

391391
/// <summary>
392-
/// Convert ANS1 format to DER format. Not recommended to use because it generate inavlid signature occationally.
392+
/// Convert ANS1 format to DER format. Not recommended to use because it generate invalid signature occasionally.
393393
/// </summary>
394394
/// <param name="signedBytes"></param>
395395
/// <returns></returns>

modules/openapi-generator/src/main/resources/csharp/libraries/generichost/ExceptionEventArgs.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ namespace {{packageName}}.{{clientPackage}}
1313
public Exception Exception { get; }
1414

1515
/// <summary>
16-
/// The ExcepetionEventArgs
16+
/// The ExceptionEventArgs
1717
/// </summary>
1818
/// <param name="exception"></param>
1919
public ExceptionEventArgs(Exception exception)

modules/openapi-generator/src/main/resources/csharp/libraries/generichost/HttpSigningConfiguration.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ namespace {{packageName}}.{{clientPackage}}
6565
public string SigningAlgorithm { get; set; }
6666

6767
/// <summary>
68-
/// Gets the Signature validaty period in seconds
68+
/// Gets the Signature validity period in seconds
6969
/// </summary>
7070
public int SignatureValidityPeriod { get; set; }
7171

modules/openapi-generator/src/main/resources/php/libraries/psr-18/api.mustache

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ use function sprintf;
181181
{{/vendorExtensions.x-group-parameters}}
182182
{{#servers}}
183183
{{#-first}}
184-
* This oepration contains host(s) defined in the OpenAP spec. Use 'hostIndex' to select the host.
184+
* This operation contains host(s) defined in the OpenAP spec. Use 'hostIndex' to select the host.
185185
{{/-first}}
186186
* URL: {{{url}}}
187187
{{#-last}}
@@ -219,7 +219,7 @@ use function sprintf;
219219
{{/vendorExtensions.x-group-parameters}}
220220
{{#servers}}
221221
{{#-first}}
222-
* This oepration contains host(s) defined in the OpenAP spec. Use 'hostIndex' to select the host.
222+
* This operation contains host(s) defined in the OpenAP spec. Use 'hostIndex' to select the host.
223223
{{/-first}}
224224
* URL: {{{url}}}
225225
{{#-last}}
@@ -342,7 +342,7 @@ use function sprintf;
342342
{{/vendorExtensions.x-group-parameters}}
343343
{{#servers}}
344344
{{#-first}}
345-
* This oepration contains host(s) defined in the OpenAP spec. Use 'hostIndex' to select the host.
345+
* This operation contains host(s) defined in the OpenAP spec. Use 'hostIndex' to select the host.
346346
{{/-first}}
347347
* URL: {{{url}}}
348348
{{#-last}}
@@ -383,7 +383,7 @@ use function sprintf;
383383
{{/vendorExtensions.x-group-parameters}}
384384
{{#servers}}
385385
{{#-first}}
386-
* This oepration contains host(s) defined in the OpenAP spec. Use 'hostIndex' to select the host.
386+
* This operation contains host(s) defined in the OpenAP spec. Use 'hostIndex' to select the host.
387387
{{/-first}}
388388
* URL: {{{url}}}
389389
{{#-last}}
@@ -448,7 +448,7 @@ use function sprintf;
448448
{{/vendorExtensions.x-group-parameters}}
449449
{{#servers}}
450450
{{#-first}}
451-
* This oepration contains host(s) defined in the OpenAP spec. Use 'hostIndex' to select the host.
451+
* This operation contains host(s) defined in the OpenAP spec. Use 'hostIndex' to select the host.
452452
{{/-first}}
453453
* URL: {{{url}}}
454454
{{#-last}}

modules/openapi-generator/src/main/resources/r/api_client.mustache

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
{{#authMethods}}
3030
{{#isOAuth}}
3131
#' @field oauth_flow_type OAuth flow type
32-
#' @field oauth_authorization_url Authoriziation URL
32+
#' @field oauth_authorization_url Authorization URL
3333
#' @field oauth_token_url Token URL
3434
#' @field oauth_pkce Boolean flag to enable PKCE
3535
{{/isOAuth}}
@@ -73,7 +73,7 @@ ApiClient <- R6::R6Class(
7373
{{#isOAuth}}
7474
# Flow type
7575
oauth_flow_type = "{{flow}}",
76-
# Authoriziation URL
76+
# Authorization URL
7777
oauth_authorization_url = "{{authorizationUrl}}",
7878
# Token URL
7979
oauth_token_url = "{{tokenUrl}}",
@@ -105,7 +105,7 @@ ApiClient <- R6::R6Class(
105105
#' @param bearer_token Bearer token.
106106
#' @param timeout Timeout.
107107
#' @param retry_status_codes Status codes for retry.
108-
#' @param max_retry_attempts Maxmium number of retry.
108+
#' @param max_retry_attempts Maximum number of retry.
109109
#' @export
110110
initialize = function(base_path = NULL, user_agent = NULL,
111111
default_headers = NULL,

0 commit comments

Comments
 (0)