@lotics/app-sdk 0.52.2 → 0.52.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/docs/mutations.md +5 -0
- package/package.json +1 -1
package/docs/mutations.md
CHANGED
|
@@ -199,6 +199,11 @@ When the alias declares `inputs`, the server validates the payload before the wo
|
|
|
199
199
|
is treated as *omitted* (HTML form controls emit `""` for "left blank"). Nested optional
|
|
200
200
|
object fields are plain-optional: omit the key. A required `text` input does accept `""` —
|
|
201
201
|
emptiness is not a type error; validate non-emptiness in the workflow body if it matters.
|
|
202
|
+
- **Required reference inputs reject empty** — a required `record_link` / `member` / `file`
|
|
203
|
+
must resolve to at least one real id: the single form rejects `""`, and the multi form
|
|
204
|
+
rejects `[]` (an empty array is the multi-analog of an empty value — it would otherwise slip
|
|
205
|
+
past both the required check and the reference bindings below and write an empty link). Make
|
|
206
|
+
the input `required: false` if "attach nothing" is valid; then `""` omits and `[]` clears.
|
|
202
207
|
- **Server-side reference bindings** — every `record_link` id must reference an existing
|
|
203
208
|
record in its declared `table_id`; every group-scoped `member` id must belong to the
|
|
204
209
|
declared group; every `file` id must live in the app's workspace. These are real write-time
|