You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
917 B
Clojure

(ns org.domaindrivenarchitecture.fed-poc.forgefed
(:require [clojure.spec.alpha :as s]
[orchestra.core :refer [defn-spec]]
[org.domaindrivenarchitecture.fed-poc.spec-helper :as sh]
[org.domaindrivenarchitecture.fed-poc.owl :as owl]
[org.domaindrivenarchitecture.fed-poc.activitystreams2 :as as]
[org.domaindrivenarchitecture.fed-poc.xsd :as xsd]
[org.domaindrivenarchitecture.fed-poc.activitystreams2 :as as]))
;https://forgefed.org/ns#Repository
;TODO: definition in progress
(s/def ::Repository
(s/and
::as/Object
(sh/map-spec (s/keys :opt []))))
;https://forgefed.org/ns#Star
(s/def ::Star
(s/merge
::as/Activity
(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 [::flavor]))))
(s/def ::flavor
(sh/seq-spec ::xsd/anyURI))