We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5869bf7 commit d4747a6Copy full SHA for d4747a6
1 file changed
src/xapi_schema/spec.cljc
@@ -1326,8 +1326,13 @@
1326
(some-> s :statement/object :statement-ref/objectType)
1327
true)))))
1328
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
1334
(s/def ::statements
- (s/coll-of ::statement :into [] :min-count 1))
1335
+ (s/coll-of ::statement :into []))
1336
1337
(s/def ::lrs-statements
1338
(s/coll-of ::lrs-statement :into [] :min-count 1))
0 commit comments