diff --git a/src/xapi_schema/spec.cljc b/src/xapi_schema/spec.cljc index 1fd996e..05c351f 100644 --- a/src/xapi_schema/spec.cljc +++ b/src/xapi_schema/spec.cljc @@ -1327,7 +1327,7 @@ true))))) (s/def ::statements - (s/coll-of ::statement :into [] :min-count 1)) + (s/coll-of ::statement :into [])) (s/def ::lrs-statements - (s/coll-of ::lrs-statement :into [] :min-count 1)) + (s/coll-of ::lrs-statement :into [])) diff --git a/test/xapi_schema/spec_test.cljc b/test/xapi_schema/spec_test.cljc index 3bb546d..b7d6e12 100644 --- a/test/xapi_schema/spec_test.cljc +++ b/test/xapi_schema/spec_test.cljc @@ -626,3 +626,14 @@ "verb" {"id" "http://adlnet.gov/expapi/verbs/voided" "display" {"en-US" "voided"}} "object" {"id" "http://example.com/activities/1"}}))) + +(deftest statements-test + (testing "generic statememt batch" + (should-satisfy+ ::xs/statements + [simple-statement] + [simple-statement long-statement] + [])) + (testing "LRS retrieval statement batch" + (should-satisfy+ ::xs/lrs-statements + [d/statement] ; This statement has ID and other required fields + [])))