Skip to content

Commit d9c14d4

Browse files
committed
Merge branch 'main' of https://github.com/hey-api/openapi-ts into feat/name-dedup
2 parents 2ecc70c + 28cfbfb commit d9c14d4

File tree

287 files changed

+1381
-351
lines changed

Some content is hidden

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

287 files changed

+1381
-351
lines changed

.vscode/extensions.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
{
22
"recommendations": [
3-
"EditorConfig.EditorConfig",
43
"dbaeumer.vscode-eslint",
5-
"esbenp.prettier-vscode",
6-
"hilleer.yaml-plus-json"
4+
"EditorConfig.EditorConfig",
5+
"hilleer.yaml-plus-json",
6+
"oxc.oxc-vscode",
7+
"prettier.prettier-vscode",
8+
"streetsidesoftware.code-spell-checker",
9+
"usernamehw.errorlens"
710
]
811
}

dev/openapi-ts.config.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export default defineConfig(() => {
4444
// 'full.yaml',
4545
// 'object-property-names.yaml',
4646
// 'openai.yaml',
47-
// 'opencode.yaml',
47+
'opencode.yaml',
4848
// 'pagination-ref.yaml',
4949
'sdk-instance.yaml',
5050
// 'string-with-format.yaml',
@@ -281,7 +281,7 @@ export default defineConfig(() => {
281281
// signature: 'object',
282282
// transformer: '@hey-api/transformers',
283283
// transformer: true,
284-
validator: 'valibot',
284+
// validator: 'valibot',
285285
// validator: {
286286
// request: 'zod',
287287
// response: 'zod',
@@ -383,7 +383,7 @@ export default defineConfig(() => {
383383
definitions: 'z{{name}}',
384384
exportFromIndex: true,
385385
// metadata: true,
386-
name: 'valibot',
386+
// name: 'valibot',
387387
// requests: {
388388
// case: 'PascalCase',
389389
// name: '{{name}}Data',
@@ -466,7 +466,7 @@ export default defineConfig(() => {
466466
},
467467
exportFromIndex: true,
468468
metadata: true,
469-
name: 'zod',
469+
// name: 'zod',
470470
// requests: {
471471
// // case: 'SCREAMING_SNAKE_CASE',
472472
// // name: 'z{{name}}TestData',

dev/package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
"engines": {
77
"node": ">=20.19.0"
88
},
9+
"scripts": {
10+
"dev": "ts-node ./playground.ts"
11+
},
912
"devDependencies": {
1013
"@hey-api/codegen-core": "workspace:*",
1114
"@hey-api/openapi-ts": "workspace:*",
@@ -15,7 +18,7 @@
1518
"@tanstack/solid-query": "5.73.3",
1619
"@tanstack/svelte-query": "5.73.3",
1720
"@tanstack/vue-query": "5.73.3",
18-
"arktype": "2.1.25",
21+
"arktype": "2.1.28",
1922
"swr": "2.3.6",
2023
"typescript": "5.9.3",
2124
"valibot": "1.1.0",

dev/playground.ts

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,28 @@
11
import type { DefinePlugin, IR } from '@hey-api/openapi-ts';
22

3+
import { authSet } from './.gen/index.ts';
4+
35
type MyPluginConfig = { readonly name: 'myplugin' };
46
type MyPlugin = DefinePlugin<MyPluginConfig>;
57

68
export function f(schema: IR.SchemaObject, plugin: MyPlugin['Instance']) {
7-
plugin.context.resolveIrRef(schema.$ref);
9+
plugin.context.resolveIrRef(schema.$ref!);
810
}
911

1012
export const handler: MyPlugin['Handler'] = ({ plugin }) => {
1113
plugin.forEach('schema', 'operation', (event) => {
1214
console.log(event);
1315
});
1416
};
17+
18+
console.log(
19+
authSet({
20+
auth: {
21+
access: '',
22+
expires: 1,
23+
refresh: '',
24+
type: 'oauth',
25+
},
26+
id: '123',
27+
}),
28+
);

docs/.vitepress/config/shared.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,10 @@ export default defineConfig({
8585
['meta', { content: 'Hey API', property: 'og:site_name' }],
8686
[
8787
'meta',
88-
{ content: `${domain}/images/logo-640w.png`, property: 'og:image' },
88+
{
89+
content: `${domain}/images/openapi-ts-hero-640w.png`,
90+
property: 'og:image',
91+
},
8992
],
9093
['meta', { content: url, property: 'og:url' }],
9194
[

docs/package.json

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,9 @@
1515
"vue3-select-component": "0.11.8"
1616
},
1717
"devDependencies": {
18-
"sharp": "0.33.5",
19-
"vitepress": "2.0.0-alpha.13",
20-
"vitepress-plugin-llms": "1.7.3",
18+
"sharp": "0.34.5",
19+
"vitepress": "2.0.0-alpha.15",
20+
"vitepress-plugin-llms": "1.9.3",
2121
"vue": "3.5.23"
22-
},
23-
"packageManager": "pnpm@10.22.0"
22+
}
2423
}

docs/partials/sponsors-list.md

Lines changed: 12 additions & 1 deletion
-1 Bytes
9 Bytes

docs/public/images/bricks-300w.png

0 Bytes

0 commit comments

Comments
 (0)