added to anc cc
This commit is contained in:
parent
ec20d3d575
commit
87a089f0a0
2 changed files with 19 additions and 1 deletions
|
@ -14,7 +14,7 @@
|
|||
(s/def ::Object
|
||||
(s/and
|
||||
::owl/Class
|
||||
(sh/map-spec (s/keys :opt-un [::id ::type ::attachment ::bcc ::bto]))))
|
||||
(sh/map-spec (s/keys :opt-un [::id ::type ::attachment ::bcc ::bto ::cc ::to]))))
|
||||
|
||||
;http://www.w3.org/ns/activitystreams#Link
|
||||
;TODO: definition in progress
|
||||
|
@ -73,6 +73,18 @@
|
|||
::Object
|
||||
::Link))
|
||||
|
||||
;http://www.w3.org/ns/activitystreams#cc
|
||||
(s/def ::cc
|
||||
(s/and ::owl/ObjectProperty
|
||||
::Object
|
||||
::Link))
|
||||
|
||||
;http://www.w3.org/ns/activitystreams#to
|
||||
(s/def ::to
|
||||
(s/and ::owl/ObjectProperty
|
||||
::Object
|
||||
::Link))
|
||||
|
||||
;https://www.w3.org/TR/activitystreams-vocabulary/#dfn-type
|
||||
;TODO: this can not be found in the ttl / namespace. Where is this exactly defined?
|
||||
(s/def ::type
|
||||
|
|
|
@ -51,6 +51,12 @@
|
|||
(deftest bto-test
|
||||
(is (s/valid? ::sut/bto ["http://joe.example.org"])))
|
||||
|
||||
(deftest cc-test
|
||||
(is (s/valid? ::sut/cc ["http://joe.example.org"])))
|
||||
|
||||
(deftest to-test
|
||||
(is (s/valid? ::sut/to ["http://joe.example.org"])))
|
||||
|
||||
(deftest Activity-test
|
||||
(is (s/valid? ::sut/Activity
|
||||
{:type "Activity",
|
||||
|
|
Loading…
Reference in a new issue