Currently, there is quite a bit of work in having to undo the changes that the openapi-generator does, but if we created our own templates to import from a core module within the package that is unchanged, then it wouldn't be an issue.
Essentially this is the command I run to generate a service:
openapi-generator generate -i openapi.yaml -g python-flask -o server -t .codegen/server/
Create core module by copying everything in controllers in your packages into core. example
Run the generation command above and get something like this: example. Notice how everything in controllers now just pulls from core.controllers.queue_controller?
We should create a GH repository where can be develop these template and either publish our custom openapi-generator to npmjs and/or Docker Hub (see openapi-generator Dockerfile).
Currently, there is quite a bit of work in having to undo the changes that the openapi-generator does, but if we created our own templates to import from a
core
module within the package that is unchanged, then it wouldn't be an issue.Essentially this is the command I run to generate a service:
To get to this point, you will want to:
core.controllers.queue_controller
?