Skip to content

Commit 06234fd

Browse files
committed
config; wip flaskConnexion
1 parent e4d3337 commit 06234fd

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

bin/checkPython.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,8 @@ python --version
77
cd out/python
88
cd swagger_client
99
python -m py_compile *.py
10-
cd ../..
10+
cd ../../..
1111

12+
cd out/flaskConnexion
13+
python -m py_compile *.py
14+
cd ../..

configs/flaskConnexion.json

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
{
22
"defaults": {
3-
"supportPython2": false
3+
"supportPython2": true
44
},
55
"directories": [
6+
"controllers",
7+
"controllers/test"
68
],
79
"partials": {
810
"param_type": "param_type.mustache"
@@ -24,11 +26,13 @@
2426
{ "input": "__init__test.mustache", "output": "__init__test.py" },
2527
{ "input": "__main__.mustache", "output": "__main__.py" },
2628
{ "input": "base_model_.mustache", "output": "base_model_.py" },
27-
{ "input": "controller.mustache", "output": "controller.py" },
28-
{ "input": "controller_test.mustache", "output": "controller_test.py" },
2929
{ "input": "encoder.mustache", "output": "encoder.py" },
3030
{ "input": "model.mustache", "output": "model.py" },
3131
{ "input": "setup.mustache", "output": "setup.py" },
3232
{ "input": "util.mustache", "output": "util.py" }
33+
],
34+
"perApi": [
35+
{ "input": "controller.mustache", "output": "controllers/{{name}}.py" },
36+
{ "input": "controller_test.mustache", "output": "controllers/test/{{name}}.py" }
3337
]
3438
}

0 commit comments

Comments
 (0)