openapi-typescript
openapi-typescript copied to clipboard
issue on - generate client when yaml has mutiple same external ref
Description
A brief description of the bug.
issue on - generate client when yaml has mutiple same external ref
Paste full error message
| Name | Version |
|---|---|
openapi-typescript |
0.46.2 |
| Node.js | 18 |
| OS + version | Windows 11, |
Reproduction
in my yaml file:
How can this be reproduced / when did the error occur?
npx openapi-ts -c node/fetch xxx.yaml -o ./tmp after execute the generate command , the issue will be follow:
Expected result
(in case it’s not obvious)
Checklist
- [x] My OpenAPI schema passes the Redocly validator (
npx @redocly/cli@latest lint) - [ ] I’m willing to open a PR (see CONTRIBUTING.md)