profile = "fetch-current-comic@0.0"
provider = "xkcd"
variant = "generated"

map FetchCurrentComic {
  http GET "/info.0.json" {
    response 200 "application/json" {
      map result {
        alt = body.alt
        day = body.day
        img = body.img
        link = body.link
        month = body.month
        news = body.news
        num = body.num
        safeTitle = body.safe_title
        title = body.title
        transcript = body.transcript
        year = body.year
      }
    }
  }
}