Skip to content

own-project-prefix

A Project qualifies its own ids.

Severity: error · Since: v1.0.0

For the failing example below, archidocs check prints:

shop/services.yaml:5:13 error own-project-prefix Write "cart", not "shop:cart", inside Project "shop"

Every id has one spelling: bare inside its own Project, qualified from any other. If cart and shop:cart both worked inside shop, one Element would be written two ways in the same Project’s files.

shop/services.yaml:

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

Drop the project: prefix; within its own Project an id is written bare.

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.