module PivotalTrackerApi.Label
    ( Label
    , kind
    , name
    , updated_at
    , project_id
    , created_at
    , PivotalTrackerApi.Label.id
    ) where

import PivotalTrackerApi.Base

data Label = Label
             { _kind :: Text
             , _name :: Text
             , _updated_at :: Text
             , _project_id :: Double
             , _created_at :: Text
             , _id :: Double
             } deriving (Show, Generic)

makeLenses ''Label

instance FromJSON Label where
  parseJSON = genericParseJSON defaultOptions{fieldLabelModifier = drop 1}
