inveniosoftware / flask-resources

REST APIs for Flask
https://flask-resources.readthedocs.io
MIT License
3 stars 21 forks source link

context: context should be updated in the view not the loader #38

Closed ppanero closed 4 years ago

ppanero commented 4 years ago

The values of the context should be updated in the view, not assigned in the loaders...

e.g.:

resource_requestctx.update(request_loader.load_item_request(data=False))

While load_item_request will return a dict, whose keys are the attributes that will be updated in the context.