Commit graph

573 commits

Author SHA1 Message Date
MariusOr
02bc61cc17 Updating to a LangVal specific type for LangRefValues
This allows us to switch from storing strings to plain byte slices
2020-08-25 13:45:52 +02:00
Marius Orcsik
656c40c1a7
Adding a default case for type conversion using the reflect package 2020-07-16 21:54:46 +02:00
Marius Orcsik
95b4154abb
This has become a problem, so it needs a proper error message 2020-07-16 20:38:22 +02:00
Marius Orcsik
a84e349e66
Apparently it's a spec requirement to remove an actor from the
recipients list.

Revert "Don't remove an activity's actor from the recipients, if specifically placed there"

This reverts commit fef2c33999.
2020-07-12 20:42:56 +02:00
Marius Orcsik
fef2c33999
Don't remove an activity's actor from the recipients, if specifically placed there 2020-07-12 20:42:05 +02:00
Marius Orcsik
57c015a8e9
Refactored types a bit 2020-06-30 13:35:04 +02:00
Marius Orcsik
6b4974048c
Fix ItemCollection.Remove 2020-06-24 13:48:20 +02:00
Marius Orcsik
2d67267157
Fixed ItemEquals for objects without a type
Added some test cases for ItemsEqual
2020-06-24 13:47:43 +02:00
Marius Orcsik
b6c780ed52
Added Remove method on item collections 2020-06-10 21:36:56 +02:00
Marius Orcsik
48d16c143b
Updated json parser package 2020-05-15 15:20:36 +02:00
Marius Orcsik
342a261a17
Improved ItemCollectionDeduplication
More tests for object equality method
2020-05-15 15:18:20 +02:00
Marius Orcsik
fac868b7c2
Added functionality for checking if objects are equal 2020-05-07 16:49:43 +02:00
Marius Orcsik
7e300c1773
Added pub.MarshalJSON function 2020-04-19 11:02:15 +02:00
Marius Orcsik
0b5d7352b1
Added convenience method to IRI to append path elements to it 2020-04-13 12:01:07 +02:00
Marius Orcsik
4f750e67c2
Added tests placeholders 2020-04-13 12:00:26 +02:00
Marius Orcsik
8ff0e652dd
Added some more tests 2020-04-12 10:57:04 +02:00
Marius Orcsik
020b19dc97
Added UnmarshalJSON functionality for IRIs
Added IRI.ItemMatches functionality
2020-04-11 20:55:11 +02:00
Marius Orcsik
4c282e21d6
Updated jsonld package 2020-04-11 20:34:27 +02:00
Marius Orcsik
c928d2da7e
Removed local xsd:duration functionality in favour of external package 2020-04-11 09:36:11 +02:00
Marius Orcsik
6e7676346e
Constants for nil IRI and ID 2020-03-31 13:45:24 +02:00
Marius Orcsik
fba872da77
Updated jsonparser package version 2020-03-29 18:27:27 +02:00
Marius Orcsik
4d5fd9ff2d
Making Collection,OrderedCollectin and Item array implement the ItemMatcher interface 2020-03-29 18:26:30 +02:00
Marius Orcsik
611ae1db29
Simplifying the object IDs 2020-03-26 19:24:44 +01:00
Marius Orcsik
0a2f998222
Make activitypub types comparisons be case insensitive 2020-03-26 11:38:19 +01:00
Marius Orcsik
333ff2b6c2
Having all activitypub vocabulary types available in a slice 2020-03-23 13:08:15 +01:00
Marius Orcsik
11d4d3b2fd
Added OrderedCollection to OnCollectionIntf func handling 2020-03-23 11:27:27 +01:00
Marius Orcsik
ef90082ea6
Updated jsonparser package 2020-03-02 12:35:30 +01:00
Marius Orcsik
46100f4f82
Cleanup an activity's object/actor/target BCC, BTo if they're loaded as objects 2020-02-09 08:32:57 +01:00
Marius Orcsik
dc8a4c2135
Don't use pointer receiver for Collection() method in ordered collection and ordered collection page 2020-01-21 19:38:09 +01:00
Marius Orcsik
81d01659b0
Change the order in which we output json fields for collections 2020-01-20 12:13:18 +01:00
Marius Orcsik
78d2a53e63
Clarifying OnCollection usage 2020-01-14 20:57:42 +01:00
Marius Orcsik
2ca069ffb4
Add ordering function by timestamps 2019-12-31 08:55:21 +01:00
Marius Orcsik
46da34eebd
Fix misspell 2019-12-31 08:37:33 +01:00
Marius Orcsik
eb8e886dae
Use UTC when unmarshaling and marshaling timestamps 2019-12-31 08:36:59 +01:00
Marius Orcsik
db8e40c894
Added proper Link Json marshaling
Fix some corner cases for Link unmarshaling

Small cleanups
2019-12-22 14:08:56 +01:00
Marius Orcsik
cecfaf37ac
Fix decoding GetLangRef values 2019-12-22 14:05:06 +01:00
Marius Orcsik
59fd37615d
Refactoring loading of link type from json byte array 2019-12-21 15:25:22 +01:00
Marius Orcsik
a309adb642
Refactoring loading of collection, actor and additional object types from json byte array 2019-12-21 15:14:43 +01:00
Marius Orcsik
b9336e8da0
Fix writing to byte array the anyOf property 2019-12-21 11:08:44 +01:00
Marius Orcsik
b912910ef1
Refactoring loading of object/intransitive activity/activity types from json byte array 2019-12-21 11:05:38 +01:00
Marius Orcsik
6fe2b97669
Refactored a couple of the writeX encoding functions 2019-12-21 10:44:32 +01:00
Marius Orcsik
dafd82896b
Moving unmarshal files to decoding 2019-12-21 10:39:40 +01:00
Marius Orcsik
b973dafdba
Fix iri collection marshaling 2019-12-19 21:03:31 +01:00
Marius Orcsik
147cc84d20
Forgot preferredUsername property 2019-12-19 19:54:33 +01:00
Marius Orcsik
ed094c68d6
Merge pull request #8 from go-ap/custom-marshalers
Custom Marshalers for the vocab structs
2019-12-19 17:16:22 +01:00
Marius Orcsik
6bb34603e9
Refactored marshaling and removing bytes.Buffer in favor of a simple byte slice 2019-12-19 17:05:12 +01:00
Marius Orcsik
22f934b796
Fix rebase artefact 2019-12-19 14:47:32 +01:00
Marius Orcsik
c295d6d15c
Added marshal Json method to Place, Profile, Relationship and Tombstone 2019-12-19 14:45:50 +01:00
Marius Orcsik
66855adb1e
Added collection/ordered_collection and their pages Json marshal methods 2019-12-19 14:45:50 +01:00
Marius Orcsik
1659f7231e
Added question Json marshal 2019-12-19 14:45:49 +01:00