Python Swagger Trouble
I have an oracle procedure that when receiving some parameters, throw results in a string with JSON format like the following:
"list_pais": [ "pais":"URUGUAY","pais":"ARGENTINA","pais":"PARAGUAY","pais":"VENEZUELA"]
This procedure is invoked from a webservice in Python that I developed with FlaskResfutl to create the swagger and this is de code:
import cx_Oracle
import json
from app import APP
import log
import graypy
import database
from flask_restplus import Api, Resource, fields
with open('./config/config_countries.json', 'r') as config_file:
config = json.load(config_file)
log.init()
#Se inicializa la base de datos
#Importando de database la conexión a la BD
database.init()
#Invoca al archivo de configuración
with open('./config/config_countries.json', 'r') as config_file:
config = json.load(config_file)
with open('./config/config_general.json', 'r') as config_file:
config_general = json.load(config_file)
srv_name = config["CONFIG"]["LOG_TAG"]
db_str = config["CONFIG"]["DB"]
max_return = config_general["CONFIG"]["MAX_RETURN"]
limite = config["CONFIG"]["LIMIT_PER_SECOND"]
api = Api(APP, version='1.0', title=srv_name,
description='getCountries de Callejero Predictivon'
'Conexión a BD:' + db_str + 'n'
'Cantidad máxima de invocaciones por segundo:' + limite)
ns = api.namespace('getCountry', description='getCountries de Callejero Predictivo')
md_respuesta = 'pais': fields.String(required=True, description='Agrupador de Paises'), 'list_pais': fields.Nested(fields.String)
@ns.route('/<string:country>')
@ns.response(200, 'Success')
@ns.response(404, 'Not found')
@ns.response(429, 'Too many request')
@ns.param('country', 'Introducir Cadena de Caracteres para el Pais')
class getCountryClass(Resource):
@ns.doc('getCountry')
@ns.marshal_list_with(md_respuesta)
def post(self, country):
try:
cur = database.db.cursor()
listOutput = cur.var(cx_Oracle.STRING)
cur.callproc('PREDICTIVO.get_pais', (country, max_return, listOutput))
except Exception as e:
database.init()
if database.db is not None:
log.err('Reconexion OK')
cur = database.db.cursor()
listOutput = cur.var(cx_Oracle.STRING)
cur.callproc('PREDICTIVO.get_pais', (country, max_return, listOutput))
else:
log.err('Sin conexion a la base de datos')
listOutput = None
return listOutput, 200
But when executing it, it generates the following error:
Running on http://127.0.0.1:5200/ (Press CTRL+C to quit)
127.0.0.1 - - [12/Nov/2018 15:52:21] "GET / HTTP/1.1" 200 -
Unable to render schema
Traceback (most recent call last):
File "C:Program FilesPython37libsite-packagesflask_restplusapi.py", line 483, in __schema__
self._schema = Swagger(self).as_dict()
File "C:Program FilesPython37libsite-packagesflask_restplusswagger.py", line 177, in as_dict
paths[extract_path(url)] = self.serialize_resource(ns, resource, url, kwargs)
File "C:Program FilesPython37libsite-packagesflask_restplusswagger.py", line 346, in serialize_resource
path[method] = self.serialize_operation(doc, method)
File "C:Program FilesPython37libsite-packagesflask_restplusswagger.py", line 352, in serialize_operation
'responses': self.responses_for(doc, method) or None,
File "C:Program FilesPython37libsite-packagesflask_restplusswagger.py", line 464, in responses_for
responses[code]['schema'] = self.serialize_schema(model)
File "C:Program FilesPython37libsite-packagesflask_restplusswagger.py", line 509, in serialize_schema
'items': self.serialize_schema(model),
File "C:Program FilesPython37libsite-packagesflask_restplusswagger.py", line 529, in serialize_schema
raise ValueError('Model 0 not registered'.format(model))
ValueError: Model 'pais': <flask_restplus.fields.String object at 0x00000189FFB94C88>, 'list_pais': <flask_restplus.fields.Nested object at 0x00000189FFB94F28> not registered
127.0.0.1 - - [12/Nov/2018 15:52:22] "GET /swagger.json HTTP/1.1" 500 -
and I can not find how to solve it.
Could someone give me clues to solve it?
Here the good versión in production without the swagger working
https://github.com/alemarchan/sources_predictivo_prod
python python-3.x python-2.7 flask swagger
add a comment |
I have an oracle procedure that when receiving some parameters, throw results in a string with JSON format like the following:
"list_pais": [ "pais":"URUGUAY","pais":"ARGENTINA","pais":"PARAGUAY","pais":"VENEZUELA"]
This procedure is invoked from a webservice in Python that I developed with FlaskResfutl to create the swagger and this is de code:
import cx_Oracle
import json
from app import APP
import log
import graypy
import database
from flask_restplus import Api, Resource, fields
with open('./config/config_countries.json', 'r') as config_file:
config = json.load(config_file)
log.init()
#Se inicializa la base de datos
#Importando de database la conexión a la BD
database.init()
#Invoca al archivo de configuración
with open('./config/config_countries.json', 'r') as config_file:
config = json.load(config_file)
with open('./config/config_general.json', 'r') as config_file:
config_general = json.load(config_file)
srv_name = config["CONFIG"]["LOG_TAG"]
db_str = config["CONFIG"]["DB"]
max_return = config_general["CONFIG"]["MAX_RETURN"]
limite = config["CONFIG"]["LIMIT_PER_SECOND"]
api = Api(APP, version='1.0', title=srv_name,
description='getCountries de Callejero Predictivon'
'Conexión a BD:' + db_str + 'n'
'Cantidad máxima de invocaciones por segundo:' + limite)
ns = api.namespace('getCountry', description='getCountries de Callejero Predictivo')
md_respuesta = 'pais': fields.String(required=True, description='Agrupador de Paises'), 'list_pais': fields.Nested(fields.String)
@ns.route('/<string:country>')
@ns.response(200, 'Success')
@ns.response(404, 'Not found')
@ns.response(429, 'Too many request')
@ns.param('country', 'Introducir Cadena de Caracteres para el Pais')
class getCountryClass(Resource):
@ns.doc('getCountry')
@ns.marshal_list_with(md_respuesta)
def post(self, country):
try:
cur = database.db.cursor()
listOutput = cur.var(cx_Oracle.STRING)
cur.callproc('PREDICTIVO.get_pais', (country, max_return, listOutput))
except Exception as e:
database.init()
if database.db is not None:
log.err('Reconexion OK')
cur = database.db.cursor()
listOutput = cur.var(cx_Oracle.STRING)
cur.callproc('PREDICTIVO.get_pais', (country, max_return, listOutput))
else:
log.err('Sin conexion a la base de datos')
listOutput = None
return listOutput, 200
But when executing it, it generates the following error:
Running on http://127.0.0.1:5200/ (Press CTRL+C to quit)
127.0.0.1 - - [12/Nov/2018 15:52:21] "GET / HTTP/1.1" 200 -
Unable to render schema
Traceback (most recent call last):
File "C:Program FilesPython37libsite-packagesflask_restplusapi.py", line 483, in __schema__
self._schema = Swagger(self).as_dict()
File "C:Program FilesPython37libsite-packagesflask_restplusswagger.py", line 177, in as_dict
paths[extract_path(url)] = self.serialize_resource(ns, resource, url, kwargs)
File "C:Program FilesPython37libsite-packagesflask_restplusswagger.py", line 346, in serialize_resource
path[method] = self.serialize_operation(doc, method)
File "C:Program FilesPython37libsite-packagesflask_restplusswagger.py", line 352, in serialize_operation
'responses': self.responses_for(doc, method) or None,
File "C:Program FilesPython37libsite-packagesflask_restplusswagger.py", line 464, in responses_for
responses[code]['schema'] = self.serialize_schema(model)
File "C:Program FilesPython37libsite-packagesflask_restplusswagger.py", line 509, in serialize_schema
'items': self.serialize_schema(model),
File "C:Program FilesPython37libsite-packagesflask_restplusswagger.py", line 529, in serialize_schema
raise ValueError('Model 0 not registered'.format(model))
ValueError: Model 'pais': <flask_restplus.fields.String object at 0x00000189FFB94C88>, 'list_pais': <flask_restplus.fields.Nested object at 0x00000189FFB94F28> not registered
127.0.0.1 - - [12/Nov/2018 15:52:22] "GET /swagger.json HTTP/1.1" 500 -
and I can not find how to solve it.
Could someone give me clues to solve it?
Here the good versión in production without the swagger working
https://github.com/alemarchan/sources_predictivo_prod
python python-3.x python-2.7 flask swagger
add a comment |
I have an oracle procedure that when receiving some parameters, throw results in a string with JSON format like the following:
"list_pais": [ "pais":"URUGUAY","pais":"ARGENTINA","pais":"PARAGUAY","pais":"VENEZUELA"]
This procedure is invoked from a webservice in Python that I developed with FlaskResfutl to create the swagger and this is de code:
import cx_Oracle
import json
from app import APP
import log
import graypy
import database
from flask_restplus import Api, Resource, fields
with open('./config/config_countries.json', 'r') as config_file:
config = json.load(config_file)
log.init()
#Se inicializa la base de datos
#Importando de database la conexión a la BD
database.init()
#Invoca al archivo de configuración
with open('./config/config_countries.json', 'r') as config_file:
config = json.load(config_file)
with open('./config/config_general.json', 'r') as config_file:
config_general = json.load(config_file)
srv_name = config["CONFIG"]["LOG_TAG"]
db_str = config["CONFIG"]["DB"]
max_return = config_general["CONFIG"]["MAX_RETURN"]
limite = config["CONFIG"]["LIMIT_PER_SECOND"]
api = Api(APP, version='1.0', title=srv_name,
description='getCountries de Callejero Predictivon'
'Conexión a BD:' + db_str + 'n'
'Cantidad máxima de invocaciones por segundo:' + limite)
ns = api.namespace('getCountry', description='getCountries de Callejero Predictivo')
md_respuesta = 'pais': fields.String(required=True, description='Agrupador de Paises'), 'list_pais': fields.Nested(fields.String)
@ns.route('/<string:country>')
@ns.response(200, 'Success')
@ns.response(404, 'Not found')
@ns.response(429, 'Too many request')
@ns.param('country', 'Introducir Cadena de Caracteres para el Pais')
class getCountryClass(Resource):
@ns.doc('getCountry')
@ns.marshal_list_with(md_respuesta)
def post(self, country):
try:
cur = database.db.cursor()
listOutput = cur.var(cx_Oracle.STRING)
cur.callproc('PREDICTIVO.get_pais', (country, max_return, listOutput))
except Exception as e:
database.init()
if database.db is not None:
log.err('Reconexion OK')
cur = database.db.cursor()
listOutput = cur.var(cx_Oracle.STRING)
cur.callproc('PREDICTIVO.get_pais', (country, max_return, listOutput))
else:
log.err('Sin conexion a la base de datos')
listOutput = None
return listOutput, 200
But when executing it, it generates the following error:
Running on http://127.0.0.1:5200/ (Press CTRL+C to quit)
127.0.0.1 - - [12/Nov/2018 15:52:21] "GET / HTTP/1.1" 200 -
Unable to render schema
Traceback (most recent call last):
File "C:Program FilesPython37libsite-packagesflask_restplusapi.py", line 483, in __schema__
self._schema = Swagger(self).as_dict()
File "C:Program FilesPython37libsite-packagesflask_restplusswagger.py", line 177, in as_dict
paths[extract_path(url)] = self.serialize_resource(ns, resource, url, kwargs)
File "C:Program FilesPython37libsite-packagesflask_restplusswagger.py", line 346, in serialize_resource
path[method] = self.serialize_operation(doc, method)
File "C:Program FilesPython37libsite-packagesflask_restplusswagger.py", line 352, in serialize_operation
'responses': self.responses_for(doc, method) or None,
File "C:Program FilesPython37libsite-packagesflask_restplusswagger.py", line 464, in responses_for
responses[code]['schema'] = self.serialize_schema(model)
File "C:Program FilesPython37libsite-packagesflask_restplusswagger.py", line 509, in serialize_schema
'items': self.serialize_schema(model),
File "C:Program FilesPython37libsite-packagesflask_restplusswagger.py", line 529, in serialize_schema
raise ValueError('Model 0 not registered'.format(model))
ValueError: Model 'pais': <flask_restplus.fields.String object at 0x00000189FFB94C88>, 'list_pais': <flask_restplus.fields.Nested object at 0x00000189FFB94F28> not registered
127.0.0.1 - - [12/Nov/2018 15:52:22] "GET /swagger.json HTTP/1.1" 500 -
and I can not find how to solve it.
Could someone give me clues to solve it?
Here the good versión in production without the swagger working
https://github.com/alemarchan/sources_predictivo_prod
python python-3.x python-2.7 flask swagger
I have an oracle procedure that when receiving some parameters, throw results in a string with JSON format like the following:
"list_pais": [ "pais":"URUGUAY","pais":"ARGENTINA","pais":"PARAGUAY","pais":"VENEZUELA"]
This procedure is invoked from a webservice in Python that I developed with FlaskResfutl to create the swagger and this is de code:
import cx_Oracle
import json
from app import APP
import log
import graypy
import database
from flask_restplus import Api, Resource, fields
with open('./config/config_countries.json', 'r') as config_file:
config = json.load(config_file)
log.init()
#Se inicializa la base de datos
#Importando de database la conexión a la BD
database.init()
#Invoca al archivo de configuración
with open('./config/config_countries.json', 'r') as config_file:
config = json.load(config_file)
with open('./config/config_general.json', 'r') as config_file:
config_general = json.load(config_file)
srv_name = config["CONFIG"]["LOG_TAG"]
db_str = config["CONFIG"]["DB"]
max_return = config_general["CONFIG"]["MAX_RETURN"]
limite = config["CONFIG"]["LIMIT_PER_SECOND"]
api = Api(APP, version='1.0', title=srv_name,
description='getCountries de Callejero Predictivon'
'Conexión a BD:' + db_str + 'n'
'Cantidad máxima de invocaciones por segundo:' + limite)
ns = api.namespace('getCountry', description='getCountries de Callejero Predictivo')
md_respuesta = 'pais': fields.String(required=True, description='Agrupador de Paises'), 'list_pais': fields.Nested(fields.String)
@ns.route('/<string:country>')
@ns.response(200, 'Success')
@ns.response(404, 'Not found')
@ns.response(429, 'Too many request')
@ns.param('country', 'Introducir Cadena de Caracteres para el Pais')
class getCountryClass(Resource):
@ns.doc('getCountry')
@ns.marshal_list_with(md_respuesta)
def post(self, country):
try:
cur = database.db.cursor()
listOutput = cur.var(cx_Oracle.STRING)
cur.callproc('PREDICTIVO.get_pais', (country, max_return, listOutput))
except Exception as e:
database.init()
if database.db is not None:
log.err('Reconexion OK')
cur = database.db.cursor()
listOutput = cur.var(cx_Oracle.STRING)
cur.callproc('PREDICTIVO.get_pais', (country, max_return, listOutput))
else:
log.err('Sin conexion a la base de datos')
listOutput = None
return listOutput, 200
But when executing it, it generates the following error:
Running on http://127.0.0.1:5200/ (Press CTRL+C to quit)
127.0.0.1 - - [12/Nov/2018 15:52:21] "GET / HTTP/1.1" 200 -
Unable to render schema
Traceback (most recent call last):
File "C:Program FilesPython37libsite-packagesflask_restplusapi.py", line 483, in __schema__
self._schema = Swagger(self).as_dict()
File "C:Program FilesPython37libsite-packagesflask_restplusswagger.py", line 177, in as_dict
paths[extract_path(url)] = self.serialize_resource(ns, resource, url, kwargs)
File "C:Program FilesPython37libsite-packagesflask_restplusswagger.py", line 346, in serialize_resource
path[method] = self.serialize_operation(doc, method)
File "C:Program FilesPython37libsite-packagesflask_restplusswagger.py", line 352, in serialize_operation
'responses': self.responses_for(doc, method) or None,
File "C:Program FilesPython37libsite-packagesflask_restplusswagger.py", line 464, in responses_for
responses[code]['schema'] = self.serialize_schema(model)
File "C:Program FilesPython37libsite-packagesflask_restplusswagger.py", line 509, in serialize_schema
'items': self.serialize_schema(model),
File "C:Program FilesPython37libsite-packagesflask_restplusswagger.py", line 529, in serialize_schema
raise ValueError('Model 0 not registered'.format(model))
ValueError: Model 'pais': <flask_restplus.fields.String object at 0x00000189FFB94C88>, 'list_pais': <flask_restplus.fields.Nested object at 0x00000189FFB94F28> not registered
127.0.0.1 - - [12/Nov/2018 15:52:22] "GET /swagger.json HTTP/1.1" 500 -
and I can not find how to solve it.
Could someone give me clues to solve it?
Here the good versión in production without the swagger working
https://github.com/alemarchan/sources_predictivo_prod
python python-3.x python-2.7 flask swagger
python python-3.x python-2.7 flask swagger
edited Nov 22 '18 at 19:15
asked Nov 12 '18 at 19:17
alemarchan
558
558
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
Looking at https://flask-restplus.readthedocs.io/en/stable/_modules/flask_restplus/swagger.html and https://flask-restplus.readthedocs.io/en/stable/quickstart.html
The registered model can't be a dict, you need a model, try to replace
md_respuesta = 'pais': fields.String(required=True, description='Agrupador de Paises'), 'list_pais': fields.Nested(fields.String)
by
md_respuesta = api.model('Pais', 'pais': fields.String(required=True, description='Agrupador de Paises'), 'list_pais': fields.Nested(fields.String))
Thanks Geckos. I try to do this, but dont work :(
– alemarchan
Nov 26 '18 at 20:30
Does it gives you the same error?
– geckos
Nov 27 '18 at 11:39
in the swagger appear again "No operations defined in spec!". I do not know what to do ;-(
– alemarchan
Nov 27 '18 at 12:25
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53268702%2fpython-swagger-trouble%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Looking at https://flask-restplus.readthedocs.io/en/stable/_modules/flask_restplus/swagger.html and https://flask-restplus.readthedocs.io/en/stable/quickstart.html
The registered model can't be a dict, you need a model, try to replace
md_respuesta = 'pais': fields.String(required=True, description='Agrupador de Paises'), 'list_pais': fields.Nested(fields.String)
by
md_respuesta = api.model('Pais', 'pais': fields.String(required=True, description='Agrupador de Paises'), 'list_pais': fields.Nested(fields.String))
Thanks Geckos. I try to do this, but dont work :(
– alemarchan
Nov 26 '18 at 20:30
Does it gives you the same error?
– geckos
Nov 27 '18 at 11:39
in the swagger appear again "No operations defined in spec!". I do not know what to do ;-(
– alemarchan
Nov 27 '18 at 12:25
add a comment |
Looking at https://flask-restplus.readthedocs.io/en/stable/_modules/flask_restplus/swagger.html and https://flask-restplus.readthedocs.io/en/stable/quickstart.html
The registered model can't be a dict, you need a model, try to replace
md_respuesta = 'pais': fields.String(required=True, description='Agrupador de Paises'), 'list_pais': fields.Nested(fields.String)
by
md_respuesta = api.model('Pais', 'pais': fields.String(required=True, description='Agrupador de Paises'), 'list_pais': fields.Nested(fields.String))
Thanks Geckos. I try to do this, but dont work :(
– alemarchan
Nov 26 '18 at 20:30
Does it gives you the same error?
– geckos
Nov 27 '18 at 11:39
in the swagger appear again "No operations defined in spec!". I do not know what to do ;-(
– alemarchan
Nov 27 '18 at 12:25
add a comment |
Looking at https://flask-restplus.readthedocs.io/en/stable/_modules/flask_restplus/swagger.html and https://flask-restplus.readthedocs.io/en/stable/quickstart.html
The registered model can't be a dict, you need a model, try to replace
md_respuesta = 'pais': fields.String(required=True, description='Agrupador de Paises'), 'list_pais': fields.Nested(fields.String)
by
md_respuesta = api.model('Pais', 'pais': fields.String(required=True, description='Agrupador de Paises'), 'list_pais': fields.Nested(fields.String))
Looking at https://flask-restplus.readthedocs.io/en/stable/_modules/flask_restplus/swagger.html and https://flask-restplus.readthedocs.io/en/stable/quickstart.html
The registered model can't be a dict, you need a model, try to replace
md_respuesta = 'pais': fields.String(required=True, description='Agrupador de Paises'), 'list_pais': fields.Nested(fields.String)
by
md_respuesta = api.model('Pais', 'pais': fields.String(required=True, description='Agrupador de Paises'), 'list_pais': fields.Nested(fields.String))
answered Nov 22 '18 at 19:38
geckos
797615
797615
Thanks Geckos. I try to do this, but dont work :(
– alemarchan
Nov 26 '18 at 20:30
Does it gives you the same error?
– geckos
Nov 27 '18 at 11:39
in the swagger appear again "No operations defined in spec!". I do not know what to do ;-(
– alemarchan
Nov 27 '18 at 12:25
add a comment |
Thanks Geckos. I try to do this, but dont work :(
– alemarchan
Nov 26 '18 at 20:30
Does it gives you the same error?
– geckos
Nov 27 '18 at 11:39
in the swagger appear again "No operations defined in spec!". I do not know what to do ;-(
– alemarchan
Nov 27 '18 at 12:25
Thanks Geckos. I try to do this, but dont work :(
– alemarchan
Nov 26 '18 at 20:30
Thanks Geckos. I try to do this, but dont work :(
– alemarchan
Nov 26 '18 at 20:30
Does it gives you the same error?
– geckos
Nov 27 '18 at 11:39
Does it gives you the same error?
– geckos
Nov 27 '18 at 11:39
in the swagger appear again "No operations defined in spec!". I do not know what to do ;-(
– alemarchan
Nov 27 '18 at 12:25
in the swagger appear again "No operations defined in spec!". I do not know what to do ;-(
– alemarchan
Nov 27 '18 at 12:25
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53268702%2fpython-swagger-trouble%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown