Skip to content

Notes

Use @note to attach review context directly to models. Notes are repeatable, so you can add multiple notes to the same resource.

The keyword is @note (singular), even if you are adding many notes.

Example

main.ec
service CheckoutService {
version 2.0.0
owner checkout-team
@note("Should retries live here or in PaymentsService?")
@note("Need SRE sign-off for timeout policy", author: "platform-team", priority: "high")
sends event CheckoutSubmitted@2.0.0 to CheckoutEvents@1.0.0
}

Parameters

ParameterTypeRequiredDescriptionExample
first argumentstringYesThe note text."Need SRE sign-off"
authorstringNoPerson or team who left the note."platform-team"
prioritystringNoPriority label for triage."high"

Where you can use notes

  • services
  • messages (event, command, query)
  • channels
  • inline messages inside sends and receives