Skip to content

Commit 0840d28

Browse files
committed
fix relevant test
1 parent 2cad49c commit 0840d28

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

test/cljc/spec_tools/json_schema_test.cljc

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -90,14 +90,14 @@
9090
"c" {:type "string"}
9191
"d" {:type "string"}
9292
"e" {:type "string"}}
93-
:required ["spec-tools.json-schema-test/a"
94-
"spec-tools.json-schema-test/b"
95-
"spec-tools.json-schema-test/c"
96-
"spec-tools.json-schema-test/d"
97-
"a"
98-
"b"
99-
"c"
100-
"d"]}))
93+
:allOf [{:required ["spec-tools.json-schema-test/a"]}
94+
{:anyOf [{:required ["spec-tools.json-schema-test/b"]}
95+
{:allOf [{:required ["spec-tools.json-schema-test/c"]}
96+
{:required ["spec-tools.json-schema-test/d"]}]}]}
97+
{:required ["a"]}
98+
{:anyOf [{:required ["b"]}
99+
{:allOf [{:required ["c"]}
100+
{:required ["d"]}]}]}]}))
101101
(is (= (jsc/transform ::keys-no-req)
102102
{:type "object"
103103
:title "spec-tools.json-schema-test/keys-no-req"

0 commit comments

Comments
 (0)