Skip to content

Commit 9f3d148

Browse files
authored
Merge branch 'hey-api:main' into main
2 parents 1d3da41 + 57e1e24 commit 9f3d148

File tree

1,354 files changed

+124612
-40670
lines changed

Some content is hidden

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

1,354 files changed

+124612
-40670
lines changed

.changeset/modern-colts-hang.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@hey-api/openapi-ts': patch
3+
---
4+
5+
feat(plugin): add `@pinia/colada` plugin

.changeset/olive-pots-rest.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
---
2+
'@hey-api/openapi-ts': minor
3+
---
4+
5+
feat(parser): add Hooks API
6+
7+
### Added Hooks API
8+
9+
This release adds the [Hooks API](https://heyapi.dev/openapi-ts/configuration/parser#hooks), giving you granular control over which operations generate queries and mutations. As a result, we tightened the previous behavior and POST operations no longer generate queries by default. To preserve the old behavior, add a custom matcher.
10+
11+
```js
12+
export default {
13+
input: 'hey-api/backend', // sign up at app.heyapi.dev
14+
output: 'src/client',
15+
parser: {
16+
hooks: {
17+
operations: {
18+
isQuery: (op) => (op.method === 'post' ? true : undefined),
19+
},
20+
},
21+
},
22+
};
23+
```

.changeset/six-pants-float.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@hey-api/openapi-ts": patch
3+
---
4+
5+
fix(client): improve empty response body handling

.changeset/smooth-ties-brush.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@hey-api/openapi-ts': patch
3+
---
4+
5+
feat(plugin): add `@pinia/colada` plugin

.changeset/soft-wolves-develop.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changeset/two-humans-rescue.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@hey-api/openapi-ts': patch
3+
---
4+
5+
fix(parser): handle `patternProperties` in OpenAPI 3.1

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ test/generated
2424
test/e2e/generated
2525

2626
# debug files
27-
debug
2827
openapi-ts-debug-*
2928
# error files
3029
logs

docs/.vitepress/config/en.ts

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -173,12 +173,12 @@ export default defineConfig({
173173
collapsed: true,
174174
items: [
175175
{
176-
link: '/openapi-ts/plugins/tanstack-query',
177-
text: 'TanStack Query',
176+
link: '/openapi-ts/plugins/pinia-colada',
177+
text: 'Pinia Colada',
178178
},
179179
{
180-
link: '/openapi-ts/plugins/pinia-colada',
181-
text: 'Pinia Colada <span data-soon>soon</span>',
180+
link: '/openapi-ts/plugins/tanstack-query',
181+
text: 'TanStack Query',
182182
},
183183
{
184184
link: '/openapi-ts/plugins/swr',
@@ -195,10 +195,18 @@ export default defineConfig({
195195
{
196196
collapsed: true,
197197
items: [
198+
{
199+
link: '/openapi-ts/plugins/chance',
200+
text: 'Chance <span data-soon>soon</span>',
201+
},
198202
{
199203
link: '/openapi-ts/plugins/faker',
200204
text: 'Faker <span data-soon>soon</span>',
201205
},
206+
{
207+
link: '/openapi-ts/plugins/falso',
208+
text: 'Falso <span data-soon>soon</span>',
209+
},
202210
{
203211
link: '/openapi-ts/plugins/msw',
204212
text: 'MSW <span data-soon>soon</span>',

docs/data/people.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,17 @@ export const jacobCohen: Person = {
88
name: 'Jacob Cohen',
99
};
1010

11+
export const joshHemphill: Person = {
12+
github: 'https://github.com/josh-hemphill',
13+
name: 'Josh Hemphill',
14+
};
15+
1116
export const maxScopp: Person = {
1217
github: 'https://github.com/max-scopp',
1318
name: 'Max Scopp',
1419
};
20+
21+
export const sebastiaanWouters: Person = {
22+
github: 'https://github.com/SebastiaanWouters',
23+
name: 'Sebastiaan Wouters',
24+
};

docs/openapi-ts/clients/angular.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,15 +49,15 @@ In your [configuration](/openapi-ts/get-started), add `@hey-api/client-angular`
4949

5050
```js [config]
5151
export default {
52-
input: 'https://get.heyapi.dev/hey-api/backend',
52+
input: 'hey-api/backend', // sign up at app.heyapi.dev
5353
output: 'src/client',
5454
plugins: ['@hey-api/client-angular'], // [!code ++]
5555
};
5656
```
5757

5858
```sh [cli]
5959
npx @hey-api/openapi-ts \
60-
-i https://get.heyapi.dev/hey-api/backend \
60+
-i hey-api/backend \
6161
-o src/client \
6262
-c @hey-api/client-angular # [!code ++]
6363
```
@@ -105,7 +105,7 @@ Since `client.gen.ts` is a generated file, we can't directly modify it. Instead,
105105

106106
```js
107107
export default {
108-
input: 'https://get.heyapi.dev/hey-api/backend',
108+
input: 'hey-api/backend', // sign up at app.heyapi.dev
109109
output: 'src/client',
110110
plugins: [
111111
{
@@ -178,7 +178,7 @@ export class FooService {
178178

179179
```js [config]
180180
export default {
181-
input: 'https://get.heyapi.dev/hey-api/backend',
181+
input: 'hey-api/backend', // sign up at app.heyapi.dev
182182
output: 'src/client',
183183
plugins: [
184184
'@hey-api/client-angular',

0 commit comments

Comments
 (0)