Repository navigation
feat: add template-dir argument for custom templates - #12
Conversation
dbanty
left a comment
There was a problem hiding this comment.
Awesome, thanks for the contribution! One question I have is where these templates came from. They're too thorough to have been written just for this test (I think), so I assume they were copied from another project which would mean we're in violation of whatever the license was for that project (presumably).
Is it possible to have a simpler (maybe single file) template just for this test? I don't know how strict the openapitools validation is on templates.
You're welcome! On the other hand, I also tried to generate a minor template, but I got multiple errors and the generated code was not reliable. |
Great, so if it's Apache I think the rules are we need to include a copy of the license anywhere we've copied the code. So just copying the license into that templates dir is probably okay then. |
Ok, added! |
template-dir argument for custom templates
Generate
template-diras a new input to include custom template parameter (-t | --template)Trying to include the templates using 'command-args':
Generates an error because the templates path wasn't correct, needing the full path of the workdir, that is not included anywhere, having to access the code to look for it.
With this change, we can use:
I hope it helps.