             [io.aviso.toolchest.collections :refer [pretty-print]]
             [io.aviso.tracker :as t])
   (:import [schema.core EnumSchema Maybe]
-           [io.aviso.rook.schema IsInstance]))
+           [io.aviso.rook.schema IsInstance]
+           [clojure.lang IPersistentMap IPersistentVector]))
 
 (defn- remove-nil-vals
   [m]


  IsInstance
  (convert-schema [schema swagger-options swagger-object]
    (simple->swagger-schema  swagger-options swagger-object (unwrap-schema schema))))

(defn- simple->swagger-schema
  "Converts a simple (non-object) Schema into an inline Swagger Schema, with keys :type and perhaps :format, etc."

  Object
  (convert-schema [schema _ _]
    (throw (ex-info "Unable to convert schema to Swagger."
                    {:schema-class (type schema)
                     :schema       schema})))

  EnumSchema
  (convert-schema [schema _ swagger-object]
