You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[root@dev-local swagger_test]# swagger_py_codegen --swagger-doc Mp1.yaml -tlp flask mp1_flask
generate mp1_flask/mp1_flask/exampleAPI_mp1_v1/schemas.py
Traceback (most recent call last):
File "/src/var/mec/prova_venv/bin/swagger_py_codegen", line 10, in <module>
sys.exit(generate())
File "/src/var/mec/prova_venv/lib/python2.7/site-packages/click/core.py", line 722, in __call__
return self.main(*args, **kwargs)
File "/src/var/mec/prova_venv/lib/python2.7/site-packages/click/core.py", line 697, in main
rv = self.invoke(ctx)
File "/src/var/mec/prova_venv/lib/python2.7/site-packages/click/core.py", line 895, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/src/var/mec/prova_venv/lib/python2.7/site-packages/click/core.py", line 535, in invoke
return callback(*args, **kwargs)
File "/src/var/mec/prova_venv/lib/python2.7/site-packages/swagger_py_codegen/command.py", line 200, in generate
for code in generator.generate():
File "/src/var/mec/prova_venv/lib/python2.7/site-packages/swagger_py_codegen/base.py", line 47, in generate
for code in self._process():
File "/src/var/mec/prova_venv/lib/python2.7/site-packages/swagger_py_codegen/flask.py", line 203, in _process
views = self._process_data()
File "/src/var/mec/prova_venv/lib/python2.7/site-packages/swagger_py_codegen/flask.py", line 164, in _process_data
url, params = _swagger_to_flask_url(swagger_path, data)
File "/src/var/mec/prova_venv/lib/python2.7/site-packages/swagger_py_codegen/flask.py", line 81, in _swagger_to_flask_url
for old, new in _type(param.get('parameters', [])):
AttributeError: 'list' object has no attribute 'get'
The text was updated successfully, but these errors were encountered:
Trying to generate code for flask with the following yaml file
https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml
I get this exception:
The text was updated successfully, but these errors were encountered: