Commit graph

328 commits

Author SHA1 Message Date
Marius Orcsik
3cde24f465
Don't increment TotalItems when appending items 2019-06-02 16:28:45 +02:00
Marius Orcsik
a8cd8b42ca
Added URL() method to the IRI type 2019-06-02 14:59:08 +02:00
Marius Orcsik
5829d05992 Add two basic tests for ToActivity and ToObject 2019-05-30 20:44:02 +02:00
Marius Orcsik
be3f99242b Forgot to not increment the where values counter 2019-05-28 21:51:15 +02:00
Marius Orcsik
d3ef08f261
Clean BCC and Bto on activities after returning deduplicated recipients list 2019-05-26 22:29:34 +02:00
Marius Orcsik
268f6a752e
Improved recipients deduplication logic 2019-05-26 22:28:55 +02:00
Marius Orcsik
4d9eb144b0
Added some additional ToX functions 2019-05-24 20:20:00 +02:00
Marius Orcsik
385e1cd273
Set the ItemTyperFunc when doing UnmarshalJSON 2019-05-18 22:45:54 +02:00
Marius Orcsik
14d9cc820b
Fix the object type tests 2019-05-18 16:35:08 +02:00
Marius Orcsik
4e3f47fa79
Adding comments for activity types groups 2019-05-16 17:14:30 +02:00
Marius Orcsik
86446182b1
Add the correct types for Content Experience activities 2019-05-16 17:06:31 +02:00
Marius Orcsik
3642d21563
Simplify type validation 2019-05-16 11:08:43 +02:00
Marius Orcsik
9255f5ce5d
Adding unmarshal Tombstone 2019-05-12 20:13:06 +02:00
Marius Orcsik
d8332178b9
We need to return pointers from the typer function 2019-05-12 20:03:10 +02:00
Marius Orcsik
b2c3040f04
Returning the correct types for objects with additional properties
These objects are: place, profile, relationship and tombstone
2019-05-12 19:33:58 +02:00
Marius Orcsik
ed9c46fc7b
Renamed the Fold* functions to Flatten* 2019-05-11 11:53:32 +02:00
Marius Orcsik
82ef950fd2
Added helper functions to collapse Items to IRIs 2019-05-11 10:32:55 +02:00
Marius Orcsik
3470d1f02e
Also return an error from To* functions 2019-05-07 23:11:15 +02:00
Marius Orcsik
4a00626af8
Updated ToObject to cover all object types 2019-05-05 14:30:26 +02:00
Marius Orcsik
a11650ffba
Updated ToActivity to cover all activity types 2019-05-05 14:25:55 +02:00
Marius Orcsik
03fc2158a8
Skipping the empty tests 2019-05-05 09:32:45 +02:00
Marius Orcsik
8020d0b4b2
Add start of ToActivity and ToObject functions
Some test stubs for other object related functions
2019-05-05 00:52:25 +02:00
Marius Orcsik
302a70f172
Adding some more properties to unmarshalling 2019-05-05 00:15:35 +02:00
Marius Orcsik
a516ad03a5
Rename the parent of CollectionPage object so we avoid conflict with CollectionInterface 2019-03-10 10:11:31 +01:00
Marius Orcsik
2a794fbd6a
Updated jsonld version 2019-03-06 12:17:05 +01:00
Marius Orcsik
9d29e69cfc
Go fmt 2019-03-06 12:17:05 +01:00
Marius Orcsik
f01023dea6
Added sr.ht build file 2019-03-03 15:19:09 +01:00
Marius Orcsik
1216f87ea2
Don't omit TotalItems for (Ordered)Collections when marshalling 2019-03-03 14:22:44 +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
ca1b14711d
Small tests for IRI objects 2019-02-19 13:02:38 +01:00
Marius Orcsik
ddf7c77e1c
Added test for JSONGetItemByType 2019-02-19 11:22:10 +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
29c67b42e5
Making Actor types aliases of Object 2019-01-31 13:24:34 +01:00
Marius Orcsik
a7f324ca46
Small deepEquals improvements 2019-01-31 13:24:15 +01:00
Marius Orcsik
f4e240055d
Removed unneeded types in favour of aliasing to Object 2019-01-30 20:50:50 +01:00
Marius Orcsik
6315ea0428
Added a more generic way of using custom activotystreams.Item compatible structs when unmarshalling from other packages 2019-01-30 17:39:26 +01:00
Marius Orcsik
b57e0c6e02
Add some marshalling tests back 2019-01-30 16:42:54 +01:00
Marius Orcsik
5cb8b6af39
Removing Actor as a separate type
The assumptions we were making for it (existence of collections, s/a) didn't match the activitystreams spec

Actor is now an interface and actor types are basically aliases for Object

Moved that functionality to the activitypub package
2019-01-30 16:21:57 +01:00
Marius Orcsik
ce595fadf3
Exposing the JSONGet* functions for activitystreams objects 2019-01-30 16:19:29 +01:00
Marius Orcsik
6a208fd55a
Removed the integration tests 2019-01-24 11:42:15 +01:00
Marius Orcsik
101226ff0f
Organizing the versions is becoming a bit tricky 2019-01-24 11:08:17 +01:00
Marius Orcsik
a494fae1c6
Updated travis build 2019-01-23 12:57:25 +01:00
Marius Orcsik
32ef8f0c59
Update README 2019-01-22 16:55:50 +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
4961f06996
Added the begining of validation logic 2019-01-22 14:54:14 +01:00
Marius Orcsik
2c56aa99b8
Logging every request 2019-01-12 13:43:00 +01:00
Marius Orcsik
44523291c8
Export SignRequestFn and LogFn types 2019-01-12 13:34:36 +01:00
Marius Orcsik
4cc1329870
Updated coverage icon 2019-01-10 16:42:02 +01:00
Marius Orcsik
281b73cbc2
Moved to go-ap 2019-01-07 14:54:19 +01:00