Skip to content

unknown-element

A reference names no Element: in to, via, in, a Deployment’s service, or a Saved View’s selectors, expand, collapse or Lens.

Severity: error · Since: v1.0.0

For the failing example below, archidocs check prints:

shop/cart.yaml:4:9 error unknown-element Unknown Element "chekout" in Project "shop"; did you mean "checkout"?

A reference that names no Element leaves something hanging: a Relationship with no provider, a Deployment with no Service, a Saved View that selects nothing. It is nearly always a misspelled id, so check suggests the nearest one.

shop/cart.yaml:

services:
cart:
name: Cart
in: chekout

Use the id of an Element declared in the Project, or declare it.

shop/cart.yaml:

services:
cart:
name: Cart
in: checkout
  • unknown-project: A project: prefix names no Project.
  • wrong-kind: An id resolves to a kind the field doesn’t accept, such as a Deployment’s service naming a Component or System, or a Relationship’s via naming something other than a Service.
  • unknown-target: A Deployment, or a Saved Deployment View’s targets, names no Deployment Target.
  • unknown-adr-link: An ADR’s elements names no Element or Deployment Target, its views no Saved View, or its supersedes no ADR.

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