Skip to content

Commit 85e6ee4

Browse files
authored
Merge pull request #698 from szepeviktor/typos
Fix typos
2 parents c517b2b + d1dbb6a commit 85e6ee4

File tree

6 files changed

+13
-13
lines changed

6 files changed

+13
-13
lines changed

CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -617,7 +617,7 @@ Features:
617617
Fixes:
618618

619619
- Bug with missing `name` property in in-path requests parameters
620-
- Problem with usage `--route-types` with `--modular` option (mising import data contracts)
620+
- Problem with usage `--route-types` with `--modular` option (missing import data contracts)
621621

622622
# 6.4.1
623623

@@ -1347,7 +1347,7 @@ Changes: update documentation (+ add logo), add comment about author in generate
13471347
# 1.0.6
13481348

13491349
Fixes: route naming, http(s) requests for getting swagger schema, integer enums
1350-
Changes: include only required files into npm pacakge
1350+
Changes: include only required files into npm package
13511351

13521352
# 1.0.5
13531353

src/configuration.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ class CodeGenConfig {
6060

6161
/** { "#/components/schemas/Foo": @TypeInfo, ... } */
6262
componentsMap = {};
63-
/** flag for catching convertion from swagger 2.0 */
63+
/** flag for catching conversion from swagger 2.0 */
6464
convertedFromSwagger2 = false;
6565

6666
/** url index from paths used for merging into modules */

templates/base/route-name.ejs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ const methodAliases = {
2424
2525
const createCustomOperationId = (method, route, moduleName) => {
2626
const hasPathInserts = /\{(\w){1,}\}/g.test(route);
27-
const splitedRouteBySlash = _.compact(_.replace(route, /\{(\w){1,}\}/g, "").split("/"));
28-
const routeParts = (splitedRouteBySlash.length > 1
29-
? splitedRouteBySlash.splice(1)
30-
: splitedRouteBySlash
27+
const splittedRouteBySlash = _.compact(_.replace(route, /\{(\w){1,}\}/g, "").split("/"));
28+
const routeParts = (splittedRouteBySlash.length > 1
29+
? splittedRouteBySlash.splice(1)
30+
: splittedRouteBySlash
3131
).join("_");
3232
return routeParts.length > 3 && methodAliases[method]
3333
? methodAliases[method](routeParts, hasPathInserts)

tests/generated/v3.0/additional-properties.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ export class HttpClient<SecurityDataType = unknown> {
227227
}
228228

229229
/**
230-
* @title Additional propeties Example
230+
* @title Additional properties Example
231231
* @version 1.0.0
232232
*/
233233
export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDataType> {}

tests/schemas/v3.0/additional-properties.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
openapi: "3.0.0"
22
info:
3-
title: Additional propeties Example
3+
title: Additional properties Example
44
version: 1.0.0
55
components:
66
schemas:

tests/spec/templates/spec_templates/route-name.eta

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ const methodAliases = {
2323

2424
const createCustomOperationId = (method, route, moduleName) => {
2525
const hasPathInserts = /\{(\w){1,}\}/g.test(route);
26-
const splitedRouteBySlash = _.compact(_.replace(route, /\{(\w){1,}\}/g, "").split("/"));
27-
const routeParts = (splitedRouteBySlash.length > 1
28-
? splitedRouteBySlash.splice(1)
29-
: splitedRouteBySlash
26+
const splittedRouteBySlash = _.compact(_.replace(route, /\{(\w){1,}\}/g, "").split("/"));
27+
const routeParts = (splittedRouteBySlash.length > 1
28+
? splittedRouteBySlash.splice(1)
29+
: splittedRouteBySlash
3030
).join("_");
3131
return routeParts.length > 3 && methodAliases[method]
3232
? methodAliases[method](routeParts, hasPathInserts)

0 commit comments

Comments
 (0)