marshmallow-sqlalchemy icon indicating copy to clipboard operation
marshmallow-sqlalchemy copied to clipboard

sqlalchemy field type JSON apparently treated as String instead of Raw

Open mirko opened this issue 5 years ago • 0 comments

When trying to load JSON data where a field contains (nested) JSON data and the SQLAlchemry field type is JSON, I get a ValidationError saying marshmallow.exceptions.ValidationError: {'defaults': ['Not a valid string.']} while I would have expected it being accepted and converted to marshmallow field type Raw instead of String.

mirko avatar Nov 10 '19 00:11 mirko