Cory Slep
78a8ee667f
Fix @context value for activitystreams vocabulary.
...
The activitystreams.jsonld had its id set incorrectly.
2019-04-13 00:00:52 +02:00
Cory Slep
b9a95751dc
Add Insert methods for nonfunctional properties.
2019-03-24 14:25:36 +01:00
Cory Slep
b5eecc692c
Add SetType nonfunctional property method
2019-03-24 10:55:23 +01:00
Cory Slep
42b799393a
Fix astool bug incorrectly referencing an unknown variable in generated code
2019-03-13 21:14:06 +01:00
Cory Slep
1ed044f7cf
Add IsOrExtends to astool; regenerate ActivityStreams code.
...
The IsOrExtends will return true if an object is a type T or extends
from that type in the ActivityStreams vocabulary.
2019-03-13 21:09:51 +01:00
Cory Slep
1fac7a8c8d
Fix README typo
2019-02-28 21:31:35 +01:00
Cory Slep
19c351e729
Minor fixes in the README
2019-02-24 16:45:54 +01:00
Cory Slep
4a8f7314a7
Update READMEs
2019-02-24 16:27:02 +01:00
Cory Slep
3180eaf568
Add AppendType and PrependType
2019-02-15 23:54:09 +01:00
Cory Slep
4b87e634a0
Add SetType to properties
2019-02-15 23:29:38 +01:00
Cory Slep
412c6737c3
Generate constants for type and property names
2019-02-15 23:11:08 +01:00
Cory Slep
272d7239f3
Generate generic ToType function.
2019-02-15 22:47:59 +01:00
Cory Slep
1227ec9a5a
Change GetName to GetTypeName
2019-02-15 22:15:25 +01:00
Cory Slep
293cf3e752
Add more methods to Type interface
2019-02-10 15:02:32 +01:00
Cory Slep
546659ed10
Add method getting property values as a generic Type.
2019-02-10 14:09:41 +01:00
Cory Slep
6d618cb630
Regenerate code that is collision resistant to extensions.
2019-02-09 21:56:00 +01:00
Cory Slep
c973eec5e0
Deduplicate tests, increase coverage in the process.
2019-02-09 13:47:51 +01:00
Cory Slep
b7b5c3d2c1
Update table test logging to be consistent.
2019-02-09 13:28:35 +01:00
Cory Slep
c8f384583c
Port vocabulary tests.
...
- Need to deduplicate the manual examples.
2019-02-09 13:27:04 +01:00
Cory Slep
17ac2d4df2
Regenerate with natural language map changes.
2019-02-09 13:26:47 +01:00
Cory Slep
aca6f4e857
Migrate manual data from vocab.
...
Next, need to use them in tests migrated from vocab.
2019-02-08 00:59:10 +01:00
Cory Slep
54dccc70c9
Add Summary to Link.
...
- Other minor spec tweaks to match examples and for type property
convenience.
2019-02-08 00:58:34 +01:00
Cory Slep
436def09b4
Add orderedItems property and properly propagate it.
...
- Fix bug where non-inherited properties didn't apply to a type, only
the type's children.
- Added orderedItems.
- Excluded items property from OrderedCollectionPage.
- Fixed OrderedCollectionPage extending from two types.
2019-02-06 22:18:08 +01:00
Cory Slep
4ca4b8235f
Remove interface based Resolver types.
...
They do not work as intended, due to differing signature for the
LessThan generated methods.
2019-02-06 20:39:30 +01:00
Cory Slep
9fc75b87b8
Regen code with dependency injected type property constructor.
2019-02-06 20:28:32 +01:00
Cory Slep
32beb6881e
Regenerate types from previous commit, passing all streams_old tests.
...
See previous commit message about improvements needed to reduce the
linking hell that is introduced in this code generation. Everything is
now linking against the 'type' property's concrete constructor.
2019-02-06 00:55:41 +01:00
Cory Slep
9f79250293
Regenerate streams package with previous commit fixes.
2019-02-06 00:26:21 +01:00
Cory Slep
7beafb477f
All streams_old tests passing.
...
- Type resolution can handle multiple string types now.
- Stability in Disjoint/Extends/ExtendedBy literal generation, reducing
code generation noise.
- Stability in init function package code generation, reducing the noise
further.
2019-02-04 23:04:19 +01:00
Cory Slep
ff885a86b3
Update generated code for tests.
...
All but 1 of the tests migrated from streams_old passes.
2019-02-04 22:29:04 +01:00
Cory Slep
ff02890ddf
Add streams_old migrated unit tests for the new generated code.
2019-02-04 22:27:22 +01:00
Cory Slep
161ebc62e3
Add new ActivityStreams generated vocabulary.
2019-01-29 22:28:40 +01:00
Cory Slep
8fa479da40
Move streams
to streams_old
in preparation for the new vocabulary.
2019-01-29 22:16:19 +01:00
Cory Slep
31482f867e
Add constructors for the streams package.
2018-11-17 16:59:49 +01:00
Cory Slep
bd6369d284
Add the missing 'shares' property to streams.Object
2018-08-21 19:01:16 +02:00
Cory Slep
2f2858f92b
Include more links to go-fed.org and official reports
2018-08-19 18:39:54 +02:00
Cory Slep
377455aa70
Add IsPublic to streams types
2018-08-04 15:30:31 +02:00
21stio
3c9368c902
Update README.md
...
added syntax highlighting
2018-06-25 09:44:24 +02:00
Cory Slep
b1609bd71a
Generate streams package to multiple files
2018-06-13 22:01:53 +02:00
Cory Slep
e910e86bd6
Update all the READMEs
2018-05-30 23:48:34 +02:00
Cory Slep
ba40dc50b4
Use *url.URL instead of url.URL.
...
He who fights with monsters should be careful lest he thereby become a monster.
And if thou gaze long into an abyss, the abyss will also gaze into thee.
2018-05-29 21:57:39 +02:00
Cory Slep
bed3dbef16
Change vocab Add methods to Append and Prepend
...
This allows the reverse chronological order to be set as items are
easily prepended to non-functional activity stream properties.
2018-05-27 17:07:40 +02:00
Cory Slep
c85503011e
gofmt
2018-05-10 12:49:26 +02:00
Cory Slep
bcaa3a9059
Fix handling of null JSON literals in vocab
...
We now recognize an all-empty intermediate value to mean that the
unknown value is really a null one.
2018-04-28 16:22:17 +02:00
Cory Slep
f19599cb2c
Update actor properties to include collections.
2018-04-09 23:03:55 +02:00
Cory Slep
56e7e842d3
Add AnyObject/Link/Activity callbacks to Deserialize
2018-04-01 16:52:54 +02:00
Cory Slep
07a04262d9
Support likes, liked, blocking, auto-accept/reject follows.
2018-02-20 00:09:29 +01:00
Cory Slep
fe707109c4
Make substantial progress on ActivityPub client & server implmentation
2018-02-04 17:42:22 +01:00
Cory Slep
9300d8583e
Migrate pub to go-fed.
2018-01-26 00:19:21 +01:00
Cory Slep
dbea5a923c
Migrate streams library to go-fed.
2018-01-24 00:31:50 +01:00