Open p2004a opened 4 days ago
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.