Skip to content

missing-step

A Dynamic View Step has no Relationship or derived edge between from and to (nor a via subscription of to to from), or the named relationship doesn’t connect them.

Severity: error · Since: v1.0.0

For the failing example below, archidocs check prints:

shop/services.yaml:28:11 error missing-step No Relationship from "shop:cart" to "shop:web", nor a `via` subscription of "shop:web" to it

Each Step must follow a Relationship that exists in the Model, so a scenario can’t show a call the architecture doesn’t have. A Step with no Relationship behind it means the scenario is wrong or the Model is missing a Relationship.

shop/services.yaml:

services:
web:
name: Web
relationships:
- to: cart
cart:
name: Cart
components:
cart-api:
name: Cart API
orders:
name: Orders
events:
name: Events
type: broker
mailer:
name: Mailer
relationships:
- to: orders
interaction: async
via: events
channel: order-placed
views:
dynamic:
purchase:
title: Purchase
steps:
- { from: cart, to: web }

Point the Step at two Elements a Relationship connects, declare the Relationship, or name one that connects them.

shop/services.yaml:

services:
web:
name: Web
relationships:
- to: cart
cart:
name: Cart
components:
cart-api:
name: Cart API
orders:
name: Orders
events:
name: Events
type: broker
mailer:
name: Mailer
relationships:
- to: orders
interaction: async
via: events
channel: order-placed
views:
dynamic:
purchase:
title: Purchase
steps:
- { from: web, to: cart }
  • ambiguous-step: Several Relationships match a Dynamic View Step (several between the pair, or both a call and an event) and no relationship names one.
  • return-without-relationship: A Dynamic View return Step has no Relationship the other way, from its to to its from.

Documents the beta branch at cd98671, ahead of the latest release, v1.4.0.