Skip to content

invalid-nesting

System > Service > Component is broken, by nesting or in:.

Severity: error · Since: v1.0.0

For the failing example below, archidocs check prints:

shop/services.yaml:5:7 error invalid-nesting Component "cart-api" can't sit inside System "checkout"; a Component goes inside a Service

Every View shows the Model at a level: Systems at C1, Services at C2, Components at C3. That depends on the nesting System > Service > Component: a Component directly inside a System has no Service to be drawn in.

shop/services.yaml:

systems:
checkout:
name: Checkout
components:
cart-api:
name: Cart API

Move the Element under a parent of the right kind (a Service under a System, a Component under a Service), or point in: at one.

shop/services.yaml:

systems:
checkout:
name: Checkout
services:
cart:
name: Cart
components:
cart-api:
name: Cart API
  • external-with-components: An External System or Service declares Components.
  • 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.

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