Skip to content

Inject option dropped in v7 #1754

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

Closed
1 task
johnnymetz opened this issue Jul 8, 2024 · 1 comment
Closed
1 task

Inject option dropped in v7 #1754

johnnymetz opened this issue Jul 8, 2024 · 1 comment
Labels
enhancement New feature or request openapi-ts Relevant to the openapi-typescript library

Comments

@johnnymetz
Copy link

Description

Version 6 had an inject options, which allowed you to import arbitrary TS types at the beginning of the file, see docs: https://openapi-ts.pages.dev/6.x/node#options

This option no longer exists but I need it. Is there still a way to do this or has this support been dropped completely?

Proposal

Outline the change to the library. If this is for the CLI, propose a flag name and/or workflow. If this is for Node API, propose how this would be consumed. Reference any prior art or similar examples.

Re-implement the inject option, see code: https://github.com/openapi-ts/openapi-typescript/pull/1363/files#diff-aa2bf9eceec4d8c746802aaaeaa09f72333c8a8983ef9e956fdc3c71c972bda7L117-L118

Checklist

@johnnymetz johnnymetz added enhancement New feature or request openapi-ts Relevant to the openapi-typescript library labels Jul 8, 2024
@kerwanp
Copy link
Contributor

kerwanp commented Jul 18, 2024

Hey @johnnymetz, the feature has been recently released (thanks to @phk422 #1766 !). The documentation: https://openapi-ts.dev/node#options

I'm closing the issue has this should be resolved, feel free to open a new one if necessary!

@kerwanp kerwanp closed this as completed Jul 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request openapi-ts Relevant to the openapi-typescript library
Projects
None yet
Development

No branches or pull requests

2 participants