@twin.org/ts-to-openapi 0.0.2-next.3 → 0.0.2-next.5
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/dist/cjs/index.cjs +2 -5
- package/dist/esm/index.mjs +2 -5
- package/dist/locales/en.json +9 -0
- package/docs/changelog.md +28 -0
- package/package.json +2 -2
package/dist/cjs/index.cjs
CHANGED
|
@@ -871,10 +871,7 @@ async function generateSchemas(modelDirWildcards, types, autoExpandTypes, output
|
|
|
871
871
|
}
|
|
872
872
|
}
|
|
873
873
|
const referencedSchemas = {};
|
|
874
|
-
toolsCore.JsonSchemaHelper.extractTypes(allSchemas, [
|
|
875
|
-
...types,
|
|
876
|
-
...autoExpandTypes.map(t => (t.startsWith("/") && t.endsWith("/") ? new RegExp(t) : t))
|
|
877
|
-
], referencedSchemas);
|
|
874
|
+
toolsCore.JsonSchemaHelper.extractTypes(allSchemas, [...types, ...autoExpandTypes], referencedSchemas);
|
|
878
875
|
toolsCore.JsonSchemaHelper.expandTypes(referencedSchemas, autoExpandTypes);
|
|
879
876
|
for (const arraySingularType of arraySingularTypes) {
|
|
880
877
|
referencedSchemas[`${arraySingularType}[]`] = {
|
|
@@ -1055,7 +1052,7 @@ class CLI extends cliCore.CLIBase {
|
|
|
1055
1052
|
return this.execute({
|
|
1056
1053
|
title: "TWIN TypeScript To OpenAPI",
|
|
1057
1054
|
appName: "ts-to-openapi",
|
|
1058
|
-
version: "0.0.2-next.
|
|
1055
|
+
version: "0.0.2-next.5", // x-release-please-version
|
|
1059
1056
|
icon: "⚙️ ",
|
|
1060
1057
|
supportsEnvFiles: false,
|
|
1061
1058
|
overrideOutputWidth: options?.overrideOutputWidth
|
package/dist/esm/index.mjs
CHANGED
|
@@ -868,10 +868,7 @@ async function generateSchemas(modelDirWildcards, types, autoExpandTypes, output
|
|
|
868
868
|
}
|
|
869
869
|
}
|
|
870
870
|
const referencedSchemas = {};
|
|
871
|
-
JsonSchemaHelper.extractTypes(allSchemas, [
|
|
872
|
-
...types,
|
|
873
|
-
...autoExpandTypes.map(t => (t.startsWith("/") && t.endsWith("/") ? new RegExp(t) : t))
|
|
874
|
-
], referencedSchemas);
|
|
871
|
+
JsonSchemaHelper.extractTypes(allSchemas, [...types, ...autoExpandTypes], referencedSchemas);
|
|
875
872
|
JsonSchemaHelper.expandTypes(referencedSchemas, autoExpandTypes);
|
|
876
873
|
for (const arraySingularType of arraySingularTypes) {
|
|
877
874
|
referencedSchemas[`${arraySingularType}[]`] = {
|
|
@@ -1052,7 +1049,7 @@ class CLI extends CLIBase {
|
|
|
1052
1049
|
return this.execute({
|
|
1053
1050
|
title: "TWIN TypeScript To OpenAPI",
|
|
1054
1051
|
appName: "ts-to-openapi",
|
|
1055
|
-
version: "0.0.2-next.
|
|
1052
|
+
version: "0.0.2-next.5", // x-release-please-version
|
|
1056
1053
|
icon: "⚙️ ",
|
|
1057
1054
|
supportsEnvFiles: false,
|
|
1058
1055
|
overrideOutputWidth: options?.overrideOutputWidth
|
package/dist/locales/en.json
CHANGED
|
@@ -189,6 +189,10 @@
|
|
|
189
189
|
"slip0010": {
|
|
190
190
|
"invalidSeed": "The seed is invalid \"{seed}\""
|
|
191
191
|
},
|
|
192
|
+
"rsa": {
|
|
193
|
+
"noPrivateKey": "Private key is required for this operation",
|
|
194
|
+
"invalidKeySize": "Invalid RSA key size"
|
|
195
|
+
},
|
|
192
196
|
"commands": {
|
|
193
197
|
"common": {
|
|
194
198
|
"missingEnv": "The \"{option}\" option is configured as an environment variable, but there is no environment variable with the name \"{value}\" set.",
|
|
@@ -225,6 +229,11 @@
|
|
|
225
229
|
"errorMessages": {
|
|
226
230
|
"fetch": "Fetch"
|
|
227
231
|
},
|
|
232
|
+
"warn": {
|
|
233
|
+
"common": {
|
|
234
|
+
"devOnlyTool": "This tool is intended to be used for development purposes, it is not recommended for use in production scenarios."
|
|
235
|
+
}
|
|
236
|
+
},
|
|
228
237
|
"cli": {
|
|
229
238
|
"progress": {
|
|
230
239
|
"done": "Done.",
|
package/docs/changelog.md
CHANGED
|
@@ -1,5 +1,33 @@
|
|
|
1
1
|
# @twin.org/ts-to-openapi - Changelog
|
|
2
2
|
|
|
3
|
+
## [0.0.2-next.5](https://github.com/twinfoundation/tools/compare/ts-to-openapi-v0.0.2-next.4...ts-to-openapi-v0.0.2-next.5) (2025-08-19)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* correctly handle auto expand types ([57fce0f](https://github.com/twinfoundation/tools/commit/57fce0f9ec4a0876665d70adc6e885f6feb3caf7))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Dependencies
|
|
12
|
+
|
|
13
|
+
* The following workspace dependencies were updated
|
|
14
|
+
* dependencies
|
|
15
|
+
* @twin.org/tools-core bumped from 0.0.2-next.4 to 0.0.2-next.5
|
|
16
|
+
|
|
17
|
+
## [0.0.2-next.4](https://github.com/twinfoundation/tools/compare/ts-to-openapi-v0.0.2-next.3...ts-to-openapi-v0.0.2-next.4) (2025-08-19)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Miscellaneous Chores
|
|
21
|
+
|
|
22
|
+
* **ts-to-openapi:** Synchronize repo versions
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### Dependencies
|
|
26
|
+
|
|
27
|
+
* The following workspace dependencies were updated
|
|
28
|
+
* dependencies
|
|
29
|
+
* @twin.org/tools-core bumped from 0.0.2-next.3 to 0.0.2-next.4
|
|
30
|
+
|
|
3
31
|
## [0.0.2-next.3](https://github.com/twinfoundation/tools/compare/ts-to-openapi-v0.0.2-next.2...ts-to-openapi-v0.0.2-next.3) (2025-08-05)
|
|
4
32
|
|
|
5
33
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@twin.org/ts-to-openapi",
|
|
3
|
-
"version": "0.0.2-next.
|
|
3
|
+
"version": "0.0.2-next.5",
|
|
4
4
|
"description": "Tool to convert TypeScript REST route definitions to OpenAPI Specifications",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"@twin.org/cli-core": "next",
|
|
19
19
|
"@twin.org/core": "next",
|
|
20
20
|
"@twin.org/nameof": "next",
|
|
21
|
-
"@twin.org/tools-core": "0.0.2-next.
|
|
21
|
+
"@twin.org/tools-core": "0.0.2-next.5",
|
|
22
22
|
"@twin.org/web": "next",
|
|
23
23
|
"commander": "14.0.0",
|
|
24
24
|
"glob": "11.0.3",
|