Skip to content

Commit 139b600

Browse files
committed
fix bug introduced in last commit
1 parent 062dc01 commit 139b600

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/spec_tools/json_schema.cljc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,8 @@
197197
(throw
198198
(ex-info "unsupported key-group expression" {:expression (first x)})))
199199
v (mapv (partial parse-required1 name-fn) (next x))]
200-
{k (if (every? :required v)
200+
{k (if (and (= k :allOf)
201+
(every? :required v))
201202
[{:required (into [] (mapcat :required) v)}]
202203
v)})
203204
{:required [(name-fn x)]}))

0 commit comments

Comments
 (0)