Skip to content

Commit 11a0233

Browse files
committed
Fix: forgotten malli schema for the new http-kit api.
1 parent 212acf6 commit 11a0233

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
(ns starfederation.datastar.clojure.adapter.http-kit2-schemas
2+
(:require
3+
[malli.core :as m]
4+
[malli.util :as mu]
5+
[starfederation.datastar.clojure.adapter.common :as ac]
6+
[starfederation.datastar.clojure.adapter.http-kit2]
7+
[starfederation.datastar.clojure.adapter.common-schemas :as cs]))
8+
9+
10+
(def options-schema
11+
(mu/update-in cs/->sse-response-options-schema
12+
[ac/write-profile]
13+
(fn [x]
14+
(mu/optional-keys x [ac/wrap-output-stream]))))
15+
16+
17+
(m/=> starfederation.datastar.clojure.adapter.http-kit2/->sse-response
18+
[:-> :map options-schema :any])
19+

0 commit comments

Comments
 (0)