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
The Santiy Studio has a copy-paste feature for array members. But this doesn't work for anonymous objects, as described in sanity-io/sanity#7607. And this problem occurs when trying to paste a cloudinary.asset field defined as an array member.
It seems like this could be due to some fields in the asset object are anonymous, such as: context, metadata and derived (they don't have the _type attribute)
To Reproduce
Steps to reproduce the behavior:
Create a document schema with an array field of type cloudinary.asset:
Describe the bug
The Santiy Studio has a copy-paste feature for array members. But this doesn't work for anonymous objects, as described in sanity-io/sanity#7607. And this problem occurs when trying to paste a
cloudinary.asset
field defined as an array member.It seems like this could be due to some fields in the
asset
object are anonymous, such as:context
,metadata
andderived
(they don't have the_type
attribute)To Reproduce
Steps to reproduce the behavior:
cloudinary.asset
:Value of type "object" is not allowed in this array field
Expected behavior
Pasting the item should work without any error.
Which versions of Sanity are you using?
Using
"sanity-plugin-cloudinary": 1.1.5
What operating system are you using?
macOS 15.1.1
Which versions of Node.js / npm are you running?
node v22.11.0
pnpm v9.15.4
The text was updated successfully, but these errors were encountered: