openknowledge-archive / dpr-api

DEPRECATED - Data Package Registry API and Frontend
http://frictionlessdata.io/
MIT License
7 stars 6 forks source link

Use marshmallow for Serialization and deserialization in logic #376

Closed zelima closed 7 years ago

zelima commented 7 years ago

Serialization and deserialization of sqlalchemy objects for use in the API and UI are being done in our own bespoke (custom) manner. There are standard libraries that do this like marshmallow and we should use them.

Plan: Use marshmallow (and marshmallow-flask in logic / controller layer for serialization and deserialization. Replaces hand-rolled current work spread around controllers and in site.models.Packaged. Why? Standard, well-developed library for doing this.

Acceptance criteria

Tasks

zelima commented 7 years ago

This one needs big refactor so moving to next milestone - Did not fit in time

zelima commented 7 years ago

FIXED