oas 18.3.3 → 18.3.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +29 -0
- package/{@types → dist}/index.d.ts +0 -0
- package/{@types → dist}/lib/clone-object.d.ts +0 -0
- package/{@types → dist}/lib/dedupe-common-parameters.d.ts +0 -0
- package/{@types → dist}/lib/find-schema-definition.d.ts +0 -0
- package/{@types → dist}/lib/get-auth.d.ts +0 -0
- package/{@types → dist}/lib/get-mediatype-examples.d.ts +0 -0
- package/{@types → dist}/lib/get-user-variable.d.ts +0 -0
- package/{@types → dist}/lib/matches-mimetype.d.ts +0 -0
- package/{@types → dist}/lib/openapi-to-json-schema.d.ts +0 -0
- package/{@types → dist}/operation/get-callback-examples.d.ts +0 -0
- package/{@types → dist}/operation/get-parameters-as-json-schema.d.ts +0 -0
- package/{@types → dist}/operation/get-requestbody-examples.d.ts +0 -0
- package/{@types → dist}/operation/get-response-as-json-schema.d.ts +0 -0
- package/{@types → dist}/operation/get-response-examples.d.ts +0 -0
- package/{@types → dist}/operation.d.ts +0 -0
- package/dist/operation.js +1 -1
- package/{@types → dist}/rmoas.types.d.ts +0 -0
- package/{@types → dist}/samples/index.d.ts +0 -0
- package/{@types → dist}/samples/utils.d.ts +0 -0
- package/{@types → dist}/utils.d.ts +0 -0
- package/package.json +12 -12
- package/src/operation.ts +1 -1
- package/tsconfig.json +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,32 @@
|
|
|
1
|
+
## <small>18.3.4 (2022-07-22)</small>
|
|
2
|
+
|
|
3
|
+
* chore(deps-dev): bump @commitlint/cli from 16.2.4 to 17.0.2 (#651) ([cedb2da](https://github.com/readmeio/oas/commit/cedb2da)), closes [#651](https://github.com/readmeio/oas/issues/651)
|
|
4
|
+
* chore(deps-dev): bump @commitlint/cli from 17.0.2 to 17.0.3 (#667) ([2af6fae](https://github.com/readmeio/oas/commit/2af6fae)), closes [#667](https://github.com/readmeio/oas/issues/667)
|
|
5
|
+
* chore(deps-dev): bump @commitlint/config-conventional (#657) ([be84820](https://github.com/readmeio/oas/commit/be84820)), closes [#657](https://github.com/readmeio/oas/issues/657)
|
|
6
|
+
* chore(deps-dev): bump @commitlint/config-conventional (#666) ([0b2c475](https://github.com/readmeio/oas/commit/0b2c475)), closes [#666](https://github.com/readmeio/oas/issues/666)
|
|
7
|
+
* chore(deps-dev): bump @readme/eslint-config from 8.7.3 to 8.7.5 (#653) ([5ff2ae6](https://github.com/readmeio/oas/commit/5ff2ae6)), closes [#653](https://github.com/readmeio/oas/issues/653)
|
|
8
|
+
* chore(deps-dev): bump @readme/eslint-config from 8.7.5 to 8.8.0 (#668) ([48a1bab](https://github.com/readmeio/oas/commit/48a1bab)), closes [#668](https://github.com/readmeio/oas/issues/668)
|
|
9
|
+
* chore(deps-dev): bump @readme/oas-examples from 5.1.1 to 5.2.0 (#656) ([8800aaf](https://github.com/readmeio/oas/commit/8800aaf)), closes [#656](https://github.com/readmeio/oas/issues/656)
|
|
10
|
+
* chore(deps-dev): bump @readme/oas-examples from 5.2.0 to 5.4.0 (#662) ([19a23eb](https://github.com/readmeio/oas/commit/19a23eb)), closes [#662](https://github.com/readmeio/oas/issues/662)
|
|
11
|
+
* chore(deps-dev): bump @types/memoizee from 0.4.7 to 0.4.8 (#660) ([d13170b](https://github.com/readmeio/oas/commit/d13170b)), closes [#660](https://github.com/readmeio/oas/issues/660)
|
|
12
|
+
* chore(deps-dev): bump eslint from 8.14.0 to 8.16.0 (#652) ([e398cd9](https://github.com/readmeio/oas/commit/e398cd9)), closes [#652](https://github.com/readmeio/oas/issues/652)
|
|
13
|
+
* chore(deps-dev): bump eslint from 8.16.0 to 8.18.0 (#665) ([eb774d7](https://github.com/readmeio/oas/commit/eb774d7)), closes [#665](https://github.com/readmeio/oas/issues/665)
|
|
14
|
+
* chore(deps-dev): bump husky from 7.0.4 to 8.0.1 (#655) ([b3d325f](https://github.com/readmeio/oas/commit/b3d325f)), closes [#655](https://github.com/readmeio/oas/issues/655)
|
|
15
|
+
* chore(deps-dev): bump prettier from 2.6.2 to 2.7.1 (#663) ([4d80c53](https://github.com/readmeio/oas/commit/4d80c53)), closes [#663](https://github.com/readmeio/oas/issues/663)
|
|
16
|
+
* chore(deps-dev): bump typescript from 4.6.4 to 4.7.2 (#658) ([1763cd5](https://github.com/readmeio/oas/commit/1763cd5)), closes [#658](https://github.com/readmeio/oas/issues/658)
|
|
17
|
+
* chore(deps-dev): bump typescript from 4.7.2 to 4.7.4 (#664) ([7675937](https://github.com/readmeio/oas/commit/7675937)), closes [#664](https://github.com/readmeio/oas/issues/664)
|
|
18
|
+
* chore(deps-dev): bumping out of date deps ([a911a44](https://github.com/readmeio/oas/commit/a911a44))
|
|
19
|
+
* chore(deps): bump glob from 8.0.1 to 8.0.3 (#659) ([9d73063](https://github.com/readmeio/oas/commit/9d73063)), closes [#659](https://github.com/readmeio/oas/issues/659)
|
|
20
|
+
* chore(deps): bump openapi-types from 11.0.0 to 11.0.1 (#654) ([5b06c40](https://github.com/readmeio/oas/commit/5b06c40)), closes [#654](https://github.com/readmeio/oas/issues/654)
|
|
21
|
+
* chore(deps): bump openapi-types from 11.0.1 to 12.0.0 (#669) ([b525781](https://github.com/readmeio/oas/commit/b525781)), closes [#669](https://github.com/readmeio/oas/issues/669)
|
|
22
|
+
* chore(deps): bump path-to-regexp from 6.2.0 to 6.2.1 (#650) ([a69d5a2](https://github.com/readmeio/oas/commit/a69d5a2)), closes [#650](https://github.com/readmeio/oas/issues/650)
|
|
23
|
+
* feat: moving the types export to residing in `dist/` instead of `@types/` ([55c07ff](https://github.com/readmeio/oas/commit/55c07ff))
|
|
24
|
+
* fix: don't remove underscores in operationIds (#671) ([e2227b5](https://github.com/readmeio/oas/commit/e2227b5)), closes [#671](https://github.com/readmeio/oas/issues/671)
|
|
25
|
+
* ci: ignoring inquirer dep updates for now as its ESM-only ([9027d8c](https://github.com/readmeio/oas/commit/9027d8c))
|
|
26
|
+
* ci: updating the ci workflow run on external PRs ([e45f687](https://github.com/readmeio/oas/commit/e45f687))
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
1
30
|
## <small>18.3.3 (2022-05-20)</small>
|
|
2
31
|
|
|
3
32
|
* fix: add protections for if a `requestBody` has no `schema` (#649) ([0aa38d3](https://github.com/readmeio/oas/commit/0aa38d3)), closes [#649](https://github.com/readmeio/oas/issues/649)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/dist/operation.js
CHANGED
|
@@ -321,7 +321,7 @@ var Operation = /** @class */ (function () {
|
|
|
321
321
|
}
|
|
322
322
|
var method = this.method.toLowerCase();
|
|
323
323
|
if (opts === null || opts === void 0 ? void 0 : opts.camelCase) {
|
|
324
|
-
operationId = operationId.replace(/[^a-zA-Z0-
|
|
324
|
+
operationId = operationId.replace(/[^a-zA-Z0-9_]+(.)/g, function (_, chr) { return chr.toUpperCase(); });
|
|
325
325
|
// If the generated `operationId` already starts with the method (eg. `getPets`) we don't want
|
|
326
326
|
// to double it up into `getGetPets`.
|
|
327
327
|
if (operationId.startsWith(method)) {
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "oas",
|
|
3
|
-
"version": "18.3.
|
|
3
|
+
"version": "18.3.4",
|
|
4
4
|
"description": "Working with OpenAPI definitions is hard. This makes it easier.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "ReadMe <support@readme.io> (https://readme.com)",
|
|
7
7
|
"main": "dist/index.js",
|
|
8
|
-
"types": "
|
|
8
|
+
"types": "dist/index.d.ts",
|
|
9
9
|
"bin": {
|
|
10
10
|
"oas": "bin/oas"
|
|
11
11
|
},
|
|
@@ -60,24 +60,24 @@
|
|
|
60
60
|
"memoizee": "^0.4.14",
|
|
61
61
|
"minimist": "^1.2.0",
|
|
62
62
|
"oas-normalize": "^6.0.0",
|
|
63
|
-
"openapi-types": "^
|
|
63
|
+
"openapi-types": "^12.0.0",
|
|
64
64
|
"path-to-regexp": "^6.2.0",
|
|
65
65
|
"swagger-inline": "^6.0.0"
|
|
66
66
|
},
|
|
67
67
|
"devDependencies": {
|
|
68
|
-
"@commitlint/cli": "^
|
|
69
|
-
"@commitlint/config-conventional": "^
|
|
70
|
-
"@readme/eslint-config": "^8.
|
|
71
|
-
"@readme/oas-examples": "^5.
|
|
68
|
+
"@commitlint/cli": "^17.0.2",
|
|
69
|
+
"@commitlint/config-conventional": "^17.0.2",
|
|
70
|
+
"@readme/eslint-config": "^8.8.3",
|
|
71
|
+
"@readme/oas-examples": "^5.4.1",
|
|
72
72
|
"@readme/openapi-parser": "^2.2.0",
|
|
73
|
-
"@types/jest": "^
|
|
73
|
+
"@types/jest": "^28.1.6",
|
|
74
74
|
"@types/json-schema-merge-allof": "^0.6.1",
|
|
75
75
|
"@types/memoizee": "^0.4.6",
|
|
76
|
-
"eslint": "^8.
|
|
77
|
-
"husky": "^
|
|
78
|
-
"jest": "^
|
|
76
|
+
"eslint": "^8.20.0",
|
|
77
|
+
"husky": "^8.0.1",
|
|
78
|
+
"jest": "^28.1.3",
|
|
79
79
|
"prettier": "^2.6.2",
|
|
80
|
-
"ts-jest": "^
|
|
80
|
+
"ts-jest": "^28.0.7",
|
|
81
81
|
"typescript": "^4.6.3"
|
|
82
82
|
},
|
|
83
83
|
"prettier": "@readme/eslint-config/prettier",
|
package/src/operation.ts
CHANGED
|
@@ -349,7 +349,7 @@ export default class Operation {
|
|
|
349
349
|
|
|
350
350
|
const method = this.method.toLowerCase();
|
|
351
351
|
if (opts?.camelCase) {
|
|
352
|
-
operationId = operationId.replace(/[^a-zA-Z0-
|
|
352
|
+
operationId = operationId.replace(/[^a-zA-Z0-9_]+(.)/g, (_, chr) => chr.toUpperCase());
|
|
353
353
|
|
|
354
354
|
// If the generated `operationId` already starts with the method (eg. `getPets`) we don't want
|
|
355
355
|
// to double it up into `getGetPets`.
|