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 }}
Repository navigation
metadata api: Signed.expires string representation should not contain microseconds #1678
Good point! I guess, I'm fine either way. Losing (negligible) precision during serialisation doesn't seem like a big deal, and I don't think there is a realistic use case where this leads to unexpected behaviour. But yes, erroring seems safer.
Regardless, I'm all for providing the convenience setter you propose.
OTOH, I'm a little bit reserved about changing the signature of init, i.e. s/expires/expires_in/, because I think the Metadata class should look as much like the spec as possible. But I won't insist here either.
Activity
jku commentedon Nov 16, 2021
yeah this is definitely not ideal. I suppose there are two options:
In both cases we could also:
these steps would make it easier for Metadata to not be in a state where it doesn't quite match the form it gets serialized into...
lukpueh commentedon Nov 17, 2021
Good point! I guess, I'm fine either way. Losing (negligible) precision during serialisation doesn't seem like a big deal, and I don't think there is a realistic use case where this leads to unexpected behaviour. But yes, erroring seems safer.
Regardless, I'm all for providing the convenience setter you propose.
OTOH, I'm a little bit reserved about changing the signature of init, i.e. s/expires/expires_in/, because I think the
Metadataclass should look as much like the spec as possible. But I won't insist here either.ivanayov commentedon Dec 3, 2021
Can I take this please?
Remove miscroseconds from metadata API Signed.expires
Remove miscroseconds from metadata API Signed.expires
Remove miscroseconds from metadata API Signed.expires
Remove miscroseconds from metadata API Signed.expires
Remove miscroseconds from metadata API Signed.expires
Remove miscroseconds from metadata API Signed.expires
Remove miscroseconds from metadata API Signed.expires