Skip to content

feat: v3.2 类型安全 state + 全局响应信封 + 便利 schema #70

feat: v3.2 类型安全 state + 全局响应信封 + 便利 schema

feat: v3.2 类型安全 state + 全局响应信封 + 便利 schema #70

Triggered via pull request June 30, 2026 13:35
Status Failure
Total duration 34s
Artifacts

test.yml

on: pull_request
Matrix: test
Fit to window
Zoom out
Zoom in

Annotations

19 errors and 33 warnings
test (24.x)
Process completed with exit code 1.
test/api.test.js > admin 组(需管理员) > admin-token 访问 /admin/stats 返回统计: examples/test/api.test.js#L140
AssertionError: expected { Object (error) } to have property "users" ❯ test/api.test.js:140:17
test/api.test.js > admin 组(需管理员) > admin-token 访问 /admin/users 成功: examples/test/api.test.js#L134
AssertionError: expected undefined to be an instance of Array ❯ test/api.test.js:134:23
test/api.test.js > post 组(需登录) > PUT /posts/posts/:id 更新文章: examples/test/api.test.js#L117
TypeError: Cannot read properties of undefined (reading 'title') ❯ test/api.test.js:117:21
test/api.test.js > post 组(需登录) > 带 user-token 时 POST /posts/posts 创建文章: examples/test/api.test.js#L99
TypeError: Cannot convert undefined or null to object ❯ test/api.test.js:99:22
test/api.test.js > post 组(需登录) > 带 user-token 时 GET /posts/posts 成功(requiredOneOf:传 status): examples/test/api.test.js#L84
AssertionError: expected undefined to be an instance of Array ❯ test/api.test.js:84:23
test/api.test.js > public 组 > GET /public/posts/:slug 返回文章详情: examples/test/api.test.js#L62
TypeError: Cannot read properties of undefined (reading 'title') ❯ test/api.test.js:62:21
test/api.test.js > public 组 > GET /public/posts 返回已发布文章列表: examples/test/api.test.js#L55
AssertionError: expected undefined to be an instance of Array ❯ test/api.test.js:55:23
test (20.x)
The strategy configuration was canceled because "test._24_x" failed
test (20.x)
The operation was canceled.
test (22.x)
The strategy configuration was canceled because "test._24_x" failed
test (22.x)
The operation was canceled.
test/api.test.js > admin 组(需管理员) > admin-token 访问 /admin/stats 返回统计: examples/test/api.test.js#L140
AssertionError: expected { Object (error) } to have property "users" ❯ test/api.test.js:140:17
test/api.test.js > admin 组(需管理员) > admin-token 访问 /admin/users 成功: examples/test/api.test.js#L134
AssertionError: expected undefined to be an instance of Array ❯ test/api.test.js:134:23
test/api.test.js > post 组(需登录) > PUT /posts/posts/:id 更新文章: examples/test/api.test.js#L117
TypeError: Cannot read properties of undefined (reading 'title') ❯ test/api.test.js:117:21
test/api.test.js > post 组(需登录) > 带 user-token 时 POST /posts/posts 创建文章: examples/test/api.test.js#L99
TypeError: Cannot convert undefined or null to object ❯ test/api.test.js:99:22
test/api.test.js > post 组(需登录) > 带 user-token 时 GET /posts/posts 成功(requiredOneOf:传 status): examples/test/api.test.js#L84
AssertionError: expected undefined to be an instance of Array ❯ test/api.test.js:84:23
test/api.test.js > public 组 > GET /public/posts/:slug 返回文章详情: examples/test/api.test.js#L62
TypeError: Cannot read properties of undefined (reading 'title') ❯ test/api.test.js:62:21
test/api.test.js > public 组 > GET /public/posts 返回已发布文章列表: examples/test/api.test.js#L55
AssertionError: expected undefined to be an instance of Array ❯ test/api.test.js:55:23
test (24.x)
Node.js 20 is deprecated. The following actions target Node.js 20 but are being forced to run on Node.js 24: actions/checkout@v4, actions/setup-node@v4, pnpm/action-setup@v4. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
unicorn(consistent-function-scoping): src/lib/plugin/generate_axios/index.ts#L8
Function `hasUrlParam` does not capture any variables from its parent scope
eslint(no-underscore-dangle): src/lib/plugin/generate_axios/index.ts#L28
Unexpected dangling '_' in '`_def`'.
unicorn(consistent-function-scoping): src/lib/plugin/generate_axios/index.ts#L8
Function `schemaFieldNames` does not capture any variables from its parent scope
unicorn(consistent-function-scoping): src/lib/plugin/generate_axios/index.ts#L8
Function `rmPathParam` does not capture any variables from its parent scope
unicorn(consistent-function-scoping): src/lib/plugin/generate_axios/index.ts#L8
Function `slashToCamel` does not capture any variables from its parent scope
eslint(no-shadow): src/lib/plugin/generate_axios/index.ts#L44
'path' is already declared in the upper scope.
eslint(no-shadow): src/lib/plugin/generate_axios/index.ts#L40
'path' is already declared in the upper scope.
eslint(no-shadow): src/lib/plugin/generate_axios/index.ts#L17
'path' is already declared in the upper scope.
eslint(no-underscore-dangle): src/lib/plugin/generate_postman/index.ts#L96
Unexpected dangling '_' in '`_def`'.
unicorn(consistent-function-scoping): src/lib/plugin/generate_postman/index.ts#L46
Function `getHeader` does not capture any variables from its parent scope
test (20.x)
Node.js 20 is deprecated. The following actions target Node.js 20 but are being forced to run on Node.js 24: actions/checkout@v4, actions/setup-node@v4, pnpm/action-setup@v4. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
eslint(no-underscore-dangle): src/lib/plugin/generate_markdown/schema.ts#L47
Unexpected dangling '_' in '`_def`'.
eslint(no-underscore-dangle): src/lib/plugin/generate_markdown/schema.ts#L46
Unexpected dangling '_' in '`_def`'.
eslint(no-underscore-dangle): src/lib/plugin/generate_markdown/schema.ts#L41
Unexpected dangling '_' in '`_def`'.
eslint(no-underscore-dangle): src/lib/plugin/generate_markdown/schema.ts#L39
Unexpected dangling '_' in '`_def`'.
eslint(no-underscore-dangle): src/lib/plugin/generate_markdown/schema.ts#L36
Unexpected dangling '_' in '`_def`'.
eslint(no-underscore-dangle): src/lib/plugin/generate_markdown/schema.ts#L34
Unexpected dangling '_' in '`_def`'.
eslint(no-underscore-dangle): src/lib/plugin/generate_markdown/schema.ts#L29
Unexpected dangling '_' in '`_def`'.
eslint(no-underscore-dangle): src/lib/plugin/generate_markdown/schema.ts#L7
Unexpected dangling '_' in '`_parseType`'.
eslint(no-underscore-dangle): src/lib/plugin/generate_postman/index.ts#L96
Unexpected dangling '_' in '`_def`'.
unicorn(consistent-function-scoping): src/lib/plugin/generate_postman/index.ts#L46
Function `getHeader` does not capture any variables from its parent scope
test (22.x)
Node.js 20 is deprecated. The following actions target Node.js 20 but are being forced to run on Node.js 24: actions/checkout@v4, actions/setup-node@v4, pnpm/action-setup@v4. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
eslint(no-underscore-dangle): src/lib/plugin/generate_markdown/schema.ts#L39
Unexpected dangling '_' in '`_def`'.
eslint(no-underscore-dangle): src/lib/plugin/generate_markdown/schema.ts#L36
Unexpected dangling '_' in '`_def`'.
eslint(no-underscore-dangle): src/lib/plugin/generate_markdown/schema.ts#L34
Unexpected dangling '_' in '`_def`'.
eslint(no-underscore-dangle): src/lib/plugin/generate_markdown/schema.ts#L29
Unexpected dangling '_' in '`_def`'.
eslint(no-underscore-dangle): src/lib/plugin/generate_markdown/schema.ts#L7
Unexpected dangling '_' in '`_parseType`'.
unicorn(consistent-function-scoping): src/lib/plugin/generate_markdown/apis.ts#L8
Function `formatExampleInput` does not capture any variables from its parent scope
unicorn(consistent-function-scoping): src/lib/plugin/generate_markdown/apis.ts#L8
Function `responseTable` does not capture any variables from its parent scope
unicorn(consistent-function-scoping): src/lib/plugin/generate_markdown/apis.ts#L8
Function `paramsTable` does not capture any variables from its parent scope
eslint(no-underscore-dangle): src/lib/plugin/generate_postman/index.ts#L96
Unexpected dangling '_' in '`_def`'.
unicorn(consistent-function-scoping): src/lib/plugin/generate_postman/index.ts#L46
Function `getHeader` does not capture any variables from its parent scope