@twin.org/ts-to-openapi 0.0.2-next.7 → 0.0.2-next.8

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.
@@ -656,7 +656,7 @@ async function finaliseOutput(usedCommonResponseTypes, schemas, openApi, securit
656
656
  // We can remove any auto expand types from the final schema as they
657
657
  // will have been expanded inline so no need to keep them
658
658
  for (const autoExpandType of autoExpandTypes) {
659
- const regExp = toolsCore.JsonSchemaHelper.autoExpandToRegEx(autoExpandType);
659
+ const regExp = toolsCore.JsonSchemaHelper.stringToRegEx(autoExpandType);
660
660
  if (regExp.test(schema)) {
661
661
  skipSchema = true;
662
662
  break;
@@ -1062,7 +1062,7 @@ class CLI extends cliCore.CLIBase {
1062
1062
  return this.execute({
1063
1063
  title: "TWIN TypeScript To OpenAPI",
1064
1064
  appName: "ts-to-openapi",
1065
- version: "0.0.2-next.7", // x-release-please-version
1065
+ version: "0.0.2-next.8", // x-release-please-version
1066
1066
  icon: "⚙️ ",
1067
1067
  supportsEnvFiles: false,
1068
1068
  overrideOutputWidth: options?.overrideOutputWidth
@@ -653,7 +653,7 @@ async function finaliseOutput(usedCommonResponseTypes, schemas, openApi, securit
653
653
  // We can remove any auto expand types from the final schema as they
654
654
  // will have been expanded inline so no need to keep them
655
655
  for (const autoExpandType of autoExpandTypes) {
656
- const regExp = JsonSchemaHelper.autoExpandToRegEx(autoExpandType);
656
+ const regExp = JsonSchemaHelper.stringToRegEx(autoExpandType);
657
657
  if (regExp.test(schema)) {
658
658
  skipSchema = true;
659
659
  break;
@@ -1059,7 +1059,7 @@ class CLI extends CLIBase {
1059
1059
  return this.execute({
1060
1060
  title: "TWIN TypeScript To OpenAPI",
1061
1061
  appName: "ts-to-openapi",
1062
- version: "0.0.2-next.7", // x-release-please-version
1062
+ version: "0.0.2-next.8", // x-release-please-version
1063
1063
  icon: "⚙️ ",
1064
1064
  supportsEnvFiles: false,
1065
1065
  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.8](https://github.com/twinfoundation/tools/compare/ts-to-openapi-v0.0.2-next.7...ts-to-openapi-v0.0.2-next.8) (2025-09-05)
4
+
5
+
6
+ ### Features
7
+
8
+ * tighten the types included with the regex matching ([e54909b](https://github.com/twinfoundation/tools/commit/e54909bded4a19d00560dd3ec783e9146580bda3))
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.7 to 0.0.2-next.8
16
+
3
17
  ## [0.0.2-next.7](https://github.com/twinfoundation/tools/compare/ts-to-openapi-v0.0.2-next.6...ts-to-openapi-v0.0.2-next.7) (2025-08-29)
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.7",
3
+ "version": "0.0.2-next.8",
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.7",
21
+ "@twin.org/tools-core": "0.0.2-next.8",
22
22
  "@twin.org/web": "next",
23
23
  "commander": "14.0.0",
24
24
  "glob": "11.0.3",