Skip to content

person-as-provider

The provider of a Relationship is a Person.

Severity: error · Since: v1.0.0

For the failing example below, archidocs check prints:

shop/services.yaml:5:13 error person-as-provider Person "shopper" can't be a provider; declare the Relationship under the Person instead

A Relationship points from what depends to what is depended on, and a Person is only ever a consumer: it uses Systems, and nothing depends on it. Pointed at a Person, the Relationship runs backward, so impact answers upstream and downstream of it are wrong.

shop/services.yaml:

services:
web:
name: Web
relationships:
- to: shopper
people:
shopper:
name: Shopper

A Person is only ever a consumer: declare the Relationship under the Person, pointing at what it uses.

shop/services.yaml:

services:
web:
name: Web
people:
shopper:
name: Shopper
relationships:
- to: web

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