openapi-typescript
openapi-typescript copied to clipboard
Schema with private external ref
Is there any way that I can convert swagger definition with external ref which require authentication to typescript?
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.
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.
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.