File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1616/resources /public /xapi_schema.js
1717.specljs-timestamp
1818/.cpcache
19+ /.calva
20+ /.clj-kondo
21+ /.lsp
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ You can use xapi-schema to validate (and generate) statements in real-time [[htt
1515** Getting Started
16161. Add to your project dependencies:
1717 #+BEGIN_SRC clojure
18- [[com.yetanalytics/xapi-schema "1.2.1 "]]
18+ [[com.yetanalytics/xapi-schema "1.3.0 "]]
1919 #+END_SRC
20202. Require in your project:
2121 #+BEGIN_SRC clojure
Original file line number Diff line number Diff line change 106106(s/def ::language-map
107107 (s/map-of ::language-tag
108108 ::language-map-text
109- :gen-max 3
110- ; ; Technically, empty language maps are allowed under the xAPI spec.
111- ; ; However, they are nonsensical in most contexts and will not
112- ; ; work in downstream libs (e.g those that use DynamoDB).
113- :min-count 1 ))
109+ :gen-max 3 ))
114110
115111
116112(defn into-str [cs]
Original file line number Diff line number Diff line change 4040 {" en-US" " foo" }
4141 {" es" " hola mundo" }
4242 {" zh-cmn" " 你好世界" }
43+ {} ; empty lang maps are allowed by spec
4344 :bad
4445 {" hey there" " foo" }
45- {" en" 2 }
46- ; ; We do not allow for empty maps (despite technically
47- ; ; being spec-conformant)
48- {})))
46+ {" en" 2 })))
4947
5048(deftest iri-test
5149 (testing " must be a valid url with scheme"
You can’t perform that action at this time.
0 commit comments