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
To deal with common cases, we added a new [Default] extended attribute which triggers the default toJSON operation that behaves similarly to how serializers={attributes} or serializers={attributes, inherit} used to. That is, it serializes all attributes that are of a JSON type into a vanilla JSON object.
It seems the following interfaces in this spec are impacted by this change:
Hi!
We recently deprecated WebIDL serializers. You can now directly specify toJSON operations instead, which you previously weren't allowed to do.
To deal with common cases, we added a new [Default] extended attribute which triggers the default toJSON operation that behaves similarly to how
serializers={attributes}
orserializers={attributes, inherit}
used to. That is, it serializes all attributes that are of a JSON type into a vanilla JSON object.It seems the following interfaces in this spec are impacted by this change:
PaymentAddress
PaymentResponse
Both seem to be good candidate for the default toJSON operation. The below should be all you need:
I'm sorry for the inconvenience this causes, but our hope is that this ultimately makes things a lot simpler and clearer for everybody.
Please feel free to reach out if you have any questions.
Thanks!
The text was updated successfully, but these errors were encountered: