We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 822e66b commit 4164f95Copy full SHA for 4164f95
1 file changed
src/xapi_schema/spec.cljc
@@ -812,17 +812,17 @@
812
(-> scores
813
(assoc :score/min raw)
814
(assoc :score/raw min))
815
-
+
816
(and min max (< max min))
817
818
(assoc :score/min max)
819
(assoc :score/max min))
820
821
(and raw max (< max raw))
822
823
(assoc :score/raw max)
824
(assoc :score/max raw))
825
826
:else
827
scores))
828
@@ -1375,8 +1375,11 @@
1375
(defn unique-statement-ids?
1376
"Spec predicate to ensure that the IDs of a list of statements are unique."
1377
[statements]
1378
- (or (reduce distinct? (map #(get % "id") statements))
1379
- ::s/invalid))
+ (or
+ (empty? statements)
1380
+ (reduce distinct?
1381
+ (map #(get % "id") statements))
1382
+ ::s/invalid))
1383
1384
(s/def ::statements
1385
(s/and
0 commit comments