Updating the message type registry
Steps to publish a new message type, or a new version of an existing one, in your program's Message Type Registry.
- Check out the registry repository and create a feature branch.
- Add or update the type descriptor (
<Type>.json) and its Avro schema (<type>_<version>.avdl, plus an optional key schema) under/descriptor/<system-lowercase>/event/<eventname>/(or/command/) — see Structure for the exact layout, and the/schemafolder's JSON schemas if your IDE can validate against them. - For a new version of an existing type, append an entry to the descriptor's
versionsarray and set itscompatibilityMode(andcompatibleVersion, if it isn't the immediately preceding version) — see Message evolution for picking the right compatibility mode and migration strategy. Never change or remove a version already on master; add a new one instead. - Verify locally before opening a PR:
This runs the same check the build pipeline runs: every schema already on master is compared against your branch's version (parsed and resolved, not diffed as text) and any incompatible change is rejected — see Changing existing schemas for what counts as a safe vs. a rejected change.mvn verify
- Open a pull request to master. The verification pipeline must pass before merge.
- Once merged, the registry build publishes the generated Java bindings as a Maven artifact (group id from the registry POM, artifact id composed of application + message name); consume it like any other dependency — see Getting started and Defining messages.