Skip to content
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

Export schemas as interfaces instead of types #209

Open
brojd opened this issue Nov 24, 2023 · 0 comments
Open

Export schemas as interfaces instead of types #209

brojd opened this issue Nov 24, 2023 · 0 comments

Comments

@brojd
Copy link

brojd commented Nov 24, 2023

Our OpenAPI schemas are not fully correct due to annotations issues on the backend. At the same time I'd like to start http client from openapi-codegen. To make it easier and prevent doing changes in autogenerated files, I'd like to have a file with all the necessary customizations and augment autogenerated schemas. However, because schemas are defined as types instead of interfaces, it is not possible.

Would it be possible to make it configurable so that we have a flag that decides whether in exported schemas types or interfaces are used?

@brojd brojd changed the title Export schemas as interfaces insead of types Export schemas as interfaces instead of types Nov 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant