Skip to content

Commit d4747a6

Browse files
committed
Allow empty statement batches
1 parent 5869bf7 commit d4747a6

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

src/xapi_schema/spec.cljc

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1326,8 +1326,13 @@
13261326
(some-> s :statement/object :statement-ref/objectType)
13271327
true)))))
13281328

1329+
;; Statement batches in general, e.g. when being inserted into an LRS, should
1330+
;; allow empty arrays.
1331+
1332+
;; Statement batches being retrieved from an LRS should always be non-emtpy.
1333+
13291334
(s/def ::statements
1330-
(s/coll-of ::statement :into [] :min-count 1))
1335+
(s/coll-of ::statement :into []))
13311336

13321337
(s/def ::lrs-statements
13331338
(s/coll-of ::lrs-statement :into [] :min-count 1))

0 commit comments

Comments
 (0)