'Primary' event JSONSchemas for Wikimedia & MediaWiki event data.
This schema repository contains event schemas that directly affect user-facing features. These schemas are meant to represent 'tier 1' events. This repository complements the schemas/event/secondary repository.
See also:
NOTE: The only reason for having separate event schema repositories is to allow for different repository merge rights. Changes to primary schemas need to be more restricted than changes to secondary schemas.
Most files in this repo are automatically generated by jsonschema-tools and must not be changed after their initial creation.
Follow the Event Platform Schema Guidelines when creating or updating schemas.
Prerequisites:
- A clone of this Git repository.
- Run
npm install
.
To update a schema:
- Edit the
current.yaml
file, and remember to increment the version in the$id
field. - Run
npm run build-modified
, which generates the versioned YAML and JSON files. - Commit the new and changed files to Git, and submit them for code review.
To create a schema:
- Create a subdirectory for the schema under one of the
jsonschema/
namespace directories, and draft the first version in a newcurrent.yaml
file. - Run
npm run build-new path/to/your/current.yaml
, which generates the versioned YAML and JSON files. - Commit the new files to Git, and submit them for code review.