Skip to content

wikimedia/schemas-event-primary

Repository files navigation

'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.

Contributing

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:

  1. Edit the current.yaml file, and remember to increment the version in the $id field.
  2. Run npm run build-modified, which generates the versioned YAML and JSON files.
  3. Commit the new and changed files to Git, and submit them for code review.

To create a schema:

  1. Create a subdirectory for the schema under one of the jsonschema/ namespace directories, and draft the first version in a new current.yaml file.
  2. Run npm run build-new path/to/your/current.yaml, which generates the versioned YAML and JSON files.
  3. Commit the new files to Git, and submit them for code review.

See also