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
Some properties return Decimal objects which is an arbitrary-precision representation.
The problem is that this is not serializable to most formats without converting to a string or float.
Currently bfabric_read.py for instance will fail to print a JSON document if there is a single Decimal object in the response.
but will need to be considered later whether it is really appropriate. If we retain the Decimal we should define serialization etc. to be aware of this type.
The text was updated successfully, but these errors were encountered:
By now I think it would be best to persist them as string. Applications requiring the value will decide how to convert it, and can rely on libraries like pydantic for this purpose.
Some properties return
Decimal
objects which is an arbitrary-precision representation.The problem is that this is not serializable to most formats without converting to a string or float.
Currently
bfabric_read.py
for instance will fail to print a JSON document if there is a singleDecimal
object in the response.A simple fix would be to add a clause
but will need to be considered later whether it is really appropriate. If we retain the
Decimal
we should define serialization etc. to be aware of this type.The text was updated successfully, but these errors were encountered: