Marius Orcsik
|
95774ab532
|
Fix Remove method doc comment
|
2021-03-27 14:02:30 +01:00 |
|
mariusor
|
6f428a28ab
|
Modified time properties json encoding to match xsd:timeDate format
Namely switching from the default behavior of time.Time.MarshalJSON, which uses RFC3339Nano to plain RFC3339
|
2021-03-26 10:56:23 +01:00 |
|
Marius Orcsik
|
116119148d
|
Added encoding and decoding gob placeholders api
|
2021-03-14 19:40:36 +01:00 |
|
Marius Orcsik
|
ac3d908e7b
|
Adding placeholder Marshal/UnmarshalBinary and GobEncode/Decode
|
2021-03-14 19:39:49 +01:00 |
|
Marius Orcsik
|
a65a3e9048
|
Renamed internal functions used for JSON buffer write
This is done to ensure we're not overlapping with the future gob functionality
|
2021-03-14 18:31:13 +01:00 |
|
mariusor
|
0c3f57f637
|
Added IsNil function to assert to Object or ItemCollection before checking for nil values in Item interface
|
2021-02-02 14:18:16 +01:00 |
|
Marius Orcsik
|
15ac5c20c7
|
Updated OnX functions to apply the function on an item collection if that's what's being passed to it
This still has the downside that the collection might contain different types of objects
but I can't think of a better way to do it at the moment
|
2021-01-31 13:30:40 +01:00 |
|
mariusor
|
247f1fbf22
|
Removed flatten functionality from here
|
2021-01-13 10:52:50 +01:00 |
|
mariusor
|
cc0968f78b
|
Remove port when compairing hosts
|
2021-01-10 20:54:35 +01:00 |
|
mariusor
|
56bfed629b
|
Add a way to return nil if unmarshaling an empty object
|
2021-01-09 18:37:38 +01:00 |
|
mariusor
|
751dce7fed
|
Improvements to decoding objects without a type
|
2021-01-09 17:39:10 +01:00 |
|
Marius Orcsik
|
c478a28268
|
Added some convenience functions for checking if an Item is an Object or an IRI
|
2020-12-31 10:37:05 +01:00 |
|
Marius Orcsik
|
22a1b093fa
|
Allow InReplyTo to be a single item, not always an item collection
Fix tests
|
2020-12-30 14:19:02 +01:00 |
|
Marius Orcsik
|
3cc5090015
|
Add test for unmarshaling object without type
Fix existing tests
|
2020-12-30 13:31:37 +01:00 |
|
Marius Orcsik
|
727077a035
|
Don't depend on having the type set when trying to call OnX functions
|
2020-12-30 13:31:02 +01:00 |
|
Marius Orcsik
|
bec9454a13
|
Improvements to the JSON unmarshaling plumbing
|
2020-12-30 13:30:34 +01:00 |
|
Marius Orcsik
|
9fa2cdc2fc
|
Fix deepEquals to take into account comparisons of values that can be coerced to basic types
|
2020-12-30 13:21:07 +01:00 |
|
Marius Orcsik
|
b1c270db53
|
Modified ItemMatches method fo match changed ItemMatcher interface
|
2020-12-28 17:53:47 +01:00 |
|
Marius Orcsik
|
fe5b14f0ba
|
Added ToLink and OnLink functions
|
2020-12-28 14:59:16 +01:00 |
|
Marius Orcsik
|
e4ba409251
|
White space issue fix
|
2020-12-28 14:58:56 +01:00 |
|
Marius Orcsik
|
32d4cee9bd
|
Uniform receiver names for MimeType methods
|
2020-12-28 14:58:41 +01:00 |
|
Marius Orcsik
|
c64f3ce904
|
Add extra OnPlace/OnProfile/OnRelationship/OnTombstone functions
|
2020-11-28 13:39:14 +01:00 |
|
mariusor
|
7d6b9976bf
|
Rename the item typer, as it's not strictly tied into json
|
2020-11-06 19:40:46 +01:00 |
|
Marius Orcsik
|
e0b519daad
|
Improved reflection based type conversion for collection types
This avoids some panics when the types are not compatible
I added tests for On*Collection* with all collection types
|
2020-08-30 16:03:34 +02:00 |
|
Marius Orcsik
|
ba0c5bf2ae
|
Fix OnCollectionIntf() func when working with collection pages
|
2020-08-30 14:46:56 +02:00 |
|
mariusor
|
e34990d729
|
Making the Content type be an alias for []byte
|
2020-08-27 16:59:27 +02:00 |
|
MariusOr
|
e3dc8e04fb
|
Modified the NaturalLanguage related types
|
2020-08-26 18:50:27 +02:00 |
|
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 |
|