fix spelling of flavor

forgefed_star
Michael Jerger 7 months ago
parent 0a97657443
commit 98e1ffe97f

@ -18,13 +18,13 @@
(s/def ::Star
(s/merge
::as/Activity
(sh/map-spec (s/keys :opt [::flavour]))))
(sh/map-spec (s/keys :opt [::flavor]))))
;https://forgefed.org/ns#Unstar
(s/def ::Unstar
(s/merge
::as/Activity
(sh/map-spec (s/keys :opt [::flavour]))))
(sh/map-spec (s/keys :opt [::flavor]))))
(s/def ::flavour
(s/def ::flavor
(sh/seq-spec ::xsd/anyURI))

@ -26,7 +26,7 @@
(is (s/valid? ::sut/Star
{::as/id "https://repo.prod.meissa.de/api/activitypub/user-id/1/outbox/12345",
::as/type "Star",
::sut/flavour "forgejo",
::sut/flavor "forgejo",
::as/actor "https://repo.prod.meissa.de/api/activitypub/user-id/1",
::as/object "https://codeberg.org/api/repos/forgejo/forgejo"})))))
@ -36,6 +36,6 @@
(is (s/valid? ::sut/Unstar
{::as/id "https://repo.prod.meissa.de/api/activitypub/user-id/1/outbox/12345",
::as/type "Unstar",
::sut/flavour "forgejo",
::sut/flavor "forgejo",
::as/actor "https://repo.prod.meissa.de/api/activitypub/user-id/1",
::as/object "https://codeberg.org/api/repos/forgejo/forgejo"})))))
Loading…
Cancel
Save