But with this when I load the swagger URL in browser , i get error in the command line:
Unable to render schema
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/flask_restx/api.py", line 571, in __schema__
self._schema = Swagger(self).as_dict()
File "/usr/local/lib/python3.8/site-packages/flask_restx/swagger.py", line 268, in as_dict
"definitions": self.serialize_definitions() or None,
File "/usr/local/lib/python3.8/site-packages/flask_restx/swagger.py", line 623, in serialize_definitions
return dict(
File "/usr/local/lib/python3.8/site-packages/flask_restx/swagger.py", line 624, in <genexpr>
(name, model.__schema__)
File "/usr/local/lib/python3.8/site-packages/flask_restx/model.py", line 76, in __schema__
schema = self._schema
File "/usr/local/lib/python3.8/site-packages/flask_restx/model.py", line 159, in _schema
properties[name] = field.__schema__
AttributeError: 'dict' object has no attribute '__schema__'
I have tried checking the documentaion of flask_restx for any sample example usage. But could not find any. Please help regarding the same
Im using flask_restx for swagger API's. The versions are as follows:
The following is the nested json I need to specify the schema for:
But with this when I load the swagger URL in browser , i get error in the command line:
I have tried checking the documentaion of flask_restx for any sample example usage. But could not find any. Please help regarding the same