Commit graph

524 commits

Author SHA1 Message Date
Marius Orcsik
53effdd8b0
Removed commented out code 2018-03-26 23:13:16 +02:00
Marius Orcsik
060525f59d
Add interface for collapsible types 2018-03-26 23:12:04 +02:00
Marius Orcsik
05c44839f3
Golint suggestions 2018-03-25 21:01:26 +02:00
Marius Orcsik
d43c1e752f
Add json package in full 2018-03-25 19:35:34 +02:00
Marius Orcsik
38f0a9b97a
Improvements from go lint 2018-03-24 18:03:56 +01:00
Marius Orcsik
f46a802d4f
Go to the correct url 2018-03-24 17:57:48 +01:00
Marius Orcsik
3f7567ca67
Some documentation improvements 2018-03-24 17:54:55 +01:00
Marius Orcsik
6d143bffa0
Add go report card badge 2018-03-24 17:53:08 +01:00
Marius Orcsik
71267bdb83
Test courtney 2018-03-24 17:29:50 +01:00
Marius Orcsik
af31a36d90
Adding some tests for activity with non nil object 2017-10-05 13:28:34 +02:00
Marius Orcsik
a3a6f15bd5
Removed BaseObject
Renaming Object to APObject
2017-10-05 12:38:11 +02:00
Marius Orcsik
54e564b1b7
Adding Activity.Object parameter for all instantiation functions 2017-10-03 22:46:03 +02:00
Marius Orcsik
9d9bd8510b
Added a method for marshalling interface{}s which decay to scalars
for the moment it's overcomplicted and ugly

Moved UnmarshalJSON to decode.go file

Adding tests for some of the new functionality
2017-10-02 17:24:26 +02:00
Marius Orcsik
b2d595e31d
Improvements to jsonld.Marshal - now with tags 2017-10-02 16:19:23 +02:00
Marius Orcsik
ca076e7185
Adding ObjectOrLink interface functions
Adding base ActivityObject interface
2017-10-02 15:59:53 +02:00
Marius Orcsik
c6cd6b58e1
Remove context as a separate property of ActivityPub objects 2017-10-02 15:59:07 +02:00
Marius Orcsik
7377524c79
Transform Context property into a pointer
This allows easier manipulation using our own Json Marshaling when it's nil
2017-10-02 12:07:11 +02:00
Marius Orcsik
88970c9ee2
Adding more jsonld hint tags
Adding IsLink/IsObject logic for LinkOrObject interface

Extending tests
2017-10-02 11:53:09 +02:00
Marius Orcsik
9ae0a031b3
Adding language to contexts and making the url a ref 2017-10-01 17:09:04 +02:00
Marius Orcsik
46b3e2687f
Keep GOPATH on test command 2017-10-01 15:09:24 +02:00
Marius Orcsik
a794556013
More integration tests 2017-10-01 15:04:51 +02:00
Marius Orcsik
7bc4b11f52
Added test with nil context 2017-10-01 15:02:20 +02:00
Marius Orcsik
d887fea428
Added validcollection test 2017-10-01 14:55:39 +02:00
Marius Orcsik
58995fc87b
Renamed basic integration test 2017-10-01 14:55:20 +02:00
Marius Orcsik
f811f14bd3
Adding a basic integration test 2017-10-01 14:44:49 +02:00
Marius Orcsik
4d271bf834
Move coveralls to after_success 2017-10-01 14:27:46 +02:00
Marius Orcsik
f170ed1e81 Merge pull request #2 from mariusor/jsonld
Adding a basic jsonld marshaler
2017-10-01 13:54:47 +02:00
Marius Orcsik
791cba3a5c
Expand jsonld marshaling 2017-10-01 13:43:36 +02:00
Marius Orcsik
8946f0e0be
Instantiating the NaturalLanguageValues arrays 2017-10-01 13:00:36 +02:00
Marius Orcsik
33166c210a
Fix travis? 2017-09-30 23:47:50 +02:00
Marius Orcsik
8f49b502fa
Having the basic jsonld Marshaler working 2017-09-30 23:36:05 +02:00
Marius Orcsik
e9a663c14e
Moving the two packages to src folder 2017-09-30 22:21:51 +02:00
Marius Orcsik
6fcb178dec
Adding the initial frame of the jsonld marshaler 2017-09-16 20:38:25 +02:00
Marius Orcsik
c1829b8fed
More tests 2017-09-16 20:38:09 +02:00
Marius Orcsik
7806d1c2de
Replacing BaseObject with Object in the inheritance chain 2017-09-16 20:20:33 +02:00
Marius Orcsik
92e612676a
Moving some of the other type aliases together 2017-09-16 20:10:41 +02:00
Marius Orcsik
a7e9abe59d
Forgot a type 2017-09-16 20:05:22 +02:00
Marius Orcsik
eb4df3b38a
Some reordering of things 2017-09-16 19:53:11 +02:00
Marius Orcsik
a52381dd15
This missing link annoyed me to no end
Changing the wording of the disclaimer
2017-09-16 17:33:10 +02:00
Marius Orcsik
98a5507f9a
go fmt whitespace changes 2017-09-16 12:32:57 +02:00
Marius Orcsik
3735eed4cc
Improved Actor stuct and ActorNew func 2017-09-16 12:32:24 +02:00
Marius Orcsik
9eb427bcc1
Moved the link functionality to its own file 2017-09-16 12:31:23 +02:00
Marius Orcsik
a5b9b99af7
Some updates to NewActivity and NewIntransitiveActivity 2017-09-15 18:11:31 +02:00
Marius Orcsik
dfbe432662
Used go fmt on the code 2017-09-12 22:37:34 +02:00
Marius Orcsik
a47db907ad
Adding a MarshalJSON for NaturalLanguageValue alias 2017-09-12 22:36:13 +02:00
Marius Orcsik
b078413f1b
Remove omitempty from jsonld marshalling options, as it apparently doesn't take it into account 2017-09-12 19:24:28 +02:00
Marius Orcsik
f7f41ab6c2
Added all properties from activity vocabulary and activity pub docs with comments and jsonld hints 2017-09-12 19:13:58 +02:00
Marius Orcsik
40cf589f8d
Changed Url to URL 2017-09-12 18:54:10 +02:00
Marius Orcsik
baa209cfd0
Adding instantiation functions for all types of activities 2017-09-12 18:53:41 +02:00
Marius Orcsik
5fe1b75356
Added all properties from activity vocabulary docs with comments and jsonld hints 2017-09-12 17:47:49 +02:00