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

Feat request: add ability to generate model files #52

Open
crhistianramirez opened this issue Jun 8, 2019 · 1 comment
Open

Feat request: add ability to generate model files #52

crhistianramirez opened this issue Jun 8, 2019 · 1 comment

Comments

@crhistianramirez
Copy link

crhistianramirez commented Jun 8, 2019

In the same way we can generate multiple operation files from a single template, it would be beneficial to generate multiple model files from a single template. This would allow us to support strongly typed languages that share interfaces/models.

We'd just need a way to differentiate those types of files. Currently, operations are denoted by three underscores, maybe we could reserve some other set of characters for models. Another idea to solve for this would be to have some kind of file registry. This would allow us to associate a template explicitly with one of the many ways it can be interpreted by the codegen. This would also let us name handlebar files in .hbs so we can get some intellisense while templating locally.

I'd be happy to work on this :)

@fmvilas
Copy link
Owner

fmvilas commented Jun 10, 2019

Hi @crhistianramirez! I don't maintain this project anymore, in favor of https://github.com/fmvilas/openapi3-generator. You may want to have a look at it. If that's good for you, we can transfer this issue there, as I think it's a great idea.

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

2 participants