Collections
A Collection lists the Behaviors that are active together for a Scenario. All Collections live in one YAML file.
collections.yaml
- Each entry is a Behavior address,
route:case:behavior. The structured form{ route: users-by-id, case: user-1, behavior: ada }works too. There are no implicit defaults: a Route whose Cases aren't listed is not active. frominherits another Collection. A child entry for the sameroute+casereplaces the parent's.- The first Collection is the default. Override it at startup with
decoy serve --collection <id>(orcollection:in the config file), or at runtime per Session with the Control API.
Order matters
Active entries are checked bottom-to-top, and the last matching Case wins. Put broad fallbacks first and specific Cases after them:
collections.yaml (excerpt)