Skip to main content

AsyncAPI Rendering Path designed

Event reference rendering should not be treated as a side effect of REST API rendering. AsyncAPI, NATS subjects, event taxonomy, and consumer/runbook context need their own portal path.

Decision

Keep the synced AsyncAPI artifact as the source, then add event reference rendering in two stages:

  1. Portal-native event guide and stream map first.
  2. Generated AsyncAPI/event reference route once the renderer is selected.

Rendering Model

Reference Requirements

AreaRequirement
Contract authorityEvent shapes come from AsyncAPI, not hand-written payload copies
Envelope clarityEvery event page explains event ID, type, version, correlation ID, timestamp, and payload
Subject mappingNATS subjects and streams remain visible beside event names
Consumer postureConsumers need idempotency, retry, duplicate delivery, and DLQ expectations
ExamplesExamples should be generated or curated from contract-backed payloads
Publication tracksPublic/partner event docs may expose selected events; internal docs keep complete stream operations

Candidate Tooling

OptionFit
AsyncAPI Generator / React componentsStrong candidate if we want generated event docs from AsyncAPI
Portal-native generated MDXGood if we need tight control over NATS/runbook context
Static artifact onlySafe baseline, already implemented, insufficient long term
Force into REST rendererPoor fit; event consumers need different context

Next Step

Create a generated event-reference pilot route after the REST reference pilot is stable. Keep Event Streams as the human guide and link the generated route from Contract Artifacts.