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
>>>cbrrr.encode_dag_cbor({"$bytes": "aa", "abc": "def"}, atjson_mode=True)
b'\xa2cabccdeff$bytesbaa'# should raise exception, not valid under atproto data model>>>cbrrr.decode_dag_cbor(cbrrr.encode_dag_cbor({"$bytes": False}), atjson_mode=True)
{'$bytes': False} # should raise exception during decode, not valid under atproto data model
(same for $link)
The text was updated successfully, but these errors were encountered:
I like having the ability to work with "weird" objects, for testing/edge-case-poking purposes. I might introduce a new mode, atjson_mode="strict", which forbids these things. It can also forbid floats.
Or maybe atjson_mode="sloppy" can retain the looser behaviour, with atjson_mode=True being maximally strict.
Current behaviours:
(same for
$link
)The text was updated successfully, but these errors were encountered: