Commit Graph

4 Commits

Author SHA1 Message Date
Cory Slep 809fd1f041 Add unit tests for known bugs.
Aggressive PublicKey deserialization and Type masquerading bugs.
2019-10-19 13:30:16 +02:00
Cory Slep 00d19306e4 Fix JSON-LD conformance.
No longer create "default aliases" for JSON-LD vocabularies. This would
break compatibility since the way JSON-LD propagates aliases is pushed
downwards, and not propagated upwards. Since a lot of implementations
don't actually care about JSON-LD, do a lot of hacking to make sure that
others that expect hardcoded contexts and the like will still be able to
handle our output.

Still need to hook together the "well known alias" so it can generate
contexts that match the community, but that will be for things like the
custom mastodon and litepub extensions.

I don't want to ever have to work with JSON-LD in a static language ever
ever again. This is shit code.
2019-10-09 21:25:44 +02:00
Cory Slep 79acb4ef1c gofmt 2019-09-13 12:31:07 +02:00
Cory Slep 351ebe64b7 Migrate serialize from pub to streams; export 2019-08-09 17:29:08 +02:00