···66import { getSpec } from './getSpec';
77import type { IR } from './ir/types';
88import { parseLegacy, parseOpenApiSpec } from './openApi';
99+import { patchSchemas } from './patchSchemas';
910import { processOutput } from './processOutput';
1011import type { Client } from './types/client';
1112import type { Config } from './types/config';
···211212 watch,
212213 });
213214 Performance.end('spec');
215215+216216+ if (config.input.patch) {
217217+ Performance.start('patch');
218218+ patchSchemas({ data, patch: config.input.patch });
219219+ Performance.end('patch');
220220+ }
214221215222 // throw on first run if there's an error to preserve user experience
216223 // if in watch mode, subsequent errors won't throw to gracefully handle
+1-1
packages/openapi-ts/src/index.ts
···9999100100export { defaultPlugins } from './initConfigs';
101101export type { IR } from './ir/types';
102102-export type { OpenApi } from './openApi/types';
102102+export type { OpenApi, OpenApiSchemaObject } from './openApi/types';
103103export { clientDefaultConfig } from './plugins/@hey-api/client-core/config';
104104export { clientPluginHandler } from './plugins/@hey-api/client-core/plugin';
105105export type { Client } from './plugins/@hey-api/client-core/types';
+11
packages/openapi-ts/src/openApi/types.d.ts
···11import type { OpenApiV2_0_X } from './2.0.x';
22+import type { SchemaObject as OpenApiV2SchemaObject } from './2.0.x/types/spec';
23import type { OpenApiV3_0_X } from './3.0.x';
44+import type { SchemaObject as OpenApiV3SchemaObject } from './3.0.x/types/spec';
35import type { OpenApiV3_1_X } from './3.1.x';
66+import type { SchemaObject as OpenApiV3_1SchemaObject } from './3.1.x/types/spec';
4758export namespace OpenApi {
69 export type V2_0_X = OpenApiV2_0_X;
···9121013 export type V3_1_X = OpenApiV3_1_X;
1114}
1515+1616+export namespace OpenApiSchemaObject {
1717+ export type V2_0_X = OpenApiV2SchemaObject;
1818+1919+ export type V3_0_X = OpenApiV3SchemaObject;
2020+2121+ export type V3_1_X = OpenApiV3_1SchemaObject;
2222+}