Skip to content

Commit 5dcb0c2

Browse files
authored
Merge pull request #2516 from hey-api/feat/webhooks-types
feat(parser): track webhooks in OpenAPI 3.1
2 parents c2b34a8 + c71d5db commit 5dcb0c2

File tree

46 files changed

+15041
-237
lines changed

Some content is hidden

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

46 files changed

+15041
-237
lines changed

.changeset/dirty-dots-decide.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(typescript): add webhooks configuration options

.changeset/three-meals-pay.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(validator): add webhooks configuration options

.changeset/wild-pants-act.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(parser): handle webhooks 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

package.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,6 @@
2626
"format": "prettier --write .",
2727
"lint:fix": "prettier --check --write . && eslint . --fix",
2828
"lint": "prettier --check . && eslint .",
29-
"openapi-ts": "turbo run $1 --filter=\"@hey-api/openapi-ts\"",
30-
"openapi-ts-tests": "turbo run $1 --filter=\"./packages/openapi-ts-tests/**/*\"",
31-
"openapi-ts-tests-sample": "turbo run $1 --filter=\"./packages/openapi-ts-tests/zod/v4\"",
3229
"prepare": "husky",
3330
"test:coverage": "turbo run test:coverage",
3431
"test:e2e": "turbo run test:e2e",

packages/openapi-ts-tests/main/test/3.1.x.test.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -890,6 +890,14 @@ describe(`OpenAPI ${version}`, () => {
890890
}),
891891
description: 'client with SSE (Nuxt)',
892892
},
893+
{
894+
config: createConfig({
895+
input: 'zoom-video-sdk.json',
896+
output: 'webhooks',
897+
plugins: ['@hey-api/typescript', 'valibot', 'zod'],
898+
}),
899+
description: 'webhook types and validator schemas',
900+
},
893901
];
894902

895903
it.each(scenarios)('$description', async ({ config }) => {
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
// This file is auto-generated by @hey-api/openapi-ts
2+
export * from './types.gen';

0 commit comments

Comments
 (0)