Skip to content

self-relationship

An Element has a Relationship to itself.

Severity: error · Since: v1.0.0

For the failing example below, archidocs check prints:

shop/services.yaml:5:13 error self-relationship Service "web" has a Relationship to itself

A Relationship says that one Element depends on another. Pointed at itself, an Element would be its own upstream and downstream, which tells a reader nothing; it is usually a to that names the wrong id.

shop/services.yaml:

services:
web:
name: Web
relationships:
- to: web
cart:
name: Cart

Point to at the Element depended on, or remove the Relationship.

shop/services.yaml:

services:
web:
name: Web
relationships:
- to: cart
cart:
name: Cart

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