Created
July 26, 2017 08:56
-
-
Save antoniogarrote/faaf1f1bac53f1f1484a6671fa149e51 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(deftest error-1 | |
(let [input {"Foo" {:properties {:id "string"}} | |
"Foos" "Foo[]"} | |
expanded (expanded-form "Foos" input) | |
canonical (canonical-form expanded)] | |
(is (= canonical | |
{:type "array", | |
:items | |
{:properties {"id" {:type "string", :required true}}, | |
:additionalProperties true, | |
:type "object"}})))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment