Created
March 31, 2018 11:37
-
-
Save mpnordland/586d7dcf37955b7316708ef310b227d5 to your computer and use it in GitHub Desktop.
A WIP python client config for openapi-codegen
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "Python", | |
"type": "client", | |
"defaults": { | |
"asyncio": false, | |
"tornado": false, | |
"packageName": "swagger_client", | |
"package": "swagger_client", | |
"baseNamespace": "swagger_client", | |
"generatorPackage": "swagger_client", | |
"invokerPackage": "swagger_client", | |
"importPath": "swagger_client", | |
"apiPackage": "swagger_client.api", | |
"pythonPackageName":"swagger_client", | |
"modelPackage": "swagger_client.model", | |
"clientPackage": "swagger_client.api_client", | |
"modelNaming": "PascalCase", | |
"modelPropertyNaming": "snake_case", | |
"imports": [] | |
}, | |
"directories": [ | |
"swagger_client", | |
"swagger_client/models", | |
"swagger_client/api", | |
"test", | |
"docs" | |
], | |
"partials": { | |
"partial_header": "partial_header.mustache" | |
}, | |
"transformations": [ | |
{ "input": "travis.mustache", "output": ".travis.yml" }, | |
{ "input": "rest.mustache", "output": "swagger_client/rest.py" }, | |
{ "input": "setup.mustache", "output": "setup.py" }, | |
{ "input": "configuration.mustache", "output": "swagger_client/configuration.py" }, | |
{ "input": "api_client.mustache", "output": "swagger_client/api_client.py" }, | |
{ "input": "api_test.mustache", "output": "api_test.py" }, | |
{ "input": "README.mustache", "output": "README.md" }, | |
{ "input": "requirements.mustache", "output": "requirements.txt" }, | |
{ "input": "test-requirements.mustache", "output": "test-requirements.txt" }, | |
{ "input": "tox.mustache", "output": "tox.ini" }, | |
{ "input": "git_push.sh.mustache", "output": "git_push.sh" }, | |
{ "input": "gitignore.mustache", "output": ".gitignore" }, | |
{ "input": "__init__api.mustache", "output": "swagger_client/api/__init__.py" }, | |
{ "input": "__init__test.mustache", "output": "test/__init__.py" }, | |
{ "input": "__init__model.mustache", "output": "swagger_client/models/__init__.py" }, | |
{ "input": "__init__package.mustache", "output": "swagger_client/__init__.py" } | |
], | |
"perApi":[ | |
{ "input": "api_doc.mustache", "output": "docs/{{name}}Api.md" }, | |
{ "input": "api.mustache", "output": "swagger_client/api/{{name}}_api.py" } | |
], | |
"perModel": [ | |
{ "input": "model.mustache", "output": "swagger_client/models/{{#models}}{{#model}}{{name}}{{/model}}{{/models}}.py" }, | |
{ "input": "model_test.mustache", "output": "test/test_{{#models}}{{#model}}{{name}}{{/model}}{{/models}}.py" }, | |
{ "input": "model_doc.mustache", "output": "docs/{{#models}}{{#model}}{{name}}{{/model}}{{/models}}.md" } | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment