-
Notifications
You must be signed in to change notification settings - Fork 148
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
Question: Specify Api Routes #5
Comments
Thanks for the kind words @prefect42! At the moment, no there isn't a way to only generate a subset of the spec. |
No worries. I script myself a filter. One more thing: Currently a file is created for every method of an API Controller. Is that really necessary. Would be great if the Extensions to the controller could be generated all in the same file. If this is not to your liking this could be made a parameter. Your project is really young, but I am very glad I found it. |
Yes, in the default template all the operations are generated as seperate files, but you can easily generate them in one file if you change the
to
And then in the
And then reference all the operation properties with That's the advantage of having a flexible template configuration, instead of the hardcoded files in Swagger Codegen |
Awesome 🎉 |
Just a note, you would also have to remove |
@prefect42, the Stencil dependancy has been updated so feel free to use the new |
Hey yonaskolb!
First off, really great project. I love SwagGen and the fact that I can now use a native app generating my models and requests plus using Stencil which I really love.
A quick question: Is it possible to specify only the routes or models which should be generated?
Similar to Swagger Codegens
-Dmodels {opts}, -Dapis {opts}
flags?That would be great!
Keep up the good work.
Kind regards
PS: Stencil has been updated and now allow % elif %. Would be great if you could update the dependencies. Perhaps even not constraining them to an exact version but e.g. specifying the major version ;-)
The text was updated successfully, but these errors were encountered: