Minor Changes
-
#1353
efd3e54
Thanks @mrlubos! - feat: add typescript.identifierCase optionAdded
typescript.identifierCase
optionThis change affects only the experimental parser. By default, the generated TypeScript interfaces will follow the PascalCase naming convention. In the previous versions, we tried to preserve the original name as much as possible. To keep the previous behavior, set
typescript.identifierCase
topreserve
.export default { client: '@hey-api/client-fetch', experimentalParser: true, input: 'path/to/openapi.json', output: 'src/client', plugins: [ // ...other plugins { identifierCase: 'preserve', // [!code ++] name: '@hey-api/typescript', }, ], };
-
#1360
5f6ddd7
Thanks @mrlubos! - fix: remove schemas and transformers re-exports from index.tsRemoved
schemas.gen.ts
re-exportindex.ts
will no longer re-exportschemas.gen.ts
to reduce the chance of producing broken output. Please update your code to import fromschemas.gen.ts
directly.import { mySchema } from 'client'; // [!code --] import { mySchema } from 'client/schemas.gen'; // [!code ++]
Removed
transformers.gen.ts
re-exportindex.ts
will no longer re-exporttransformers.gen.ts
to reduce the chance of producing broken output. Please update your code to import fromtransformers.gen.ts
directly.import { myTransformer } from 'client'; // [!code --] import { myTransformer } from 'client/transformers.gen'; // [!code ++]
-
#1360
5f6ddd7
Thanks @mrlubos! - feat: add output.clean optionAdded
output.clean
optionBy default, the
output.path
folder will be emptied on every run. To preserve the previous behavior, setoutput.clean
tofalse
.export default { client: '@hey-api/client-fetch', input: 'path/to/openapi.json', output: { clean: false, // [!code ++] path: 'src/client', }, };
-
#1362
3bf7169
Thanks @mrlubos! - feat: add typescript.enumsCase option