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
What check reports
Section titled “What check reports”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.
Failing example
Section titled “Failing example”shop/cart.yaml:
services: cart: name: Cart in: chekoutUse the id of an Element declared in the Project, or declare it.
shop/cart.yaml:
services: cart: name: Cart in: checkoutRelated rules
Section titled “Related rules”unknown-project: Aproject:prefix names no Project.wrong-kind: An id resolves to a kind the field doesn’t accept, such as a Deployment’sservicenaming a Component or System, or a Relationship’svianaming something other than a Service.unknown-target: A Deployment, or a Saved Deployment View’stargets, names no Deployment Target.unknown-adr-link: An ADR’selementsnames no Element or Deployment Target, itsviewsno Saved View, or itssupersedesno ADR.
Documents the beta branch at cd98671, ahead of the latest release, v1.4.0.