diff --git a/src/main/cljc/org/domaindrivenarchitecture/fed_poc/forgefed.cljc b/src/main/cljc/org/domaindrivenarchitecture/fed_poc/forgefed.cljc index efc271c..89cac8d 100644 --- a/src/main/cljc/org/domaindrivenarchitecture/fed_poc/forgefed.cljc +++ b/src/main/cljc/org/domaindrivenarchitecture/fed_poc/forgefed.cljc @@ -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)) \ No newline at end of file diff --git a/src/test/cljc/org/domaindrivenarchitecture/fed_poc/forgefed_test.cljc b/src/test/cljc/org/domaindrivenarchitecture/fed_poc/forgefed_test.cljc index bf34b18..fe79204 100644 --- a/src/test/cljc/org/domaindrivenarchitecture/fed_poc/forgefed_test.cljc +++ b/src/test/cljc/org/domaindrivenarchitecture/fed_poc/forgefed_test.cljc @@ -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"}))))) \ No newline at end of file