New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ts-to-oapi] Imported types are transformed #21
Comments
|
I had a look at the readme file and it says:
I have the same issue and not sure yet if I should squash types into one file, or run typeconv once per each file and collect the schemas via a program. Both options look difficult to do. |
|
Right, I'll have to close this as simple not supported. Merging typescript files into one is not just concatenating them, it requires language-level logic to do it right, so it makes more sense for other packages out there to do that job. Have a look at https://www.npmjs.com/package/dts-bundle-generator or https://www.npmjs.com/package/dts-generator they do precisely this. |
Whenever you are transforming a TypeScript file to an OpenApi specification file, if you declare a type that reuses some other type that you import from a different file, the imported types are not included in the OpenApi specification file.
As an example this file:
generates:
however no
MyTypeBcomponent is generated inside the file.The text was updated successfully, but these errors were encountered: