@twin.org/ts-to-openapi 0.0.2-next.4 → 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.
@@ -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.4", // x-release-please-version
1055
+ version: "0.0.2-next.5", // x-release-please-version
1059
1056
  icon: "⚙️ ",
1060
1057
  supportsEnvFiles: false,
1061
1058
  overrideOutputWidth: options?.overrideOutputWidth
@@ -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.4", // x-release-please-version
1052
+ version: "0.0.2-next.5", // x-release-please-version
1056
1053
  icon: "⚙️ ",
1057
1054
  supportsEnvFiles: false,
1058
1055
  overrideOutputWidth: options?.overrideOutputWidth
package/docs/changelog.md CHANGED
@@ -1,5 +1,19 @@
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
+
3
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)
4
18
 
5
19
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@twin.org/ts-to-openapi",
3
- "version": "0.0.2-next.4",
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.4",
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",