bug-guix
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#45615: SWH API break?


From: zimoun
Subject: bug#45615: SWH API break?
Date: Thu, 7 Jan 2021 16:41:46 +0100

Hi,

Thanks for the report.

It comes from 'visit-snapshot-url' returning #<unspecified> instead of
#f.  Then 'swh-url' fails because the 'path' argument is not a string.

Well, I do not how to fix it.  I am confused by:

--8<---------------cut here---------------start------------->8---
;; <https://archive.softwareheritage.org/api/1/origin/52181937/visits/>
(define-json-mapping <visit> make-visit visit?
  json->visit
  (date visit-date "date" string->date*)
  (origin visit-origin)
  (url visit-url "origin_visit_url")
  (snapshot-url visit-snapshot-url "snapshot_url" string*) ;string | #f
  (status visit-status "status" string->symbol)   ;'full | 'partial | 'ongoing
  (number visit-number "visit"))
--8<---------------cut here---------------end--------------->8---

and why it is not string or #f.

Ludo, any tips? :-)


All the best,
simon





reply via email to

[Prev in Thread] Current Thread [Next in Thread]