Commit graph

367 commits

Author SHA1 Message Date
Marius Orcsik
aa26e536d9
Small improvements to how we extract NaturalLanguageField from JSON 2019-10-04 17:27:22 +03:00
Marius Orcsik
ccea8c926d
Adding tests for NaturalLanguageValues marshalling
Encoding it as a string just when it has a nil value ref
2019-10-04 10:27:57 +03:00
Marius Orcsik
06f0682888
Using bytes.ReplaceAll for replacing escape sequences 2019-09-24 14:29:49 +03:00
Marius Orcsik
83e6033c7d
Fix assigning zero length item collections to CC, BCC and Tag properties 2019-09-24 09:51:56 +03:00
Marius Orcsik
0219834966
Fix test that was relying on double escaping of \n 2019-09-24 09:51:21 +03:00
Marius Orcsik
01aeb089f6
Fix double escaping of escape values when unmarshalling 2019-09-24 08:54:40 +03:00
Marius Orcsik
12583f00f4
Explicitly initialize ItemCollection variables 2019-09-23 16:35:00 +02:00
Marius Orcsik
239d1564f8
Improvements to NaturalLanguageValues Unmarshaling 2019-09-23 16:34:14 +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
da75235f0f
Simplified GetItemByType function 2019-09-09 20:49:19 +02:00
Marius Orcsik
68a5740255
Use new jsonld package 2019-09-09 16:14:31 +02:00
Marius Orcsik
0f6ac4598a
Gofmt 2019-09-09 16:13:59 +02:00
Marius Orcsik
c9c6d2f720 Fix Contains methods on empty collections 2019-08-23 21:49:47 +02:00
Marius Orcsik
0b4e0d5e7c Added Contains(IRI) method for collection types 2019-08-23 20:39:28 +02:00
Marius Orcsik
1ef5c83a05 Added the public namespace as a constant 2019-08-22 21:16:40 +02:00
Marius Orcsik
fcbb6ea114 Don't fail if we can't upload code coverage 2019-08-22 21:02:55 +02:00
Marius Orcsik
b21a965f7a Generalizing the itemcollection deduplication function 2019-08-22 20:48:02 +02:00
Marius Orcsik
4a1645657e Added ToX functions for Collection types 2019-08-21 22:21:32 +02:00
Marius Orcsik
bd2f80c093 Added ToQuestion for question intransitive activities 2019-08-20 21:54:21 +02:00
Marius Orcsik
9e028ffc04 Added ToIntransitiveActivity function 2019-08-20 21:49:58 +02:00
Marius Orcsik
a89d5cf5fe Added a method to check if an IRI is contained it an array of IRIs 2019-08-17 15:17:10 +02:00
Marius Orcsik
cb9804d29d
Adding some unit-tests 2019-07-09 13:30:02 +02:00
Marius Orcsik
83477f342d New secrets UUID 2019-07-06 20:16:05 +02:00
Marius Orcsik
08a365ef69 Fixed secrets uuid 2019-07-06 19:03:49 +02:00
Marius Orcsik
9088f9ac88 Updated secrets 2019-07-06 13:36:02 +02:00
Marius Orcsik
3072014ce9 String doesn't need a pointer receiver 2019-07-06 12:15:00 +02:00
Marius Orcsik
e11c56fb6b
Added more test stubs 2019-07-05 11:37:34 +02:00
Marius Orcsik
d3fe32b6d1
Added some stringer methods for LangRefValue and NaturalLanguageValues types 2019-07-05 11:37:25 +02:00
Marius Orcsik
7d4dd99336
Updated jsonld version 2019-06-21 17:23:49 +02:00
Marius Orcsik
f644b75e8b
FlattenProperties functions now receive and return pointers 2019-06-11 18:08:39 +02:00
Marius Orcsik
26e621e841
Use shields.io for codecov badge 2019-06-11 15:27:37 +02:00
Marius Orcsik
527e12f363
Improved CI script 2019-06-11 13:53:34 +02:00
Marius Orcsik
0856b85ff0
Small improvement to coverage target 2019-06-11 13:53:34 +02:00
Marius Orcsik
c3751a4372 Removed new line because of comment 2019-06-09 13:38:28 +02:00
Marius Orcsik
66bc885663 Replaced codacy with go report card badge 2019-06-09 13:35:21 +02:00
Marius Orcsik
701f1ef193 Use builds.sr.ht badge for build status 2019-06-08 18:38:40 +02:00
Marius Orcsik
90b5e5c776 Updated sr.ht build script 2019-06-08 18:13:49 +02:00
Marius Orcsik
571c3daee3 Removed travis build 2019-06-08 17:06:26 +02:00
Marius Orcsik
c6deab0d6b
Adding a Count() method to the CollectionInterface 2019-06-02 16:45:37 +02:00
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