openapi-typescript-codegen icon indicating copy to clipboard operation
openapi-typescript-codegen copied to clipboard

PascalCase for type names, or interfaces instead of types in models

Open IamIGI opened this issue 2 years ago • 2 comments

Like in the title. Is there an option to set, that will change the name of models from camelCase to PascalCase, and option that would set model to be declared as interfaces instead of types ?

By default we have types with camelCase names image I would like to get intefaces with PascalCase names. image

IamIGI avatar Nov 17 '23 11:11 IamIGI

+1 also interested to know if there's a way to do this without actually changing the types in the OpenAPI file to PascalCase.

pawKer avatar Apr 12 '24 08:04 pawKer

Yep, we will add this option in https://github.com/hey-api/openapi-ts

mrlubos avatar Apr 12 '24 14:04 mrlubos