             (merge {:method method :path k}
                    (keywordize-keys attributes))))))))
 
-(defn load-swagger [path-to-file]
-  (yml/from-file path-to-file false))
-
 (defn parse-swagger
   "Load a swagger specification from file path and convert it into 
    a sane/traversable format making it easier to work with"

            [cheshire.core :as json]
            [swagger-gen.util :refer [normalize-def]]
            [yaml.core :as yml]))

(defn- get-section
  [spec section]

  (let [data (load-swagger path-to-swagger)]
    {:paths (swagger-paths data)
     :definitions (swagger-defs data)}))
