Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
-cvf ${{ runner.temp }}/workspace.tar .

- name: Upload workspace
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
with:
name: workspace-${{ matrix.node-version }}
path: ${{ runner.temp }}/workspace.tar
Expand Down Expand Up @@ -75,7 +75,7 @@ jobs:
${{ runner.os }}-nextjs-${{ hashFiles('pnpm-lock.yaml') }}-

- name: Download built workspace
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
with:
name: workspace-${{ matrix.node-version }}
path: ${{runner.temp}}
Expand All @@ -102,7 +102,7 @@ jobs:
with:
node-version: ${{ matrix.node-version }}
- name: Download built workspace
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
with:
name: workspace-${{ matrix.node-version }}
path: ${{runner.temp}}
Expand Down Expand Up @@ -134,7 +134,7 @@ jobs:
node-version: ${{ matrix.node-version }}

- name: Download built workspace
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
with:
name: workspace-${{ matrix.node-version }}
path: ${{runner.temp}}
Expand Down Expand Up @@ -168,7 +168,7 @@ jobs:
node-version: ${{ matrix.node-version }}

- name: Download built workspace
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
with:
name: workspace-${{ matrix.node-version }}
path: ${{runner.temp}}
Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
24.10.0
24.11.1
15 changes: 10 additions & 5 deletions biome.jsonc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://biomejs.dev/schemas/2.2.6/schema.json",
"$schema": "https://biomejs.dev/schemas/2.3.4/schema.json",
"vcs": {
"enabled": true,
"clientKind": "git",
Expand All @@ -17,8 +17,8 @@
"maxSize": 10485760,
"includes": [
"**",
"!**/packages/openapi-code-generator/src/core/schemas/openapi-3.0-specification-validator.js",
"!**/packages/openapi-code-generator/src/core/schemas/openapi-3.1-specification-validator.js",
"!**/packages/openapi-code-generator/src/core/schemas/openapi-3.0-specification-validator.ts",
"!**/packages/openapi-code-generator/src/core/schemas/openapi-3.1-specification-validator.ts",
"!**/integration-tests/typescript-angular/src/generated/**/*",
"!**/integration-tests-definitions/**/*",
"!**/schemas/**/*.json",
Expand Down Expand Up @@ -61,15 +61,20 @@
},
"includes": [
"**",
"!**/packages/openapi-code-generator/src/core/schemas/openapi-3.0-specification-validator.js",
"!**/packages/openapi-code-generator/src/core/schemas/openapi-3.1-specification-validator.js",
"!**/packages/openapi-code-generator/src/core/schemas/openapi-3.0-specification-validator.ts",
"!**/packages/openapi-code-generator/src/core/schemas/openapi-3.1-specification-validator.ts",
"!**/integration-tests/typescript-angular/src/generated/**/*",
"!**/integration-tests-definitions/**/*",
"!**/schemas/**/*.json",
"!**/package.json",
"!**/package.json"
]
},
"html": {
"parser": {
"interpolation": true
}
},
"overrides": [
{
"includes": ["integration-tests/**/generated/**", "e2e/**/generated/**"],
Expand Down
10 changes: 5 additions & 5 deletions e2e/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,17 @@
"@nahkies/typescript-express-runtime": "workspace:*",
"@nahkies/typescript-fetch-runtime": "workspace:*",
"@nahkies/typescript-koa-runtime": "workspace:*",
"axios": "^1.12.2",
"axios": "^1.13.2",
"express": "^5.1.0",
"koa": "^3.0.3",
"koa": "^3.1.1",
"zod": "^3.25.74"
},
"devDependencies": {
"@jest/globals": "^30.2.0",
"@nahkies/openapi-code-generator": "workspace:*",
"@types/express": "^5.0.3",
"@types/koa": "^3.0.0",
"@types/koa__router": "^12.0.4",
"@types/express": "^5.0.5",
"@types/koa": "^3.0.1",
"@types/koa__router": "^12.0.5",
"expect": "^30.2.0",
"jest": "^30.2.0",
"typescript": "^5.9.3"
Expand Down
24 changes: 12 additions & 12 deletions integration-tests/typescript-angular/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,24 +12,24 @@
},
"private": true,
"dependencies": {
"@angular/animations": "^20.3.6",
"@angular/common": "^20.3.6",
"@angular/compiler": "^20.3.6",
"@angular/core": "^20.3.6",
"@angular/forms": "^20.3.6",
"@angular/platform-browser": "^20.3.6",
"@angular/platform-browser-dynamic": "^20.3.6",
"@angular/router": "^20.3.6",
"@angular/animations": "^20.3.10",
"@angular/common": "^20.3.10",
"@angular/compiler": "^20.3.10",
"@angular/core": "^20.3.10",
"@angular/forms": "^20.3.10",
"@angular/platform-browser": "^20.3.10",
"@angular/platform-browser-dynamic": "^20.3.10",
"@angular/router": "^20.3.10",
"rxjs": "~7.8.2",
"tslib": "^2.8.1",
"zone.js": "~0.15.1"
},
"devDependencies": {
"@angular-devkit/build-angular": "^20.3.6",
"@angular/cli": "^20.3.6",
"@angular/compiler-cli": "^20.3.6",
"@angular-devkit/build-angular": "^20.3.9",
"@angular/cli": "^20.3.9",
"@angular/compiler-cli": "^20.3.10",
"@types/jasmine": "~5.1.12",
"jasmine-core": "~5.12.0",
"jasmine-core": "~5.12.1",
"karma": "~6.4.4",
"karma-chrome-launcher": "~3.2.0",
"karma-coverage": "~2.2.1",
Expand Down
2 changes: 1 addition & 1 deletion integration-tests/typescript-axios/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
},
"dependencies": {
"@nahkies/typescript-axios-runtime": "workspace:*",
"axios": "^1.12.2",
"axios": "^1.13.2",
"dotenv": "^17.2.3",
"tslib": "^2.8.1"
},
Expand Down
2 changes: 1 addition & 1 deletion integration-tests/typescript-express/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"zod": "^3.25.74"
},
"devDependencies": {
"@types/express": "^5.0.3",
"@types/express": "^5.0.5",
"typescript": "^5.9.3"
}
}
6 changes: 3 additions & 3 deletions integration-tests/typescript-koa/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@
"@koa/router": "^14.0.0",
"@nahkies/typescript-koa-runtime": "workspace:*",
"joi": "^18.0.1",
"koa": "^3.0.3",
"koa": "^3.1.1",
"tslib": "^2.8.1",
"zod": "^3.25.74"
},
"devDependencies": {
"@types/koa": "^3.0.0",
"@types/koa__router": "^12.0.4",
"@types/koa": "^3.0.1",
"@types/koa__router": "^12.0.5",
"typescript": "^5.9.3"
}
}
16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,25 +39,25 @@
"prepare": "husky"
},
"devDependencies": {
"@biomejs/biome": "2.2.6",
"@biomejs/js-api": "3.0.0",
"@biomejs/wasm-nodejs": "2.2.6",
"@biomejs/biome": "2.3.4",
"@biomejs/js-api": "4.0.0",
"@biomejs/wasm-nodejs": "2.3.4",
"@commander-js/extra-typings": "^14.0.0",
"@jest/reporters": "^30.2.0",
"@swc/core": "^1.13.5",
"@swc/core": "^1.15.0",
"@swc/jest": "^0.2.39",
"@tsconfig/node24": "^24.0.1",
"@tsconfig/strictest": "^2.0.6",
"@tsconfig/strictest": "^2.0.7",
"@types/node": "22.16.5",
"ajv": "^8.17.1",
"ajv-draft-04": "^1.0.0",
"ajv-formats": "^3.0.1",
"commander": "^14.0.1",
"commander": "^14.0.2",
"husky": "^9.1.7",
"jest": "^30.2.0",
"json5": "^2.2.3",
"lerna": "^9.0.0",
"lint-staged": "^16.2.4",
"lint-staged": "^16.2.6",
"prettier": "^3.6.2",
"remark": "^15.0.1",
"remark-toc": "^9.0.0",
Expand All @@ -80,5 +80,5 @@
"engines": {
"node": ">=20 <25"
},
"packageManager": "pnpm@10.18.3+sha512.bbd16e6d7286fd7e01f6b3c0b3c932cda2965c06a908328f74663f10a9aea51f1129eea615134bf992831b009eabe167ecb7008b597f40ff9bc75946aadfb08d"
"packageManager": "pnpm@10.22.0+sha512.bf049efe995b28f527fd2b41ae0474ce29186f7edcb3bf545087bd61fbbebb2bf75362d1307fda09c2d288e1e499787ac12d4fcb617a974718a6051f2eee741c"
}
2 changes: 1 addition & 1 deletion packages/documentation/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"node-polyfill-webpack-plugin": "^4.1.0",
"react": "19.2.0",
"react-dom": "19.2.0",
"react-hook-form": "^7.65.0",
"react-hook-form": "^7.66.0",
"tslib": "^2.8.1",
"zod": "^3.25.74"
},
Expand Down
10 changes: 5 additions & 5 deletions packages/openapi-code-generator/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,18 +52,18 @@
"@typespec/versioning": "^0.75.0",
"@typespec/xml": "^0.75.0",
"joi": "^18.0.1",
"piscina": "^5.1.3",
"piscina": "^5.1.4",
"tsx": "^4.20.6"
},
"dependencies": {
"@biomejs/biome": "2.2.6",
"@biomejs/js-api": "3.0.0",
"@biomejs/wasm-nodejs": "2.2.6",
"@biomejs/biome": "2.3.4",
"@biomejs/js-api": "4.0.0",
"@biomejs/wasm-nodejs": "2.3.4",
"@commander-js/extra-typings": "^14.0.0",
"ajv": "^8.17.1",
"ajv-draft-04": "^1.0.0",
"ajv-formats": "^3.0.1",
"commander": "^14.0.1",
"commander": "^14.0.2",
"js-yaml": "^4.1.0",
"json5": "^2.2.3",
"lodash": "^4.17.21",
Expand Down
15 changes: 5 additions & 10 deletions packages/openapi-code-generator/src/core/openapi-validator.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,9 @@
import type {ErrorObject} from "ajv"
import {logger} from "./logger"

import validate3_0 = require("./schemas/openapi-3.0-specification-validator")
import validate3_1 = require("./schemas/openapi-3.1-specification-validator")

interface ValidateFunction {
(data: unknown): boolean

errors?: null | ErrorObject[]
}
import type {ValidateFunction} from "./schemas/IValidateFunction"
// @ts-expect-error
import validate3_0 from "./schemas/openapi-3.0-specification-validator"
// @ts-expect-error
import validate3_1 from "./schemas/openapi-3.1-specification-validator"

export class OpenapiValidator {
private constructor(
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import type {ErrorObject} from "ajv"

export interface ValidateFunction {
(data: unknown): boolean

errors?: null | ErrorObject[]
}
2 changes: 1 addition & 1 deletion packages/typescript-axios-runtime/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"devDependencies": {
"@jest/globals": "^30.2.0",
"@types/qs": "^6.14.0",
"axios": "^1.12.2",
"axios": "^1.13.2",
"jest": "^30.2.0",
"typescript": "^5.9.3"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/typescript-express-runtime/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
"devDependencies": {
"@types/body-parser": "^1.19.6",
"@types/cors": "^2.8.19",
"@types/express": "^5.0.3",
"@types/express": "^5.0.5",
"body-parser": "^2.2.0",
"jest": "^30.2.0",
"joi": "^18.0.1",
Expand Down
8 changes: 4 additions & 4 deletions packages/typescript-koa-runtime/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,12 +81,12 @@
"devDependencies": {
"@koa/cors": "^5.0.0",
"@koa/router": "^14.0.0",
"@types/koa": "^3.0.0",
"@types/koa__cors": "^5.0.0",
"@types/koa__router": "^12.0.4",
"@types/koa": "^3.0.1",
"@types/koa__cors": "^5.0.1",
"@types/koa__router": "^12.0.5",
"jest": "^30.2.0",
"joi": "^18.0.1",
"koa": "^3.0.3",
"koa": "^3.1.1",
"koa-body": "^6.0.1",
"typescript": "^5.9.3",
"zod": "^3.25.74"
Expand Down
Loading
Loading