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.
Severity: error · Since: v1.0.0
What check reports
Section titled “What check reports”For the failing example below, archidocs check prints:
shop/services.yaml:31:11 error ambiguous-step "shop:orders" → "shop:mailer" matches both a call (shop:notify) and an event (shop:mailer → shop:orders); name one with `relationship`A Step takes its kind, a call or an event, and its default label from the Relationship it follows. When several Relationships match, Archidocs doesn’t guess which one the scenario means.
Failing example
Section titled “Failing example”shop/services.yaml:
services: web: name: Web relationships: - to: cart cart: name: Cart components: cart-api: name: Cart API orders: name: Orders relationships: - id: notify to: mailer events: name: Events type: broker mailer: name: Mailer relationships: - to: orders interaction: async via: events channel: order-placedviews: dynamic: purchase: title: Purchase steps: - { from: orders, to: mailer }Name the Relationship the Step takes with relationship: <id>.
shop/services.yaml:
services: web: name: Web relationships: - to: cart cart: name: Cart components: cart-api: name: Cart API orders: name: Orders relationships: - id: notify to: mailer events: name: Events type: broker mailer: name: Mailer relationships: - to: orders interaction: async via: events channel: order-placedviews: dynamic: purchase: title: Purchase steps: - { from: orders, to: mailer, relationship: notify }Related rules
Section titled “Related rules”missing-step: A Dynamic View Step has no Relationship or derived edge betweenfromandto(nor aviasubscription oftotofrom), or the namedrelationshipdoesn’t connect them.duplicate-relationship-id: A Relationshipidrepeats in a Project.
Documents the beta branch at cd98671, ahead of the latest release, v1.4.0.