Commit graph

72 commits

Author SHA1 Message Date
Marius Orcsik
c4bfc38e75 Fixing unmarshaling an Item type property to an ItemCollection if it holds an array
Adding some tests for it
2019-11-30 10:06:39 +01:00
Marius Orcsik
f333dd1786
Allow unmarshaling of properties of Item type from json arrays 2019-11-29 19:39:38 +01:00
Marius Orcsik
921736699c
Return nil in the case of missing activitypub Type property from the json payload 2019-10-11 13:19:26 +02:00
Marius Orcsik
650ef7b49b
Making the InReplyTo be an explicit item collection
Use jsonld.Marshal for encoding natural language values
2019-09-20 15:14:21 +02:00
Marius Orcsik
9d29e69cfc
Go fmt 2019-03-06 12:17:05 +01:00
Marius Orcsik
0b102fbb67
Added Mapper interface
Pluralized NaturalLanguageValue(s) array type

Improved comments on exported types and functions
2019-02-21 17:57:12 +01:00
Marius Orcsik
1b855f7673
Renamed the Unmarshal test 2019-02-19 11:21:11 +01:00
Marius Orcsik
fa236c4d33
Use subtests for unmarshalling tests 2019-02-13 10:22:36 +01:00
Marius Orcsik
a7f324ca46
Small deepEquals improvements 2019-01-31 13:24:15 +01:00
Marius Orcsik
b57e0c6e02
Add some marshalling tests back 2019-01-30 16:42:54 +01:00
Marius Orcsik
6a208fd55a
Removed the integration tests 2019-01-24 11:42:15 +01:00
Marius Orcsik
54f56b33e9
Moved everything related to activitystreams vocabulary to its own project 2019-01-22 16:44:27 +01:00
Marius Orcsik
281b73cbc2
Moved to go-ap 2019-01-07 14:54:19 +01:00
Marius Orcsik
7f9c695d13
Fix loading to/bto/cc/bcc
Added unmarshalling test pair for them

Remove duplicate func for dynamic loading of as.Items
2018-12-08 15:45:21 +01:00
Marius Orcsik
db8a905f46
Reenabled object_with_replies unmarshalling test 2018-12-03 13:41:34 +01:00
Marius Orcsik
e9ef1a6ff5
Streamlined objects unmarshalling to get rid of duplicated work on same properties 2018-12-02 16:50:40 +01:00
Marius Orcsik
269c06fbb2
Factored out the objects' common properties 2018-11-23 15:22:56 +01:00
Marius Orcsik
9dcc89db96
Adding Tag property unmarshalling for Objects 2018-11-14 13:42:08 +01:00
Marius Orcsik
9e4340bf26
Make URL properties accept array of IRI objects 2018-10-31 16:26:51 +01:00
Marius Orcsik
c1f61e3a35
Adding Unmarshalling methods for CollectionPage and OrderedCollectionPage 2018-10-18 20:19:18 +02:00
Marius Orcsik
cbad1a2add
Removed some whitespaces that were confusing godoc 2018-10-18 11:58:37 +02:00
Marius Orcsik
f21b60ad61
Remove URI type in favour of IRI 2018-10-11 20:13:34 +02:00
Marius Orcsik
784e85f7fc
Refactored most of the activitystreams-vocab structs to their own package 2018-10-11 11:26:00 +02:00
Marius Orcsik
602911a7db
Refactored elements that were of CollectionInterface type to Item type so we can pass IRIs to them 2018-10-04 20:50:03 +02:00
Marius Orcsik
e1d7e465d7
Added LikeActivity with IRI actor test 2018-09-06 21:56:46 +02:00
Marius Orcsik
ef08c03a06
Moved activity_create simple test 2018-09-06 21:55:21 +02:00
Marius Orcsik
c8ffbb0844
Reinstate simple activity unmarshal test 2018-09-02 15:51:53 +02:00
Marius Orcsik
e05502a36a
Switch to NaturalLanguageVal as arrays instead of simple maps 2018-09-02 15:44:00 +02:00
Marius Orcsik
017c064ac8
Changes to mocks 2018-08-31 17:58:07 +02:00
Marius Orcsik
352298aa7c
Show values when possible when failing deep equality 2018-08-31 17:52:43 +02:00
Marius Orcsik
3316087ffe
Change Activity.Actor property to be ObjectOrLink interface 2018-08-31 13:40:02 +02:00
Marius Orcsik
26b16b6ece
NaturalLanguage Unmarshal test and improvements 2018-08-31 13:38:15 +02:00
Marius Orcsik
5213806994
Updated the Unmarshalling with a test for replies 2018-08-15 11:33:50 +02:00
Marius Orcsik
28d2a1e33f
Added published date and other date fields to Object/Collection unmarshall 2018-08-06 19:11:24 +02:00
Marius Orcsik
b6ec84c634
Renamed func type 2018-08-06 15:26:50 +02:00
Marius Orcsik
b4ab90daff
Use constant for empty LangRef value 2018-08-06 13:09:24 +02:00
Marius Orcsik
d4b287f531
Fix collection unmarshalling test
Add generator and attributedTo properties to the test
2018-08-06 13:06:14 +02:00
Marius Orcsik
fb363aa377
Improve collection unmarshalling 2018-08-05 13:54:01 +02:00
Marius Orcsik
f40d875d04
Going deeper and deeper down the jsonld rabbit hole.
The current approach doesn't look too good
2018-08-01 10:52:11 +02:00
Marius Orcsik
0eedce953c
Fix error regarding output specifier 2018-07-25 12:52:07 +02:00
Marius Orcsik
b4baafa9f3
Fix Outbox test 2018-07-25 12:34:36 +02:00
Marius Orcsik
51f73c2cba
Fix failing test regarding ObjectID 2018-07-25 11:57:49 +02:00
Marius Orcsik
4dc584b0d4
Added UnmarshalJSON methods for some types
Add some tests
2018-07-24 23:11:08 +02:00
Marius Orcsik
72c2d5c331
Use package aliases for jsonld and activitypub in tests 2018-07-18 16:33:40 +02:00
Marius Orcsik
8308c6fb22
Converted the jsonld context to be an empty interface
This allows us to support passing it just as a string or URI
2018-07-16 13:26:26 +02:00
Marius Orcsik
8bd5130d0f
Move the context to a package variable 2018-07-06 22:33:47 +02:00
Marius Orcsik
978985644e
Refactored how the repo looks 2018-07-06 12:48:04 +02:00
Marius Orcsik
7f8193dff8
Refactored objects to include full AP structure 2018-06-09 14:05:46 +02:00
Marius Orcsik
55e0d31a75
Broken tests 2018-06-09 13:08:30 +02:00
Marius Orcsik
68c4bc41df
Renamed Object to BaseObject 2018-06-09 13:06:55 +02:00