                                         :baz "30s"})))))
 
   (testing "partial conversion"
-    (let [schema {:foo s/String
-                  :bar s/Int
+    (let [schema {:foo String
+                  :bar Number
                   :baz Period}
           result {:foo "foo"
                   :bar 10

                                        :baz "30s"})))))

  (testing "conversion with an optional and a maybe"
    (let [schema {:foo s/String
                  :bar s/Int
                  (s/optional-key :baz) (s/maybe Period)}
          result {:foo "foo"
                  :bar 10

             :foo-2 "baz"})))))

(deftest defaulted-data-test
  (let [schema {:foo Number
                (s/optional-key :foo-1) (defaulted-maybe Number 1)
                (s/required-key :bar) Number
                (s/optional-key :baz-2) (defaulted-maybe String "bar-2")
                (s/optional-key :baz) (defaulted-maybe String "baz")}]

    (testing "all defaulted"
      (is (= {:foo-1 1
