an inofficial proposal (JSON Schema, draft 07)

Specifications:
https://www.w3.org/TR/activitypub/
https://www.w3.org/TR/activitystreams-vocabulary/
https://www.w3.org/TR/activitystreams-core/
Work in Progress
Any implementor of ActivityPub wants to validate incoming data or build forms for any ActivityPub type.
JSON Schema is a language independent way to describe, document and validate the Specification.
/ActivityPub.json is the JSON Schema you start with …
All the other schemas are in /type/
With any software consuming JSON Schema draft 07 …
A Node.js script to validate all the examples from activitystreams-vocabulary is included:
cdto the project rootnpm inpm test
Fork, edit, pull ... Raise issues ...
NOTE
There are blocking issues that need to be resolved before we can go on:
w3c/activitystreams#437
w3c/activitystreams#443
w3c/activitystreams#157
w3c/activitypub#290
w3c/activitypub#291
MIT