poetry add git+ssh://git@github.com/org/private-repo.git
Based on https://github.com/python-poetry/poetry/issues/835#issuecomment-600773746
poetry add git+ssh://git@github.com/org/private-repo.git
Based on https://github.com/python-poetry/poetry/issues/835#issuecomment-600773746
DRY is one of key principles in software development.
I was happy to see OpenAPI schema can be extended if needed and wanted to benefit from it
"jira_cloud_input": {"type": "object","properties": {"api_token": {"type": "string"},"name": {"type": "string"},"from": {"type": "string"},"interval": {"type": "string"},"index": {"type": "string"}},"xml": {"name": "jira_cloud_input","attribute": false,"wrapped": false}},"jira_cloud_input_disabled": {"allOf": [{"$ref": "#/components/schemas/jira_cloud_input"},{"type": "object","properties": {"disabled": {"type": "string","enum": ["0","1"]}}}]}
This looks nice in Swagger Editor
Relevant endpoint definitions also look as expected:What is generated from "standard" schema definition looks fine
Unfortunately, where the extension was used lacks of method parameters
As a consequence, I need to break DRY rule just to have reliable client code generated.
PS: I do use swagger-codegen-cli-v3 docker image in fact to generate the client code