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

Schema with private external ref

Open bsubba opened this issue 5 years ago • 1 comments

Is there any way that I can convert swagger definition with external ref which require authentication to typescript?

bsubba avatar May 12 '20 13:05 bsubba

We currently don’t support external refs. We’re currently thinking about a way to add it, as some refs may be remote, some may be local, some may require auth, per your original question. And in all cases, it’d be very hard to replicate Swagger remote refs in TypeScript, as we’d have to find some way to convert those to TS modules.

All that to say, it’s not that this will never happen; it’ll just take a really big time commitment that the current maintainers don’t have. My recommendation would be to generate types for each schema separately for now.

drwpow avatar Dec 31 '20 05:12 drwpow

This issue is stale because it has been open for 90 days with no activity. If there is no activity in the next 7 days, the issue will be closed.

github-actions[bot] avatar Aug 06 '24 12:08 github-actions[bot]

This issue was closed because it has been inactive for 7 days since being marked as stale. Please open a new issue if you believe you are encountering a related problem.

github-actions[bot] avatar Aug 15 '24 02:08 github-actions[bot]