Skip to content

Commit aad818f

Browse files
authored
Merge pull request #2918 from hey-api/chore/sample-delete
chore: delete sample example
2 parents cf8cabf + 713510d commit aad818f

Some content is hidden

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

41 files changed

+689
-4330
lines changed

.changeset/nine-cats-cross.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
'@hey-api/openapi-ts': patch
33
---
44

5-
fix(sdk): add paramsStructure field
5+
fix(sdk): add `paramsStructure` option

dev/openapi-ts.config.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,12 @@ export default defineConfig(() => {
4141
// 'invalid',
4242
// 'openai.yaml',
4343
// 'full.yaml',
44-
'opencode.yaml',
44+
// 'opencode.yaml',
4545
// 'sdk-instance.yaml',
4646
// 'string-with-format.yaml',
4747
// 'transformers.json',
4848
// 'type-format.yaml',
49-
// 'validators.yaml',
49+
'validators.yaml',
5050
// 'validators-circular-ref.json',
5151
// 'validators-circular-ref-2.yaml',
5252
// 'zoom-video-sdk.json',
@@ -260,7 +260,7 @@ export default defineConfig(() => {
260260
// },
261261
// include...
262262
instance: true,
263-
name: '@hey-api/sdk',
263+
// name: '@hey-api/sdk',
264264
// operationId: false,
265265
paramsStructure: 'flat',
266266
// responseStyle: 'data',
@@ -335,7 +335,7 @@ export default defineConfig(() => {
335335
},
336336
},
337337
{
338-
// name: 'arktype',
338+
name: 'arktype',
339339
// types: {
340340
// infer: true,
341341
// },
@@ -346,7 +346,7 @@ export default defineConfig(() => {
346346
// definitions: 'z{{name}}Definition',
347347
exportFromIndex: true,
348348
// metadata: true,
349-
// name: 'valibot',
349+
name: 'valibot',
350350
// requests: {
351351
// case: 'PascalCase',
352352
// name: '{{name}}Data',
@@ -396,7 +396,7 @@ export default defineConfig(() => {
396396
},
397397
// exportFromIndex: true,
398398
// metadata: true,
399-
// name: 'zod',
399+
name: 'zod',
400400
// requests: {
401401
// // case: 'SCREAMING_SNAKE_CASE',
402402
// // name: 'z{{name}}TestData',
@@ -417,9 +417,9 @@ export default defineConfig(() => {
417417
// },
418418
},
419419
types: {
420-
infer: {
421-
case: 'snake_case',
422-
},
420+
// infer: {
421+
// case: 'snake_case',
422+
// },
423423
},
424424
'~hooks': {
425425
symbols: {

dev/package.json

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
{
2+
"name": "@test/openapi-ts-playground",
3+
"version": "0.0.0",
4+
"private": true,
5+
"type": "module",
6+
"engines": {
7+
"node": ">=20.19.0"
8+
},
9+
"devDependencies": {
10+
"@angular-devkit/build-angular": "19.2.19",
11+
"@angular/animations": "19.2.15",
12+
"@angular/cli": "19.2.19",
13+
"@angular/common": "19.2.15",
14+
"@angular/compiler": "19.2.15",
15+
"@angular/compiler-cli": "19.2.15",
16+
"@angular/core": "19.2.15",
17+
"@angular/forms": "19.2.15",
18+
"@angular/platform-browser": "19.2.15",
19+
"@angular/platform-browser-dynamic": "19.2.15",
20+
"@angular/router": "19.2.15",
21+
"@config/vite-base": "workspace:*",
22+
"@hey-api/codegen-core": "workspace:*",
23+
"@hey-api/custom-client": "workspace:*",
24+
"@hey-api/openapi-ts": "workspace:*",
25+
"@pinia/colada": "0.17.7",
26+
"@tanstack/angular-query-experimental": "5.73.3",
27+
"@tanstack/react-query": "5.73.3",
28+
"@tanstack/solid-query": "5.73.3",
29+
"@tanstack/svelte-query": "5.73.3",
30+
"@tanstack/vue-query": "5.73.3",
31+
"@types/cross-spawn": "6.0.6",
32+
"ajv": "8.17.1",
33+
"arktype": "2.1.25",
34+
"axios": "1.8.2",
35+
"cross-spawn": "7.0.6",
36+
"eslint": "9.17.0",
37+
"fastify": "5.2.0",
38+
"glob": "11.0.3",
39+
"node-fetch": "3.3.2",
40+
"nuxt": "3.14.1592",
41+
"ofetch": "1.4.1",
42+
"prettier": "3.4.2",
43+
"rxjs": "7.8.2",
44+
"ts-node": "10.9.2",
45+
"tslib": "2.8.1",
46+
"typescript": "5.9.3",
47+
"valibot": "1.1.0",
48+
"vue": "3.5.13",
49+
"zod": "4.1.12"
50+
}
51+
}

dev/tsconfig.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"extends": "../packages/openapi-ts-tests/tsconfig.base.json",
3+
"compilerOptions": {
4+
"allowImportingTsExtensions": true,
5+
"declaration": false,
6+
"esModuleInterop": true,
7+
"noEmit": true,
8+
"resolveJsonModule": true,
9+
"skipLibCheck": true
10+
}
11+
}

dev/turbo.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"$schema": "../node_modules/turbo/schema.json",
3+
"extends": ["//"],
4+
"tasks": {
5+
"build": {
6+
"dependsOn": [],
7+
"outputs": ["dist/**"]
8+
}
9+
}
10+
}

examples/openapi-ts-sample/.gitignore

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

examples/openapi-ts-sample/CHANGELOG.md

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

examples/openapi-ts-sample/index.html

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

examples/openapi-ts-sample/openapi-ts.config.ts

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

examples/openapi-ts-sample/package.json

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

0 commit comments

Comments
 (0)