hey-api / openapi-ts

🚀 The OpenAPI to TypeScript codegen. Generate clients, SDKs, validators, and more. Support: @mrlubos
https://heyapi.dev
Other
1.39k stars 107 forks source link

Improve `context.createFile()` API #1291

Open mrlubos opened 6 days ago

mrlubos commented 6 days ago

There isn't really a need to have both id and path parameters. Every plugin produces only one file, so id could be inferred. If a plugin needs to reference another plugin's output file, it should be able to import ID (output path) from that plugin. This change does not consider what would happen if a plugin creates multiple files as there isn't such use case at the moment.