Skip to content

Commit 1a94543

Browse files
committed
chore: fix tests
1 parent e4c8b61 commit 1a94543

File tree

11 files changed

+22063
-19306
lines changed

11 files changed

+22063
-19306
lines changed

.oxfmtrc.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
"**/node_modules/",
88
"temp/",
99
"dev/.gen/",
10-
"examples/openapi-ts-openai/src/client/**/*.ts",
1110
"**/test/generated/",
1211
"**/__snapshots__/",
1312
"**/.next/",

eslint.config.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,14 @@ export default tseslint.config(
5252
'@typescript-eslint/no-require-imports': 'off',
5353
},
5454
},
55+
{
56+
files: ['**/*.gen.ts'],
57+
rules: {
58+
'sort-keys-fix/sort-keys-fix': 'off',
59+
'typescript-sort-keys/interface': 'off',
60+
'typescript-sort-keys/string-enum': 'off',
61+
},
62+
},
5563
{
5664
ignores: [
5765
'**/.tsdown/',
@@ -60,8 +68,6 @@ export default tseslint.config(
6068
'temp/',
6169
'dev/gen/',
6270
'dev/playground.ts',
63-
'examples/openapi-ts-nestjs/src/client/**/*.ts',
64-
'examples/openapi-ts-openai/src/client/**/*.ts',
6571
'**/test/generated/',
6672
'**/__snapshots__/',
6773
'**/.next/',

examples/openapi-ts-nestjs/src/client/nestjs.gen.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ import type {
1515
} from './types.gen';
1616

1717
export type PetsControllerMethods = {
18-
listPets: (query?: ListPetsData['query']) => Promise<ListPetsResponse>;
1918
createPet: (body: CreatePetData['body']) => Promise<CreatePetResponse>;
2019
deletePet: (path: DeletePetData['path']) => Promise<DeletePetResponse>;
20+
listPets: (query?: ListPetsData['query']) => Promise<ListPetsResponse>;
2121
showPetById: (path: ShowPetByIdData['path']) => Promise<ShowPetByIdResponse>;
2222
updatePet: (
2323
path: UpdatePetData['path'],

examples/openapi-ts-nestjs/src/client/types.gen.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ export type ClientOptions = {
77
export type Pet = {
88
id: string;
99
name: string;
10-
tag?: string;
1110
status?: 'available' | 'pending' | 'sold';
11+
tag?: string;
1212
};
1313

1414
export type CreatePetBody = {
@@ -18,8 +18,8 @@ export type CreatePetBody = {
1818

1919
export type UpdatePetBody = {
2020
name?: string;
21-
tag?: string;
2221
status?: 'available' | 'pending' | 'sold';
22+
tag?: string;
2323
};
2424

2525
export type Error = {

examples/openapi-ts-openai/src/client/client.gen.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ import type { ClientOptions as ClientOptions2 } from './types.gen';
1111
* `setConfig()`. This is useful for example if you're using Next.js
1212
* to ensure your client always has the correct values.
1313
*/
14-
export type CreateClientConfig<T extends ClientOptions = ClientOptions2> = (override?: Config<ClientOptions & T>) => Config<Required<ClientOptions> & T>;
14+
export type CreateClientConfig<T extends ClientOptions = ClientOptions2> = (
15+
override?: Config<ClientOptions & T>,
16+
) => Config<Required<ClientOptions> & T>;
1517

16-
export const client = createClient(createConfig<ClientOptions2>({ baseUrl: 'https://api.openai.com/v1' }));
18+
export const client = createClient(
19+
createConfig<ClientOptions2>({ baseUrl: 'https://api.openai.com/v1' }),
20+
);

examples/openapi-ts-openai/src/client/client/types.gen.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
// This file is auto-generated by @hey-api/openapi-ts
22

33
import type { Auth } from '../core/auth.gen';
4-
import type {
5-
ServerSentEventsOptions,
6-
ServerSentEventsResult,
7-
} from '../core/serverSentEvents.gen';
4+
import type { ServerSentEventsOptions, ServerSentEventsResult } from '../core/serverSentEvents.gen';
85
import type { Client as CoreClient, Config as CoreConfig } from '../core/types.gen';
96
import type { Middleware } from './utils.gen';
107

examples/openapi-ts-openai/src/client/index.ts

Lines changed: 1153 additions & 1 deletion
Large diffs are not rendered by default.

examples/openapi-ts-openai/src/client/sdk.gen.ts

Lines changed: 3483 additions & 2554 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)