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 id field is marked as required for the /collections/{collection_id}/items POST, but even the example in the schema definition doesn't have the id set, an my understanding is that id is assigned by WebFlow, not user.
That again has implications for the webflow js library.
The text was updated successfully, but these errors were encountered:
Hey @p2004a - thanks for raising. While the schema has id marked as required here, the property should have a readOnly attribute so that it isn't required on creation, and the latest version of the SDK should reflect this. Are you seeing otherwise?
You are totally right @zplata! I've missed the readOnly attribute. So it looks like it's a bug on the js SDK side and not spec as createItem takes CollectionItem that is fully shared between read and write paths, requiring (and allowing) the same fields.
The
id
field is marked as required for the/collections/{collection_id}/items
POST, but even the example in the schema definition doesn't have theid
set, an my understanding is thatid
is assigned by WebFlow, not user.That again has implications for the webflow js library.
The text was updated successfully, but these errors were encountered: