Metadata-Version: 2.1
Name: flask-errors-as-nested-dicts
Version: 0.0.1
Summary: Changes standard flask and jwt errors format
Home-page: https://github.com/rabizao/flask-errors-as-nested-dicts
Author: Rafael A. Bizao
Author-email: rabizao@gmail.com
License: UNKNOWN
Project-URL: Bug Tracker, https://github.com/rabizao/flask-errors-as-nested-dicts/issues
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown

# Flask Errors as Nested Dicts
This extension was developed for personal use and changes standard flask and jwt response errors to nested dicts, i. e.


```javascript
{
  "code": 404,
  "status": "Not Found"
}
```

to:

```javascript
{
  "errors": {
    "json": {
      "url": [
        "Does not exist."
      ]
    }
  }
}
```

Installing
----------

Install and update using pip:

```bash
$ pip install flask-errors-as-nested-dicts
```

Usage
----------------

```python
from flask import Flask
from flask_jwt_extended import JWTManager

app = Flask(__name__)
jwt = JWTManager(app)
ErrorsAsNestedDicts(app, jwt)

```

