You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But looks like ma.SQLAlchemyAutoSchema treat PickleType column as string so if I do schema.load(json_data) it will say coords is not a valid string.
I use some trick like str(json_data(coords) before schema.load(json_data) and eval(json_data(coords) after. But when I do schema.dump(model), it will still convert coords to string. And I have to eval it again.
Is there better way to to integrate with PickleType? Or is there any way to skip the validation for specific column.
The text was updated successfully, but these errors were encountered:
I want to pass a list to the schema which uses SQLAlchemy's
PickleType
column.The json file will looks like this:
But looks like
ma.SQLAlchemyAutoSchema
treatPickleType
column as string so if I doschema.load(json_data)
it will saycoords
isnot a valid string
.I use some trick like
str(json_data(coords)
beforeschema.load(json_data)
andeval(json_data(coords)
after. But when I doschema.dump(model)
, it will still convertcoords
to string. And I have toeval
it again.Is there better way to to integrate with PickleType? Or is there any way to skip the validation for specific column.
The text was updated successfully, but these errors were encountered: