 
 (def UserUsageInPool
   "Schema for a user's usage within a particular pool."
-  {:total_usage UsageInfo
+  {(s/optional-key :total_usage) UsageInfo
    (s/optional-key :grouped) [{:group UsageGroupInfo, :usage UsageInfo}]
    (s/optional-key :ungrouped) JobsUsageResponse})
 

            [compojure.api.middleware :as c-mw]
            [compojure.api.sweet :as c-api]
            [compojure.core :refer [ANY GET POST routes]]
            [cook.compute-cluster :as cc]
            [cook.config :as config]
            [cook.datomic :as datomic]

  "Schema for a usage response."
  (assoc UserUsageInPool
    (s/optional-key :pools) {s/Str UserUsageInPool}))

(def UsageResponse
  "Schema for a usage response."
  (assoc UserUsageResponse
    (s/optional-key :users) {s/Str UserUsageResponse}))

(def zero-usage
  "Resource usage map 'zero' value"
