Skip to content

Protocol overview

CommonBenefits is a TypeSpec-defined protocol for describing benefits programs. It provides reusable types, fields, filters, and response shapes that any benefits API can implement.

Each entry shows:

  • A table of the schema’s properties (or enum values), with cross-links to related schemas.
  • An Example generated from the TypeSpec @example decorators (using openapi-sampler to fill in references).
  • The compiled JSON Schema YAML.
  • The original TypeSpec source (when the schema is defined in lib/core).

To add a new schema, define it in lib/core/lib/, register it in website/src/lib/protocol-catalog.ts (under an existing page or a new one), and the corresponding page is generated automatically.