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
{{ message }}
This repository was archived by the owner on Dec 25, 2023. It is now read-only.
Not sure if this is intended behavior but, when migrating from ext.db to ndb, we have models that use a custom JSON property that ends up saving data as a TextProperty.
So, attempting to migrate to ndb and seeing there's a native JsonProperty, that seems like a good decision. In practice, empty values are returned as string.
That ends up trying to essentially run json.loads('') which of course ends up with a ValueError
I've resorted to copying the JsonProperty from the model into my custom properties, and adjusting the _from_base_type method to have: if value == '': return None before the try block.
Curious if there's a better solution here, maybe the API can be updated to include this?