Skip to content

Commit 983f000

Browse files
Merge pull request #392 from openapi-ui/main
chore: merge main to release
2 parents 9de3f8e + d4d19c8 commit 983f000

File tree

93 files changed

+43725
-646
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

93 files changed

+43725
-646
lines changed

.changeset/afraid-news-know.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'openapi-ts-request': patch
3+
---
4+
5+
fix: refactor test cases to use vitest as testing framework

.changeset/eager-books-throw.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'openapi-ts-request': patch
3+
---
4+
5+
fix: 生成的类型缺少namespace问题

.changeset/rare-loops-try.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'openapi-ts-request': patch
3+
---
4+
5+
fix: 新增的 enum label hook中取变量错误

.changeset/real-suns-move.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"openapi-ts-request": minor
3+
---
4+
5+
feat: 支持通过hooks处理enum types

.changeset/sharp-bees-stay.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'openapi-ts-request': patch
3+
---
4+
5+
style: prefer type import

.changeset/solid-dolls-cough.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'openapi-ts-request': patch
3+
---
4+
5+
chore: clean test script

.changeset/spicy-insects-eat.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'openapi-ts-request': patch
3+
---
4+
5+
perf: perf parmas customTemplates type definition

.changeset/twenty-pandas-act.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'openapi-ts-request': patch
3+
---
4+
5+
chore: add user documentation

.eslintrc.cjs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ module.exports = {
1111
'test',
1212
'*.cjs',
1313
'openapi-ts-request.config.ts',
14+
'vitest.config.ts',
1415
],
1516
plugins: [],
1617
parserOptions: {
@@ -21,5 +22,6 @@ module.exports = {
2122
rules: {
2223
'@typescript-eslint/ban-ts-comment': 'warn',
2324
'@typescript-eslint/no-explicit-any': 'off',
25+
'@typescript-eslint/consistent-type-imports': 'error',
2426
},
2527
};

.github/workflows/ci.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: CI
2+
3+
on:
4+
pull_request:
5+
branches: [main]
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout repository
12+
uses: actions/checkout@v4
13+
14+
- name: Install pnpm
15+
uses: pnpm/action-setup@v4
16+
17+
- name: Use node.js
18+
uses: actions/setup-node@v4
19+
with:
20+
node-version: '20.x'
21+
registry-url: 'https://registry.npmjs.org'
22+
cache: 'pnpm'
23+
24+
- name: Installing Dependencies
25+
run: pnpm install
26+
27+
- name: Running unit Test
28+
run: pnpm run test:unit

0 commit comments

Comments
 (0)