Skip to content

Commit

Permalink
Merge pull request #1180 from hey-api/feat/parser-plugin-schemas
Browse files Browse the repository at this point in the history
feat: rewrite schemas to new parser
  • Loading branch information
mrlubos authored Oct 21, 2024
2 parents 2acbc80 + ac986b9 commit 55d5715
Show file tree
Hide file tree
Showing 10 changed files with 1,856 additions and 1,625 deletions.
9 changes: 6 additions & 3 deletions packages/openapi-ts/src/generate/output.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ import path from 'node:path';

import type { IRContext } from '../ir/context';
import type { OpenApi } from '../openApi';
import { generateSchemas } from '../plugins/@hey-api/schemas/plugin';
import { generateServices } from '../plugins/@hey-api/services/plugin';
import { generateTypes } from '../plugins/@hey-api/types/plugin';
import type { Client } from '../types/client';
import type { Files } from '../types/utils';
import { getConfig, isLegacyClient } from '../utils/config';
Expand All @@ -12,9 +15,9 @@ import { generateLegacyCore } from './core';
import { generateIndexFile } from './indexFile';
import { generateLegacyPlugins } from './plugins';
import { generateLegacySchemas } from './schemas';
import { generateLegacyServices, generateServices } from './services';
import { generateLegacyServices } from './services';
import { generateLegacyTransformers } from './transformers';
import { generateLegacyTypes, generateTypes } from './types';
import { generateLegacyTypes } from './types';

/**
* Write our OpenAPI client, using the given templates at the given output
Expand Down Expand Up @@ -125,7 +128,7 @@ export const generateOutput = async ({ context }: { context: IRContext }) => {
generateTypes({ context });

// schemas.gen.ts
// await generateLegacySchemas({ files, openApi });
generateSchemas({ context });

// transformers
if (
Expand Down
Loading

0 comments on commit 55d5715

Please sign in to comment.